Skip to content

Commit 2ed03c4

Browse files
author
awstools
committed
feat(client-lightsail): This release adds support to include inactive database bundles in the response of the GetRelationalDatabaseBundles request.
1 parent db3f2d7 commit 2ed03c4

File tree

6 files changed

+45
-12
lines changed

6 files changed

+45
-12
lines changed

clients/client-lightsail/src/Lightsail.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3153,8 +3153,17 @@ export class Lightsail extends LightsailClient {
31533153
}
31543154

31553155
/**
3156-
* <p>Returns the list of bundles that are available for purchase. A bundle describes the specs
3157-
* for your virtual private server (or <i>instance</i>).</p>
3156+
* <p>Returns the bundles that you can apply to an Amazon Lightsail instance when you create
3157+
* it.</p>
3158+
*
3159+
* <p>A bundle describes the specifications of an instance, such as the monthly cost, amount of
3160+
* memory, the number of vCPUs, amount of storage space, and monthly network data transfer
3161+
* quota.</p>
3162+
*
3163+
* <note>
3164+
* <p>Bundles are referred to as <i>instance plans</i> in the Lightsail
3165+
* console.</p>
3166+
* </note>
31583167
*/
31593168
public getBundles(args: GetBundlesCommandInput, options?: __HttpHandlerOptions): Promise<GetBundlesCommandOutput>;
31603169
public getBundles(args: GetBundlesCommandInput, cb: (err: any, data?: GetBundlesCommandOutput) => void): void;

clients/client-lightsail/src/commands/GetBundlesCommand.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,17 @@ export interface GetBundlesCommandInput extends GetBundlesRequest {}
2323
export interface GetBundlesCommandOutput extends GetBundlesResult, __MetadataBearer {}
2424

2525
/**
26-
* <p>Returns the list of bundles that are available for purchase. A bundle describes the specs
27-
* for your virtual private server (or <i>instance</i>).</p>
26+
* <p>Returns the bundles that you can apply to an Amazon Lightsail instance when you create
27+
* it.</p>
28+
*
29+
* <p>A bundle describes the specifications of an instance, such as the monthly cost, amount of
30+
* memory, the number of vCPUs, amount of storage space, and monthly network data transfer
31+
* quota.</p>
32+
*
33+
* <note>
34+
* <p>Bundles are referred to as <i>instance plans</i> in the Lightsail
35+
* console.</p>
36+
* </note>
2837
* @example
2938
* Use a bare-bones client and the command you need to make an API call.
3039
* ```javascript

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8145,7 +8145,8 @@ export namespace GetAutoSnapshotsResult {
81458145

81468146
export interface GetBlueprintsRequest {
81478147
/**
8148-
* <p>A Boolean value indicating whether to include inactive results in your request.</p>
8148+
* <p>A Boolean value that indicates whether to include inactive (unavailable) blueprints in the
8149+
* response of your request.</p>
81498150
*/
81508151
includeInactive?: boolean;
81518152

@@ -8228,7 +8229,7 @@ export namespace GetBucketAccessKeysResult {
82288229
export interface GetBucketBundlesRequest {
82298230
/**
82308231
* <p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the
8231-
* response.</p>
8232+
* response of your request.</p>
82328233
*/
82338234
includeInactive?: boolean;
82348235
}
@@ -8516,8 +8517,8 @@ export namespace GetBucketsResult {
85168517

85178518
export interface GetBundlesRequest {
85188519
/**
8519-
* <p>A Boolean value that indicates whether to include inactive bundle results in your
8520-
* request.</p>
8520+
* <p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the
8521+
* response of your request.</p>
85218522
*/
85228523
includeInactive?: boolean;
85238524

clients/client-lightsail/src/models/models_1.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3368,6 +3368,12 @@ export interface GetRelationalDatabaseBundlesRequest {
33683368
* as the page token in a subsequent request.</p>
33693369
*/
33703370
pageToken?: string;
3371+
3372+
/**
3373+
* <p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the
3374+
* response of your request.</p>
3375+
*/
3376+
includeInactive?: boolean;
33713377
}
33723378

33733379
export namespace GetRelationalDatabaseBundlesRequest {

clients/client-lightsail/src/protocols/Aws_json1_1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13559,6 +13559,8 @@ const serializeAws_json1_1GetRelationalDatabaseBundlesRequest = (
1355913559
context: __SerdeContext
1356013560
): any => {
1356113561
return {
13562+
...(input.includeInactive !== undefined &&
13563+
input.includeInactive !== null && { includeInactive: input.includeInactive }),
1356213564
...(input.pageToken !== undefined && input.pageToken !== null && { pageToken: input.pageToken }),
1356313565
};
1356413566
};

codegen/sdk-codegen/aws-models/lightsail.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7929,7 +7929,7 @@
79297929
"includeInactive": {
79307930
"target": "com.amazonaws.lightsail#boolean",
79317931
"traits": {
7932-
"smithy.api#documentation": "<p>A Boolean value indicating whether to include inactive results in your request.</p>"
7932+
"smithy.api#documentation": "<p>A Boolean value that indicates whether to include inactive (unavailable) blueprints in the\n response of your request.</p>"
79337933
}
79347934
},
79357935
"pageToken": {
@@ -8051,7 +8051,7 @@
80518051
"includeInactive": {
80528052
"target": "com.amazonaws.lightsail#boolean",
80538053
"traits": {
8054-
"smithy.api#documentation": "<p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the\n response.</p>"
8054+
"smithy.api#documentation": "<p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the\n response of your request.</p>"
80558055
}
80568056
}
80578057
}
@@ -8284,7 +8284,7 @@
82848284
}
82858285
],
82868286
"traits": {
8287-
"smithy.api#documentation": "<p>Returns the list of bundles that are available for purchase. A bundle describes the specs\n for your virtual private server (or <i>instance</i>).</p>",
8287+
"smithy.api#documentation": "<p>Returns the bundles that you can apply to an Amazon Lightsail instance when you create\n it.</p>\n\n <p>A bundle describes the specifications of an instance, such as the monthly cost, amount of\n memory, the number of vCPUs, amount of storage space, and monthly network data transfer\n quota.</p>\n\n <note>\n <p>Bundles are referred to as <i>instance plans</i> in the Lightsail\n console.</p>\n </note>",
82888288
"smithy.api#http": {
82898289
"method": "POST",
82908290
"uri": "/ls/api/2016-11-28/GetBundles",
@@ -8298,7 +8298,7 @@
82988298
"includeInactive": {
82998299
"target": "com.amazonaws.lightsail#boolean",
83008300
"traits": {
8301-
"smithy.api#documentation": "<p>A Boolean value that indicates whether to include inactive bundle results in your\n request.</p>"
8301+
"smithy.api#documentation": "<p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the\n response of your request.</p>"
83028302
}
83038303
},
83048304
"pageToken": {
@@ -11245,6 +11245,12 @@
1124511245
"traits": {
1124611246
"smithy.api#documentation": "<p>The token to advance to the next page of results from your request.</p>\n <p>To get a page token, perform an initial <code>GetRelationalDatabaseBundles</code> request.\n If your results are paginated, the response will return a next page token that you can specify\n as the page token in a subsequent request.</p>"
1124711247
}
11248+
},
11249+
"includeInactive": {
11250+
"target": "com.amazonaws.lightsail#boolean",
11251+
"traits": {
11252+
"smithy.api#documentation": "<p>A Boolean value that indicates whether to include inactive (unavailable) bundles in the\n response of your request.</p>"
11253+
}
1124811254
}
1124911255
}
1125011256
},

0 commit comments

Comments
 (0)