func KeyAlgorithm_Values() []string
KeyAlgorithm_Values returns all elements of the KeyAlgorithm enum
func KeyCheckValueAlgorithm_Values() []string
KeyCheckValueAlgorithm_Values returns all elements of the KeyCheckValueAlgorithm enum
func KeyClass_Values() []string
KeyClass_Values returns all elements of the KeyClass enum
func KeyExportability_Values() []string
KeyExportability_Values returns all elements of the KeyExportability enum
func KeyMaterialType_Values() []string
KeyMaterialType_Values returns all elements of the KeyMaterialType enum
func KeyOrigin_Values() []string
KeyOrigin_Values returns all elements of the KeyOrigin enum
func KeyState_Values() []string
KeyState_Values returns all elements of the KeyState enum
func KeyUsage_Values() []string
KeyUsage_Values returns all elements of the KeyUsage enum
func Tr34KeyBlockFormat_Values() []string
Tr34KeyBlockFormat_Values returns all elements of the Tr34KeyBlockFormat enum
func WrappedKeyMaterialFormat_Values() []string
WrappedKeyMaterialFormat_Values returns all elements of the WrappedKeyMaterialFormat enum
func WrappingKeySpec_Values() []string
WrappingKeySpec_Values returns all elements of the WrappingKeySpec enum
type AccessDeniedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
You do not have sufficient access to perform this action.
func (s *AccessDeniedException) Code() string
Code returns the exception type name.
func (s *AccessDeniedException) Error() string
func (s AccessDeniedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AccessDeniedException) Message() string
Message returns the exception's message.
func (s *AccessDeniedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s AccessDeniedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Alias struct { // A friendly name that you can use to refer to a key. The value must begin // with alias/. // // Do not include confidential or sensitive information in this field. This // field may be displayed in plaintext in CloudTrail logs and other output. // // AliasName is a required field AliasName *string `min:"7" type:"string" required:"true"` // The KeyARN of the key associated with the alias. KeyArn *string `min:"70" type:"string"` // contains filtered or unexported fields }
Contains information about an alias.
func (s Alias) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Alias) SetAliasName(v string) *Alias
SetAliasName sets the AliasName field's value.
func (s *Alias) SetKeyArn(v string) *Alias
SetKeyArn sets the KeyArn field's value.
func (s Alias) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ConflictException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
This request can cause an inconsistent state for the resource.
func (s *ConflictException) Code() string
Code returns the exception type name.
func (s *ConflictException) Error() string
func (s ConflictException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ConflictException) Message() string
Message returns the exception's message.
func (s *ConflictException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ConflictException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ConflictException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateAliasInput struct { // A friendly name that you can use to refer to a key. An alias must begin with // alias/ followed by a name, for example alias/ExampleAlias. It can contain // only alphanumeric characters, forward slashes (/), underscores (_), and dashes // (-). // // Don't include personal, confidential or sensitive information in this field. // This field may be displayed in plaintext in CloudTrail logs and other output. // // AliasName is a required field AliasName *string `min:"7" type:"string" required:"true"` // The KeyARN of the key to associate with the alias. KeyArn *string `min:"70" type:"string"` // contains filtered or unexported fields }
func (s CreateAliasInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateAliasInput) SetAliasName(v string) *CreateAliasInput
SetAliasName sets the AliasName field's value.
func (s *CreateAliasInput) SetKeyArn(v string) *CreateAliasInput
SetKeyArn sets the KeyArn field's value.
func (s CreateAliasInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateAliasOutput struct { // The alias for the key. // // Alias is a required field Alias *Alias `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s CreateAliasOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateAliasOutput) SetAlias(v *Alias) *CreateAliasOutput
SetAlias sets the Alias field's value.
func (s CreateAliasOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateKeyInput struct { // Specifies whether to enable the key. If the key is enabled, it is activated // for use within the service. If the key is not enabled, then it is created // but not activated. The default value is enabled. Enabled *bool `type:"boolean"` // Specifies whether the key is exportable from the service. // // Exportable is a required field Exportable *bool `type:"boolean" required:"true"` // The role of the key, the algorithm it supports, and the cryptographic operations // allowed with the key. This data is immutable after the key is created. // // KeyAttributes is a required field KeyAttributes *KeyAttributes `type:"structure" required:"true"` // The algorithm that Amazon Web Services Payment Cryptography uses to calculate // the key check value (KCV). It is used to validate the key integrity. // // For TDES keys, the KCV is computed by encrypting 8 bytes, each with value // of zero, with the key to be checked and retaining the 3 highest order bytes // of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm // where the input data is 16 bytes of zero and retaining the 3 highest order // bytes of the encrypted result. KeyCheckValueAlgorithm *string `type:"string" enum:"KeyCheckValueAlgorithm"` // Assigns one or more tags to the Amazon Web Services Payment Cryptography // key. Use this parameter to tag a key when it is created. To tag an existing // Amazon Web Services Payment Cryptography key, use the TagResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_TagResource.html) // operation. // // Each tag consists of a tag key and a tag value. Both the tag key and the // tag value are required, but the tag value can be an empty (null) string. // You can't have more than one tag on an Amazon Web Services Payment Cryptography // key with the same tag key. // // Don't include personal, confidential or sensitive information in this field. // This field may be displayed in plaintext in CloudTrail logs and other output. // // Tagging or untagging an Amazon Web Services Payment Cryptography key can // allow or deny permission to the key. Tags []*Tag `type:"list"` // contains filtered or unexported fields }
func (s CreateKeyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateKeyInput) SetEnabled(v bool) *CreateKeyInput
SetEnabled sets the Enabled field's value.
func (s *CreateKeyInput) SetExportable(v bool) *CreateKeyInput
SetExportable sets the Exportable field's value.
func (s *CreateKeyInput) SetKeyAttributes(v *KeyAttributes) *CreateKeyInput
SetKeyAttributes sets the KeyAttributes field's value.
func (s *CreateKeyInput) SetKeyCheckValueAlgorithm(v string) *CreateKeyInput
SetKeyCheckValueAlgorithm sets the KeyCheckValueAlgorithm field's value.
func (s *CreateKeyInput) SetTags(v []*Tag) *CreateKeyInput
SetTags sets the Tags field's value.
func (s CreateKeyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateKeyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateKeyOutput struct { // The key material that contains all the key attributes. // // Key is a required field Key *Key `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s CreateKeyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateKeyOutput) SetKey(v *Key) *CreateKeyOutput
SetKey sets the Key field's value.
func (s CreateKeyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteAliasInput struct { // A friendly name that you can use to refer Amazon Web Services Payment Cryptography // key. This value must begin with alias/ followed by a name, such as alias/ExampleAlias. // // AliasName is a required field AliasName *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteAliasInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteAliasInput) SetAliasName(v string) *DeleteAliasInput
SetAliasName sets the AliasName field's value.
func (s DeleteAliasInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteAliasOutput struct {
// contains filtered or unexported fields
}
func (s DeleteAliasOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteAliasOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteKeyInput struct { // The waiting period for key deletion. The default value is seven days. DeleteKeyInDays *int64 `min:"3" type:"integer"` // The KeyARN of the key that is scheduled for deletion. // // KeyIdentifier is a required field KeyIdentifier *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteKeyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteKeyInput) SetDeleteKeyInDays(v int64) *DeleteKeyInput
SetDeleteKeyInDays sets the DeleteKeyInDays field's value.
func (s *DeleteKeyInput) SetKeyIdentifier(v string) *DeleteKeyInput
SetKeyIdentifier sets the KeyIdentifier field's value.
func (s DeleteKeyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteKeyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteKeyOutput struct { // The KeyARN of the key that is scheduled for deletion. // // Key is a required field Key *Key `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s DeleteKeyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteKeyOutput) SetKey(v *Key) *DeleteKeyOutput
SetKey sets the Key field's value.
func (s DeleteKeyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ExportAttributes struct { // Parameter information for IPEK export. ExportDukptInitialKey *ExportDukptInitialKey `type:"structure"` // The algorithm that Amazon Web Services Payment Cryptography uses to calculate // the key check value (KCV). It is used to validate the key integrity. Specify // KCV for IPEK export only. // // For TDES keys, the KCV is computed by encrypting 8 bytes, each with value // of zero, with the key to be checked and retaining the 3 highest order bytes // of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm // where the input data is 16 bytes of zero and retaining the 3 highest order // bytes of the encrypted result. KeyCheckValueAlgorithm *string `type:"string" enum:"KeyCheckValueAlgorithm"` // contains filtered or unexported fields }
The attributes for IPEK generation during export.
func (s ExportAttributes) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportAttributes) SetExportDukptInitialKey(v *ExportDukptInitialKey) *ExportAttributes
SetExportDukptInitialKey sets the ExportDukptInitialKey field's value.
func (s *ExportAttributes) SetKeyCheckValueAlgorithm(v string) *ExportAttributes
SetKeyCheckValueAlgorithm sets the KeyCheckValueAlgorithm field's value.
func (s ExportAttributes) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportAttributes) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExportDukptInitialKey struct { // The KSN for IPEK generation using DUKPT. // // KSN must be padded before sending to Amazon Web Services Payment Cryptography. // KSN hex length should be 20 for a TDES_2KEY key or 24 for an AES key. // // KeySerialNumber is a required field KeySerialNumber *string `min:"20" type:"string" required:"true"` // contains filtered or unexported fields }
Parameter information for IPEK generation during export.
func (s ExportDukptInitialKey) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportDukptInitialKey) SetKeySerialNumber(v string) *ExportDukptInitialKey
SetKeySerialNumber sets the KeySerialNumber field's value.
func (s ExportDukptInitialKey) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportDukptInitialKey) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExportKeyCryptogram struct { // The KeyARN of the certificate chain that signs the wrapping key certificate // during RSA wrap and unwrap key export. // // CertificateAuthorityPublicKeyIdentifier is a required field CertificateAuthorityPublicKeyIdentifier *string `min:"7" type:"string" required:"true"` // The wrapping key certificate in PEM format (base64 encoded). Amazon Web Services // Payment Cryptography uses this certificate to wrap the key under export. // // WrappingKeyCertificate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExportKeyCryptogram's // String and GoString methods. // // WrappingKeyCertificate is a required field WrappingKeyCertificate *string `min:"1" type:"string" required:"true" sensitive:"true"` // The wrapping spec for the key under export. WrappingSpec *string `type:"string" enum:"WrappingKeySpec"` // contains filtered or unexported fields }
Parameter information for key material export using asymmetric RSA wrap and unwrap key exchange method.
func (s ExportKeyCryptogram) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportKeyCryptogram) SetCertificateAuthorityPublicKeyIdentifier(v string) *ExportKeyCryptogram
SetCertificateAuthorityPublicKeyIdentifier sets the CertificateAuthorityPublicKeyIdentifier field's value.
func (s *ExportKeyCryptogram) SetWrappingKeyCertificate(v string) *ExportKeyCryptogram
SetWrappingKeyCertificate sets the WrappingKeyCertificate field's value.
func (s *ExportKeyCryptogram) SetWrappingSpec(v string) *ExportKeyCryptogram
SetWrappingSpec sets the WrappingSpec field's value.
func (s ExportKeyCryptogram) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportKeyCryptogram) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExportKeyInput struct { // The attributes for IPEK generation during export. ExportAttributes *ExportAttributes `type:"structure"` // The KeyARN of the key under export from Amazon Web Services Payment Cryptography. // // ExportKeyIdentifier is a required field ExportKeyIdentifier *string `min:"7" type:"string" required:"true"` // The key block format type, for example, TR-34 or TR-31, to use during key // material export. // // KeyMaterial is a required field KeyMaterial *ExportKeyMaterial `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s ExportKeyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportKeyInput) SetExportAttributes(v *ExportAttributes) *ExportKeyInput
SetExportAttributes sets the ExportAttributes field's value.
func (s *ExportKeyInput) SetExportKeyIdentifier(v string) *ExportKeyInput
SetExportKeyIdentifier sets the ExportKeyIdentifier field's value.
func (s *ExportKeyInput) SetKeyMaterial(v *ExportKeyMaterial) *ExportKeyInput
SetKeyMaterial sets the KeyMaterial field's value.
func (s ExportKeyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportKeyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExportKeyMaterial struct { // Parameter information for key material export using asymmetric RSA wrap and // unwrap key exchange method KeyCryptogram *ExportKeyCryptogram `type:"structure"` // Parameter information for key material export using symmetric TR-31 key exchange // method. Tr31KeyBlock *ExportTr31KeyBlock `type:"structure"` // Parameter information for key material export using the asymmetric TR-34 // key exchange method. Tr34KeyBlock *ExportTr34KeyBlock `type:"structure"` // contains filtered or unexported fields }
Parameter information for key material export from Amazon Web Services Payment Cryptography using TR-31 or TR-34 or RSA wrap and unwrap key exchange method.
func (s ExportKeyMaterial) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportKeyMaterial) SetKeyCryptogram(v *ExportKeyCryptogram) *ExportKeyMaterial
SetKeyCryptogram sets the KeyCryptogram field's value.
func (s *ExportKeyMaterial) SetTr31KeyBlock(v *ExportTr31KeyBlock) *ExportKeyMaterial
SetTr31KeyBlock sets the Tr31KeyBlock field's value.
func (s *ExportKeyMaterial) SetTr34KeyBlock(v *ExportTr34KeyBlock) *ExportKeyMaterial
SetTr34KeyBlock sets the Tr34KeyBlock field's value.
func (s ExportKeyMaterial) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportKeyMaterial) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExportKeyOutput struct { // The key material under export as a TR-34 WrappedKeyBlock or a TR-31 WrappedKeyBlock. // or a RSA WrappedKeyCryptogram. WrappedKey *WrappedKey `type:"structure"` // contains filtered or unexported fields }
func (s ExportKeyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportKeyOutput) SetWrappedKey(v *WrappedKey) *ExportKeyOutput
SetWrappedKey sets the WrappedKey field's value.
func (s ExportKeyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ExportTr31KeyBlock struct { // Optional metadata for export associated with the key material. This data // is signed but transmitted in clear text. KeyBlockHeaders *KeyBlockHeaders `type:"structure"` // The KeyARN of the the wrapping key. This key encrypts or wraps the key under // export for TR-31 key block generation. // // WrappingKeyIdentifier is a required field WrappingKeyIdentifier *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
Parameter information for key material export using symmetric TR-31 key exchange method.
func (s ExportTr31KeyBlock) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportTr31KeyBlock) SetKeyBlockHeaders(v *KeyBlockHeaders) *ExportTr31KeyBlock
SetKeyBlockHeaders sets the KeyBlockHeaders field's value.
func (s *ExportTr31KeyBlock) SetWrappingKeyIdentifier(v string) *ExportTr31KeyBlock
SetWrappingKeyIdentifier sets the WrappingKeyIdentifier field's value.
func (s ExportTr31KeyBlock) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportTr31KeyBlock) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExportTr34KeyBlock struct { // The KeyARN of the certificate chain that signs the wrapping key certificate // during TR-34 key export. // // CertificateAuthorityPublicKeyIdentifier is a required field CertificateAuthorityPublicKeyIdentifier *string `min:"7" type:"string" required:"true"` // The export token to initiate key export from Amazon Web Services Payment // Cryptography. It also contains the signing key certificate that will sign // the wrapped key during TR-34 key block generation. Call GetParametersForExport // (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html) // to receive an export token. It expires after 7 days. You can use the same // export token to export multiple keys from the same service account. // // ExportToken is a required field ExportToken *string `type:"string" required:"true"` // The format of key block that Amazon Web Services Payment Cryptography will // use during key export. // // KeyBlockFormat is a required field KeyBlockFormat *string `type:"string" required:"true" enum:"Tr34KeyBlockFormat"` // Optional metadata for export associated with the key material. This data // is signed but transmitted in clear text. KeyBlockHeaders *KeyBlockHeaders `type:"structure"` // A random number value that is unique to the TR-34 key block generated using // 2 pass. The operation will fail, if a random nonce value is not provided // for a TR-34 key block generated using 2 pass. RandomNonce *string `min:"16" type:"string"` // The KeyARN of the wrapping key certificate. Amazon Web Services Payment Cryptography // uses this certificate to wrap the key under export. // // WrappingKeyCertificate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExportTr34KeyBlock's // String and GoString methods. // // WrappingKeyCertificate is a required field WrappingKeyCertificate *string `min:"1" type:"string" required:"true" sensitive:"true"` // contains filtered or unexported fields }
Parameter information for key material export using the asymmetric TR-34 key exchange method.
func (s ExportTr34KeyBlock) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportTr34KeyBlock) SetCertificateAuthorityPublicKeyIdentifier(v string) *ExportTr34KeyBlock
SetCertificateAuthorityPublicKeyIdentifier sets the CertificateAuthorityPublicKeyIdentifier field's value.
func (s *ExportTr34KeyBlock) SetExportToken(v string) *ExportTr34KeyBlock
SetExportToken sets the ExportToken field's value.
func (s *ExportTr34KeyBlock) SetKeyBlockFormat(v string) *ExportTr34KeyBlock
SetKeyBlockFormat sets the KeyBlockFormat field's value.
func (s *ExportTr34KeyBlock) SetKeyBlockHeaders(v *KeyBlockHeaders) *ExportTr34KeyBlock
SetKeyBlockHeaders sets the KeyBlockHeaders field's value.
func (s *ExportTr34KeyBlock) SetRandomNonce(v string) *ExportTr34KeyBlock
SetRandomNonce sets the RandomNonce field's value.
func (s *ExportTr34KeyBlock) SetWrappingKeyCertificate(v string) *ExportTr34KeyBlock
SetWrappingKeyCertificate sets the WrappingKeyCertificate field's value.
func (s ExportTr34KeyBlock) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ExportTr34KeyBlock) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetAliasInput struct { // The alias of the Amazon Web Services Payment Cryptography key. // // AliasName is a required field AliasName *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetAliasInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetAliasInput) SetAliasName(v string) *GetAliasInput
SetAliasName sets the AliasName field's value.
func (s GetAliasInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetAliasOutput struct { // The alias of the Amazon Web Services Payment Cryptography key. // // Alias is a required field Alias *Alias `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s GetAliasOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetAliasOutput) SetAlias(v *Alias) *GetAliasOutput
SetAlias sets the Alias field's value.
func (s GetAliasOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetKeyInput struct { // The KeyARN of the Amazon Web Services Payment Cryptography key. // // KeyIdentifier is a required field KeyIdentifier *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetKeyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetKeyInput) SetKeyIdentifier(v string) *GetKeyInput
SetKeyIdentifier sets the KeyIdentifier field's value.
func (s GetKeyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetKeyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetKeyOutput struct { // The key material, including the immutable and mutable data for the key. // // Key is a required field Key *Key `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s GetKeyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetKeyOutput) SetKey(v *Key) *GetKeyOutput
SetKey sets the Key field's value.
func (s GetKeyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetParametersForExportInput struct { // The key block format type (for example, TR-34 or TR-31) to use during key // material export. Export token is only required for a TR-34 key export, TR34_KEY_BLOCK. // Export token is not required for TR-31 key export. // // KeyMaterialType is a required field KeyMaterialType *string `type:"string" required:"true" enum:"KeyMaterialType"` // The signing key algorithm to generate a signing key certificate. This certificate // signs the wrapped key under export within the TR-34 key block. RSA_2048 is // the only signing key algorithm allowed. // // SigningKeyAlgorithm is a required field SigningKeyAlgorithm *string `type:"string" required:"true" enum:"KeyAlgorithm"` // contains filtered or unexported fields }
func (s GetParametersForExportInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetParametersForExportInput) SetKeyMaterialType(v string) *GetParametersForExportInput
SetKeyMaterialType sets the KeyMaterialType field's value.
func (s *GetParametersForExportInput) SetSigningKeyAlgorithm(v string) *GetParametersForExportInput
SetSigningKeyAlgorithm sets the SigningKeyAlgorithm field's value.
func (s GetParametersForExportInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetParametersForExportInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetParametersForExportOutput struct { // The export token to initiate key export from Amazon Web Services Payment // Cryptography. The export token expires after 7 days. You can use the same // export token to export multiple keys from the same service account. // // ExportToken is a required field ExportToken *string `type:"string" required:"true"` // The validity period of the export token. // // ParametersValidUntilTimestamp is a required field ParametersValidUntilTimestamp *time.Time `type:"timestamp" required:"true"` // The algorithm of the signing key certificate for use in TR-34 key block generation. // RSA_2048 is the only signing key algorithm allowed. // // SigningKeyAlgorithm is a required field SigningKeyAlgorithm *string `type:"string" required:"true" enum:"KeyAlgorithm"` // The signing key certificate in PEM format (base64 encoded) of the public // key for signature within the TR-34 key block. The certificate expires after // 7 days. // // SigningKeyCertificate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GetParametersForExportOutput's // String and GoString methods. // // SigningKeyCertificate is a required field SigningKeyCertificate *string `min:"1" type:"string" required:"true" sensitive:"true"` // The root certificate authority (CA) that signed the signing key certificate // in PEM format (base64 encoded). // // SigningKeyCertificateChain is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GetParametersForExportOutput's // String and GoString methods. // // SigningKeyCertificateChain is a required field SigningKeyCertificateChain *string `min:"1" type:"string" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (s GetParametersForExportOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetParametersForExportOutput) SetExportToken(v string) *GetParametersForExportOutput
SetExportToken sets the ExportToken field's value.
func (s *GetParametersForExportOutput) SetParametersValidUntilTimestamp(v time.Time) *GetParametersForExportOutput
SetParametersValidUntilTimestamp sets the ParametersValidUntilTimestamp field's value.
func (s *GetParametersForExportOutput) SetSigningKeyAlgorithm(v string) *GetParametersForExportOutput
SetSigningKeyAlgorithm sets the SigningKeyAlgorithm field's value.
func (s *GetParametersForExportOutput) SetSigningKeyCertificate(v string) *GetParametersForExportOutput
SetSigningKeyCertificate sets the SigningKeyCertificate field's value.
func (s *GetParametersForExportOutput) SetSigningKeyCertificateChain(v string) *GetParametersForExportOutput
SetSigningKeyCertificateChain sets the SigningKeyCertificateChain field's value.
func (s GetParametersForExportOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetParametersForImportInput struct { // The method to use for key material import. Import token is only required // for TR-34 WrappedKeyBlock (TR34_KEY_BLOCK) and RSA WrappedKeyCryptogram (KEY_CRYPTOGRAM). // // Import token is not required for TR-31, root public key cerificate or trusted // public key certificate. // // KeyMaterialType is a required field KeyMaterialType *string `type:"string" required:"true" enum:"KeyMaterialType"` // The wrapping key algorithm to generate a wrapping key certificate. This certificate // wraps the key under import. // // At this time, RSA_2048 is the allowed algorithm for TR-34 WrappedKeyBlock // import. Additionally, RSA_2048, RSA_3072, RSA_4096 are the allowed algorithms // for RSA WrappedKeyCryptogram import. // // WrappingKeyAlgorithm is a required field WrappingKeyAlgorithm *string `type:"string" required:"true" enum:"KeyAlgorithm"` // contains filtered or unexported fields }
func (s GetParametersForImportInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetParametersForImportInput) SetKeyMaterialType(v string) *GetParametersForImportInput
SetKeyMaterialType sets the KeyMaterialType field's value.
func (s *GetParametersForImportInput) SetWrappingKeyAlgorithm(v string) *GetParametersForImportInput
SetWrappingKeyAlgorithm sets the WrappingKeyAlgorithm field's value.
func (s GetParametersForImportInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetParametersForImportInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetParametersForImportOutput struct { // The import token to initiate key import into Amazon Web Services Payment // Cryptography. The import token expires after 7 days. You can use the same // import token to import multiple keys to the same service account. // // ImportToken is a required field ImportToken *string `type:"string" required:"true"` // The validity period of the import token. // // ParametersValidUntilTimestamp is a required field ParametersValidUntilTimestamp *time.Time `type:"timestamp" required:"true"` // The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or // RSA WrappedKeyCryptogram. // // WrappingKeyAlgorithm is a required field WrappingKeyAlgorithm *string `type:"string" required:"true" enum:"KeyAlgorithm"` // The wrapping key certificate in PEM format (base64 encoded) of the wrapping // key for use within the TR-34 key block. The certificate expires in 7 days. // // WrappingKeyCertificate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GetParametersForImportOutput's // String and GoString methods. // // WrappingKeyCertificate is a required field WrappingKeyCertificate *string `min:"1" type:"string" required:"true" sensitive:"true"` // The Amazon Web Services Payment Cryptography root certificate authority (CA) // that signed the wrapping key certificate in PEM format (base64 encoded). // // WrappingKeyCertificateChain is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GetParametersForImportOutput's // String and GoString methods. // // WrappingKeyCertificateChain is a required field WrappingKeyCertificateChain *string `min:"1" type:"string" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (s GetParametersForImportOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetParametersForImportOutput) SetImportToken(v string) *GetParametersForImportOutput
SetImportToken sets the ImportToken field's value.
func (s *GetParametersForImportOutput) SetParametersValidUntilTimestamp(v time.Time) *GetParametersForImportOutput
SetParametersValidUntilTimestamp sets the ParametersValidUntilTimestamp field's value.
func (s *GetParametersForImportOutput) SetWrappingKeyAlgorithm(v string) *GetParametersForImportOutput
SetWrappingKeyAlgorithm sets the WrappingKeyAlgorithm field's value.
func (s *GetParametersForImportOutput) SetWrappingKeyCertificate(v string) *GetParametersForImportOutput
SetWrappingKeyCertificate sets the WrappingKeyCertificate field's value.
func (s *GetParametersForImportOutput) SetWrappingKeyCertificateChain(v string) *GetParametersForImportOutput
SetWrappingKeyCertificateChain sets the WrappingKeyCertificateChain field's value.
func (s GetParametersForImportOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetPublicKeyCertificateInput struct { // The KeyARN of the asymmetric key pair. // // KeyIdentifier is a required field KeyIdentifier *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetPublicKeyCertificateInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetPublicKeyCertificateInput) SetKeyIdentifier(v string) *GetPublicKeyCertificateInput
SetKeyIdentifier sets the KeyIdentifier field's value.
func (s GetPublicKeyCertificateInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetPublicKeyCertificateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetPublicKeyCertificateOutput struct { // The public key component of the asymmetric key pair in a certificate PEM // format (base64 encoded). It is signed by the root certificate authority (CA). // The certificate expires in 90 days. // // KeyCertificate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GetPublicKeyCertificateOutput's // String and GoString methods. // // KeyCertificate is a required field KeyCertificate *string `min:"1" type:"string" required:"true" sensitive:"true"` // The root certificate authority (CA) that signed the public key certificate // in PEM format (base64 encoded) of the asymmetric key pair. // // KeyCertificateChain is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GetPublicKeyCertificateOutput's // String and GoString methods. // // KeyCertificateChain is a required field KeyCertificateChain *string `min:"1" type:"string" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (s GetPublicKeyCertificateOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetPublicKeyCertificateOutput) SetKeyCertificate(v string) *GetPublicKeyCertificateOutput
SetKeyCertificate sets the KeyCertificate field's value.
func (s *GetPublicKeyCertificateOutput) SetKeyCertificateChain(v string) *GetPublicKeyCertificateOutput
SetKeyCertificateChain sets the KeyCertificateChain field's value.
func (s GetPublicKeyCertificateOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ImportKeyCryptogram struct { // Specifies whether the key is exportable from the service. // // Exportable is a required field Exportable *bool `type:"boolean" required:"true"` // The import token that initiates key import using the asymmetric RSA wrap // and unwrap key exchange method into AWS Payment Cryptography. It expires // after 7 days. You can use the same import token to import multiple keys to // the same service account. // // ImportToken is a required field ImportToken *string `type:"string" required:"true"` // The role of the key, the algorithm it supports, and the cryptographic operations // allowed with the key. This data is immutable after the key is created. // // KeyAttributes is a required field KeyAttributes *KeyAttributes `type:"structure" required:"true"` // The RSA wrapped key cryptogram under import. // // WrappedKeyCryptogram is a required field WrappedKeyCryptogram *string `min:"16" type:"string" required:"true"` // The wrapping spec for the wrapped key cryptogram. WrappingSpec *string `type:"string" enum:"WrappingKeySpec"` // contains filtered or unexported fields }
Parameter information for key material import using asymmetric RSA wrap and unwrap key exchange method.
func (s ImportKeyCryptogram) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportKeyCryptogram) SetExportable(v bool) *ImportKeyCryptogram
SetExportable sets the Exportable field's value.
func (s *ImportKeyCryptogram) SetImportToken(v string) *ImportKeyCryptogram
SetImportToken sets the ImportToken field's value.
func (s *ImportKeyCryptogram) SetKeyAttributes(v *KeyAttributes) *ImportKeyCryptogram
SetKeyAttributes sets the KeyAttributes field's value.
func (s *ImportKeyCryptogram) SetWrappedKeyCryptogram(v string) *ImportKeyCryptogram
SetWrappedKeyCryptogram sets the WrappedKeyCryptogram field's value.
func (s *ImportKeyCryptogram) SetWrappingSpec(v string) *ImportKeyCryptogram
SetWrappingSpec sets the WrappingSpec field's value.
func (s ImportKeyCryptogram) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportKeyCryptogram) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ImportKeyInput struct { // Specifies whether import key is enabled. Enabled *bool `type:"boolean"` // The algorithm that Amazon Web Services Payment Cryptography uses to calculate // the key check value (KCV). It is used to validate the key integrity. // // For TDES keys, the KCV is computed by encrypting 8 bytes, each with value // of zero, with the key to be checked and retaining the 3 highest order bytes // of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm // where the input data is 16 bytes of zero and retaining the 3 highest order // bytes of the encrypted result. KeyCheckValueAlgorithm *string `type:"string" enum:"KeyCheckValueAlgorithm"` // The key or public key certificate type to use during key material import, // for example TR-34 or RootCertificatePublicKey. // // KeyMaterial is a required field KeyMaterial *ImportKeyMaterial `type:"structure" required:"true"` // Assigns one or more tags to the Amazon Web Services Payment Cryptography // key. Use this parameter to tag a key when it is imported. To tag an existing // Amazon Web Services Payment Cryptography key, use the TagResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_TagResource.html) // operation. // // Each tag consists of a tag key and a tag value. Both the tag key and the // tag value are required, but the tag value can be an empty (null) string. // You can't have more than one tag on an Amazon Web Services Payment Cryptography // key with the same tag key. If you specify an existing tag key with a different // tag value, Amazon Web Services Payment Cryptography replaces the current // tag value with the specified one. // // Don't include personal, confidential or sensitive information in this field. // This field may be displayed in plaintext in CloudTrail logs and other output. // // Tagging or untagging an Amazon Web Services Payment Cryptography key can // allow or deny permission to the key. Tags []*Tag `type:"list"` // contains filtered or unexported fields }
func (s ImportKeyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportKeyInput) SetEnabled(v bool) *ImportKeyInput
SetEnabled sets the Enabled field's value.
func (s *ImportKeyInput) SetKeyCheckValueAlgorithm(v string) *ImportKeyInput
SetKeyCheckValueAlgorithm sets the KeyCheckValueAlgorithm field's value.
func (s *ImportKeyInput) SetKeyMaterial(v *ImportKeyMaterial) *ImportKeyInput
SetKeyMaterial sets the KeyMaterial field's value.
func (s *ImportKeyInput) SetTags(v []*Tag) *ImportKeyInput
SetTags sets the Tags field's value.
func (s ImportKeyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportKeyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ImportKeyMaterial struct { // Parameter information for key material import using asymmetric RSA wrap and // unwrap key exchange method. KeyCryptogram *ImportKeyCryptogram `type:"structure"` // Parameter information for root public key certificate import. RootCertificatePublicKey *RootCertificatePublicKey `type:"structure"` // Parameter information for key material import using symmetric TR-31 key exchange // method. Tr31KeyBlock *ImportTr31KeyBlock `type:"structure"` // Parameter information for key material import using the asymmetric TR-34 // key exchange method. Tr34KeyBlock *ImportTr34KeyBlock `type:"structure"` // Parameter information for trusted public key certificate import. TrustedCertificatePublicKey *TrustedCertificatePublicKey `type:"structure"` // contains filtered or unexported fields }
Parameter information for key material import into Amazon Web Services Payment Cryptography using TR-31 or TR-34 or RSA wrap and unwrap key exchange method.
func (s ImportKeyMaterial) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportKeyMaterial) SetKeyCryptogram(v *ImportKeyCryptogram) *ImportKeyMaterial
SetKeyCryptogram sets the KeyCryptogram field's value.
func (s *ImportKeyMaterial) SetRootCertificatePublicKey(v *RootCertificatePublicKey) *ImportKeyMaterial
SetRootCertificatePublicKey sets the RootCertificatePublicKey field's value.
func (s *ImportKeyMaterial) SetTr31KeyBlock(v *ImportTr31KeyBlock) *ImportKeyMaterial
SetTr31KeyBlock sets the Tr31KeyBlock field's value.
func (s *ImportKeyMaterial) SetTr34KeyBlock(v *ImportTr34KeyBlock) *ImportKeyMaterial
SetTr34KeyBlock sets the Tr34KeyBlock field's value.
func (s *ImportKeyMaterial) SetTrustedCertificatePublicKey(v *TrustedCertificatePublicKey) *ImportKeyMaterial
SetTrustedCertificatePublicKey sets the TrustedCertificatePublicKey field's value.
func (s ImportKeyMaterial) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportKeyMaterial) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ImportKeyOutput struct { // The KeyARN of the key material imported within Amazon Web Services Payment // Cryptography. // // Key is a required field Key *Key `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s ImportKeyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportKeyOutput) SetKey(v *Key) *ImportKeyOutput
SetKey sets the Key field's value.
func (s ImportKeyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ImportTr31KeyBlock struct { // The TR-31 wrapped key block to import. // // WrappedKeyBlock is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ImportTr31KeyBlock's // String and GoString methods. // // WrappedKeyBlock is a required field WrappedKeyBlock *string `min:"56" type:"string" required:"true" sensitive:"true"` // The KeyARN of the key that will decrypt or unwrap a TR-31 key block during // import. // // WrappingKeyIdentifier is a required field WrappingKeyIdentifier *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
Parameter information for key material import using symmetric TR-31 key exchange method.
func (s ImportTr31KeyBlock) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportTr31KeyBlock) SetWrappedKeyBlock(v string) *ImportTr31KeyBlock
SetWrappedKeyBlock sets the WrappedKeyBlock field's value.
func (s *ImportTr31KeyBlock) SetWrappingKeyIdentifier(v string) *ImportTr31KeyBlock
SetWrappingKeyIdentifier sets the WrappingKeyIdentifier field's value.
func (s ImportTr31KeyBlock) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportTr31KeyBlock) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ImportTr34KeyBlock struct { // The KeyARN of the certificate chain that signs the signing key certificate // during TR-34 key import. // // CertificateAuthorityPublicKeyIdentifier is a required field CertificateAuthorityPublicKeyIdentifier *string `min:"7" type:"string" required:"true"` // The import token that initiates key import using the asymmetric TR-34 key // exchange method into Amazon Web Services Payment Cryptography. It expires // after 7 days. You can use the same import token to import multiple keys to // the same service account. // // ImportToken is a required field ImportToken *string `type:"string" required:"true"` // The key block format to use during key import. The only value allowed is // X9_TR34_2012. // // KeyBlockFormat is a required field KeyBlockFormat *string `type:"string" required:"true" enum:"Tr34KeyBlockFormat"` // A random number value that is unique to the TR-34 key block generated using // 2 pass. The operation will fail, if a random nonce value is not provided // for a TR-34 key block generated using 2 pass. RandomNonce *string `min:"16" type:"string"` // The public key component in PEM certificate format of the private key that // signs the KDH TR-34 WrappedKeyBlock. // // SigningKeyCertificate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ImportTr34KeyBlock's // String and GoString methods. // // SigningKeyCertificate is a required field SigningKeyCertificate *string `min:"1" type:"string" required:"true" sensitive:"true"` // The TR-34 wrapped key block to import. // // WrappedKeyBlock is a required field WrappedKeyBlock *string `min:"2" type:"string" required:"true"` // contains filtered or unexported fields }
Parameter information for key material import using the asymmetric TR-34 key exchange method.
func (s ImportTr34KeyBlock) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportTr34KeyBlock) SetCertificateAuthorityPublicKeyIdentifier(v string) *ImportTr34KeyBlock
SetCertificateAuthorityPublicKeyIdentifier sets the CertificateAuthorityPublicKeyIdentifier field's value.
func (s *ImportTr34KeyBlock) SetImportToken(v string) *ImportTr34KeyBlock
SetImportToken sets the ImportToken field's value.
func (s *ImportTr34KeyBlock) SetKeyBlockFormat(v string) *ImportTr34KeyBlock
SetKeyBlockFormat sets the KeyBlockFormat field's value.
func (s *ImportTr34KeyBlock) SetRandomNonce(v string) *ImportTr34KeyBlock
SetRandomNonce sets the RandomNonce field's value.
func (s *ImportTr34KeyBlock) SetSigningKeyCertificate(v string) *ImportTr34KeyBlock
SetSigningKeyCertificate sets the SigningKeyCertificate field's value.
func (s *ImportTr34KeyBlock) SetWrappedKeyBlock(v string) *ImportTr34KeyBlock
SetWrappedKeyBlock sets the WrappedKeyBlock field's value.
func (s ImportTr34KeyBlock) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImportTr34KeyBlock) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InternalServerException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
The request processing has failed because of an unknown error, exception, or failure.
func (s *InternalServerException) Code() string
Code returns the exception type name.
func (s *InternalServerException) Error() string
func (s InternalServerException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InternalServerException) Message() string
Message returns the exception's message.
func (s *InternalServerException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InternalServerException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InternalServerException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Key struct { // The date and time when the key was created. // // CreateTimestamp is a required field CreateTimestamp *time.Time `type:"timestamp" required:"true"` // The date and time after which Amazon Web Services Payment Cryptography will // delete the key. This value is present only when KeyState is DELETE_PENDING // and the key is scheduled for deletion. DeletePendingTimestamp *time.Time `type:"timestamp"` // The date and time after which Amazon Web Services Payment Cryptography will // delete the key. This value is present only when when the KeyState is DELETE_COMPLETE // and the Amazon Web Services Payment Cryptography key is deleted. DeleteTimestamp *time.Time `type:"timestamp"` // Specifies whether the key is enabled. // // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` // Specifies whether the key is exportable. This data is immutable after the // key is created. // // Exportable is a required field Exportable *bool `type:"boolean" required:"true"` // The Amazon Resource Name (ARN) of the key. // // KeyArn is a required field KeyArn *string `min:"70" type:"string" required:"true"` // The role of the key, the algorithm it supports, and the cryptographic operations // allowed with the key. This data is immutable after the key is created. // // KeyAttributes is a required field KeyAttributes *KeyAttributes `type:"structure" required:"true"` // The key check value (KCV) is used to check if all parties holding a given // key have the same key or to detect that a key has changed. // // KeyCheckValue is a required field KeyCheckValue *string `min:"4" type:"string" required:"true"` // The algorithm that Amazon Web Services Payment Cryptography uses to calculate // the key check value (KCV). It is used to validate the key integrity. // // For TDES keys, the KCV is computed by encrypting 8 bytes, each with value // of zero, with the key to be checked and retaining the 3 highest order bytes // of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm // where the input data is 16 bytes of zero and retaining the 3 highest order // bytes of the encrypted result. // // KeyCheckValueAlgorithm is a required field KeyCheckValueAlgorithm *string `type:"string" required:"true" enum:"KeyCheckValueAlgorithm"` // The source of the key material. For keys created within Amazon Web Services // Payment Cryptography, the value is AWS_PAYMENT_CRYPTOGRAPHY. For keys imported // into Amazon Web Services Payment Cryptography, the value is EXTERNAL. // // KeyOrigin is a required field KeyOrigin *string `type:"string" required:"true" enum:"KeyOrigin"` // The state of key that is being created or deleted. // // KeyState is a required field KeyState *string `type:"string" required:"true" enum:"KeyState"` // The date and time after which Amazon Web Services Payment Cryptography will // start using the key material for cryptographic operations. UsageStartTimestamp *time.Time `type:"timestamp"` // The date and time after which Amazon Web Services Payment Cryptography will // stop using the key material for cryptographic operations. UsageStopTimestamp *time.Time `type:"timestamp"` // contains filtered or unexported fields }
Metadata about an Amazon Web Services Payment Cryptography key.
func (s Key) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Key) SetCreateTimestamp(v time.Time) *Key
SetCreateTimestamp sets the CreateTimestamp field's value.
func (s *Key) SetDeletePendingTimestamp(v time.Time) *Key
SetDeletePendingTimestamp sets the DeletePendingTimestamp field's value.
func (s *Key) SetDeleteTimestamp(v time.Time) *Key
SetDeleteTimestamp sets the DeleteTimestamp field's value.
func (s *Key) SetEnabled(v bool) *Key
SetEnabled sets the Enabled field's value.
func (s *Key) SetExportable(v bool) *Key
SetExportable sets the Exportable field's value.
func (s *Key) SetKeyArn(v string) *Key
SetKeyArn sets the KeyArn field's value.
func (s *Key) SetKeyAttributes(v *KeyAttributes) *Key
SetKeyAttributes sets the KeyAttributes field's value.
func (s *Key) SetKeyCheckValue(v string) *Key
SetKeyCheckValue sets the KeyCheckValue field's value.
func (s *Key) SetKeyCheckValueAlgorithm(v string) *Key
SetKeyCheckValueAlgorithm sets the KeyCheckValueAlgorithm field's value.
func (s *Key) SetKeyOrigin(v string) *Key
SetKeyOrigin sets the KeyOrigin field's value.
func (s *Key) SetKeyState(v string) *Key
SetKeyState sets the KeyState field's value.
func (s *Key) SetUsageStartTimestamp(v time.Time) *Key
SetUsageStartTimestamp sets the UsageStartTimestamp field's value.
func (s *Key) SetUsageStopTimestamp(v time.Time) *Key
SetUsageStopTimestamp sets the UsageStopTimestamp field's value.
func (s Key) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KeyAttributes struct { // The key algorithm to be use during creation of an Amazon Web Services Payment // Cryptography key. // // For symmetric keys, Amazon Web Services Payment Cryptography supports AES // and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography // supports RSA and ECC_NIST algorithms. // // KeyAlgorithm is a required field KeyAlgorithm *string `type:"string" required:"true" enum:"KeyAlgorithm"` // The type of Amazon Web Services Payment Cryptography key to create, which // determines the classification of the cryptographic method and whether Amazon // Web Services Payment Cryptography key contains a symmetric key or an asymmetric // key pair. // // KeyClass is a required field KeyClass *string `type:"string" required:"true" enum:"KeyClass"` // The list of cryptographic operations that you can perform using the key. // // KeyModesOfUse is a required field KeyModesOfUse *KeyModesOfUse `type:"structure" required:"true"` // The cryptographic usage of an Amazon Web Services Payment Cryptography key // as defined in section A.5.2 of the TR-31 spec. // // KeyUsage is a required field KeyUsage *string `type:"string" required:"true" enum:"KeyUsage"` // contains filtered or unexported fields }
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
func (s KeyAttributes) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KeyAttributes) SetKeyAlgorithm(v string) *KeyAttributes
SetKeyAlgorithm sets the KeyAlgorithm field's value.
func (s *KeyAttributes) SetKeyClass(v string) *KeyAttributes
SetKeyClass sets the KeyClass field's value.
func (s *KeyAttributes) SetKeyModesOfUse(v *KeyModesOfUse) *KeyAttributes
SetKeyModesOfUse sets the KeyModesOfUse field's value.
func (s *KeyAttributes) SetKeyUsage(v string) *KeyAttributes
SetKeyUsage sets the KeyUsage field's value.
func (s KeyAttributes) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KeyAttributes) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type KeyBlockHeaders struct { // Specifies subsequent exportability of the key within the key block after // it is received by the receiving party. It can be used to further restrict // exportability of the key after export from Amazon Web Services Payment Cryptography. // // When set to EXPORTABLE, the key can be subsequently exported by the receiver // under a KEK using TR-31 or TR-34 key block export only. When set to NON_EXPORTABLE, // the key cannot be subsequently exported by the receiver. When set to SENSITIVE, // the key can be exported by the receiver under a KEK using TR-31, TR-34, RSA // wrap and unwrap cryptogram or using a symmetric cryptogram key export method. // For further information refer to ANSI X9.143-2022 (https://webstore.ansi.org/standards/ascx9/ansix91432022). KeyExportability *string `type:"string" enum:"KeyExportability"` // The list of cryptographic operations that you can perform using the key. // The modes of use are defined in section A.5.3 of the TR-31 spec. KeyModesOfUse *KeyModesOfUse `type:"structure"` // Parameter used to indicate the version of the key carried in the key block // or indicate the value carried in the key block is a component of a key. KeyVersion *string `min:"2" type:"string"` // Parameter used to indicate the type of optional data in key block headers. // Refer to ANSI X9.143-2022 (https://webstore.ansi.org/standards/ascx9/ansix91432022) // for information on allowed data type for optional blocks. // // Optional block character limit is 112 characters. For each optional block, // 2 characters are reserved for optional block ID and 2 characters reserved // for optional block length. More than one optional blocks can be included // as long as the combined length does not increase 112 characters. OptionalBlocks map[string]*string `type:"map" sensitive:"true"` // contains filtered or unexported fields }
Optional metadata for export associated with the key material. This data is signed but transmitted in clear text.
func (s KeyBlockHeaders) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KeyBlockHeaders) SetKeyExportability(v string) *KeyBlockHeaders
SetKeyExportability sets the KeyExportability field's value.
func (s *KeyBlockHeaders) SetKeyModesOfUse(v *KeyModesOfUse) *KeyBlockHeaders
SetKeyModesOfUse sets the KeyModesOfUse field's value.
func (s *KeyBlockHeaders) SetKeyVersion(v string) *KeyBlockHeaders
SetKeyVersion sets the KeyVersion field's value.
func (s *KeyBlockHeaders) SetOptionalBlocks(v map[string]*string) *KeyBlockHeaders
SetOptionalBlocks sets the OptionalBlocks field's value.
func (s KeyBlockHeaders) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KeyBlockHeaders) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type KeyModesOfUse struct { // Specifies whether an Amazon Web Services Payment Cryptography key can be // used to decrypt data. Decrypt *bool `type:"boolean"` // Specifies whether an Amazon Web Services Payment Cryptography key can be // used to derive new keys. DeriveKey *bool `type:"boolean"` // Specifies whether an Amazon Web Services Payment Cryptography key can be // used to encrypt data. Encrypt *bool `type:"boolean"` // Specifies whether an Amazon Web Services Payment Cryptography key can be // used to generate and verify other card and PIN verification keys. Generate *bool `type:"boolean"` // Specifies whether an Amazon Web Services Payment Cryptography key has no // special restrictions other than the restrictions implied by KeyUsage. NoRestrictions *bool `type:"boolean"` // Specifies whether an Amazon Web Services Payment Cryptography key can be // used for signing. Sign *bool `type:"boolean"` // Specifies whether an Amazon Web Services Payment Cryptography key can be // used to unwrap other keys. Unwrap *bool `type:"boolean"` // Specifies whether an Amazon Web Services Payment Cryptography key can be // used to verify signatures. Verify *bool `type:"boolean"` // Specifies whether an Amazon Web Services Payment Cryptography key can be // used to wrap other keys. Wrap *bool `type:"boolean"` // contains filtered or unexported fields }
The list of cryptographic operations that you can perform using the key. The modes of use are defined in section A.5.3 of the TR-31 spec.
func (s KeyModesOfUse) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KeyModesOfUse) SetDecrypt(v bool) *KeyModesOfUse
SetDecrypt sets the Decrypt field's value.
func (s *KeyModesOfUse) SetDeriveKey(v bool) *KeyModesOfUse
SetDeriveKey sets the DeriveKey field's value.
func (s *KeyModesOfUse) SetEncrypt(v bool) *KeyModesOfUse
SetEncrypt sets the Encrypt field's value.
func (s *KeyModesOfUse) SetGenerate(v bool) *KeyModesOfUse
SetGenerate sets the Generate field's value.
func (s *KeyModesOfUse) SetNoRestrictions(v bool) *KeyModesOfUse
SetNoRestrictions sets the NoRestrictions field's value.
func (s *KeyModesOfUse) SetSign(v bool) *KeyModesOfUse
SetSign sets the Sign field's value.
func (s *KeyModesOfUse) SetUnwrap(v bool) *KeyModesOfUse
SetUnwrap sets the Unwrap field's value.
func (s *KeyModesOfUse) SetVerify(v bool) *KeyModesOfUse
SetVerify sets the Verify field's value.
func (s *KeyModesOfUse) SetWrap(v bool) *KeyModesOfUse
SetWrap sets the Wrap field's value.
func (s KeyModesOfUse) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KeySummary struct { // Specifies whether the key is enabled. // // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` // Specifies whether the key is exportable. This data is immutable after the // key is created. // // Exportable is a required field Exportable *bool `type:"boolean" required:"true"` // The Amazon Resource Name (ARN) of the key. // // KeyArn is a required field KeyArn *string `min:"70" type:"string" required:"true"` // The role of the key, the algorithm it supports, and the cryptographic operations // allowed with the key. This data is immutable after the key is created. // // KeyAttributes is a required field KeyAttributes *KeyAttributes `type:"structure" required:"true"` // The key check value (KCV) is used to check if all parties holding a given // key have the same key or to detect that a key has changed. // // KeyCheckValue is a required field KeyCheckValue *string `min:"4" type:"string" required:"true"` // The state of an Amazon Web Services Payment Cryptography that is being created // or deleted. // // KeyState is a required field KeyState *string `type:"string" required:"true" enum:"KeyState"` // contains filtered or unexported fields }
Metadata about an Amazon Web Services Payment Cryptography key.
func (s KeySummary) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KeySummary) SetEnabled(v bool) *KeySummary
SetEnabled sets the Enabled field's value.
func (s *KeySummary) SetExportable(v bool) *KeySummary
SetExportable sets the Exportable field's value.
func (s *KeySummary) SetKeyArn(v string) *KeySummary
SetKeyArn sets the KeyArn field's value.
func (s *KeySummary) SetKeyAttributes(v *KeyAttributes) *KeySummary
SetKeyAttributes sets the KeyAttributes field's value.
func (s *KeySummary) SetKeyCheckValue(v string) *KeySummary
SetKeyCheckValue sets the KeyCheckValue field's value.
func (s *KeySummary) SetKeyState(v string) *KeySummary
SetKeyState sets the KeyState field's value.
func (s KeySummary) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListAliasesInput struct { // Use this parameter to specify the maximum number of items to return. When // this value is present, Amazon Web Services Payment Cryptography does not // return more than the specified number of items, but it might return fewer. // // This value is optional. If you include a value, it must be between 1 and // 100, inclusive. If you do not include a value, it defaults to 50. MaxResults *int64 `min:"1" type:"integer"` // Use this parameter in a subsequent request after you receive a response with // truncated results. Set it to the value of NextToken from the truncated response // you just received. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (s ListAliasesInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListAliasesInput) SetMaxResults(v int64) *ListAliasesInput
SetMaxResults sets the MaxResults field's value.
func (s *ListAliasesInput) SetNextToken(v string) *ListAliasesInput
SetNextToken sets the NextToken field's value.
func (s ListAliasesInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListAliasesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListAliasesOutput struct { // The list of aliases. Each alias describes the KeyArn contained within. // // Aliases is a required field Aliases []*Alias `type:"list" required:"true"` // The token for the next set of results, or an empty or null value if there // are no more results. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (s ListAliasesOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListAliasesOutput) SetAliases(v []*Alias) *ListAliasesOutput
SetAliases sets the Aliases field's value.
func (s *ListAliasesOutput) SetNextToken(v string) *ListAliasesOutput
SetNextToken sets the NextToken field's value.
func (s ListAliasesOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListKeysInput struct { // The key state of the keys you want to list. KeyState *string `type:"string" enum:"KeyState"` // Use this parameter to specify the maximum number of items to return. When // this value is present, Amazon Web Services Payment Cryptography does not // return more than the specified number of items, but it might return fewer. // // This value is optional. If you include a value, it must be between 1 and // 100, inclusive. If you do not include a value, it defaults to 50. MaxResults *int64 `min:"1" type:"integer"` // Use this parameter in a subsequent request after you receive a response with // truncated results. Set it to the value of NextToken from the truncated response // you just received. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (s ListKeysInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListKeysInput) SetKeyState(v string) *ListKeysInput
SetKeyState sets the KeyState field's value.
func (s *ListKeysInput) SetMaxResults(v int64) *ListKeysInput
SetMaxResults sets the MaxResults field's value.
func (s *ListKeysInput) SetNextToken(v string) *ListKeysInput
SetNextToken sets the NextToken field's value.
func (s ListKeysInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListKeysInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListKeysOutput struct { // The list of keys created within the caller's Amazon Web Services account // and Amazon Web Services Region. // // Keys is a required field Keys []*KeySummary `type:"list" required:"true"` // The token for the next set of results, or an empty or null value if there // are no more results. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (s ListKeysOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListKeysOutput) SetKeys(v []*KeySummary) *ListKeysOutput
SetKeys sets the Keys field's value.
func (s *ListKeysOutput) SetNextToken(v string) *ListKeysOutput
SetNextToken sets the NextToken field's value.
func (s ListKeysOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListTagsForResourceInput struct { // Use this parameter to specify the maximum number of items to return. When // this value is present, Amazon Web Services Payment Cryptography does not // return more than the specified number of items, but it might return fewer. // // This value is optional. If you include a value, it must be between 1 and // 100, inclusive. If you do not include a value, it defaults to 50. MaxResults *int64 `min:"1" type:"integer"` // Use this parameter in a subsequent request after you receive a response with // truncated results. Set it to the value of NextToken from the truncated response // you just received. NextToken *string `min:"1" type:"string"` // The KeyARN of the key whose tags you are getting. // // ResourceArn is a required field ResourceArn *string `min:"70" type:"string" required:"true"` // contains filtered or unexported fields }
func (s ListTagsForResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceInput) SetMaxResults(v int64) *ListTagsForResourceInput
SetMaxResults sets the MaxResults field's value.
func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput
SetNextToken sets the NextToken field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s ListTagsForResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsForResourceOutput struct { // The token for the next set of results, or an empty or null value if there // are no more results. NextToken *string `min:"1" type:"string"` // The list of tags associated with a ResourceArn. Each tag will list the key-value // pair contained within that tag. // // Tags is a required field Tags []*Tag `type:"list" required:"true"` // contains filtered or unexported fields }
func (s ListTagsForResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput
SetNextToken sets the NextToken field's value.
func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput
SetTags sets the Tags field's value.
func (s ListTagsForResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PaymentCryptography struct { *client.Client }
PaymentCryptography provides the API operation methods for making requests to Payment Cryptography Control Plane. See this package's package overview docs for details on the service.
PaymentCryptography methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New(p client.ConfigProvider, cfgs ...*aws.Config) *PaymentCryptography
New creates a new instance of the PaymentCryptography client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a PaymentCryptography client from just a session. svc := paymentcryptography.New(mySession) // Create a PaymentCryptography client with additional configuration svc := paymentcryptography.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (c *PaymentCryptography) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error)
CreateAlias API operation for Payment Cryptography Control Plane.
Creates an alias, or a friendly name, for an Amazon Web Services Payment Cryptography key. You can use an alias to identify a key in the console and when you call cryptographic operations such as EncryptData (https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_EncryptData.html) or DecryptData (https://docs.aws.amazon.com/payment-cryptography/latest/DataAPIReference/API_DecryptData.html).
You can associate the alias with any key in the same Amazon Web Services Region. Each alias is associated with only one key at a time, but a key can have multiple aliases. You can't create an alias without a key. The alias must be unique in the account and Amazon Web Services Region, but you can create another alias with the same name in a different Amazon Web Services Region.
To change the key that's associated with the alias, call UpdateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html). To delete the alias, call DeleteAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html). These operations don't affect the underlying key. To get the alias that you created, call ListAliases (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html).
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
DeleteAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html)
ListAliases (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html)
UpdateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation CreateAlias for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput)
CreateAliasRequest generates a "aws/request.Request" representing the client's request for the CreateAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateAlias for more information on using the CreateAlias API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateAliasRequest method. req, resp := client.CreateAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) CreateAliasWithContext(ctx aws.Context, input *CreateAliasInput, opts ...request.Option) (*CreateAliasOutput, error)
CreateAliasWithContext is the same as CreateAlias with the addition of the ability to pass a context and additional request options.
See CreateAlias for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) CreateKey(input *CreateKeyInput) (*CreateKeyOutput, error)
CreateKey API operation for Payment Cryptography Control Plane.
Creates an Amazon Web Services Payment Cryptography key, a logical representation of a cryptographic key, that is unique in your account and Amazon Web Services Region. You use keys for cryptographic functions such as encryption and decryption.
In addition to the key material used in cryptographic operations, an Amazon Web Services Payment Cryptography key includes metadata such as the key ARN, key usage, key origin, creation date, description, and key state.
When you create a key, you specify both immutable and mutable data about the key. The immutable data contains key attributes that define the scope and cryptographic operations that you can perform using the key, for example key class (example: SYMMETRIC_KEY), key algorithm (example: TDES_2KEY), key usage (example: TR31_P0_PIN_ENCRYPTION_KEY) and key modes of use (example: Encrypt). For information about valid combinations of key attributes, see Understanding key attributes (https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-validattributes.html) in the Amazon Web Services Payment Cryptography User Guide. The mutable data contained within a key includes usage timestamp and key deletion timestamp and can be modified after creation.
Amazon Web Services Payment Cryptography binds key attributes to keys using key blocks when you store or export them. Amazon Web Services Payment Cryptography stores the key contents wrapped and never stores or transmits them in the clear.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
DeleteKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation CreateKey for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, output *CreateKeyOutput)
CreateKeyRequest generates a "aws/request.Request" representing the client's request for the CreateKey operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateKey for more information on using the CreateKey API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateKeyRequest method. req, resp := client.CreateKeyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) CreateKeyWithContext(ctx aws.Context, input *CreateKeyInput, opts ...request.Option) (*CreateKeyOutput, error)
CreateKeyWithContext is the same as CreateKey with the addition of the ability to pass a context and additional request options.
See CreateKey for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error)
DeleteAlias API operation for Payment Cryptography Control Plane.
Deletes the alias, but doesn't affect the underlying key.
Each key can have multiple aliases. To get the aliases of all keys, use the UpdateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html) operation. To change the alias of a key, first use DeleteAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html) to delete the current alias and then use CreateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html) to create a new alias. To associate an existing alias with a different key, call UpdateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html).
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
CreateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html)
ListAliases (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html)
UpdateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation DeleteAlias for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput)
DeleteAliasRequest generates a "aws/request.Request" representing the client's request for the DeleteAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteAlias for more information on using the DeleteAlias API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteAliasRequest method. req, resp := client.DeleteAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) DeleteAliasWithContext(ctx aws.Context, input *DeleteAliasInput, opts ...request.Option) (*DeleteAliasOutput, error)
DeleteAliasWithContext is the same as DeleteAlias with the addition of the ability to pass a context and additional request options.
See DeleteAlias for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) DeleteKey(input *DeleteKeyInput) (*DeleteKeyOutput, error)
DeleteKey API operation for Payment Cryptography Control Plane.
Deletes the key material and metadata associated with Amazon Web Services Payment Cryptography key.
Key deletion is irreversible. After a key is deleted, you can't perform cryptographic operations using the key. For example, you can't decrypt data that was encrypted by a deleted Amazon Web Services Payment Cryptography key, and the data may become unrecoverable. Because key deletion is destructive, Amazon Web Services Payment Cryptography has a safety mechanism to prevent accidental deletion of a key. When you call this operation, Amazon Web Services Payment Cryptography disables the specified key but doesn't delete it until after a waiting period set using DeleteKeyInDays. The default waiting period is 7 days. During the waiting period, the KeyState is DELETE_PENDING. After the key is deleted, the KeyState is DELETE_COMPLETE.
You should delete a key only when you are sure that you don't need to use it anymore and no other parties are utilizing this key. If you aren't sure, consider deactivating it instead by calling StopKeyUsage (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StopKeyUsage.html).
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
RestoreKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_RestoreKey.html)
StartKeyUsage (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StartKeyUsage.html)
StopKeyUsage (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StopKeyUsage.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation DeleteKey for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) DeleteKeyRequest(input *DeleteKeyInput) (req *request.Request, output *DeleteKeyOutput)
DeleteKeyRequest generates a "aws/request.Request" representing the client's request for the DeleteKey operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteKey for more information on using the DeleteKey API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteKeyRequest method. req, resp := client.DeleteKeyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) DeleteKeyWithContext(ctx aws.Context, input *DeleteKeyInput, opts ...request.Option) (*DeleteKeyOutput, error)
DeleteKeyWithContext is the same as DeleteKey with the addition of the ability to pass a context and additional request options.
See DeleteKey for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) ExportKey(input *ExportKeyInput) (*ExportKeyOutput, error)
ExportKey API operation for Payment Cryptography Control Plane.
Exports a key from Amazon Web Services Payment Cryptography.
Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ExportKey you can export symmetric keys using either symmetric and asymmetric key exchange mechanisms. Using this operation, you can share your Amazon Web Services Payment Cryptography generated keys with other service partners to perform cryptographic operations outside of Amazon Web Services Payment Cryptography
For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm and RSA wrap and unwrap key exchange mechanism. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK). After which you can export working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography.
The TR-34 norm is intended for exchanging 3DES keys only and keys are imported in a WrappedKeyBlock format. Key attributes (such as KeyUsage, KeyAlgorithm, KeyModesOfUse, Exportability) are contained within the key block. With RSA wrap and unwrap, you can exchange both 3DES and AES-128 keys. The keys are imported in a WrappedKeyCryptogram format and you will need to specify the key attributes during import.
You can also use ExportKey functionality to generate and export an IPEK (Initial Pin Encryption Key) from Amazon Web Services Payment Cryptography using either TR-31 or TR-34 export key exchange. IPEK is generated from BDK (Base Derivation Key) and ExportDukptInitialKey attribute KSN (KeySerialNumber). The generated IPEK does not persist within Amazon Web Services Payment Cryptography and has to be re-generated each time during export.
For key exchange using TR-31 or TR-34 key blocks, you can also export optional blocks within the key block header which contain additional attribute information about the key. The KeyVersion within KeyBlockHeaders indicates the version of the key within the key block. Furthermore, KeyExportability within KeyBlockHeaders can be used to further restrict exportability of the key after export from Amazon Web Services Payment Cryptography.
The OptionalBlocks contain the additional data related to the key. For information on data type that can be included within optional blocks, refer to ASC X9.143-2022 (https://webstore.ansi.org/standards/ascx9/ansix91432022).
Data included in key block headers is signed but transmitted in clear text. Sensitive or confidential information should not be included in optional blocks. Refer to ASC X9.143-2022 standard for information on allowed data type.
Using this operation, you can export initial key using TR-34 asymmetric key exchange. You can only export KEK generated within Amazon Web Services Payment Cryptography. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During key export process, KDH is Amazon Web Services Payment Cryptography which initiates key export and KRD is the user receiving the key.
To initiate TR-34 key export, the KRD must obtain an export token by calling GetParametersForExport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html). This operation also generates a key pair for the purpose of key export, signs the key and returns back the signing public key certificate (also known as KDH signing certificate) and root certificate chain. The KDH uses the private key to sign the the export payload and the signing public key certificate is provided to KRD to verify the signature. The KRD can import the root certificate into its Hardware Security Module (HSM), as required. The export token and the associated KDH signing certificate expires after 7 days.
Next the KRD generates a key pair for the the purpose of encrypting the KDH key and provides the public key cerificate (also known as KRD wrapping certificate) back to KDH. The KRD will also import the root cerificate chain into Amazon Web Services Payment Cryptography by calling ImportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html) for RootCertificatePublicKey. The KDH, Amazon Web Services Payment Cryptography, will use the KRD wrapping cerificate to encrypt (wrap) the key under export and signs it with signing private key to generate a TR-34 WrappedKeyBlock. For more information on TR-34 key export, see section Exporting symmetric keys (https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-export.html) in the Amazon Web Services Payment Cryptography User Guide.
Set the following parameters:
ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.
ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export.
KeyMaterial: Use Tr34KeyBlock parameters.
CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KRD wrapping key certificate.
ExportToken: Obtained from KDH by calling GetParametersForImport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html).
WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KRD wrapping key Amazon Web Services Payment Cryptography uses for encryption of the TR-34 export payload. This certificate must be signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography.
When this operation is successful, Amazon Web Services Payment Cryptography returns the KEK or IPEK as a TR-34 WrappedKeyBlock.
Using this operation, you can export initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate export, generate an asymmetric key pair on the receiving HSM and obtain the public key certificate in PEM format (base64 encoded) for the purpose of wrapping and the root certifiate chain. Import the root certificate into Amazon Web Services Payment Cryptography by calling ImportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html) for RootCertificatePublicKey.
Next call ExportKey and set the following parameters:
CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed wrapping key certificate.
KeyMaterial: Set to KeyCryptogram.
WrappingKeyCertificate: The public key certificate in PEM format (base64 encoded) obtained by the receiving HSM and signed by the root certificate (CertificateAuthorityPublicKeyIdentifier) imported into Amazon Web Services Payment Cryptography. The receiving HSM uses its private key component to unwrap the WrappedKeyCryptogram.
When this operation is successful, Amazon Web Services Payment Cryptography returns the WrappedKeyCryptogram.
Using this operation, you can export working keys or IPEK using TR-31 symmetric key exchange. In TR-31, you must use an initial key such as KEK to encrypt or wrap the key under export. To establish a KEK, you can use CreateKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html) or ImportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html).
Set the following parameters:
ExportAttributes: Specify export attributes in case of IPEK export. This parameter is optional for KEK export.
ExportKeyIdentifier: The KeyARN of the KEK or BDK (in case of IPEK) under export.
KeyMaterial: Use Tr31KeyBlock parameters.
When this operation is successful, Amazon Web Services Payment Cryptography returns the working key or IPEK as a TR-31 WrappedKeyBlock.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
GetParametersForExport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html)
ImportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation ExportKey for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) ExportKeyRequest(input *ExportKeyInput) (req *request.Request, output *ExportKeyOutput)
ExportKeyRequest generates a "aws/request.Request" representing the client's request for the ExportKey operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ExportKey for more information on using the ExportKey API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ExportKeyRequest method. req, resp := client.ExportKeyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) ExportKeyWithContext(ctx aws.Context, input *ExportKeyInput, opts ...request.Option) (*ExportKeyOutput, error)
ExportKeyWithContext is the same as ExportKey with the addition of the ability to pass a context and additional request options.
See ExportKey for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) GetAlias(input *GetAliasInput) (*GetAliasOutput, error)
GetAlias API operation for Payment Cryptography Control Plane.
Gets the Amazon Web Services Payment Cryptography key associated with the alias.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
CreateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html)
DeleteAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html)
ListAliases (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html)
UpdateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation GetAlias for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *GetAliasOutput)
GetAliasRequest generates a "aws/request.Request" representing the client's request for the GetAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetAlias for more information on using the GetAlias API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetAliasRequest method. req, resp := client.GetAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) GetAliasWithContext(ctx aws.Context, input *GetAliasInput, opts ...request.Option) (*GetAliasOutput, error)
GetAliasWithContext is the same as GetAlias with the addition of the ability to pass a context and additional request options.
See GetAlias for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) GetKey(input *GetKeyInput) (*GetKeyOutput, error)
GetKey API operation for Payment Cryptography Control Plane.
Gets the key material for an Amazon Web Services Payment Cryptography key, including the immutable and mutable data specified when the key was created.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
CreateKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html)
DeleteKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation GetKey for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
See also, https://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetKey
func (c *PaymentCryptography) GetKeyRequest(input *GetKeyInput) (req *request.Request, output *GetKeyOutput)
GetKeyRequest generates a "aws/request.Request" representing the client's request for the GetKey operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetKey for more information on using the GetKey API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetKeyRequest method. req, resp := client.GetKeyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetKey
func (c *PaymentCryptography) GetKeyWithContext(ctx aws.Context, input *GetKeyInput, opts ...request.Option) (*GetKeyOutput, error)
GetKeyWithContext is the same as GetKey with the addition of the ability to pass a context and additional request options.
See GetKey for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) GetParametersForExport(input *GetParametersForExportInput) (*GetParametersForExportOutput, error)
GetParametersForExport API operation for Payment Cryptography Control Plane.
Gets the export token and the signing key certificate to initiate a TR-34 key export from Amazon Web Services Payment Cryptography.
The signing key certificate signs the wrapped key under export within the TR-34 key payload. The export token and signing key certificate must be in place and operational before calling ExportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ExportKey.html). The export token expires in 7 days. You can use the same export token to export multiple keys from your service account.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
ExportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ExportKey.html)
GetParametersForImport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation GetParametersForExport for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) GetParametersForExportRequest(input *GetParametersForExportInput) (req *request.Request, output *GetParametersForExportOutput)
GetParametersForExportRequest generates a "aws/request.Request" representing the client's request for the GetParametersForExport operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetParametersForExport for more information on using the GetParametersForExport API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetParametersForExportRequest method. req, resp := client.GetParametersForExportRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) GetParametersForExportWithContext(ctx aws.Context, input *GetParametersForExportInput, opts ...request.Option) (*GetParametersForExportOutput, error)
GetParametersForExportWithContext is the same as GetParametersForExport with the addition of the ability to pass a context and additional request options.
See GetParametersForExport for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) GetParametersForImport(input *GetParametersForImportInput) (*GetParametersForImportOutput, error)
GetParametersForImport API operation for Payment Cryptography Control Plane.
Gets the import token and the wrapping key certificate in PEM format (base64 encoded) to initiate a TR-34 WrappedKeyBlock or a RSA WrappedKeyCryptogram import into Amazon Web Services Payment Cryptography.
The wrapping key certificate wraps the key under import. The import token and wrapping key certificate must be in place and operational before calling ImportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html). The import token expires in 7 days. You can use the same import token to import multiple keys into your service account.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
GetParametersForExport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForExport.html)
ImportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ImportKey.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation GetParametersForImport for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) GetParametersForImportRequest(input *GetParametersForImportInput) (req *request.Request, output *GetParametersForImportOutput)
GetParametersForImportRequest generates a "aws/request.Request" representing the client's request for the GetParametersForImport operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetParametersForImport for more information on using the GetParametersForImport API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetParametersForImportRequest method. req, resp := client.GetParametersForImportRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) GetParametersForImportWithContext(ctx aws.Context, input *GetParametersForImportInput, opts ...request.Option) (*GetParametersForImportOutput, error)
GetParametersForImportWithContext is the same as GetParametersForImport with the addition of the ability to pass a context and additional request options.
See GetParametersForImport for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) GetPublicKeyCertificate(input *GetPublicKeyCertificateInput) (*GetPublicKeyCertificateOutput, error)
GetPublicKeyCertificate API operation for Payment Cryptography Control Plane.
Gets the public key certificate of the asymmetric key pair that exists within Amazon Web Services Payment Cryptography.
Unlike the private key of an asymmetric key, which never leaves Amazon Web Services Payment Cryptography unencrypted, callers with GetPublicKeyCertificate permission can download the public key certificate of the asymmetric key. You can share the public key certificate to allow others to encrypt messages and verify signatures outside of Amazon Web Services Payment Cryptography
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation GetPublicKeyCertificate for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) GetPublicKeyCertificateRequest(input *GetPublicKeyCertificateInput) (req *request.Request, output *GetPublicKeyCertificateOutput)
GetPublicKeyCertificateRequest generates a "aws/request.Request" representing the client's request for the GetPublicKeyCertificate operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetPublicKeyCertificate for more information on using the GetPublicKeyCertificate API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetPublicKeyCertificateRequest method. req, resp := client.GetPublicKeyCertificateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) GetPublicKeyCertificateWithContext(ctx aws.Context, input *GetPublicKeyCertificateInput, opts ...request.Option) (*GetPublicKeyCertificateOutput, error)
GetPublicKeyCertificateWithContext is the same as GetPublicKeyCertificate with the addition of the ability to pass a context and additional request options.
See GetPublicKeyCertificate for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) ImportKey(input *ImportKeyInput) (*ImportKeyOutput, error)
ImportKey API operation for Payment Cryptography Control Plane.
Imports symmetric keys and public key certificates in PEM format (base64 encoded) into Amazon Web Services Payment Cryptography.
Amazon Web Services Payment Cryptography simplifies key exchange by replacing the existing paper-based approach with a modern electronic approach. With ImportKey you can import symmetric keys using either symmetric and asymmetric key exchange mechanisms.
For symmetric key exchange, Amazon Web Services Payment Cryptography uses the ANSI X9 TR-31 norm in accordance with PCI PIN guidelines. And for asymmetric key exchange, Amazon Web Services Payment Cryptography supports ANSI X9 TR-34 norm and RSA wrap and unwrap key exchange mechanisms. Asymmetric key exchange methods are typically used to establish bi-directional trust between the two parties exhanging keys and are used for initial key exchange such as Key Encryption Key (KEK) or Zone Master Key (ZMK). After which you can import working keys using symmetric method to perform various cryptographic operations within Amazon Web Services Payment Cryptography.
The TR-34 norm is intended for exchanging 3DES keys only and keys are imported in a WrappedKeyBlock format. Key attributes (such as KeyUsage, KeyAlgorithm, KeyModesOfUse, Exportability) are contained within the key block. With RSA wrap and unwrap, you can exchange both 3DES and AES-128 keys. The keys are imported in a WrappedKeyCryptogram format and you will need to specify the key attributes during import.
You can also import a root public key certificate, used to sign other public key certificates, or a trusted public key certificate under an already established root public key certificate.
You can also import a root public key certificate, used to sign other public key certificates, or a trusted public key certificate under an already established root public key certificate.
Using this operation, you can import the public component (in PEM cerificate format) of your private root key. You can use the imported public root key certificate for digital signatures, for example signing wrapping key or signing key in TR-34, within your Amazon Web Services Payment Cryptography account.
Set the following parameters:
KeyMaterial: RootCertificatePublicKey
KeyClass: PUBLIC_KEY
KeyModesOfUse: Verify
KeyUsage: TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE
PublicKeyCertificate: The public key certificate in PEM format (base64 encoded) of the private root key under import.
The root public key certificate must be in place and operational before you import a trusted public key certificate. Set the following parameters:
KeyMaterial: TrustedCertificatePublicKey
CertificateAuthorityPublicKeyIdentifier: KeyArn of the RootCertificatePublicKey.
KeyModesOfUse and KeyUsage: Corresponding to the cryptographic operations such as wrap, sign, or encrypt that you will allow the trusted public key certificate to perform.
PublicKeyCertificate: The trusted public key certificate in PEM format (base64 encoded) under import.
Using this operation, you can import initial key using TR-34 asymmetric key exchange. In TR-34 terminology, the sending party of the key is called Key Distribution Host (KDH) and the receiving party of the key is called Key Receiving Device (KRD). During the key import process, KDH is the user who initiates the key import and KRD is Amazon Web Services Payment Cryptography who receives the key.
To initiate TR-34 key import, the KDH must obtain an import token by calling GetParametersForImport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html). This operation generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate (also known as KRD wrapping certificate) and the root certificate chain. The KDH must trust and install the KRD wrapping certificate on its HSM and use it to encrypt (wrap) the KDH key during TR-34 WrappedKeyBlock generation. The import token and associated KRD wrapping certificate expires after 7 days.
Next the KDH generates a key pair for the purpose of signing the encrypted KDH key and provides the public certificate of the signing key to Amazon Web Services Payment Cryptography. The KDH will also need to import the root certificate chain of the KDH signing certificate by calling ImportKey for RootCertificatePublicKey. For more information on TR-34 key import, see section Importing symmetric keys (https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-import.html) in the Amazon Web Services Payment Cryptography User Guide.
Set the following parameters:
KeyMaterial: Use Tr34KeyBlock parameters.
CertificateAuthorityPublicKeyIdentifier: The KeyARN of the certificate chain that signed the KDH signing key certificate.
ImportToken: Obtained from KRD by calling GetParametersForImport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html).
WrappedKeyBlock: The TR-34 wrapped key material from KDH. It contains the KDH key under import, wrapped with KRD wrapping certificate and signed by KDH signing private key. This TR-34 key block is typically generated by the KDH Hardware Security Module (HSM) outside of Amazon Web Services Payment Cryptography.
SigningKeyCertificate: The public key certificate in PEM format (base64 encoded) of the KDH signing key generated under the root certificate (CertificateAuthorityPublicKeyIdentifier) imported in Amazon Web Services Payment Cryptography.
Using this operation, you can import initial key using asymmetric RSA wrap and unwrap key exchange method. To initiate import, call GetParametersForImport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html) with KeyMaterial set to KEY_CRYPTOGRAM to generate an import token. This operation also generates an encryption keypair for the purpose of key import, signs the key and returns back the wrapping key certificate in PEM format (base64 encoded) and its root certificate chain. The import token and associated KRD wrapping certificate expires after 7 days.
You must trust and install the wrapping certificate and its certificate chain on the sending HSM and use it to wrap the key under export for WrappedKeyCryptogram generation. Next call ImportKey with KeyMaterial set to KEY_CRYPTOGRAM and provide the ImportToken and KeyAttributes for the key under import.
Amazon Web Services Payment Cryptography uses TR-31 symmetric key exchange norm to import working keys. A KEK must be established within Amazon Web Services Payment Cryptography by using TR-34 key import or by using CreateKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html). To initiate a TR-31 key import, set the following parameters:
KeyMaterial: Use Tr31KeyBlock parameters.
WrappedKeyBlock: The TR-31 wrapped key material. It contains the key under import, encrypted using KEK. The TR-31 key block is typically generated by a HSM outside of Amazon Web Services Payment Cryptography.
WrappingKeyIdentifier: The KeyArn of the KEK that Amazon Web Services Payment Cryptography uses to decrypt or unwrap the key under import.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
ExportKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ExportKey.html)
GetParametersForImport (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_GetParametersForImport.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation ImportKey for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) ImportKeyRequest(input *ImportKeyInput) (req *request.Request, output *ImportKeyOutput)
ImportKeyRequest generates a "aws/request.Request" representing the client's request for the ImportKey operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ImportKey for more information on using the ImportKey API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ImportKeyRequest method. req, resp := client.ImportKeyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) ImportKeyWithContext(ctx aws.Context, input *ImportKeyInput, opts ...request.Option) (*ImportKeyOutput, error)
ImportKeyWithContext is the same as ImportKey with the addition of the ability to pass a context and additional request options.
See ImportKey for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error)
ListAliases API operation for Payment Cryptography Control Plane.
Lists the aliases for all keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of aliases. For more information, see Using aliases (https://docs.aws.amazon.com/payment-cryptography/latest/userguide/keys-managealias.html) in the Amazon Web Services Payment Cryptography User Guide.
This is a paginated operation, which means that each response might contain only a subset of all the aliases. When the response contains only a subset of aliases, it includes a NextToken value. Use this value in a subsequent ListAliases request to get more aliases. When you receive a response with no NextToken (or an empty or null value), that means there are no more aliases to get.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
CreateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html)
DeleteAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html)
UpdateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation ListAliases for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) ListAliasesPages(input *ListAliasesInput, fn func(*ListAliasesOutput, bool) bool) error
ListAliasesPages iterates over the pages of a ListAliases operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListAliases method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListAliases operation. pageNum := 0 err := client.ListAliasesPages(params, func(page *paymentcryptography.ListAliasesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *PaymentCryptography) ListAliasesPagesWithContext(ctx aws.Context, input *ListAliasesInput, fn func(*ListAliasesOutput, bool) bool, opts ...request.Option) error
ListAliasesPagesWithContext same as ListAliasesPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput)
ListAliasesRequest generates a "aws/request.Request" representing the client's request for the ListAliases operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListAliases for more information on using the ListAliases API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListAliasesRequest method. req, resp := client.ListAliasesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) ListAliasesWithContext(ctx aws.Context, input *ListAliasesInput, opts ...request.Option) (*ListAliasesOutput, error)
ListAliasesWithContext is the same as ListAliases with the addition of the ability to pass a context and additional request options.
See ListAliases for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) ListKeys(input *ListKeysInput) (*ListKeysOutput, error)
ListKeys API operation for Payment Cryptography Control Plane.
Lists the keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of keys.
This is a paginated operation, which means that each response might contain only a subset of all the keys. When the response contains only a subset of keys, it includes a NextToken value. Use this value in a subsequent ListKeys request to get more keys. When you receive a response with no NextToken (or an empty or null value), that means there are no more keys to get.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
CreateKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html)
DeleteKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation ListKeys for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) ListKeysPages(input *ListKeysInput, fn func(*ListKeysOutput, bool) bool) error
ListKeysPages iterates over the pages of a ListKeys operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListKeys method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListKeys operation. pageNum := 0 err := client.ListKeysPages(params, func(page *paymentcryptography.ListKeysOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *PaymentCryptography) ListKeysPagesWithContext(ctx aws.Context, input *ListKeysInput, fn func(*ListKeysOutput, bool) bool, opts ...request.Option) error
ListKeysPagesWithContext same as ListKeysPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) ListKeysRequest(input *ListKeysInput) (req *request.Request, output *ListKeysOutput)
ListKeysRequest generates a "aws/request.Request" representing the client's request for the ListKeys operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListKeys for more information on using the ListKeys API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListKeysRequest method. req, resp := client.ListKeysRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) ListKeysWithContext(ctx aws.Context, input *ListKeysInput, opts ...request.Option) (*ListKeysOutput, error)
ListKeysWithContext is the same as ListKeys with the addition of the ability to pass a context and additional request options.
See ListKeys for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
ListTagsForResource API operation for Payment Cryptography Control Plane.
Lists the tags for an Amazon Web Services resource.
This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTagsForResource request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
TagResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_TagResource.html)
UntagResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UntagResource.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation ListTagsForResource for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool) error
ListTagsForResourcePages iterates over the pages of a ListTagsForResource operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListTagsForResource method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListTagsForResource operation. pageNum := 0 err := client.ListTagsForResourcePages(params, func(page *paymentcryptography.ListTagsForResourceOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *PaymentCryptography) ListTagsForResourcePagesWithContext(ctx aws.Context, input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool, opts ...request.Option) error
ListTagsForResourcePagesWithContext same as ListTagsForResourcePages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)
ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListTagsForResourceRequest method. req, resp := client.ListTagsForResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)
ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.
See ListTagsForResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) RestoreKey(input *RestoreKeyInput) (*RestoreKeyOutput, error)
RestoreKey API operation for Payment Cryptography Control Plane.
Cancels a scheduled key deletion during the waiting period. Use this operation to restore a Key that is scheduled for deletion.
During the waiting period, the KeyState is DELETE_PENDING and deletePendingTimestamp contains the date and time after which the Key will be deleted. After Key is restored, the KeyState is CREATE_COMPLETE, and the value for deletePendingTimestamp is removed.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
DeleteKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html)
StartKeyUsage (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StartKeyUsage.html)
StopKeyUsage (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StopKeyUsage.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation RestoreKey for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) RestoreKeyRequest(input *RestoreKeyInput) (req *request.Request, output *RestoreKeyOutput)
RestoreKeyRequest generates a "aws/request.Request" representing the client's request for the RestoreKey operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See RestoreKey for more information on using the RestoreKey API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the RestoreKeyRequest method. req, resp := client.RestoreKeyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) RestoreKeyWithContext(ctx aws.Context, input *RestoreKeyInput, opts ...request.Option) (*RestoreKeyOutput, error)
RestoreKeyWithContext is the same as RestoreKey with the addition of the ability to pass a context and additional request options.
See RestoreKey for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) StartKeyUsage(input *StartKeyUsageInput) (*StartKeyUsageOutput, error)
StartKeyUsage API operation for Payment Cryptography Control Plane.
Enables an Amazon Web Services Payment Cryptography key, which makes it active for cryptographic operations within Amazon Web Services Payment Cryptography
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation StartKeyUsage for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) StartKeyUsageRequest(input *StartKeyUsageInput) (req *request.Request, output *StartKeyUsageOutput)
StartKeyUsageRequest generates a "aws/request.Request" representing the client's request for the StartKeyUsage operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StartKeyUsage for more information on using the StartKeyUsage API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StartKeyUsageRequest method. req, resp := client.StartKeyUsageRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) StartKeyUsageWithContext(ctx aws.Context, input *StartKeyUsageInput, opts ...request.Option) (*StartKeyUsageOutput, error)
StartKeyUsageWithContext is the same as StartKeyUsage with the addition of the ability to pass a context and additional request options.
See StartKeyUsage for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) StopKeyUsage(input *StopKeyUsageInput) (*StopKeyUsageOutput, error)
StopKeyUsage API operation for Payment Cryptography Control Plane.
Disables an Amazon Web Services Payment Cryptography key, which makes it inactive within Amazon Web Services Payment Cryptography.
You can use this operation instead of DeleteKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html) to deactivate a key. You can enable the key in the future by calling StartKeyUsage (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StartKeyUsage.html).
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
DeleteKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteKey.html)
StartKeyUsage (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_StartKeyUsage.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation StopKeyUsage for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) StopKeyUsageRequest(input *StopKeyUsageInput) (req *request.Request, output *StopKeyUsageOutput)
StopKeyUsageRequest generates a "aws/request.Request" representing the client's request for the StopKeyUsage operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StopKeyUsage for more information on using the StopKeyUsage API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StopKeyUsageRequest method. req, resp := client.StopKeyUsageRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) StopKeyUsageWithContext(ctx aws.Context, input *StopKeyUsageInput, opts ...request.Option) (*StopKeyUsageOutput, error)
StopKeyUsageWithContext is the same as StopKeyUsage with the addition of the ability to pass a context and additional request options.
See StopKeyUsage for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
TagResource API operation for Payment Cryptography Control Plane.
Adds or edits tags on an Amazon Web Services Payment Cryptography key.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value. You can also add tags to an Amazon Web Services Payment Cryptography key when you create it with CreateKey (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateKey.html).
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
ListTagsForResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListTagsForResource.html)
UntagResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UntagResource.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation TagResource for usage and error information.
Returned Error Types:
ServiceQuotaExceededException This request would cause a service quota to be exceeded.
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See TagResource for more information on using the TagResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the TagResourceRequest method. req, resp := client.TagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.
See TagResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
UntagResource API operation for Payment Cryptography Control Plane.
Deletes a tag from an Amazon Web Services Payment Cryptography key.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
ListTagsForResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListTagsForResource.html)
TagResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_TagResource.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation UntagResource for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UntagResource for more information on using the UntagResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UntagResourceRequest method. req, resp := client.UntagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.
See UntagResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PaymentCryptography) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error)
UpdateAlias API operation for Payment Cryptography Control Plane.
Associates an existing Amazon Web Services Payment Cryptography alias with a different key. Each alias is associated with only one Amazon Web Services Payment Cryptography key at a time, although a key can have multiple aliases. The alias and the Amazon Web Services Payment Cryptography key must be in the same Amazon Web Services account and Amazon Web Services Region
Cross-account use: This operation can't be used across different Amazon Web Services accounts.
Related operations:
CreateAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html)
DeleteAlias (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html)
ListAliases (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html)
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Payment Cryptography Control Plane's API operation UpdateAlias for usage and error information.
Returned Error Types:
ServiceUnavailableException The service cannot complete the request.
ValidationException The request was denied due to an invalid request error.
ConflictException This request can cause an inconsistent state for the resource.
AccessDeniedException You do not have sufficient access to perform this action.
ResourceNotFoundException The request was denied due to an invalid resource error.
ThrottlingException The request was denied due to request throttling.
InternalServerException The request processing has failed because of an unknown error, exception, or failure.
func (c *PaymentCryptography) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *UpdateAliasOutput)
UpdateAliasRequest generates a "aws/request.Request" representing the client's request for the UpdateAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UpdateAlias for more information on using the UpdateAlias API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UpdateAliasRequest method. req, resp := client.UpdateAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PaymentCryptography) UpdateAliasWithContext(ctx aws.Context, input *UpdateAliasInput, opts ...request.Option) (*UpdateAliasOutput, error)
UpdateAliasWithContext is the same as UpdateAlias with the addition of the ability to pass a context and additional request options.
See UpdateAlias for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type ResourceNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // The string for the exception. ResourceId *string `type:"string"` // contains filtered or unexported fields }
The request was denied due to an invalid resource error.
func (s *ResourceNotFoundException) Code() string
Code returns the exception type name.
func (s *ResourceNotFoundException) Error() string
func (s ResourceNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ResourceNotFoundException) Message() string
Message returns the exception's message.
func (s *ResourceNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ResourceNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RestoreKeyInput struct { // The KeyARN of the key to be restored within Amazon Web Services Payment Cryptography. // // KeyIdentifier is a required field KeyIdentifier *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
func (s RestoreKeyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RestoreKeyInput) SetKeyIdentifier(v string) *RestoreKeyInput
SetKeyIdentifier sets the KeyIdentifier field's value.
func (s RestoreKeyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RestoreKeyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RestoreKeyOutput struct { // The key material of the restored key. The KeyState will change to CREATE_COMPLETE // and value for DeletePendingTimestamp gets removed. // // Key is a required field Key *Key `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s RestoreKeyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RestoreKeyOutput) SetKey(v *Key) *RestoreKeyOutput
SetKey sets the Key field's value.
func (s RestoreKeyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RootCertificatePublicKey struct { // The role of the key, the algorithm it supports, and the cryptographic operations // allowed with the key. This data is immutable after the root public key is // imported. // // KeyAttributes is a required field KeyAttributes *KeyAttributes `type:"structure" required:"true"` // Parameter information for root public key certificate import. // // PublicKeyCertificate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RootCertificatePublicKey's // String and GoString methods. // // PublicKeyCertificate is a required field PublicKeyCertificate *string `min:"1" type:"string" required:"true" sensitive:"true"` // contains filtered or unexported fields }
Parameter information for root public key certificate import.
func (s RootCertificatePublicKey) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RootCertificatePublicKey) SetKeyAttributes(v *KeyAttributes) *RootCertificatePublicKey
SetKeyAttributes sets the KeyAttributes field's value.
func (s *RootCertificatePublicKey) SetPublicKeyCertificate(v string) *RootCertificatePublicKey
SetPublicKeyCertificate sets the PublicKeyCertificate field's value.
func (s RootCertificatePublicKey) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RootCertificatePublicKey) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ServiceQuotaExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
This request would cause a service quota to be exceeded.
func (s *ServiceQuotaExceededException) Code() string
Code returns the exception type name.
func (s *ServiceQuotaExceededException) Error() string
func (s ServiceQuotaExceededException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ServiceQuotaExceededException) Message() string
Message returns the exception's message.
func (s *ServiceQuotaExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ServiceQuotaExceededException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ServiceUnavailableException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
The service cannot complete the request.
func (s *ServiceUnavailableException) Code() string
Code returns the exception type name.
func (s *ServiceUnavailableException) Error() string
func (s ServiceUnavailableException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ServiceUnavailableException) Message() string
Message returns the exception's message.
func (s *ServiceUnavailableException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceUnavailableException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ServiceUnavailableException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ServiceUnavailableException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type StartKeyUsageInput struct { // The KeyArn of the key. // // KeyIdentifier is a required field KeyIdentifier *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
func (s StartKeyUsageInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *StartKeyUsageInput) SetKeyIdentifier(v string) *StartKeyUsageInput
SetKeyIdentifier sets the KeyIdentifier field's value.
func (s StartKeyUsageInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *StartKeyUsageInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartKeyUsageOutput struct { // The KeyARN of the Amazon Web Services Payment Cryptography key activated // for use. // // Key is a required field Key *Key `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s StartKeyUsageOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *StartKeyUsageOutput) SetKey(v *Key) *StartKeyUsageOutput
SetKey sets the Key field's value.
func (s StartKeyUsageOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type StopKeyUsageInput struct { // The KeyArn of the key. // // KeyIdentifier is a required field KeyIdentifier *string `min:"7" type:"string" required:"true"` // contains filtered or unexported fields }
func (s StopKeyUsageInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *StopKeyUsageInput) SetKeyIdentifier(v string) *StopKeyUsageInput
SetKeyIdentifier sets the KeyIdentifier field's value.
func (s StopKeyUsageInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *StopKeyUsageInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopKeyUsageOutput struct { // The KeyARN of the key. // // Key is a required field Key *Key `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s StopKeyUsageOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *StopKeyUsageOutput) SetKey(v *Key) *StopKeyUsageOutput
SetKey sets the Key field's value.
func (s StopKeyUsageOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Tag struct { // The key of the tag. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // The value of the tag. Value *string `type:"string"` // contains filtered or unexported fields }
A structure that contains information about a tag.
func (s Tag) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Tag) SetKey(v string) *Tag
SetKey sets the Key field's value.
func (s *Tag) SetValue(v string) *Tag
SetValue sets the Value field's value.
func (s Tag) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Tag) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceInput struct { // The KeyARN of the key whose tags are being updated. // // ResourceArn is a required field ResourceArn *string `min:"70" type:"string" required:"true"` // One or more tags. Each tag consists of a tag key and a tag value. The tag // value can be an empty (null) string. You can't have more than one tag on // an Amazon Web Services Payment Cryptography key with the same tag key. If // you specify an existing tag key with a different tag value, Amazon Web Services // Payment Cryptography replaces the current tag value with the new one. // // Don't include personal, confidential or sensitive information in this field. // This field may be displayed in plaintext in CloudTrail logs and other output. // // To use this parameter, you must have TagResource (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_TagResource.html) // permission in an IAM policy. // // Don't include personal, confidential or sensitive information in this field. // This field may be displayed in plaintext in CloudTrail logs and other output. // // Tags is a required field Tags []*Tag `type:"list" required:"true"` // contains filtered or unexported fields }
func (s TagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput
SetTags sets the Tags field's value.
func (s TagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput struct {
// contains filtered or unexported fields
}
func (s TagResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s TagResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ThrottlingException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
The request was denied due to request throttling.
func (s *ThrottlingException) Code() string
Code returns the exception type name.
func (s *ThrottlingException) Error() string
func (s ThrottlingException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ThrottlingException) Message() string
Message returns the exception's message.
func (s *ThrottlingException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ThrottlingException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type TrustedCertificatePublicKey struct { // The KeyARN of the root public key certificate or certificate chain that signs // the trusted public key certificate import. // // CertificateAuthorityPublicKeyIdentifier is a required field CertificateAuthorityPublicKeyIdentifier *string `min:"7" type:"string" required:"true"` // The role of the key, the algorithm it supports, and the cryptographic operations // allowed with the key. This data is immutable after a trusted public key is // imported. // // KeyAttributes is a required field KeyAttributes *KeyAttributes `type:"structure" required:"true"` // Parameter information for trusted public key certificate import. // // PublicKeyCertificate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TrustedCertificatePublicKey's // String and GoString methods. // // PublicKeyCertificate is a required field PublicKeyCertificate *string `min:"1" type:"string" required:"true" sensitive:"true"` // contains filtered or unexported fields }
Parameter information for trusted public key certificate import.
func (s TrustedCertificatePublicKey) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *TrustedCertificatePublicKey) SetCertificateAuthorityPublicKeyIdentifier(v string) *TrustedCertificatePublicKey
SetCertificateAuthorityPublicKeyIdentifier sets the CertificateAuthorityPublicKeyIdentifier field's value.
func (s *TrustedCertificatePublicKey) SetKeyAttributes(v *KeyAttributes) *TrustedCertificatePublicKey
SetKeyAttributes sets the KeyAttributes field's value.
func (s *TrustedCertificatePublicKey) SetPublicKeyCertificate(v string) *TrustedCertificatePublicKey
SetPublicKeyCertificate sets the PublicKeyCertificate field's value.
func (s TrustedCertificatePublicKey) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *TrustedCertificatePublicKey) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceInput struct { // The KeyARN of the key whose tags are being removed. // // ResourceArn is a required field ResourceArn *string `min:"70" type:"string" required:"true"` // One or more tag keys. Don't include the tag values. // // If the Amazon Web Services Payment Cryptography key doesn't have the specified // tag key, Amazon Web Services Payment Cryptography doesn't throw an exception // or return a response. To confirm that the operation succeeded, use the ListTagsForResource // (https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListTagsForResource.html) // operation. // // TagKeys is a required field TagKeys []*string `type:"list" required:"true"` // contains filtered or unexported fields }
func (s UntagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput
SetTagKeys sets the TagKeys field's value.
func (s UntagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
func (s UntagResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s UntagResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type UpdateAliasInput struct { // The alias whose associated key is changing. // // AliasName is a required field AliasName *string `min:"7" type:"string" required:"true"` // The KeyARN for the key that you are updating or removing from the alias. KeyArn *string `min:"70" type:"string"` // contains filtered or unexported fields }
func (s UpdateAliasInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateAliasInput) SetAliasName(v string) *UpdateAliasInput
SetAliasName sets the AliasName field's value.
func (s *UpdateAliasInput) SetKeyArn(v string) *UpdateAliasInput
SetKeyArn sets the KeyArn field's value.
func (s UpdateAliasInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateAliasOutput struct { // The alias name. // // Alias is a required field Alias *Alias `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s UpdateAliasOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateAliasOutput) SetAlias(v *Alias) *UpdateAliasOutput
SetAlias sets the Alias field's value.
func (s UpdateAliasOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ValidationException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` // contains filtered or unexported fields }
The request was denied due to an invalid request error.
func (s *ValidationException) Code() string
Code returns the exception type name.
func (s *ValidationException) Error() string
func (s ValidationException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ValidationException) Message() string
Message returns the exception's message.
func (s *ValidationException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ValidationException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ValidationException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type WrappedKey struct { // The key check value (KCV) is used to check if all parties holding a given // key have the same key or to detect that a key has changed. KeyCheckValue *string `min:"4" type:"string"` // The algorithm that Amazon Web Services Payment Cryptography uses to calculate // the key check value (KCV). It is used to validate the key integrity. // // For TDES keys, the KCV is computed by encrypting 8 bytes, each with value // of zero, with the key to be checked and retaining the 3 highest order bytes // of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm // where the input data is 16 bytes of zero and retaining the 3 highest order // bytes of the encrypted result. KeyCheckValueAlgorithm *string `type:"string" enum:"KeyCheckValueAlgorithm"` // Parameter information for generating a wrapped key using TR-31 or TR-34 skey // exchange method. // // KeyMaterial is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by WrappedKey's // String and GoString methods. // // KeyMaterial is a required field KeyMaterial *string `min:"48" type:"string" required:"true" sensitive:"true"` // The key block format of a wrapped key. // // WrappedKeyMaterialFormat is a required field WrappedKeyMaterialFormat *string `type:"string" required:"true" enum:"WrappedKeyMaterialFormat"` // The KeyARN of the wrapped key. // // WrappingKeyArn is a required field WrappingKeyArn *string `min:"70" type:"string" required:"true"` // contains filtered or unexported fields }
Parameter information for generating a WrappedKeyBlock for key exchange.
func (s WrappedKey) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *WrappedKey) SetKeyCheckValue(v string) *WrappedKey
SetKeyCheckValue sets the KeyCheckValue field's value.
func (s *WrappedKey) SetKeyCheckValueAlgorithm(v string) *WrappedKey
SetKeyCheckValueAlgorithm sets the KeyCheckValueAlgorithm field's value.
func (s *WrappedKey) SetKeyMaterial(v string) *WrappedKey
SetKeyMaterial sets the KeyMaterial field's value.
func (s *WrappedKey) SetWrappedKeyMaterialFormat(v string) *WrappedKey
SetWrappedKeyMaterialFormat sets the WrappedKeyMaterialFormat field's value.
func (s *WrappedKey) SetWrappingKeyArn(v string) *WrappedKey
SetWrappingKeyArn sets the WrappingKeyArn field's value.
func (s WrappedKey) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".