Skip to content

Commit 703a57c

Browse files
author
awstools
committed
feat(client-elasticsearch-service): Adds support for DeploymentStrategyOptions.
1 parent cf6a881 commit 703a57c

12 files changed

+10087
-9886
lines changed

clients/client-elasticsearch-service/src/commands/CreateElasticsearchDomainCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ export interface CreateElasticsearchDomainCommandOutput extends CreateElasticsea
150150
* Value: "STRING_VALUE", // required
151151
* },
152152
* ],
153+
* DeploymentStrategyOptions: { // DeploymentStrategyOptions
154+
* DeploymentStrategy: "Default" || "CapacityOptimized", // required
155+
* },
153156
* };
154157
* const command = new CreateElasticsearchDomainCommand(input);
155158
* const response = await client.send(command);
@@ -283,6 +286,9 @@ export interface CreateElasticsearchDomainCommandOutput extends CreateElasticsea
283286
* // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
284287
* // },
285288
* // ],
289+
* // DeploymentStrategyOptions: { // DeploymentStrategyOptions
290+
* // DeploymentStrategy: "Default" || "CapacityOptimized", // required
291+
* // },
286292
* // },
287293
* // };
288294
*

clients/client-elasticsearch-service/src/commands/DeleteElasticsearchDomainCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ export interface DeleteElasticsearchDomainCommandOutput extends DeleteElasticsea
175175
* // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
176176
* // },
177177
* // ],
178+
* // DeploymentStrategyOptions: { // DeploymentStrategyOptions
179+
* // DeploymentStrategy: "Default" || "CapacityOptimized", // required
180+
* // },
178181
* // },
179182
* // };
180183
*

clients/client-elasticsearch-service/src/commands/DescribeElasticsearchDomainCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ export interface DescribeElasticsearchDomainCommandOutput extends DescribeElasti
175175
* // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
176176
* // },
177177
* // ],
178+
* // DeploymentStrategyOptions: { // DeploymentStrategyOptions
179+
* // DeploymentStrategy: "Default" || "CapacityOptimized", // required
180+
* // },
178181
* // },
179182
* // };
180183
*

clients/client-elasticsearch-service/src/commands/DescribeElasticsearchDomainConfigCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ export interface DescribeElasticsearchDomainConfigCommandOutput extends Describe
245245
* // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
246246
* // },
247247
* // ],
248+
* // DeploymentStrategyOptions: { // DeploymentStrategyOptionsStatus
249+
* // Options: { // DeploymentStrategyOptions
250+
* // DeploymentStrategy: "Default" || "CapacityOptimized", // required
251+
* // },
252+
* // Status: "<OptionStatus>", // required
253+
* // },
248254
* // },
249255
* // };
250256
*

clients/client-elasticsearch-service/src/commands/DescribeElasticsearchDomainsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ export interface DescribeElasticsearchDomainsCommandOutput extends DescribeElast
178178
* // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
179179
* // },
180180
* // ],
181+
* // DeploymentStrategyOptions: { // DeploymentStrategyOptions
182+
* // DeploymentStrategy: "Default" || "CapacityOptimized", // required
183+
* // },
181184
* // },
182185
* // ],
183186
* // };

clients/client-elasticsearch-service/src/commands/UpdateElasticsearchDomainConfigCommand.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ export interface UpdateElasticsearchDomainConfigCommandOutput extends UpdateElas
147147
* ],
148148
* },
149149
* DryRun: true || false,
150+
* DeploymentStrategyOptions: { // DeploymentStrategyOptions
151+
* DeploymentStrategy: "Default" || "CapacityOptimized", // required
152+
* },
150153
* };
151154
* const command = new UpdateElasticsearchDomainConfigCommand(input);
152155
* const response = await client.send(command);
@@ -347,6 +350,12 @@ export interface UpdateElasticsearchDomainConfigCommandOutput extends UpdateElas
347350
* // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON",
348351
* // },
349352
* // ],
353+
* // DeploymentStrategyOptions: { // DeploymentStrategyOptionsStatus
354+
* // Options: { // DeploymentStrategyOptions
355+
* // DeploymentStrategy: "Default" || "CapacityOptimized", // required
356+
* // },
357+
* // Status: "<OptionStatus>", // required
358+
* // },
350359
* // },
351360
* // DryRunResults: { // DryRunResults
352361
* // DeploymentType: "STRING_VALUE",

