Skip to content

Commit b052704

Browse files
author
awstools
committed
feat(client-kms): Remove unpopulated KeyMaterialId from Encrypt Response
1 parent f0f84e5 commit b052704

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

clients/client-kms/src/commands/EncryptCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ export interface EncryptCommandOutput extends EncryptResponse, __MetadataBearer
164164
* // CiphertextBlob: new Uint8Array(),
165165
* // KeyId: "STRING_VALUE",
166166
* // EncryptionAlgorithm: "SYMMETRIC_DEFAULT" || "RSAES_OAEP_SHA_1" || "RSAES_OAEP_SHA_256" || "SM2PKE",
167-
* // KeyMaterialId: "STRING_VALUE",
168167
* // };
169168
*
170169
* ```

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,7 +2986,8 @@ export interface DecryptResponse {
29862986

29872987
/**
29882988
* <p>The identifier of the key material used to decrypt the ciphertext. This field is present only when
2989-
* the operation uses a symmetric encryption KMS key.</p>
2989+
* the operation uses a symmetric encryption KMS key. This field is omitted if the request includes
2990+
* the <code>Recipient</code> parameter.</p>
29902991
* @public
29912992
*/
29922993
KeyMaterialId?: string | undefined;
@@ -3703,13 +3704,6 @@ export interface EncryptResponse {
37033704
* @public
37043705
*/
37053706
EncryptionAlgorithm?: EncryptionAlgorithmSpec | undefined;
3706-
3707-
/**
3708-
* <p>The identifier of the key material used to encrypt the ciphertext. This field is present only when
3709-
* the operation uses a symmetric encryption KMS key.</p>
3710-
* @public
3711-
*/
3712-
KeyMaterialId?: string | undefined;
37133707
}
37143708

37153709
/**
@@ -3869,7 +3863,8 @@ export interface GenerateDataKeyResponse {
38693863
CiphertextForRecipient?: Uint8Array | undefined;
38703864

38713865
/**
3872-
* <p>The identifier of the key material used to encrypt the data key.</p>
3866+
* <p>The identifier of the key material used to encrypt the data key. This field is omitted if the request
3867+
* includes the <code>Recipient</code> parameter.</p>
38733868
* @public
38743869
*/
38753870
KeyMaterialId?: string | undefined;
@@ -4013,7 +4008,8 @@ export interface GenerateDataKeyPairResponse {
40134008
CiphertextForRecipient?: Uint8Array | undefined;
40144009

40154010
/**
4016-
* <p>The identifier of the key material used to encrypt the private key.</p>
4011+
* <p>The identifier of the key material used to encrypt the private key. This field is omitted if the request
4012+
* includes the <code>Recipient</code> parameter.</p>
40174013
* @public
40184014
*/
40194015
KeyMaterialId?: string | undefined;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3317,7 +3317,6 @@ const de_EncryptResponse = (output: any, context: __SerdeContext): EncryptRespon
33173317
CiphertextBlob: context.base64Decoder,
33183318
EncryptionAlgorithm: __expectString,
33193319
KeyId: __expectString,
3320-
KeyMaterialId: __expectString,
33213320
}) as any;
33223321
};
33233322

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@
15871587
"KeyMaterialId": {
15881588
"target": "com.amazonaws.kms#BackingKeyIdType",
15891589
"traits": {
1590-
"smithy.api#documentation": "<p>The identifier of the key material used to decrypt the ciphertext. This field is present only when\n the operation uses a symmetric encryption KMS key.</p>"
1590+
"smithy.api#documentation": "<p>The identifier of the key material used to decrypt the ciphertext. This field is present only when\n the operation uses a symmetric encryption KMS key. This field is omitted if the request includes\n the <code>Recipient</code> parameter.</p>"
15911591
}
15921592
}
15931593
},
@@ -2730,12 +2730,6 @@
27302730
"traits": {
27312731
"smithy.api#documentation": "<p>The encryption algorithm that was used to encrypt the plaintext.</p>"
27322732
}
2733-
},
2734-
"KeyMaterialId": {
2735-
"target": "com.amazonaws.kms#BackingKeyIdType",
2736-
"traits": {
2737-
"smithy.api#documentation": "<p>The identifier of the key material used to encrypt the ciphertext. This field is present only when\n the operation uses a symmetric encryption KMS key.</p>"
2738-
}
27392733
}
27402734
},
27412735
"traits": {
@@ -3034,7 +3028,7 @@
30343028
"KeyMaterialId": {
30353029
"target": "com.amazonaws.kms#BackingKeyIdType",
30363030
"traits": {
3037-
"smithy.api#documentation": "<p>The identifier of the key material used to encrypt the private key.</p>"
3031+
"smithy.api#documentation": "<p>The identifier of the key material used to encrypt the private key. This field is omitted if the request\n includes the <code>Recipient</code> parameter.</p>"
30383032
}
30393033
}
30403034
},
@@ -3261,7 +3255,7 @@
32613255
"KeyMaterialId": {
32623256
"target": "com.amazonaws.kms#BackingKeyIdType",
32633257
"traits": {
3264-
"smithy.api#documentation": "<p>The identifier of the key material used to encrypt the data key.</p>"
3258+
"smithy.api#documentation": "<p>The identifier of the key material used to encrypt the data key. This field is omitted if the request\n includes the <code>Recipient</code> parameter.</p>"
32653259
}
32663260
}
32673261
},

0 commit comments

Comments
 (0)