@aws-sdk/client-kms 3.535.0 → 3.536.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,12 +45,13 @@ declare const GetKeyPolicyCommand_base: {
45
45
  * const client = new KMSClient(config);
46
46
  * const input = { // GetKeyPolicyRequest
47
47
  * KeyId: "STRING_VALUE", // required
48
- * PolicyName: "STRING_VALUE", // required
48
+ * PolicyName: "STRING_VALUE",
49
49
  * };
50
50
  * const command = new GetKeyPolicyCommand(input);
51
51
  * const response = await client.send(command);
52
52
  * // { // GetKeyPolicyResponse
53
53
  * // Policy: "STRING_VALUE",
54
+ * // PolicyName: "STRING_VALUE",
54
55
  * // };
55
56
  *
56
57
  * ```
@@ -39,7 +39,7 @@ declare const ImportKeyMaterialCommand_base: {
39
39
  * the same key material</a> into that KMS key, but you cannot import different key
40
40
  * material. You might reimport key material to replace key material that expired or key material
41
41
  * that you deleted. You might also reimport key material to change the expiration model or
42
- * expiration date of the key material. Before reimporting key material, if necessary, call <a>DeleteImportedKeyMaterial</a> to delete the current imported key material. </p>
42
+ * expiration date of the key material. </p>
43
43
  * <p>Each time you import key material into KMS, you can determine whether
44
44
  * (<code>ExpirationModel</code>) and when (<code>ValidTo</code>) the key material expires. To
45
45
  * change the expiration of your key material, you must import it again, either by calling
@@ -50,7 +50,7 @@ declare const PutKeyPolicyCommand_base: {
50
50
  * const client = new KMSClient(config);
51
51
  * const input = { // PutKeyPolicyRequest
52
52
  * KeyId: "STRING_VALUE", // required
53
- * PolicyName: "STRING_VALUE", // required
53
+ * PolicyName: "STRING_VALUE",
54
54
  * Policy: "STRING_VALUE", // required
55
55
  * BypassPolicyLockoutSafetyCheck: true || false,
56
56
  * };
@@ -27,7 +27,7 @@ declare const RevokeGrantCommand_base: {
27
27
  };
28
28
  /**
29
29
  * <p>Deletes the specified grant. You revoke a grant to terminate the permissions that the
30
- * grant allows. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and revoking grants</a> in
30
+ * grant allows. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and revoking grants</a> in
31
31
  * the <i>
32
32
  * <i>Key Management Service Developer Guide</i>
33
33
  * </i>.</p>
@@ -3510,11 +3510,11 @@ export interface GetKeyPolicyRequest {
3510
3510
  */
3511
3511
  KeyId: string | undefined;
3512
3512
  /**
3513
- * <p>Specifies the name of the key policy. The only valid name is <code>default</code>. To get
3513
+ * <p>Specifies the name of the key policy. If no policy name is specified, the default value is <code>default</code>. The only valid name is <code>default</code>. To get
3514
3514
  * the names of key policies, use <a>ListKeyPolicies</a>.</p>
3515
3515
  * @public
3516
3516
  */
3517
- PolicyName: string | undefined;
3517
+ PolicyName?: string;
3518
3518
  }
3519
3519
  /**
3520
3520
  * @public
@@ -3525,6 +3525,11 @@ export interface GetKeyPolicyResponse {
3525
3525
  * @public
3526
3526
  */
3527
3527
  Policy?: string;
3528
+ /**
3529
+ * <p>The name of the key policy. The only valid value is <code>default</code>.</p>
3530
+ * @public
3531
+ */
3532
+ PolicyName?: string;
3528
3533
  }
3529
3534
  /**
3530
3535
  * @public
@@ -4379,10 +4384,10 @@ export interface PutKeyPolicyRequest {
4379
4384
  */
4380
4385
  KeyId: string | undefined;
4381
4386
  /**
4382
- * <p>The name of the key policy. The only valid value is <code>default</code>.</p>
4387
+ * <p>The name of the key policy. If no policy name is specified, the default value is <code>default</code>. The only valid value is <code>default</code>.</p>
4383
4388
  * @public
4384
4389
  */
4385
- PolicyName: string | undefined;
4390
+ PolicyName?: string;
4386
4391
  /**
4387
4392
  * <p>The key policy to attach to the KMS key.</p>
4388
4393
  * <p>The key policy must meet the following criteria:</p>
@@ -826,10 +826,11 @@ export interface GenerateRandomResponse {
826
826
  }
827
827
  export interface GetKeyPolicyRequest {
828
828
  KeyId: string | undefined;
829
- PolicyName: string | undefined;
829
+ PolicyName?: string;
830
830
  }
831
831
  export interface GetKeyPolicyResponse {
832
832
  Policy?: string;
833
+ PolicyName?: string;
833
834
  }
834
835
  export interface GetKeyRotationStatusRequest {
835
836
  KeyId: string | undefined;
@@ -989,7 +990,7 @@ export declare const MessageType: {
989
990
  export type MessageType = (typeof MessageType)[keyof typeof MessageType];
990
991
  export interface PutKeyPolicyRequest {
991
992
  KeyId: string | undefined;
992
- PolicyName: string | undefined;
993
+ PolicyName?: string;
993
994
  Policy: string | undefined;
994
995
  BypassPolicyLockoutSafetyCheck?: boolean;
995
996
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kms",
3
3
  "description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
4
- "version": "3.535.0",
4
+ "version": "3.536.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kms",