Skip to content

Commit 42591f5

Browse files
author
awstools
committed
feat(client-codecatalyst): This release adds support for understanding pending changes to subscriptions by including two new response parameters for the GetSubscription API for Amazon CodeCatalyst.
1 parent 11a2340 commit 42591f5

File tree

4 files changed

+169
-3
lines changed

4 files changed

+169
-3
lines changed

clients/client-codecatalyst/src/commands/GetSubscriptionCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export interface GetSubscriptionCommandOutput extends GetSubscriptionResponse, _
4343
* // { // GetSubscriptionResponse
4444
* // subscriptionType: "STRING_VALUE",
4545
* // awsAccountName: "STRING_VALUE",
46+
* // pendingSubscriptionType: "STRING_VALUE",
47+
* // pendingSubscriptionStartTime: new Date("TIMESTAMP"),
4648
* // };
4749
*
4850
* ```

clients/client-codecatalyst/src/models/models_0.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ export interface CreateDevEnvironmentRequest {
11641164
persistentStorage: PersistentStorageConfiguration | undefined;
11651165

11661166
/**
1167-
* <p>The name of the connection to use connect to a Amazon VPC.</p>
1167+
* <p>The name of the connection that will be used to connect to Amazon VPC, if any.</p>
11681168
* @public
11691169
*/
11701170
vpcConnectionName?: string;
@@ -3115,6 +3115,20 @@ export interface GetSubscriptionResponse {
31153115
* @public
31163116
*/
31173117
awsAccountName?: string;
3118+
3119+
/**
3120+
* <p>The type of the billing plan that the space will be changed to at the start of the next billing cycle. This applies
3121+
* only to changes that reduce the functionality available for the space. Billing plan changes that increase functionality
3122+
* are applied immediately. For more information, see <a href="https://codecatalyst.aws/explore/pricing">Pricing</a>.</p>
3123+
* @public
3124+
*/
3125+
pendingSubscriptionType?: string;
3126+
3127+
/**
3128+
* <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>
3129+
* @public
3130+
*/
3131+
pendingSubscriptionStartTime?: Date;
31183132
}
31193133

31203134
/**

clients/client-codecatalyst/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,6 +1346,8 @@ export const de_GetSubscriptionCommand = async (
13461346
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
13471347
const doc = take(data, {
13481348
awsAccountName: __expectString,
1349+
pendingSubscriptionStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1350+
pendingSubscriptionType: __expectString,
13491351
subscriptionType: __expectString,
13501352
});
13511353
Object.assign(contents, doc);

0 commit comments

Comments
 (0)