Skip to content

Commit 2bd525c

Browse files
author
awstools
committed
feat(client-opensearch): The CreateApplication API now supports an optional kms key arn parameter to allow customers to specify a CMK for application encryption.
1 parent 885fb63 commit 2bd525c

File tree

5 files changed

+58
-6
lines changed

5 files changed

+58
-6
lines changed

clients/client-opensearch/src/commands/CreateApplicationCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
6262
* Value: "STRING_VALUE", // required
6363
* },
6464
* ],
65+
* kmsKeyArn: "STRING_VALUE",
6566
* };
6667
* const command = new CreateApplicationCommand(input);
6768
* const response = await client.send(command);
@@ -94,6 +95,7 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
9495
* // },
9596
* // ],
9697
* // createdAt: new Date("TIMESTAMP"),
98+
* // kmsKeyArn: "STRING_VALUE",
9799
* // };
98100
*
99101
* ```

clients/client-opensearch/src/commands/GetApplicationCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export interface GetApplicationCommandOutput extends GetApplicationResponse, __M
6767
* // ],
6868
* // createdAt: new Date("TIMESTAMP"),
6969
* // lastUpdatedAt: new Date("TIMESTAMP"),
70+
* // kmsKeyArn: "STRING_VALUE",
7071
* // };
7172
*
7273
* ```

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,14 @@ export interface CreateApplicationRequest {
16671667
* @public
16681668
*/
16691669
tagList?: Tag[] | undefined;
1670+
1671+
/**
1672+
* <p>The Amazon Resource Name (ARN) of the KMS key used to encrypt the application's data at rest.
1673+
* If provided, the application uses your customer-managed key for encryption. If omitted, the application
1674+
* uses an AWS-managed key. The KMS key must be in the same region as the application.</p>
1675+
* @public
1676+
*/
1677+
kmsKeyArn?: string | undefined;
16701678
}
16711679

16721680
/**
@@ -1758,6 +1766,12 @@ export interface CreateApplicationResponse {
17581766
* @public
17591767
*/
17601768
createdAt?: Date | undefined;
1769+
1770+
/**
1771+
* <p>The Amazon Resource Name (ARN) of the KMS key used to encrypt the application's data at rest.</p>
1772+
* @public
1773+
*/
1774+
kmsKeyArn?: string | undefined;
17611775
}
17621776

17631777
/**
@@ -5961,6 +5975,12 @@ export interface GetApplicationResponse {
59615975
* @public
59625976
*/
59635977
lastUpdatedAt?: Date | undefined;
5978+
5979+
/**
5980+
* <p>The Amazon Resource Name (ARN) of the KMS key used to encrypt the application's data at rest.</p>
5981+
* @public
5982+
*/
5983+
kmsKeyArn?: string | undefined;
59645984
}
59655985

