Skip to content

Commit

Permalink
feat(client-codecatalyst): This release adds support for understandin…
Browse files Browse the repository at this point in the history
…g pending changes to subscriptions by including two new response parameters for the GetSubscription API for Amazon CodeCatalyst.
  • Loading branch information
awstools committed Mar 28, 2024
1 parent 11a2340 commit 42591f5
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 3 deletions.
Expand Up @@ -43,6 +43,8 @@ export interface GetSubscriptionCommandOutput extends GetSubscriptionResponse, _
* // { // GetSubscriptionResponse
* // subscriptionType: "STRING_VALUE",
* // awsAccountName: "STRING_VALUE",
* // pendingSubscriptionType: "STRING_VALUE",
* // pendingSubscriptionStartTime: new Date("TIMESTAMP"),
* // };
*
* ```
Expand Down
16 changes: 15 additions & 1 deletion clients/client-codecatalyst/src/models/models_0.ts
Expand Up @@ -1164,7 +1164,7 @@ export interface CreateDevEnvironmentRequest {
persistentStorage: PersistentStorageConfiguration | undefined;

/**
* <p>The name of the connection to use connect to a Amazon VPC.</p>
* <p>The name of the connection that will be used to connect to Amazon VPC, if any.</p>
* @public
*/
vpcConnectionName?: string;
Expand Down Expand Up @@ -3115,6 +3115,20 @@ export interface GetSubscriptionResponse {
* @public
*/
awsAccountName?: string;

/**
* <p>The type of the billing plan that the space will be changed to at the start of the next billing cycle. This applies
* only to changes that reduce the functionality available for the space. Billing plan changes that increase functionality
* are applied immediately. For more information, see <a href="https://codecatalyst.aws/explore/pricing">Pricing</a>.</p>
* @public
*/
pendingSubscriptionType?: string;

/**
* <p>The day and time the pending change will be applied to the space, in coordinated universal time (UTC) timestamp format as specified in <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6">RFC 3339</a>.</p>
* @public
*/
pendingSubscriptionStartTime?: Date;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codecatalyst/src/protocols/Aws_restJson1.ts
Expand Up @@ -1346,6 +1346,8 @@ export const de_GetSubscriptionCommand = async (
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
const doc = take(data, {
awsAccountName: __expectString,
pendingSubscriptionStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
pendingSubscriptionType: __expectString,
subscriptionType: __expectString,
});
Object.assign(contents, doc);
Expand Down

0 comments on commit 42591f5

Please sign in to comment.