@aws-sdk/client-kms 3.121.0 → 3.130.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +215 -322
- package/dist-es/protocols/Aws_json1_1.js +117 -224
- package/package.json +26 -26
|
@@ -4514,81 +4514,59 @@ var deserializeAws_json1_1UnsupportedOperationExceptionResponse = function (pars
|
|
|
4514
4514
|
});
|
|
4515
4515
|
}); };
|
|
4516
4516
|
var serializeAws_json1_1CancelKeyDeletionRequest = function (input, context) {
|
|
4517
|
-
return __assign({}, (input.KeyId
|
|
4517
|
+
return __assign({}, (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4518
4518
|
};
|
|
4519
4519
|
var serializeAws_json1_1ConnectCustomKeyStoreRequest = function (input, context) {
|
|
4520
|
-
return __assign({}, (input.CustomKeyStoreId
|
|
4521
|
-
input.CustomKeyStoreId !== null && { CustomKeyStoreId: input.CustomKeyStoreId }));
|
|
4520
|
+
return __assign({}, (input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }));
|
|
4522
4521
|
};
|
|
4523
4522
|
var serializeAws_json1_1CreateAliasRequest = function (input, context) {
|
|
4524
|
-
return __assign(__assign({}, (input.AliasName
|
|
4523
|
+
return __assign(__assign({}, (input.AliasName != null && { AliasName: input.AliasName })), (input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }));
|
|
4525
4524
|
};
|
|
4526
4525
|
var serializeAws_json1_1CreateCustomKeyStoreRequest = function (input, context) {
|
|
4527
|
-
return __assign(__assign(__assign(__assign({}, (input.CloudHsmClusterId
|
|
4528
|
-
input.CloudHsmClusterId !== null && { CloudHsmClusterId: input.CloudHsmClusterId })), (input.CustomKeyStoreName !== undefined &&
|
|
4529
|
-
input.CustomKeyStoreName !== null && { CustomKeyStoreName: input.CustomKeyStoreName })), (input.KeyStorePassword !== undefined &&
|
|
4530
|
-
input.KeyStorePassword !== null && { KeyStorePassword: input.KeyStorePassword })), (input.TrustAnchorCertificate !== undefined &&
|
|
4531
|
-
input.TrustAnchorCertificate !== null && { TrustAnchorCertificate: input.TrustAnchorCertificate }));
|
|
4526
|
+
return __assign(__assign(__assign(__assign({}, (input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId })), (input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName })), (input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword })), (input.TrustAnchorCertificate != null && { TrustAnchorCertificate: input.TrustAnchorCertificate }));
|
|
4532
4527
|
};
|
|
4533
4528
|
var serializeAws_json1_1CreateGrantRequest = function (input, context) {
|
|
4534
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Constraints
|
|
4535
|
-
input.Constraints !== null && { Constraints: serializeAws_json1_1GrantConstraints(input.Constraints, context) })), (input.GrantTokens !== undefined &&
|
|
4536
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.GranteePrincipal !== undefined &&
|
|
4537
|
-
input.GranteePrincipal !== null && { GranteePrincipal: input.GranteePrincipal })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Operations !== undefined &&
|
|
4538
|
-
input.Operations !== null && { Operations: serializeAws_json1_1GrantOperationList(input.Operations, context) })), (input.RetiringPrincipal !== undefined &&
|
|
4539
|
-
input.RetiringPrincipal !== null && { RetiringPrincipal: input.RetiringPrincipal }));
|
|
4529
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Constraints != null && { Constraints: serializeAws_json1_1GrantConstraints(input.Constraints, context) })), (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.GranteePrincipal != null && { GranteePrincipal: input.GranteePrincipal })), (input.KeyId != null && { KeyId: input.KeyId })), (input.Name != null && { Name: input.Name })), (input.Operations != null && { Operations: serializeAws_json1_1GrantOperationList(input.Operations, context) })), (input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }));
|
|
4540
4530
|
};
|
|
4541
4531
|
var serializeAws_json1_1CreateKeyRequest = function (input, context) {
|
|
4542
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BypassPolicyLockoutSafetyCheck
|
|
4543
|
-
input.BypassPolicyLockoutSafetyCheck !== null && {
|
|
4532
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BypassPolicyLockoutSafetyCheck != null && {
|
|
4544
4533
|
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
4545
|
-
})), (input.CustomKeyStoreId
|
|
4546
|
-
input.CustomKeyStoreId !== null && { CustomKeyStoreId: input.CustomKeyStoreId })), (input.CustomerMasterKeySpec !== undefined &&
|
|
4547
|
-
input.CustomerMasterKeySpec !== null && { CustomerMasterKeySpec: input.CustomerMasterKeySpec })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.KeySpec !== undefined && input.KeySpec !== null && { KeySpec: input.KeySpec })), (input.KeyUsage !== undefined && input.KeyUsage !== null && { KeyUsage: input.KeyUsage })), (input.MultiRegion !== undefined && input.MultiRegion !== null && { MultiRegion: input.MultiRegion })), (input.Origin !== undefined && input.Origin !== null && { Origin: input.Origin })), (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
4534
|
+
})), (input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId })), (input.CustomerMasterKeySpec != null && { CustomerMasterKeySpec: input.CustomerMasterKeySpec })), (input.Description != null && { Description: input.Description })), (input.KeySpec != null && { KeySpec: input.KeySpec })), (input.KeyUsage != null && { KeyUsage: input.KeyUsage })), (input.MultiRegion != null && { MultiRegion: input.MultiRegion })), (input.Origin != null && { Origin: input.Origin })), (input.Policy != null && { Policy: input.Policy })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
4548
4535
|
};
|
|
4549
4536
|
var serializeAws_json1_1DecryptRequest = function (input, context) {
|
|
4550
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CiphertextBlob
|
|
4551
|
-
input.CiphertextBlob !== null && { CiphertextBlob: context.base64Encoder(input.CiphertextBlob) })), (input.EncryptionAlgorithm !== undefined &&
|
|
4552
|
-
input.EncryptionAlgorithm !== null && { EncryptionAlgorithm: input.EncryptionAlgorithm })), (input.EncryptionContext !== undefined &&
|
|
4553
|
-
input.EncryptionContext !== null && {
|
|
4537
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CiphertextBlob != null && { CiphertextBlob: context.base64Encoder(input.CiphertextBlob) })), (input.EncryptionAlgorithm != null && { EncryptionAlgorithm: input.EncryptionAlgorithm })), (input.EncryptionContext != null && {
|
|
4554
4538
|
EncryptionContext: serializeAws_json1_1EncryptionContextType(input.EncryptionContext, context),
|
|
4555
|
-
})), (input.GrantTokens
|
|
4556
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId }));
|
|
4539
|
+
})), (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4557
4540
|
};
|
|
4558
4541
|
var serializeAws_json1_1DeleteAliasRequest = function (input, context) {
|
|
4559
|
-
return __assign({}, (input.AliasName
|
|
4542
|
+
return __assign({}, (input.AliasName != null && { AliasName: input.AliasName }));
|
|
4560
4543
|
};
|
|
4561
4544
|
var serializeAws_json1_1DeleteCustomKeyStoreRequest = function (input, context) {
|
|
4562
|
-
return __assign({}, (input.CustomKeyStoreId
|
|
4563
|
-
input.CustomKeyStoreId !== null && { CustomKeyStoreId: input.CustomKeyStoreId }));
|
|
4545
|
+
return __assign({}, (input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }));
|
|
4564
4546
|
};
|
|
4565
4547
|
var serializeAws_json1_1DeleteImportedKeyMaterialRequest = function (input, context) {
|
|
4566
|
-
return __assign({}, (input.KeyId
|
|
4548
|
+
return __assign({}, (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4567
4549
|
};
|
|
4568
4550
|
var serializeAws_json1_1DescribeCustomKeyStoresRequest = function (input, context) {
|
|
4569
|
-
return __assign(__assign(__assign(__assign({}, (input.CustomKeyStoreId
|
|
4570
|
-
input.CustomKeyStoreId !== null && { CustomKeyStoreId: input.CustomKeyStoreId })), (input.CustomKeyStoreName !== undefined &&
|
|
4571
|
-
input.CustomKeyStoreName !== null && { CustomKeyStoreName: input.CustomKeyStoreName })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.Marker !== undefined && input.Marker !== null && { Marker: input.Marker }));
|
|
4551
|
+
return __assign(__assign(__assign(__assign({}, (input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId })), (input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
4572
4552
|
};
|
|
4573
4553
|
var serializeAws_json1_1DescribeKeyRequest = function (input, context) {
|
|
4574
|
-
return __assign(__assign({}, (input.GrantTokens
|
|
4575
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId }));
|
|
4554
|
+
return __assign(__assign({}, (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4576
4555
|
};
|
|
4577
4556
|
var serializeAws_json1_1DisableKeyRequest = function (input, context) {
|
|
4578
|
-
return __assign({}, (input.KeyId
|
|
4557
|
+
return __assign({}, (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4579
4558
|
};
|
|
4580
4559
|
var serializeAws_json1_1DisableKeyRotationRequest = function (input, context) {
|
|
4581
|
-
return __assign({}, (input.KeyId
|
|
4560
|
+
return __assign({}, (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4582
4561
|
};
|
|
4583
4562
|
var serializeAws_json1_1DisconnectCustomKeyStoreRequest = function (input, context) {
|
|
4584
|
-
return __assign({}, (input.CustomKeyStoreId
|
|
4585
|
-
input.CustomKeyStoreId !== null && { CustomKeyStoreId: input.CustomKeyStoreId }));
|
|
4563
|
+
return __assign({}, (input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }));
|
|
4586
4564
|
};
|
|
4587
4565
|
var serializeAws_json1_1EnableKeyRequest = function (input, context) {
|
|
4588
|
-
return __assign({}, (input.KeyId
|
|
4566
|
+
return __assign({}, (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4589
4567
|
};
|
|
4590
4568
|
var serializeAws_json1_1EnableKeyRotationRequest = function (input, context) {
|
|
4591
|
-
return __assign({}, (input.KeyId
|
|
4569
|
+
return __assign({}, (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4592
4570
|
};
|
|
4593
4571
|
var serializeAws_json1_1EncryptionContextType = function (input, context) {
|
|
4594
4572
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -4601,71 +4579,52 @@ var serializeAws_json1_1EncryptionContextType = function (input, context) {
|
|
|
4601
4579
|
}, {});
|
|
4602
4580
|
};
|
|
4603
4581
|
var serializeAws_json1_1EncryptRequest = function (input, context) {
|
|
4604
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.EncryptionAlgorithm
|
|
4605
|
-
input.EncryptionAlgorithm !== null && { EncryptionAlgorithm: input.EncryptionAlgorithm })), (input.EncryptionContext !== undefined &&
|
|
4606
|
-
input.EncryptionContext !== null && {
|
|
4582
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.EncryptionAlgorithm != null && { EncryptionAlgorithm: input.EncryptionAlgorithm })), (input.EncryptionContext != null && {
|
|
4607
4583
|
EncryptionContext: serializeAws_json1_1EncryptionContextType(input.EncryptionContext, context),
|
|
4608
|
-
})), (input.GrantTokens
|
|
4609
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.Plaintext !== undefined &&
|
|
4610
|
-
input.Plaintext !== null && { Plaintext: context.base64Encoder(input.Plaintext) }));
|
|
4584
|
+
})), (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.Plaintext != null && { Plaintext: context.base64Encoder(input.Plaintext) }));
|
|
4611
4585
|
};
|
|
4612
4586
|
var serializeAws_json1_1GenerateDataKeyPairRequest = function (input, context) {
|
|
4613
|
-
return __assign(__assign(__assign(__assign({}, (input.EncryptionContext
|
|
4614
|
-
input.EncryptionContext !== null && {
|
|
4587
|
+
return __assign(__assign(__assign(__assign({}, (input.EncryptionContext != null && {
|
|
4615
4588
|
EncryptionContext: serializeAws_json1_1EncryptionContextType(input.EncryptionContext, context),
|
|
4616
|
-
})), (input.GrantTokens
|
|
4617
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.KeyPairSpec !== undefined && input.KeyPairSpec !== null && { KeyPairSpec: input.KeyPairSpec }));
|
|
4589
|
+
})), (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }));
|
|
4618
4590
|
};
|
|
4619
4591
|
var serializeAws_json1_1GenerateDataKeyPairWithoutPlaintextRequest = function (input, context) {
|
|
4620
|
-
return __assign(__assign(__assign(__assign({}, (input.EncryptionContext
|
|
4621
|
-
input.EncryptionContext !== null && {
|
|
4592
|
+
return __assign(__assign(__assign(__assign({}, (input.EncryptionContext != null && {
|
|
4622
4593
|
EncryptionContext: serializeAws_json1_1EncryptionContextType(input.EncryptionContext, context),
|
|
4623
|
-
})), (input.GrantTokens
|
|
4624
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.KeyPairSpec !== undefined && input.KeyPairSpec !== null && { KeyPairSpec: input.KeyPairSpec }));
|
|
4594
|
+
})), (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }));
|
|
4625
4595
|
};
|
|
4626
4596
|
var serializeAws_json1_1GenerateDataKeyRequest = function (input, context) {
|
|
4627
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.EncryptionContext
|
|
4628
|
-
input.EncryptionContext !== null && {
|
|
4597
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.EncryptionContext != null && {
|
|
4629
4598
|
EncryptionContext: serializeAws_json1_1EncryptionContextType(input.EncryptionContext, context),
|
|
4630
|
-
})), (input.GrantTokens
|
|
4631
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.KeySpec !== undefined && input.KeySpec !== null && { KeySpec: input.KeySpec })), (input.NumberOfBytes !== undefined && input.NumberOfBytes !== null && { NumberOfBytes: input.NumberOfBytes }));
|
|
4599
|
+
})), (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.KeySpec != null && { KeySpec: input.KeySpec })), (input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }));
|
|
4632
4600
|
};
|
|
4633
4601
|
var serializeAws_json1_1GenerateDataKeyWithoutPlaintextRequest = function (input, context) {
|
|
4634
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.EncryptionContext
|
|
4635
|
-
input.EncryptionContext !== null && {
|
|
4602
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.EncryptionContext != null && {
|
|
4636
4603
|
EncryptionContext: serializeAws_json1_1EncryptionContextType(input.EncryptionContext, context),
|
|
4637
|
-
})), (input.GrantTokens
|
|
4638
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.KeySpec !== undefined && input.KeySpec !== null && { KeySpec: input.KeySpec })), (input.NumberOfBytes !== undefined && input.NumberOfBytes !== null && { NumberOfBytes: input.NumberOfBytes }));
|
|
4604
|
+
})), (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.KeySpec != null && { KeySpec: input.KeySpec })), (input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }));
|
|
4639
4605
|
};
|
|
4640
4606
|
var serializeAws_json1_1GenerateMacRequest = function (input, context) {
|
|
4641
|
-
return __assign(__assign(__assign(__assign({}, (input.GrantTokens
|
|
4642
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.MacAlgorithm !== undefined && input.MacAlgorithm !== null && { MacAlgorithm: input.MacAlgorithm })), (input.Message !== undefined && input.Message !== null && { Message: context.base64Encoder(input.Message) }));
|
|
4607
|
+
return __assign(__assign(__assign(__assign({}, (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.MacAlgorithm != null && { MacAlgorithm: input.MacAlgorithm })), (input.Message != null && { Message: context.base64Encoder(input.Message) }));
|
|
4643
4608
|
};
|
|
4644
4609
|
var serializeAws_json1_1GenerateRandomRequest = function (input, context) {
|
|
4645
|
-
return __assign(__assign({}, (input.CustomKeyStoreId
|
|
4646
|
-
input.CustomKeyStoreId !== null && { CustomKeyStoreId: input.CustomKeyStoreId })), (input.NumberOfBytes !== undefined && input.NumberOfBytes !== null && { NumberOfBytes: input.NumberOfBytes }));
|
|
4610
|
+
return __assign(__assign({}, (input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId })), (input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }));
|
|
4647
4611
|
};
|
|
4648
4612
|
var serializeAws_json1_1GetKeyPolicyRequest = function (input, context) {
|
|
4649
|
-
return __assign(__assign({}, (input.KeyId
|
|
4613
|
+
return __assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.PolicyName != null && { PolicyName: input.PolicyName }));
|
|
4650
4614
|
};
|
|
4651
4615
|
var serializeAws_json1_1GetKeyRotationStatusRequest = function (input, context) {
|
|
4652
|
-
return __assign({}, (input.KeyId
|
|
4616
|
+
return __assign({}, (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4653
4617
|
};
|
|
4654
4618
|
var serializeAws_json1_1GetParametersForImportRequest = function (input, context) {
|
|
4655
|
-
return __assign(__assign(__assign({}, (input.KeyId
|
|
4656
|
-
input.WrappingAlgorithm !== null && { WrappingAlgorithm: input.WrappingAlgorithm })), (input.WrappingKeySpec !== undefined &&
|
|
4657
|
-
input.WrappingKeySpec !== null && { WrappingKeySpec: input.WrappingKeySpec }));
|
|
4619
|
+
return __assign(__assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.WrappingAlgorithm != null && { WrappingAlgorithm: input.WrappingAlgorithm })), (input.WrappingKeySpec != null && { WrappingKeySpec: input.WrappingKeySpec }));
|
|
4658
4620
|
};
|
|
4659
4621
|
var serializeAws_json1_1GetPublicKeyRequest = function (input, context) {
|
|
4660
|
-
return __assign(__assign({}, (input.GrantTokens
|
|
4661
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId }));
|
|
4622
|
+
return __assign(__assign({}, (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4662
4623
|
};
|
|
4663
4624
|
var serializeAws_json1_1GrantConstraints = function (input, context) {
|
|
4664
|
-
return __assign(__assign({}, (input.EncryptionContextEquals
|
|
4665
|
-
input.EncryptionContextEquals !== null && {
|
|
4625
|
+
return __assign(__assign({}, (input.EncryptionContextEquals != null && {
|
|
4666
4626
|
EncryptionContextEquals: serializeAws_json1_1EncryptionContextType(input.EncryptionContextEquals, context),
|
|
4667
|
-
})), (input.EncryptionContextSubset
|
|
4668
|
-
input.EncryptionContextSubset !== null && {
|
|
4627
|
+
})), (input.EncryptionContextSubset != null && {
|
|
4669
4628
|
EncryptionContextSubset: serializeAws_json1_1EncryptionContextType(input.EncryptionContextSubset, context),
|
|
4670
4629
|
}));
|
|
4671
4630
|
};
|
|
@@ -4690,79 +4649,61 @@ var serializeAws_json1_1GrantTokenList = function (input, context) {
|
|
|
4690
4649
|
});
|
|
4691
4650
|
};
|
|
4692
4651
|
var serializeAws_json1_1ImportKeyMaterialRequest = function (input, context) {
|
|
4693
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.EncryptedKeyMaterial
|
|
4694
|
-
input.EncryptedKeyMaterial !== null && {
|
|
4652
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.EncryptedKeyMaterial != null && {
|
|
4695
4653
|
EncryptedKeyMaterial: context.base64Encoder(input.EncryptedKeyMaterial),
|
|
4696
|
-
})), (input.ExpirationModel
|
|
4697
|
-
input.ExpirationModel !== null && { ExpirationModel: input.ExpirationModel })), (input.ImportToken !== undefined &&
|
|
4698
|
-
input.ImportToken !== null && { ImportToken: context.base64Encoder(input.ImportToken) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.ValidTo !== undefined &&
|
|
4699
|
-
input.ValidTo !== null && { ValidTo: Math.round(input.ValidTo.getTime() / 1000) }));
|
|
4654
|
+
})), (input.ExpirationModel != null && { ExpirationModel: input.ExpirationModel })), (input.ImportToken != null && { ImportToken: context.base64Encoder(input.ImportToken) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.ValidTo != null && { ValidTo: Math.round(input.ValidTo.getTime() / 1000) }));
|
|
4700
4655
|
};
|
|
4701
4656
|
var serializeAws_json1_1ListAliasesRequest = function (input, context) {
|
|
4702
|
-
return __assign(__assign(__assign({}, (input.KeyId
|
|
4657
|
+
return __assign(__assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
4703
4658
|
};
|
|
4704
4659
|
var serializeAws_json1_1ListGrantsRequest = function (input, context) {
|
|
4705
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.GrantId
|
|
4706
|
-
input.GranteePrincipal !== null && { GranteePrincipal: input.GranteePrincipal })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.Marker !== undefined && input.Marker !== null && { Marker: input.Marker }));
|
|
4660
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.GrantId != null && { GrantId: input.GrantId })), (input.GranteePrincipal != null && { GranteePrincipal: input.GranteePrincipal })), (input.KeyId != null && { KeyId: input.KeyId })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
4707
4661
|
};
|
|
4708
4662
|
var serializeAws_json1_1ListKeyPoliciesRequest = function (input, context) {
|
|
4709
|
-
return __assign(__assign(__assign({}, (input.KeyId
|
|
4663
|
+
return __assign(__assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
4710
4664
|
};
|
|
4711
4665
|
var serializeAws_json1_1ListKeysRequest = function (input, context) {
|
|
4712
|
-
return __assign(__assign({}, (input.Limit
|
|
4666
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
4713
4667
|
};
|
|
4714
4668
|
var serializeAws_json1_1ListResourceTagsRequest = function (input, context) {
|
|
4715
|
-
return __assign(__assign(__assign({}, (input.KeyId
|
|
4669
|
+
return __assign(__assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
4716
4670
|
};
|
|
4717
4671
|
var serializeAws_json1_1ListRetirableGrantsRequest = function (input, context) {
|
|
4718
|
-
return __assign(__assign(__assign({}, (input.Limit
|
|
4719
|
-
input.RetiringPrincipal !== null && { RetiringPrincipal: input.RetiringPrincipal }));
|
|
4672
|
+
return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker })), (input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }));
|
|
4720
4673
|
};
|
|
4721
4674
|
var serializeAws_json1_1PutKeyPolicyRequest = function (input, context) {
|
|
4722
|
-
return __assign(__assign(__assign(__assign({}, (input.BypassPolicyLockoutSafetyCheck
|
|
4723
|
-
input.BypassPolicyLockoutSafetyCheck !== null && {
|
|
4675
|
+
return __assign(__assign(__assign(__assign({}, (input.BypassPolicyLockoutSafetyCheck != null && {
|
|
4724
4676
|
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
4725
|
-
})), (input.KeyId
|
|
4677
|
+
})), (input.KeyId != null && { KeyId: input.KeyId })), (input.Policy != null && { Policy: input.Policy })), (input.PolicyName != null && { PolicyName: input.PolicyName }));
|
|
4726
4678
|
};
|
|
4727
4679
|
var serializeAws_json1_1ReEncryptRequest = function (input, context) {
|
|
4728
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CiphertextBlob
|
|
4729
|
-
input.CiphertextBlob !== null && { CiphertextBlob: context.base64Encoder(input.CiphertextBlob) })), (input.DestinationEncryptionAlgorithm !== undefined &&
|
|
4730
|
-
input.DestinationEncryptionAlgorithm !== null && {
|
|
4680
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CiphertextBlob != null && { CiphertextBlob: context.base64Encoder(input.CiphertextBlob) })), (input.DestinationEncryptionAlgorithm != null && {
|
|
4731
4681
|
DestinationEncryptionAlgorithm: input.DestinationEncryptionAlgorithm,
|
|
4732
|
-
})), (input.DestinationEncryptionContext
|
|
4733
|
-
input.DestinationEncryptionContext !== null && {
|
|
4682
|
+
})), (input.DestinationEncryptionContext != null && {
|
|
4734
4683
|
DestinationEncryptionContext: serializeAws_json1_1EncryptionContextType(input.DestinationEncryptionContext, context),
|
|
4735
|
-
})), (input.DestinationKeyId
|
|
4736
|
-
input.DestinationKeyId !== null && { DestinationKeyId: input.DestinationKeyId })), (input.GrantTokens !== undefined &&
|
|
4737
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.SourceEncryptionAlgorithm !== undefined &&
|
|
4738
|
-
input.SourceEncryptionAlgorithm !== null && { SourceEncryptionAlgorithm: input.SourceEncryptionAlgorithm })), (input.SourceEncryptionContext !== undefined &&
|
|
4739
|
-
input.SourceEncryptionContext !== null && {
|
|
4684
|
+
})), (input.DestinationKeyId != null && { DestinationKeyId: input.DestinationKeyId })), (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.SourceEncryptionAlgorithm != null && { SourceEncryptionAlgorithm: input.SourceEncryptionAlgorithm })), (input.SourceEncryptionContext != null && {
|
|
4740
4685
|
SourceEncryptionContext: serializeAws_json1_1EncryptionContextType(input.SourceEncryptionContext, context),
|
|
4741
|
-
})), (input.SourceKeyId
|
|
4686
|
+
})), (input.SourceKeyId != null && { SourceKeyId: input.SourceKeyId }));
|
|
4742
4687
|
};
|
|
4743
4688
|
var serializeAws_json1_1ReplicateKeyRequest = function (input, context) {
|
|
4744
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BypassPolicyLockoutSafetyCheck
|
|
4745
|
-
input.BypassPolicyLockoutSafetyCheck !== null && {
|
|
4689
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BypassPolicyLockoutSafetyCheck != null && {
|
|
4746
4690
|
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
4747
|
-
})), (input.Description
|
|
4691
|
+
})), (input.Description != null && { Description: input.Description })), (input.KeyId != null && { KeyId: input.KeyId })), (input.Policy != null && { Policy: input.Policy })), (input.ReplicaRegion != null && { ReplicaRegion: input.ReplicaRegion })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
4748
4692
|
};
|
|
4749
4693
|
var serializeAws_json1_1RetireGrantRequest = function (input, context) {
|
|
4750
|
-
return __assign(__assign(__assign({}, (input.GrantId
|
|
4694
|
+
return __assign(__assign(__assign({}, (input.GrantId != null && { GrantId: input.GrantId })), (input.GrantToken != null && { GrantToken: input.GrantToken })), (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4751
4695
|
};
|
|
4752
4696
|
var serializeAws_json1_1RevokeGrantRequest = function (input, context) {
|
|
4753
|
-
return __assign(__assign({}, (input.GrantId
|
|
4697
|
+
return __assign(__assign({}, (input.GrantId != null && { GrantId: input.GrantId })), (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4754
4698
|
};
|
|
4755
4699
|
var serializeAws_json1_1ScheduleKeyDeletionRequest = function (input, context) {
|
|
4756
|
-
return __assign(__assign({}, (input.KeyId
|
|
4757
|
-
input.PendingWindowInDays !== null && { PendingWindowInDays: input.PendingWindowInDays }));
|
|
4700
|
+
return __assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.PendingWindowInDays != null && { PendingWindowInDays: input.PendingWindowInDays }));
|
|
4758
4701
|
};
|
|
4759
4702
|
var serializeAws_json1_1SignRequest = function (input, context) {
|
|
4760
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.GrantTokens
|
|
4761
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.Message !== undefined && input.Message !== null && { Message: context.base64Encoder(input.Message) })), (input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType })), (input.SigningAlgorithm !== undefined &&
|
|
4762
|
-
input.SigningAlgorithm !== null && { SigningAlgorithm: input.SigningAlgorithm }));
|
|
4703
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.Message != null && { Message: context.base64Encoder(input.Message) })), (input.MessageType != null && { MessageType: input.MessageType })), (input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }));
|
|
4763
4704
|
};
|
|
4764
4705
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
4765
|
-
return __assign(__assign({}, (input.TagKey
|
|
4706
|
+
return __assign(__assign({}, (input.TagKey != null && { TagKey: input.TagKey })), (input.TagValue != null && { TagValue: input.TagValue }));
|
|
4766
4707
|
};
|
|
4767
4708
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
4768
4709
|
return input
|
|
@@ -4785,37 +4726,28 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
4785
4726
|
});
|
|
4786
4727
|
};
|
|
4787
4728
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
4788
|
-
return __assign(__assign({}, (input.KeyId
|
|
4729
|
+
return __assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
4789
4730
|
};
|
|
4790
4731
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
4791
|
-
return __assign(__assign({}, (input.KeyId
|
|
4792
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
4732
|
+
return __assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
|
|
4793
4733
|
};
|
|
4794
4734
|
var serializeAws_json1_1UpdateAliasRequest = function (input, context) {
|
|
4795
|
-
return __assign(__assign({}, (input.AliasName
|
|
4735
|
+
return __assign(__assign({}, (input.AliasName != null && { AliasName: input.AliasName })), (input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }));
|
|
4796
4736
|
};
|
|
4797
4737
|
var serializeAws_json1_1UpdateCustomKeyStoreRequest = function (input, context) {
|
|
4798
|
-
return __assign(__assign(__assign(__assign({}, (input.CloudHsmClusterId
|
|
4799
|
-
input.CloudHsmClusterId !== null && { CloudHsmClusterId: input.CloudHsmClusterId })), (input.CustomKeyStoreId !== undefined &&
|
|
4800
|
-
input.CustomKeyStoreId !== null && { CustomKeyStoreId: input.CustomKeyStoreId })), (input.KeyStorePassword !== undefined &&
|
|
4801
|
-
input.KeyStorePassword !== null && { KeyStorePassword: input.KeyStorePassword })), (input.NewCustomKeyStoreName !== undefined &&
|
|
4802
|
-
input.NewCustomKeyStoreName !== null && { NewCustomKeyStoreName: input.NewCustomKeyStoreName }));
|
|
4738
|
+
return __assign(__assign(__assign(__assign({}, (input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId })), (input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId })), (input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword })), (input.NewCustomKeyStoreName != null && { NewCustomKeyStoreName: input.NewCustomKeyStoreName }));
|
|
4803
4739
|
};
|
|
4804
4740
|
var serializeAws_json1_1UpdateKeyDescriptionRequest = function (input, context) {
|
|
4805
|
-
return __assign(__assign({}, (input.Description
|
|
4741
|
+
return __assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.KeyId != null && { KeyId: input.KeyId }));
|
|
4806
4742
|
};
|
|
4807
4743
|
var serializeAws_json1_1UpdatePrimaryRegionRequest = function (input, context) {
|
|
4808
|
-
return __assign(__assign({}, (input.KeyId
|
|
4744
|
+
return __assign(__assign({}, (input.KeyId != null && { KeyId: input.KeyId })), (input.PrimaryRegion != null && { PrimaryRegion: input.PrimaryRegion }));
|
|
4809
4745
|
};
|
|
4810
4746
|
var serializeAws_json1_1VerifyMacRequest = function (input, context) {
|
|
4811
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.GrantTokens
|
|
4812
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.Mac !== undefined && input.Mac !== null && { Mac: context.base64Encoder(input.Mac) })), (input.MacAlgorithm !== undefined && input.MacAlgorithm !== null && { MacAlgorithm: input.MacAlgorithm })), (input.Message !== undefined && input.Message !== null && { Message: context.base64Encoder(input.Message) }));
|
|
4747
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.Mac != null && { Mac: context.base64Encoder(input.Mac) })), (input.MacAlgorithm != null && { MacAlgorithm: input.MacAlgorithm })), (input.Message != null && { Message: context.base64Encoder(input.Message) }));
|
|
4813
4748
|
};
|
|
4814
4749
|
var serializeAws_json1_1VerifyRequest = function (input, context) {
|
|
4815
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.GrantTokens
|
|
4816
|
-
input.GrantTokens !== null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.Message !== undefined && input.Message !== null && { Message: context.base64Encoder(input.Message) })), (input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType })), (input.Signature !== undefined &&
|
|
4817
|
-
input.Signature !== null && { Signature: context.base64Encoder(input.Signature) })), (input.SigningAlgorithm !== undefined &&
|
|
4818
|
-
input.SigningAlgorithm !== null && { SigningAlgorithm: input.SigningAlgorithm }));
|
|
4750
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.GrantTokens != null && { GrantTokens: serializeAws_json1_1GrantTokenList(input.GrantTokens, context) })), (input.KeyId != null && { KeyId: input.KeyId })), (input.Message != null && { Message: context.base64Encoder(input.Message) })), (input.MessageType != null && { MessageType: input.MessageType })), (input.Signature != null && { Signature: context.base64Encoder(input.Signature) })), (input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }));
|
|
4819
4751
|
};
|
|
4820
4752
|
var deserializeAws_json1_1AliasList = function (output, context) {
|
|
4821
4753
|
var retVal = (output || [])
|
|
@@ -4832,10 +4764,10 @@ var deserializeAws_json1_1AliasListEntry = function (output, context) {
|
|
|
4832
4764
|
return {
|
|
4833
4765
|
AliasArn: __expectString(output.AliasArn),
|
|
4834
4766
|
AliasName: __expectString(output.AliasName),
|
|
4835
|
-
CreationDate: output.CreationDate
|
|
4767
|
+
CreationDate: output.CreationDate != null
|
|
4836
4768
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
4837
4769
|
: undefined,
|
|
4838
|
-
LastUpdatedDate: output.LastUpdatedDate
|
|
4770
|
+
LastUpdatedDate: output.LastUpdatedDate != null
|
|
4839
4771
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedDate)))
|
|
4840
4772
|
: undefined,
|
|
4841
4773
|
TargetKeyId: __expectString(output.TargetKeyId),
|
|
@@ -4892,9 +4824,7 @@ var deserializeAws_json1_1CreateGrantResponse = function (output, context) {
|
|
|
4892
4824
|
};
|
|
4893
4825
|
var deserializeAws_json1_1CreateKeyResponse = function (output, context) {
|
|
4894
4826
|
return {
|
|
4895
|
-
KeyMetadata: output.KeyMetadata
|
|
4896
|
-
? deserializeAws_json1_1KeyMetadata(output.KeyMetadata, context)
|
|
4897
|
-
: undefined,
|
|
4827
|
+
KeyMetadata: output.KeyMetadata != null ? deserializeAws_json1_1KeyMetadata(output.KeyMetadata, context) : undefined,
|
|
4898
4828
|
};
|
|
4899
4829
|
};
|
|
4900
4830
|
var deserializeAws_json1_1CustomKeyStoreHasCMKsException = function (output, context) {
|
|
@@ -4933,7 +4863,7 @@ var deserializeAws_json1_1CustomKeyStoresListEntry = function (output, context)
|
|
|
4933
4863
|
CloudHsmClusterId: __expectString(output.CloudHsmClusterId),
|
|
4934
4864
|
ConnectionErrorCode: __expectString(output.ConnectionErrorCode),
|
|
4935
4865
|
ConnectionState: __expectString(output.ConnectionState),
|
|
4936
|
-
CreationDate: output.CreationDate
|
|
4866
|
+
CreationDate: output.CreationDate != null
|
|
4937
4867
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
4938
4868
|
: undefined,
|
|
4939
4869
|
CustomKeyStoreId: __expectString(output.CustomKeyStoreId),
|
|
@@ -4945,7 +4875,7 @@ var deserializeAws_json1_1DecryptResponse = function (output, context) {
|
|
|
4945
4875
|
return {
|
|
4946
4876
|
EncryptionAlgorithm: __expectString(output.EncryptionAlgorithm),
|
|
4947
4877
|
KeyId: __expectString(output.KeyId),
|
|
4948
|
-
Plaintext: output.Plaintext
|
|
4878
|
+
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
4949
4879
|
};
|
|
4950
4880
|
};
|
|
4951
4881
|
var deserializeAws_json1_1DeleteCustomKeyStoreResponse = function (output, context) {
|
|
@@ -4958,7 +4888,7 @@ var deserializeAws_json1_1DependencyTimeoutException = function (output, context
|
|
|
4958
4888
|
};
|
|
4959
4889
|
var deserializeAws_json1_1DescribeCustomKeyStoresResponse = function (output, context) {
|
|
4960
4890
|
return {
|
|
4961
|
-
CustomKeyStores: output.CustomKeyStores
|
|
4891
|
+
CustomKeyStores: output.CustomKeyStores != null
|
|
4962
4892
|
? deserializeAws_json1_1CustomKeyStoresList(output.CustomKeyStores, context)
|
|
4963
4893
|
: undefined,
|
|
4964
4894
|
NextMarker: __expectString(output.NextMarker),
|
|
@@ -4967,9 +4897,7 @@ var deserializeAws_json1_1DescribeCustomKeyStoresResponse = function (output, co
|
|
|
4967
4897
|
};
|
|
4968
4898
|
var deserializeAws_json1_1DescribeKeyResponse = function (output, context) {
|
|
4969
4899
|
return {
|
|
4970
|
-
KeyMetadata: output.KeyMetadata
|
|
4971
|
-
? deserializeAws_json1_1KeyMetadata(output.KeyMetadata, context)
|
|
4972
|
-
: undefined,
|
|
4900
|
+
KeyMetadata: output.KeyMetadata != null ? deserializeAws_json1_1KeyMetadata(output.KeyMetadata, context) : undefined,
|
|
4973
4901
|
};
|
|
4974
4902
|
};
|
|
4975
4903
|
var deserializeAws_json1_1DisabledException = function (output, context) {
|
|
@@ -5003,9 +4931,7 @@ var deserializeAws_json1_1EncryptionContextType = function (output, context) {
|
|
|
5003
4931
|
};
|
|
5004
4932
|
var deserializeAws_json1_1EncryptResponse = function (output, context) {
|
|
5005
4933
|
return {
|
|
5006
|
-
CiphertextBlob: output.CiphertextBlob
|
|
5007
|
-
? context.base64Decoder(output.CiphertextBlob)
|
|
5008
|
-
: undefined,
|
|
4934
|
+
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
5009
4935
|
EncryptionAlgorithm: __expectString(output.EncryptionAlgorithm),
|
|
5010
4936
|
KeyId: __expectString(output.KeyId),
|
|
5011
4937
|
};
|
|
@@ -5019,52 +4945,42 @@ var deserializeAws_json1_1GenerateDataKeyPairResponse = function (output, contex
|
|
|
5019
4945
|
return {
|
|
5020
4946
|
KeyId: __expectString(output.KeyId),
|
|
5021
4947
|
KeyPairSpec: __expectString(output.KeyPairSpec),
|
|
5022
|
-
PrivateKeyCiphertextBlob: output.PrivateKeyCiphertextBlob
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
PrivateKeyPlaintext: output.PrivateKeyPlaintext !== undefined && output.PrivateKeyPlaintext !== null
|
|
5026
|
-
? context.base64Decoder(output.PrivateKeyPlaintext)
|
|
5027
|
-
: undefined,
|
|
5028
|
-
PublicKey: output.PublicKey !== undefined && output.PublicKey !== null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4948
|
+
PrivateKeyCiphertextBlob: output.PrivateKeyCiphertextBlob != null ? context.base64Decoder(output.PrivateKeyCiphertextBlob) : undefined,
|
|
4949
|
+
PrivateKeyPlaintext: output.PrivateKeyPlaintext != null ? context.base64Decoder(output.PrivateKeyPlaintext) : undefined,
|
|
4950
|
+
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
5029
4951
|
};
|
|
5030
4952
|
};
|
|
5031
4953
|
var deserializeAws_json1_1GenerateDataKeyPairWithoutPlaintextResponse = function (output, context) {
|
|
5032
4954
|
return {
|
|
5033
4955
|
KeyId: __expectString(output.KeyId),
|
|
5034
4956
|
KeyPairSpec: __expectString(output.KeyPairSpec),
|
|
5035
|
-
PrivateKeyCiphertextBlob: output.PrivateKeyCiphertextBlob
|
|
5036
|
-
|
|
5037
|
-
: undefined,
|
|
5038
|
-
PublicKey: output.PublicKey !== undefined && output.PublicKey !== null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4957
|
+
PrivateKeyCiphertextBlob: output.PrivateKeyCiphertextBlob != null ? context.base64Decoder(output.PrivateKeyCiphertextBlob) : undefined,
|
|
4958
|
+
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
5039
4959
|
};
|
|
5040
4960
|
};
|
|
5041
4961
|
var deserializeAws_json1_1GenerateDataKeyResponse = function (output, context) {
|
|
5042
4962
|
return {
|
|
5043
|
-
CiphertextBlob: output.CiphertextBlob
|
|
5044
|
-
? context.base64Decoder(output.CiphertextBlob)
|
|
5045
|
-
: undefined,
|
|
4963
|
+
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
5046
4964
|
KeyId: __expectString(output.KeyId),
|
|
5047
|
-
Plaintext: output.Plaintext
|
|
4965
|
+
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
5048
4966
|
};
|
|
5049
4967
|
};
|
|
5050
4968
|
var deserializeAws_json1_1GenerateDataKeyWithoutPlaintextResponse = function (output, context) {
|
|
5051
4969
|
return {
|
|
5052
|
-
CiphertextBlob: output.CiphertextBlob
|
|
5053
|
-
? context.base64Decoder(output.CiphertextBlob)
|
|
5054
|
-
: undefined,
|
|
4970
|
+
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
5055
4971
|
KeyId: __expectString(output.KeyId),
|
|
5056
4972
|
};
|
|
5057
4973
|
};
|
|
5058
4974
|
var deserializeAws_json1_1GenerateMacResponse = function (output, context) {
|
|
5059
4975
|
return {
|
|
5060
4976
|
KeyId: __expectString(output.KeyId),
|
|
5061
|
-
Mac: output.Mac
|
|
4977
|
+
Mac: output.Mac != null ? context.base64Decoder(output.Mac) : undefined,
|
|
5062
4978
|
MacAlgorithm: __expectString(output.MacAlgorithm),
|
|
5063
4979
|
};
|
|
5064
4980
|
};
|
|
5065
4981
|
var deserializeAws_json1_1GenerateRandomResponse = function (output, context) {
|
|
5066
4982
|
return {
|
|
5067
|
-
Plaintext: output.Plaintext
|
|
4983
|
+
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
5068
4984
|
};
|
|
5069
4985
|
};
|
|
5070
4986
|
var deserializeAws_json1_1GetKeyPolicyResponse = function (output, context) {
|
|
@@ -5079,37 +4995,35 @@ var deserializeAws_json1_1GetKeyRotationStatusResponse = function (output, conte
|
|
|
5079
4995
|
};
|
|
5080
4996
|
var deserializeAws_json1_1GetParametersForImportResponse = function (output, context) {
|
|
5081
4997
|
return {
|
|
5082
|
-
ImportToken: output.ImportToken
|
|
5083
|
-
? context.base64Decoder(output.ImportToken)
|
|
5084
|
-
: undefined,
|
|
4998
|
+
ImportToken: output.ImportToken != null ? context.base64Decoder(output.ImportToken) : undefined,
|
|
5085
4999
|
KeyId: __expectString(output.KeyId),
|
|
5086
|
-
ParametersValidTo: output.ParametersValidTo
|
|
5000
|
+
ParametersValidTo: output.ParametersValidTo != null
|
|
5087
5001
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ParametersValidTo)))
|
|
5088
5002
|
: undefined,
|
|
5089
|
-
PublicKey: output.PublicKey
|
|
5003
|
+
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
5090
5004
|
};
|
|
5091
5005
|
};
|
|
5092
5006
|
var deserializeAws_json1_1GetPublicKeyResponse = function (output, context) {
|
|
5093
5007
|
return {
|
|
5094
5008
|
CustomerMasterKeySpec: __expectString(output.CustomerMasterKeySpec),
|
|
5095
|
-
EncryptionAlgorithms: output.EncryptionAlgorithms
|
|
5009
|
+
EncryptionAlgorithms: output.EncryptionAlgorithms != null
|
|
5096
5010
|
? deserializeAws_json1_1EncryptionAlgorithmSpecList(output.EncryptionAlgorithms, context)
|
|
5097
5011
|
: undefined,
|
|
5098
5012
|
KeyId: __expectString(output.KeyId),
|
|
5099
5013
|
KeySpec: __expectString(output.KeySpec),
|
|
5100
5014
|
KeyUsage: __expectString(output.KeyUsage),
|
|
5101
|
-
PublicKey: output.PublicKey
|
|
5102
|
-
SigningAlgorithms: output.SigningAlgorithms
|
|
5015
|
+
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
5016
|
+
SigningAlgorithms: output.SigningAlgorithms != null
|
|
5103
5017
|
? deserializeAws_json1_1SigningAlgorithmSpecList(output.SigningAlgorithms, context)
|
|
5104
5018
|
: undefined,
|
|
5105
5019
|
};
|
|
5106
5020
|
};
|
|
5107
5021
|
var deserializeAws_json1_1GrantConstraints = function (output, context) {
|
|
5108
5022
|
return {
|
|
5109
|
-
EncryptionContextEquals: output.EncryptionContextEquals
|
|
5023
|
+
EncryptionContextEquals: output.EncryptionContextEquals != null
|
|
5110
5024
|
? deserializeAws_json1_1EncryptionContextType(output.EncryptionContextEquals, context)
|
|
5111
5025
|
: undefined,
|
|
5112
|
-
EncryptionContextSubset: output.EncryptionContextSubset
|
|
5026
|
+
EncryptionContextSubset: output.EncryptionContextSubset != null
|
|
5113
5027
|
? deserializeAws_json1_1EncryptionContextType(output.EncryptionContextSubset, context)
|
|
5114
5028
|
: undefined,
|
|
5115
5029
|
};
|
|
@@ -5127,10 +5041,8 @@ var deserializeAws_json1_1GrantList = function (output, context) {
|
|
|
5127
5041
|
};
|
|
5128
5042
|
var deserializeAws_json1_1GrantListEntry = function (output, context) {
|
|
5129
5043
|
return {
|
|
5130
|
-
Constraints: output.Constraints
|
|
5131
|
-
|
|
5132
|
-
: undefined,
|
|
5133
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
5044
|
+
Constraints: output.Constraints != null ? deserializeAws_json1_1GrantConstraints(output.Constraints, context) : undefined,
|
|
5045
|
+
CreationDate: output.CreationDate != null
|
|
5134
5046
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
5135
5047
|
: undefined,
|
|
5136
5048
|
GrantId: __expectString(output.GrantId),
|
|
@@ -5138,9 +5050,7 @@ var deserializeAws_json1_1GrantListEntry = function (output, context) {
|
|
|
5138
5050
|
IssuingAccount: __expectString(output.IssuingAccount),
|
|
5139
5051
|
KeyId: __expectString(output.KeyId),
|
|
5140
5052
|
Name: __expectString(output.Name),
|
|
5141
|
-
Operations: output.Operations
|
|
5142
|
-
? deserializeAws_json1_1GrantOperationList(output.Operations, context)
|
|
5143
|
-
: undefined,
|
|
5053
|
+
Operations: output.Operations != null ? deserializeAws_json1_1GrantOperationList(output.Operations, context) : undefined,
|
|
5144
5054
|
RetiringPrincipal: __expectString(output.RetiringPrincipal),
|
|
5145
5055
|
};
|
|
5146
5056
|
};
|
|
@@ -5235,17 +5145,17 @@ var deserializeAws_json1_1KeyMetadata = function (output, context) {
|
|
|
5235
5145
|
AWSAccountId: __expectString(output.AWSAccountId),
|
|
5236
5146
|
Arn: __expectString(output.Arn),
|
|
5237
5147
|
CloudHsmClusterId: __expectString(output.CloudHsmClusterId),
|
|
5238
|
-
CreationDate: output.CreationDate
|
|
5148
|
+
CreationDate: output.CreationDate != null
|
|
5239
5149
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
5240
5150
|
: undefined,
|
|
5241
5151
|
CustomKeyStoreId: __expectString(output.CustomKeyStoreId),
|
|
5242
5152
|
CustomerMasterKeySpec: __expectString(output.CustomerMasterKeySpec),
|
|
5243
|
-
DeletionDate: output.DeletionDate
|
|
5153
|
+
DeletionDate: output.DeletionDate != null
|
|
5244
5154
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletionDate)))
|
|
5245
5155
|
: undefined,
|
|
5246
5156
|
Description: __expectString(output.Description),
|
|
5247
5157
|
Enabled: __expectBoolean(output.Enabled),
|
|
5248
|
-
EncryptionAlgorithms: output.EncryptionAlgorithms
|
|
5158
|
+
EncryptionAlgorithms: output.EncryptionAlgorithms != null
|
|
5249
5159
|
? deserializeAws_json1_1EncryptionAlgorithmSpecList(output.EncryptionAlgorithms, context)
|
|
5250
5160
|
: undefined,
|
|
5251
5161
|
ExpirationModel: __expectString(output.ExpirationModel),
|
|
@@ -5254,21 +5164,19 @@ var deserializeAws_json1_1KeyMetadata = function (output, context) {
|
|
|
5254
5164
|
KeySpec: __expectString(output.KeySpec),
|
|
5255
5165
|
KeyState: __expectString(output.KeyState),
|
|
5256
5166
|
KeyUsage: __expectString(output.KeyUsage),
|
|
5257
|
-
MacAlgorithms: output.MacAlgorithms
|
|
5167
|
+
MacAlgorithms: output.MacAlgorithms != null
|
|
5258
5168
|
? deserializeAws_json1_1MacAlgorithmSpecList(output.MacAlgorithms, context)
|
|
5259
5169
|
: undefined,
|
|
5260
5170
|
MultiRegion: __expectBoolean(output.MultiRegion),
|
|
5261
|
-
MultiRegionConfiguration: output.MultiRegionConfiguration
|
|
5171
|
+
MultiRegionConfiguration: output.MultiRegionConfiguration != null
|
|
5262
5172
|
? deserializeAws_json1_1MultiRegionConfiguration(output.MultiRegionConfiguration, context)
|
|
5263
5173
|
: undefined,
|
|
5264
5174
|
Origin: __expectString(output.Origin),
|
|
5265
5175
|
PendingDeletionWindowInDays: __expectInt32(output.PendingDeletionWindowInDays),
|
|
5266
|
-
SigningAlgorithms: output.SigningAlgorithms
|
|
5176
|
+
SigningAlgorithms: output.SigningAlgorithms != null
|
|
5267
5177
|
? deserializeAws_json1_1SigningAlgorithmSpecList(output.SigningAlgorithms, context)
|
|
5268
5178
|
: undefined,
|
|
5269
|
-
ValidTo: output.ValidTo
|
|
5270
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidTo)))
|
|
5271
|
-
: undefined,
|
|
5179
|
+
ValidTo: output.ValidTo != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidTo))) : undefined,
|
|
5272
5180
|
};
|
|
5273
5181
|
};
|
|
5274
5182
|
var deserializeAws_json1_1KeyUnavailableException = function (output, context) {
|
|
@@ -5303,18 +5211,14 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
5303
5211
|
};
|
|
5304
5212
|
var deserializeAws_json1_1ListAliasesResponse = function (output, context) {
|
|
5305
5213
|
return {
|
|
5306
|
-
Aliases: output.Aliases
|
|
5307
|
-
? deserializeAws_json1_1AliasList(output.Aliases, context)
|
|
5308
|
-
: undefined,
|
|
5214
|
+
Aliases: output.Aliases != null ? deserializeAws_json1_1AliasList(output.Aliases, context) : undefined,
|
|
5309
5215
|
NextMarker: __expectString(output.NextMarker),
|
|
5310
5216
|
Truncated: __expectBoolean(output.Truncated),
|
|
5311
5217
|
};
|
|
5312
5218
|
};
|
|
5313
5219
|
var deserializeAws_json1_1ListGrantsResponse = function (output, context) {
|
|
5314
5220
|
return {
|
|
5315
|
-
Grants: output.Grants
|
|
5316
|
-
? deserializeAws_json1_1GrantList(output.Grants, context)
|
|
5317
|
-
: undefined,
|
|
5221
|
+
Grants: output.Grants != null ? deserializeAws_json1_1GrantList(output.Grants, context) : undefined,
|
|
5318
5222
|
NextMarker: __expectString(output.NextMarker),
|
|
5319
5223
|
Truncated: __expectBoolean(output.Truncated),
|
|
5320
5224
|
};
|
|
@@ -5322,17 +5226,13 @@ var deserializeAws_json1_1ListGrantsResponse = function (output, context) {
|
|
|
5322
5226
|
var deserializeAws_json1_1ListKeyPoliciesResponse = function (output, context) {
|
|
5323
5227
|
return {
|
|
5324
5228
|
NextMarker: __expectString(output.NextMarker),
|
|
5325
|
-
PolicyNames: output.PolicyNames
|
|
5326
|
-
? deserializeAws_json1_1PolicyNameList(output.PolicyNames, context)
|
|
5327
|
-
: undefined,
|
|
5229
|
+
PolicyNames: output.PolicyNames != null ? deserializeAws_json1_1PolicyNameList(output.PolicyNames, context) : undefined,
|
|
5328
5230
|
Truncated: __expectBoolean(output.Truncated),
|
|
5329
5231
|
};
|
|
5330
5232
|
};
|
|
5331
5233
|
var deserializeAws_json1_1ListKeysResponse = function (output, context) {
|
|
5332
5234
|
return {
|
|
5333
|
-
Keys: output.Keys
|
|
5334
|
-
? deserializeAws_json1_1KeyList(output.Keys, context)
|
|
5335
|
-
: undefined,
|
|
5235
|
+
Keys: output.Keys != null ? deserializeAws_json1_1KeyList(output.Keys, context) : undefined,
|
|
5336
5236
|
NextMarker: __expectString(output.NextMarker),
|
|
5337
5237
|
Truncated: __expectBoolean(output.Truncated),
|
|
5338
5238
|
};
|
|
@@ -5340,9 +5240,7 @@ var deserializeAws_json1_1ListKeysResponse = function (output, context) {
|
|
|
5340
5240
|
var deserializeAws_json1_1ListResourceTagsResponse = function (output, context) {
|
|
5341
5241
|
return {
|
|
5342
5242
|
NextMarker: __expectString(output.NextMarker),
|
|
5343
|
-
Tags: output.Tags
|
|
5344
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
5345
|
-
: undefined,
|
|
5243
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
5346
5244
|
Truncated: __expectBoolean(output.Truncated),
|
|
5347
5245
|
};
|
|
5348
5246
|
};
|
|
@@ -5365,12 +5263,8 @@ var deserializeAws_json1_1MalformedPolicyDocumentException = function (output, c
|
|
|
5365
5263
|
var deserializeAws_json1_1MultiRegionConfiguration = function (output, context) {
|
|
5366
5264
|
return {
|
|
5367
5265
|
MultiRegionKeyType: __expectString(output.MultiRegionKeyType),
|
|
5368
|
-
PrimaryKey: output.PrimaryKey
|
|
5369
|
-
|
|
5370
|
-
: undefined,
|
|
5371
|
-
ReplicaKeys: output.ReplicaKeys !== undefined && output.ReplicaKeys !== null
|
|
5372
|
-
? deserializeAws_json1_1MultiRegionKeyList(output.ReplicaKeys, context)
|
|
5373
|
-
: undefined,
|
|
5266
|
+
PrimaryKey: output.PrimaryKey != null ? deserializeAws_json1_1MultiRegionKey(output.PrimaryKey, context) : undefined,
|
|
5267
|
+
ReplicaKeys: output.ReplicaKeys != null ? deserializeAws_json1_1MultiRegionKeyList(output.ReplicaKeys, context) : undefined,
|
|
5374
5268
|
};
|
|
5375
5269
|
};
|
|
5376
5270
|
var deserializeAws_json1_1MultiRegionKey = function (output, context) {
|
|
@@ -5408,9 +5302,7 @@ var deserializeAws_json1_1PolicyNameList = function (output, context) {
|
|
|
5408
5302
|
};
|
|
5409
5303
|
var deserializeAws_json1_1ReEncryptResponse = function (output, context) {
|
|
5410
5304
|
return {
|
|
5411
|
-
CiphertextBlob: output.CiphertextBlob
|
|
5412
|
-
? context.base64Decoder(output.CiphertextBlob)
|
|
5413
|
-
: undefined,
|
|
5305
|
+
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
5414
5306
|
DestinationEncryptionAlgorithm: __expectString(output.DestinationEncryptionAlgorithm),
|
|
5415
5307
|
KeyId: __expectString(output.KeyId),
|
|
5416
5308
|
SourceEncryptionAlgorithm: __expectString(output.SourceEncryptionAlgorithm),
|
|
@@ -5419,18 +5311,16 @@ var deserializeAws_json1_1ReEncryptResponse = function (output, context) {
|
|
|
5419
5311
|
};
|
|
5420
5312
|
var deserializeAws_json1_1ReplicateKeyResponse = function (output, context) {
|
|
5421
5313
|
return {
|
|
5422
|
-
ReplicaKeyMetadata: output.ReplicaKeyMetadata
|
|
5314
|
+
ReplicaKeyMetadata: output.ReplicaKeyMetadata != null
|
|
5423
5315
|
? deserializeAws_json1_1KeyMetadata(output.ReplicaKeyMetadata, context)
|
|
5424
5316
|
: undefined,
|
|
5425
5317
|
ReplicaPolicy: __expectString(output.ReplicaPolicy),
|
|
5426
|
-
ReplicaTags: output.ReplicaTags
|
|
5427
|
-
? deserializeAws_json1_1TagList(output.ReplicaTags, context)
|
|
5428
|
-
: undefined,
|
|
5318
|
+
ReplicaTags: output.ReplicaTags != null ? deserializeAws_json1_1TagList(output.ReplicaTags, context) : undefined,
|
|
5429
5319
|
};
|
|
5430
5320
|
};
|
|
5431
5321
|
var deserializeAws_json1_1ScheduleKeyDeletionResponse = function (output, context) {
|
|
5432
5322
|
return {
|
|
5433
|
-
DeletionDate: output.DeletionDate
|
|
5323
|
+
DeletionDate: output.DeletionDate != null
|
|
5434
5324
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletionDate)))
|
|
5435
5325
|
: undefined,
|
|
5436
5326
|
KeyId: __expectString(output.KeyId),
|
|
@@ -5452,7 +5342,7 @@ var deserializeAws_json1_1SigningAlgorithmSpecList = function (output, context)
|
|
|
5452
5342
|
var deserializeAws_json1_1SignResponse = function (output, context) {
|
|
5453
5343
|
return {
|
|
5454
5344
|
KeyId: __expectString(output.KeyId),
|
|
5455
|
-
Signature: output.Signature
|
|
5345
|
+
Signature: output.Signature != null ? context.base64Decoder(output.Signature) : undefined,
|
|
5456
5346
|
SigningAlgorithm: __expectString(output.SigningAlgorithm),
|
|
5457
5347
|
};
|
|
5458
5348
|
};
|
|
@@ -5556,6 +5446,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
5556
5446
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5557
5447
|
var sanitizeErrorCode = function (rawValue) {
|
|
5558
5448
|
var cleanValue = rawValue;
|
|
5449
|
+
if (typeof cleanValue === "number") {
|
|
5450
|
+
cleanValue = cleanValue.toString();
|
|
5451
|
+
}
|
|
5559
5452
|
if (cleanValue.indexOf(":") >= 0) {
|
|
5560
5453
|
cleanValue = cleanValue.split(":")[0];
|
|
5561
5454
|
}
|