clients/client-elasticsearch-service/src/models/enums.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ export const TimeUnit = {
113113
*/
114114
export type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit];
115115

116+
/**
117+
* @public
118+
* @enum
119+
*/
120+
export const DeploymentStrategy = {
121+
CAPACITY_OPTIMIZED: "CapacityOptimized",
122+
DEFAULT: "Default",
123+
} as const;
124+
/**
125+
* @public
126+
*/
127+
export type DeploymentStrategy = (typeof DeploymentStrategy)[keyof typeof DeploymentStrategy];
128+
116129
/**
117130
* @public
118131
* @enum

clients/client-elasticsearch-service/src/models/models_0.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
AutoTuneType,
66
ConfigChangeStatus,
77
DeploymentStatus,
8+
DeploymentStrategy,
89
DescribePackagesFilterName,
910
DomainPackageStatus,
1011
DomainProcessingStatusType,
@@ -906,6 +907,18 @@ export interface CognitoOptions {
906907
RoleArn?: string | undefined;
907908
}
908909

910+
/**
911+
* <p>Specifies the deployment strategy options for the domain.</p>
912+
* @public
913+
*/
914+
export interface DeploymentStrategyOptions {
915+
/**
916+
* <p>Specifies the deployment strategy for the domain. Valid values are <code>Default</code> and <code>CapacityOptimized</code>.</p>
917+
* @public
918+
*/
919+
DeploymentStrategy: DeploymentStrategy | undefined;
920+
}
921+
909922
/**
910923
* <p>Options to configure endpoint for the Elasticsearch domain.</p>
911924
* @public
@@ -1266,6 +1279,12 @@ export interface CreateElasticsearchDomainRequest {
12661279
* @public
12671280
*/
12681281
TagList?: Tag[] | undefined;
1282+
1283+
/**
1284+
* <p>Specifies the deployment strategy options.</p>
1285+
* @public
1286+
*/
1287+
DeploymentStrategyOptions?: DeploymentStrategyOptions | undefined;
12691288
}
12701289

12711290
/**
@@ -1553,6 +1572,12 @@ export interface ElasticsearchDomainStatus {
15531572
* @public
15541573
*/
15551574
ModifyingProperties?: ModifyingProperties[] | undefined;
1575+
1576+
/**
1577+
* <p>The current status of the Elasticsearch domain's deployment strategy options.</p>
1578+
* @public
1579+
*/
1580+
DeploymentStrategyOptions?: DeploymentStrategyOptions | undefined;
15561581
}
15571582

15581583
/**
@@ -2429,6 +2454,24 @@ export interface CognitoOptionsStatus {
24292454
Status: OptionStatus | undefined;
24302455
}
24312456

2457+
/**
2458+
* <p>Specifies the status of deployment strategy options for the specified Elasticsearch domain.</p>
2459+
* @public
2460+
*/
2461+
export interface DeploymentStrategyOptionsStatus {
2462+
/**
2463+
* <p>Specifies deployment strategy options for the specified Elasticsearch domain.</p>
2464+
* @public
2465+
*/
2466+
Options: DeploymentStrategyOptions | undefined;
2467+
2468+
/**
2469+
* <p>Specifies the status of the deployment strategy options for the specified Elasticsearch domain.</p>
2470+
* @public
2471+
*/
2472+
Status: OptionStatus | undefined;
2473+
}
2474+
24322475
/**
24332476
* <p>The configured endpoint options for the domain and their current status.</p>
24342477
* @public
@@ -2691,6 +2734,12 @@ export interface ElasticsearchDomainConfig {
26912734
* @public
26922735
*/
26932736
ModifyingProperties?: ModifyingProperties[] | undefined;
2737+
2738+
/**
2739+
* <p>Specifies <code>DeploymentStrategyOptions</code> for the domain. </p>
2740+
* @public
2741+
*/
2742+
DeploymentStrategyOptions?: DeploymentStrategyOptionsStatus | undefined;
26942743
}
26952744