59665986
/**

clients/client-opensearch/src/schemas/schemas_0.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ const _iICO = "iamIdentityCenterOptions";
755755
const _iRFICAA = "iamRoleForIdentityCenterApplicationArn";
756756
const _iT = "instanceType";
757757
const _k = "key";
758+
const _kKA = "kmsKeyArn";
758759
const _lDRC = "loadDryRunConfig";
759760
const _lUA = "lastUpdatedAt";
760761
const _m = "message";
@@ -1067,16 +1068,16 @@ export var CreateApplicationRequest: StaticStructureSchema = [
10671068
n0,
10681069
_CAR,
10691070
0,
1070-
[_cT, _n, _dS, _iICO, _aC, _tL],
1071-
[[0, 4], 0, () => DataSources, () => IamIdentityCenterOptionsInput, () => AppConfigs, () => TagList],
1071+
[_cT, _n, _dS, _iICO, _aC, _tL, _kKA],
1072+
[[0, 4], 0, () => DataSources, () => IamIdentityCenterOptionsInput, () => AppConfigs, () => TagList, 0],
10721073
];
10731074
export var CreateApplicationResponse: StaticStructureSchema = [
10741075
3,
10751076
n0,
10761077
_CARr,
10771078
0,
1078-
[_i, _n, _a, _dS, _iICO, _aC, _tL, _cA],
1079-
[0, 0, 0, () => DataSources, () => IamIdentityCenterOptions, () => AppConfigs, () => TagList, 4],
1079+
[_i, _n, _a, _dS, _iICO, _aC, _tL, _cA, _kKA],
1080+
[0, 0, 0, () => DataSources, () => IamIdentityCenterOptions, () => AppConfigs, () => TagList, 4, 0],
10801081
];
10811082
export var CreateDomainRequest: StaticStructureSchema = [
10821083
3,
@@ -1670,8 +1671,8 @@ export var GetApplicationResponse: StaticStructureSchema = [
16701671
n0,
16711672
_GARe,
16721673
0,
1673-
[_i, _a, _n, _en, _s, _iICO, _dS, _aC, _cA, _lUA],
1674-
[0, 0, 0, 0, 0, () => IamIdentityCenterOptions, () => DataSources, () => AppConfigs, 4, 4],
1674+
[_i, _a, _n, _en, _s, _iICO, _dS, _aC, _cA, _lUA, _kKA],
1675+
[0, 0, 0, 0, 0, () => IamIdentityCenterOptions, () => DataSources, () => AppConfigs, 4, 4, 0],
16751676
];
16761677
export var GetCompatibleVersionsRequest: StaticStructureSchema = [3, n0, _GCVR, 0, [_DN], [[0, { [_hQ]: _dN }]]];
16771678
export var GetCompatibleVersionsResponse: StaticStructureSchema = [

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3701,6 +3701,12 @@
37013701
},
37023702
"tagList": {
37033703
"target": "com.amazonaws.opensearch#TagList"
3704+
},
3705+
"kmsKeyArn": {
3706+
"target": "com.amazonaws.opensearch#KmsKeyArn",
3707+
"traits": {
3708+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the KMS key used to encrypt the application's data at rest.\n If provided, the application uses your customer-managed key for encryption. If omitted, the application\n uses an AWS-managed key. The KMS key must be in the same region as the application.</p>"
3709+
}
37043710
}
37053711
},
37063712
"traits": {
@@ -3751,6 +3757,12 @@
37513757
"traits": {
37523758
"smithy.api#documentation": "<p>The timestamp indicating when the OpenSearch application was created.</p>"
37533759
}
3760+
},
3761+
"kmsKeyArn": {
3762+
"target": "com.amazonaws.opensearch#KmsKeyArn",
3763+
"traits": {
3764+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the KMS key used to encrypt the application's data at rest.</p>"
3765+
}
37543766
}
37553767
},
37563768
"traits": {
@@ -8009,6 +8021,12 @@
80098021
"traits": {
80108022
"smithy.api#documentation": "<p>The timestamp of the last update to the OpenSearch application.</p>"
80118023
}
8024+
},
8025+
"kmsKeyArn": {
8026+
"target": "com.amazonaws.opensearch#KmsKeyArn",
8027+
"traits": {
8028+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the KMS key used to encrypt the application's data at rest.</p>"
8029+
}
80128030
}
80138031
},
80148032
"traits": {
@@ -9516,6 +9534,16 @@
95169534
"smithy.api#documentation": "<p>The configuration parameters to enable access to the key store required by the\n package.</p>"
95179535
}
95189536
},
9537+
"com.amazonaws.opensearch#KmsKeyArn": {
9538+
"type": "string",
9539+
"traits": {
9540+
"smithy.api#length": {
9541+
"min": 20,
9542+
"max": 2048
9543+
},
9544+
"smithy.api#pattern": "^arn:aws[a-zA-Z-]*:kms:[a-z0-9-]+:[0-9]{12}:key/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
9545+
}
9546+
},
95199547
"com.amazonaws.opensearch#KmsKeyId": {
95209548
"type": "string",
95219549
"traits": {

0 commit comments

Comments
 (0)