26962745
/**
@@ -4555,6 +4604,12 @@ export interface UpdateElasticsearchDomainConfigRequest {
45554604
* @public
45564605
*/
45574606
DryRun?: boolean | undefined;
4607+
4608+
/**
4609+
* <p>Specifies the deployment strategy options.</p>
4610+
* @public
4611+
*/
4612+
DeploymentStrategyOptions?: DeploymentStrategyOptions | undefined;
45584613
}
45594614

45604615
/**

clients/client-elasticsearch-service/src/schemas/schemas_0.ts

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ const _DREIRe = "DescribeReservedElasticsearchInstancesResponse";
179179
const _DRR = "DryRunResults";
180180
const _DS = "DesiredState";
181181
const _DSL = "DomainStatusList";
182+
const _DSO = "DeploymentStrategyOptions";
183+
const _DSOS = "DeploymentStrategyOptionsStatus";
184+
const _DSe = "DeploymentStrategy";
182185
const _DSo = "DomainStatus";
183186
const _DT = "DeploymentType";
184187
const _DVE = "DeleteVpcEndpoint";
@@ -766,8 +769,8 @@ export var CompatibleVersionsMap$: StaticStructureSchema = [3, n0, _CVM,
766769
];
767770
export var CreateElasticsearchDomainRequest$: StaticStructureSchema = [3, n0, _CEDR,
768771
0,
769-
[_DN, _EV, _ECC, _EBSO, _APc, _SO, _VPCO, _CO, _EARO, _NTNEO, _AO, _LPO, _DEO, _ASO, _ATO, _TL],
770-
[0, 0, () => ElasticsearchClusterConfig$, () => EBSOptions$, 0, () => SnapshotOptions$, () => VPCOptions$, () => CognitoOptions$, () => EncryptionAtRestOptions$, () => NodeToNodeEncryptionOptions$, 128 | 0, () => LogPublishingOptions, () => DomainEndpointOptions$, [() => AdvancedSecurityOptionsInput$, 0], () => AutoTuneOptionsInput$, () => TagList], 1
772+
[_DN, _EV, _ECC, _EBSO, _APc, _SO, _VPCO, _CO, _EARO, _NTNEO, _AO, _LPO, _DEO, _ASO, _ATO, _TL, _DSO],
773+
[0, 0, () => ElasticsearchClusterConfig$, () => EBSOptions$, 0, () => SnapshotOptions$, () => VPCOptions$, () => CognitoOptions$, () => EncryptionAtRestOptions$, () => NodeToNodeEncryptionOptions$, 128 | 0, () => LogPublishingOptions, () => DomainEndpointOptions$, [() => AdvancedSecurityOptionsInput$, 0], () => AutoTuneOptionsInput$, () => TagList, () => DeploymentStrategyOptions$], 1
771774
];
772775
export var CreateElasticsearchDomainResponse$: StaticStructureSchema = [3, n0, _CEDRr,
773776
0,
@@ -854,6 +857,16 @@ export var DeleteVpcEndpointResponse$: StaticStructureSchema = [3, n0, _DVERe,
854857
[_VES],
855858
[() => VpcEndpointSummary$], 1
856859
];
860+
export var DeploymentStrategyOptions$: StaticStructureSchema = [3, n0, _DSO,
861+
0,
862+
[_DSe],
863+
[0], 1
864+
];
865+
export var DeploymentStrategyOptionsStatus$: StaticStructureSchema = [3, n0, _DSOS,
866+
0,
867+
[_O, _S],
868+
[() => DeploymentStrategyOptions$, () => OptionStatus$], 2
869+
];
857870
export var DescribeDomainAutoTunesRequest$: StaticStructureSchema = [3, n0, _DDATR,
858871
0,
859872
[_DN, _MR, _NT],
@@ -1046,13 +1059,13 @@ export var ElasticsearchClusterConfigStatus$: StaticStructureSchema = [3, n0, _E
10461059
];
10471060
export var ElasticsearchDomainConfig$: StaticStructureSchema = [3, n0, _EDC,
10481061
0,
1049-
[_EV, _ECC, _EBSO, _APc, _SO, _VPCO, _CO, _EARO, _NTNEO, _AO, _LPO, _DEO, _ASO, _ATO, _CPD, _MP],
1050-
[() => ElasticsearchVersionStatus$, () => ElasticsearchClusterConfigStatus$, () => EBSOptionsStatus$, () => AccessPoliciesStatus$, () => SnapshotOptionsStatus$, () => VPCDerivedInfoStatus$, () => CognitoOptionsStatus$, () => EncryptionAtRestOptionsStatus$, () => NodeToNodeEncryptionOptionsStatus$, () => AdvancedOptionsStatus$, () => LogPublishingOptionsStatus$, () => DomainEndpointOptionsStatus$, () => AdvancedSecurityOptionsStatus$, () => AutoTuneOptionsStatus$, () => ChangeProgressDetails$, () => ModifyingPropertiesList]
1062+
[_EV, _ECC, _EBSO, _APc, _SO, _VPCO, _CO, _EARO, _NTNEO, _AO, _LPO, _DEO, _ASO, _ATO, _CPD, _MP, _DSO],
1063+
[() => ElasticsearchVersionStatus$, () => ElasticsearchClusterConfigStatus$, () => EBSOptionsStatus$, () => AccessPoliciesStatus$, () => SnapshotOptionsStatus$, () => VPCDerivedInfoStatus$, () => CognitoOptionsStatus$, () => EncryptionAtRestOptionsStatus$, () => NodeToNodeEncryptionOptionsStatus$, () => AdvancedOptionsStatus$, () => LogPublishingOptionsStatus$, () => DomainEndpointOptionsStatus$, () => AdvancedSecurityOptionsStatus$, () => AutoTuneOptionsStatus$, () => ChangeProgressDetails$, () => ModifyingPropertiesList, () => DeploymentStrategyOptionsStatus$]
10511064
];
10521065
export var ElasticsearchDomainStatus$: StaticStructureSchema = [3, n0, _EDS,
10531066
0,
1054-
[_DIom, _DN, _ARN, _ECC, _C, _Del, _En, _End, _Pro, _UP, _EV, _EBSO, _APc, _SO, _VPCO, _CO, _EARO, _NTNEO, _AO, _LPO, _SSO, _DEO, _ASO, _ATO, _CPD, _DPSo, _MP],
1055-
[0, 0, 0, () => ElasticsearchClusterConfig$, 2, 2, 0, 128 | 0, 2, 2, 0, () => EBSOptions$, 0, () => SnapshotOptions$, () => VPCDerivedInfo$, () => CognitoOptions$, () => EncryptionAtRestOptions$, () => NodeToNodeEncryptionOptions$, 128 | 0, () => LogPublishingOptions, () => ServiceSoftwareOptions$, () => DomainEndpointOptions$, () => AdvancedSecurityOptions$, () => AutoTuneOptionsOutput$, () => ChangeProgressDetails$, 0, () => ModifyingPropertiesList], 4
1067+
[_DIom, _DN, _ARN, _ECC, _C, _Del, _En, _End, _Pro, _UP, _EV, _EBSO, _APc, _SO, _VPCO, _CO, _EARO, _NTNEO, _AO, _LPO, _SSO, _DEO, _ASO, _ATO, _CPD, _DPSo, _MP, _DSO],
1068+
[0, 0, 0, () => ElasticsearchClusterConfig$, 2, 2, 0, 128 | 0, 2, 2, 0, () => EBSOptions$, 0, () => SnapshotOptions$, () => VPCDerivedInfo$, () => CognitoOptions$, () => EncryptionAtRestOptions$, () => NodeToNodeEncryptionOptions$, 128 | 0, () => LogPublishingOptions, () => ServiceSoftwareOptions$, () => DomainEndpointOptions$, () => AdvancedSecurityOptions$, () => AutoTuneOptionsOutput$, () => ChangeProgressDetails$, 0, () => ModifyingPropertiesList, () => DeploymentStrategyOptions$], 4
10561069
];
10571070
export var ElasticsearchVersionStatus$: StaticStructureSchema = [3, n0, _EVS,
10581071
0,
@@ -1406,8 +1419,8 @@ export var Tag$: StaticStructureSchema = [3, n0, _Ta,
14061419
];
14071420
export var UpdateElasticsearchDomainConfigRequest$: StaticStructureSchema = [3, n0, _UEDCR,
14081421
0,
1409-
[_DN, _ECC, _EBSO, _SO, _VPCO, _CO, _AO, _APc, _LPO, _DEO, _ASO, _NTNEO, _EARO, _ATO, _DR],
1410-
[[0, 1], () => ElasticsearchClusterConfig$, () => EBSOptions$, () => SnapshotOptions$, () => VPCOptions$, () => CognitoOptions$, 128 | 0, 0, () => LogPublishingOptions, () => DomainEndpointOptions$, [() => AdvancedSecurityOptionsInput$, 0], () => NodeToNodeEncryptionOptions$, () => EncryptionAtRestOptions$, () => AutoTuneOptions$, 2], 1
1422+
[_DN, _ECC, _EBSO, _SO, _VPCO, _CO, _AO, _APc, _LPO, _DEO, _ASO, _NTNEO, _EARO, _ATO, _DR, _DSO],
1423+
[[0, 1], () => ElasticsearchClusterConfig$, () => EBSOptions$, () => SnapshotOptions$, () => VPCOptions$, () => CognitoOptions$, 128 | 0, 0, () => LogPublishingOptions, () => DomainEndpointOptions$, [() => AdvancedSecurityOptionsInput$, 0], () => NodeToNodeEncryptionOptions$, () => EncryptionAtRestOptions$, () => AutoTuneOptions$, 2, () => DeploymentStrategyOptions$], 1
14111424
];
14121425
export var UpdateElasticsearchDomainConfigResponse$: StaticStructureSchema = [3, n0, _UEDCRp,
14131426
0,

clients/client-elasticsearch-service/test/index-objects.spec.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ import {
9494
DeleteVpcEndpointRequest$,
9595
DeleteVpcEndpointResponse$,
9696
DeploymentStatus,
97+
DeploymentStrategy,
98+
DeploymentStrategyOptions$,
99+
DeploymentStrategyOptionsStatus$,
97100
DescribeDomainAutoTunes$,
98101
DescribeDomainAutoTunesCommand,
99102
DescribeDomainAutoTunesRequest$,
@@ -510,6 +513,8 @@ assert(typeof DeletePackageRequest$ === "object");
510513
assert(typeof DeletePackageResponse$ === "object");
511514
assert(typeof DeleteVpcEndpointRequest$ === "object");
512515
assert(typeof DeleteVpcEndpointResponse$ === "object");
516+
assert(typeof DeploymentStrategyOptions$ === "object");
517+
assert(typeof DeploymentStrategyOptionsStatus$ === "object");
513518
assert(typeof DescribeDomainAutoTunesRequest$ === "object");
514519
assert(typeof DescribeDomainAutoTunesResponse$ === "object");
515520
assert(typeof DescribeDomainChangeProgressRequest$ === "object");
@@ -643,6 +648,7 @@ assert(typeof AutoTuneState === "object");
643648
assert(typeof AutoTuneType === "object");
644649
assert(typeof ConfigChangeStatus === "object");
645650
assert(typeof DeploymentStatus === "object");
651+
assert(typeof DeploymentStrategy === "object");
646652
assert(typeof DescribePackagesFilterName === "object");
647653
assert(typeof DomainPackageStatus === "object");
648654
assert(typeof DomainProcessingStatusType === "object");

0 commit comments

Comments
 (0)