client

package
v3.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Overview

This file is auto-generated, don't edit it. Thanks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsymmetricDecryptRequest

type AsymmetricDecryptRequest struct {
	// The decryption algorithm.
	//
	// example:
	//
	// RSAES_OAEP_SHA_1
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The ciphertext that you want to decrypt.
	//
	// > 	- The value is encoded in Base64.
	//
	// > 	- You can call the [AsymmetricEncrypt](~~148131~~) operation to generate the ciphertext.
	//
	// example:
	//
	// BQKP+1zK6+ZEMxTP5qaVzcsgXtWplYBKm0NXdSnB5FzliFxE1bSiu4dnEIlca2JpeH7yz1/S6fed630H+hIH6DoM25fTLNcKj+mFB0Xnh9m2+HN59Mn4qyTfcUeadnfCXSWcGBouhXFwcdd2rJ3n337bzTf4jm659gZu3L0i6PLuxM9p7mqdwO0cKJPfGVfhnfMz+f4alMg79WB/NNyE2lyX7/qxvV49ObNrrJbKSFiz8Djocaf0IESNLMbfYI5bXjWkJlX92DQbKhibtQW8ZOJ//ZC6t0AWcUoKL6QDm/dg5koQalcleRinpB+QadFm894sLbVZ9+N4GVsv1W****==
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The ID of the customer master key (CMK). The ID must be globally unique.
	//
	// >  You can also set this parameter to an alias that is bound to the CMK. For more information, see [Alias overview](~~68522~~).
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The version ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
}

func (AsymmetricDecryptRequest) GoString

func (s AsymmetricDecryptRequest) GoString() string

func (*AsymmetricDecryptRequest) SetAlgorithm

func (*AsymmetricDecryptRequest) SetCiphertextBlob

func (s *AsymmetricDecryptRequest) SetCiphertextBlob(v string) *AsymmetricDecryptRequest

func (*AsymmetricDecryptRequest) SetKeyId

func (*AsymmetricDecryptRequest) SetKeyVersionId

func (AsymmetricDecryptRequest) String

func (s AsymmetricDecryptRequest) String() string

type AsymmetricDecryptResponse

type AsymmetricDecryptResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *AsymmetricDecryptResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (AsymmetricDecryptResponse) GoString

func (s AsymmetricDecryptResponse) GoString() string

func (*AsymmetricDecryptResponse) SetBody

func (*AsymmetricDecryptResponse) SetHeaders

func (*AsymmetricDecryptResponse) SetStatusCode

func (AsymmetricDecryptResponse) String

func (s AsymmetricDecryptResponse) String() string

type AsymmetricDecryptResponseBody

type AsymmetricDecryptResponseBody struct {
	// The ID of the CMK. The ID must be globally unique.
	//
	// >  If you set the KeyId parameter in the request to an alias, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The version ID of the CMK that is used to encrypt the plaintext.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The Base64-encoded plaintext that is generated after decryption.
	//
	// example:
	//
	// SGVsbG8gd29ybGQ=
	Plaintext *string `json:"Plaintext,omitempty" xml:"Plaintext,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 475f1620-b9d3-4d35-b5c6-3fbdd941423d
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (AsymmetricDecryptResponseBody) GoString

func (*AsymmetricDecryptResponseBody) SetKeyId

func (*AsymmetricDecryptResponseBody) SetKeyVersionId

func (*AsymmetricDecryptResponseBody) SetPlaintext

func (*AsymmetricDecryptResponseBody) SetRequestId

func (AsymmetricDecryptResponseBody) String

type AsymmetricEncryptRequest

type AsymmetricEncryptRequest struct {
	// The encryption algorithm.
	//
	// example:
	//
	// RSAES_OAEP_SHA_1
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// >  You can also set this parameter to an alias that is bound to the CMK. For more information, see [Overview of aliases](~~68522~~).
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The version ID of the CMK. The ID must be globally unique.
	//
	// >  You can call the [ListKeyVersions](~~133966~~) operation to query the versions of a CMK. The ID of a version is specified by the KeyVersionId parameter.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The plaintext that you want to encrypt. The plaintext must be Base64-encoded.
	//
	// example:
	//
	// SGVsbG8gd29ybGQ=
	Plaintext *string `json:"Plaintext,omitempty" xml:"Plaintext,omitempty"`
}

func (AsymmetricEncryptRequest) GoString

func (s AsymmetricEncryptRequest) GoString() string

func (*AsymmetricEncryptRequest) SetAlgorithm

func (*AsymmetricEncryptRequest) SetKeyId

func (*AsymmetricEncryptRequest) SetKeyVersionId

func (*AsymmetricEncryptRequest) SetPlaintext

func (AsymmetricEncryptRequest) String

func (s AsymmetricEncryptRequest) String() string

type AsymmetricEncryptResponse

type AsymmetricEncryptResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *AsymmetricEncryptResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (AsymmetricEncryptResponse) GoString

func (s AsymmetricEncryptResponse) GoString() string

func (*AsymmetricEncryptResponse) SetBody

func (*AsymmetricEncryptResponse) SetHeaders

func (*AsymmetricEncryptResponse) SetStatusCode

func (AsymmetricEncryptResponse) String

func (s AsymmetricEncryptResponse) String() string

type AsymmetricEncryptResponseBody

type AsymmetricEncryptResponseBody struct {
	// The Base64-encoded ciphertext that was generated after encryption.
	//
	// example:
	//
	// BQKP+1zK6+ZEMxTP5qaVzcsgXtWplYBKm0NXdSnB5FzliFxE1bSiu4dnEIlca2JpeH7yz1/S6fed630H+hIH6DoM25fTLNcKj+mFB0Xnh9m2+HN59Mn4qyTfcUeadnfCXSWcGBouhXFwcdd2rJ3n337bzTf4jm659gZu3L0i6PLuxM9p7mqdwO0cKJPfGVfhnfMz+f4alMg79WB/NNyE2lyX7/qxvV49ObNrrJbKSFiz8Djocaf0IESNLMbfYI5bXjWkJlX92DQbKhibtQW8ZOJ//ZC6t0AWcUoKL6QDm/dg5koQalcleRinpB+QadFm894sLbVZ9+N4GVsv1Wbjwg==
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// >  If you set the KeyId parameter in the request to an alias, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The version ID of the CMK that is used to encrypt the plaintext.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 475f1620-b9d3-4d35-b5c6-3fbdd941423d
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (AsymmetricEncryptResponseBody) GoString

func (*AsymmetricEncryptResponseBody) SetCiphertextBlob

func (*AsymmetricEncryptResponseBody) SetKeyId

func (*AsymmetricEncryptResponseBody) SetKeyVersionId

func (*AsymmetricEncryptResponseBody) SetRequestId

func (AsymmetricEncryptResponseBody) String

type AsymmetricSignRequest

type AsymmetricSignRequest struct {
	// The version ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// RSA_PSS_SHA_256
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The signature algorithm.
	//
	// example:
	//
	// ZOyIygCyaOW6GjVnihtTFtIS9PNmskdyMlNKiu****=
	Digest *string `json:"Digest,omitempty" xml:"Digest,omitempty"`
	// The operation that you want to perform. Set the value to **AsymmetricSign**.
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the customer master key (CMK). The ID must be globally unique.
	//
	// >  You can also set this parameter to an alias that is bound to the CMK. For more information, see [Alias overview](~~68522~~).
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
}

func (AsymmetricSignRequest) GoString

func (s AsymmetricSignRequest) GoString() string

func (*AsymmetricSignRequest) SetAlgorithm

func (*AsymmetricSignRequest) SetDigest

func (*AsymmetricSignRequest) SetKeyId

func (*AsymmetricSignRequest) SetKeyVersionId

func (s *AsymmetricSignRequest) SetKeyVersionId(v string) *AsymmetricSignRequest

func (AsymmetricSignRequest) String

func (s AsymmetricSignRequest) String() string

type AsymmetricSignResponse

type AsymmetricSignResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *AsymmetricSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (AsymmetricSignResponse) GoString

func (s AsymmetricSignResponse) GoString() string

func (*AsymmetricSignResponse) SetBody

func (*AsymmetricSignResponse) SetHeaders

func (*AsymmetricSignResponse) SetStatusCode

func (AsymmetricSignResponse) String

func (s AsymmetricSignResponse) String() string

type AsymmetricSignResponseBody

type AsymmetricSignResponseBody struct {
	// The version ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The digest that is generated for the original message by using a hash algorithm. The hash algorithm is specified by the Algorithm parameter.
	//
	// > 	- The value is encoded in Base64.
	//
	// > 	- For more information about how to calculate message digests, see the **Preprocess signature: compute a message digest*	- section of the [Generate and verify a signature by using an asymmetric CMK](~~148146~~) topic.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The calculated signature.
	//
	// >  The value is encoded in Base64.
	//
	// example:
	//
	// 475f1620-b9d3-4d35-b5c6-3fbdd941423d
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// >  If you set the KeyId parameter in the request to an alias, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// M2CceNZH00ZgL9ED/ZHFp21YRAvYeZHknJUc207OCZ0N9wNn9As4z2bON3FF3je+1Nu+2+/8Zj50HpMTpzYpMp2R93cYmACCmhaYoKydxylbyGzJR8y9likZRCrkD38lRoS40aBBvv/6iRKzQuo9EGYVcel36cMNg00VmYNBy3pa1rwg3gA4l3cy6kjayZja1WGPkVhrVKsrJMdbpl0ApLjXKuD8rw1n1XLCwCUEL5eLPljTZaAveqdOFQOiZnZEGI27qIiZe7I1fN8tcz6anS/gTM7xRKE++5egEvRWlTQQTJeApnPSiUPA+8ZykNdelQsOQh5SrGoyI4A5pq****==
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (AsymmetricSignResponseBody) GoString

func (s AsymmetricSignResponseBody) GoString() string

func (*AsymmetricSignResponseBody) SetKeyId

func (*AsymmetricSignResponseBody) SetKeyVersionId

func (*AsymmetricSignResponseBody) SetRequestId

func (*AsymmetricSignResponseBody) SetValue

func (AsymmetricSignResponseBody) String

type AsymmetricVerifyRequest

type AsymmetricVerifyRequest struct {
	// The signature algorithm.
	//
	// example:
	//
	// RSA_PSS_SHA_256
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The digest that is generated for the original message by using a hash algorithm. The hash algorithm is specified by the **Algorithm*	- parameter.
	//
	// >  The value is encoded in Base64.
	//
	// example:
	//
	// ZOyIygCyaOW6GjVnihtTFtIS9PNmskdyMlNKiuy****=
	Digest *string `json:"Digest,omitempty" xml:"Digest,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// >  You can also set this parameter to an alias that is bound to the CMK. For more information, see [Overview of aliases](~~68522~~).
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The version ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The signature value to be verified.
	//
	// >  The value is encoded in Base64.
	//
	// example:
	//
	// M2CceNZH00ZgL9ED/ZHFp21YRAvYeZHknJUc207OCZ0N9wNn9As4z2bON3FF3je+1Nu+2+/8Zj50HpMTpzYpMp2R93cYmACCmhaYoKydxylbyGzJR8y9likZRCrkD38lRoS40aBBvv/6iRKzQuo9EGYVcel36cMNg00VmYNBy3pa1rwg3gA4l3cy6kjayZja1WGPkVhrVKsrJMdbpl0ApLjXKuD8rw1n1XLCwCUEL5eLPljTZaAveqdOFQOiZnZEGI27qIiZe7I1fN8tcz6anS/gTM7xRKE++5egEvRWlTQQTJeApnPSiUPA+8ZykNdelQsOQh5SrGoyI4A5pq****==
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (AsymmetricVerifyRequest) GoString

func (s AsymmetricVerifyRequest) GoString() string

func (*AsymmetricVerifyRequest) SetAlgorithm

func (*AsymmetricVerifyRequest) SetDigest

func (*AsymmetricVerifyRequest) SetKeyId

func (*AsymmetricVerifyRequest) SetKeyVersionId

func (*AsymmetricVerifyRequest) SetValue

func (AsymmetricVerifyRequest) String

func (s AsymmetricVerifyRequest) String() string

type AsymmetricVerifyResponse

type AsymmetricVerifyResponse struct {
	Headers    map[string]*string            `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                        `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *AsymmetricVerifyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (AsymmetricVerifyResponse) GoString

func (s AsymmetricVerifyResponse) GoString() string

func (*AsymmetricVerifyResponse) SetBody

func (*AsymmetricVerifyResponse) SetHeaders

func (*AsymmetricVerifyResponse) SetStatusCode

func (AsymmetricVerifyResponse) String

func (s AsymmetricVerifyResponse) String() string

type AsymmetricVerifyResponseBody

type AsymmetricVerifyResponseBody struct {
	// The ID of the CMK. The ID must be globally unique.
	//
	// >  If you set the KeyId parameter in the request to an alias, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The version ID of the CMK that is used to encrypt the plaintext.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 475f1620-b9d3-4d35-b5c6-3fbdd941423d
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// Indicates whether the signature passed the verification.
	//
	// example:
	//
	// true
	Value *bool `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (AsymmetricVerifyResponseBody) GoString

func (s AsymmetricVerifyResponseBody) GoString() string

func (*AsymmetricVerifyResponseBody) SetKeyId

func (*AsymmetricVerifyResponseBody) SetKeyVersionId

func (*AsymmetricVerifyResponseBody) SetRequestId

func (*AsymmetricVerifyResponseBody) SetValue

func (AsymmetricVerifyResponseBody) String

type CancelKeyDeletionRequest

type CancelKeyDeletionRequest struct {
	// The ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (CancelKeyDeletionRequest) GoString

func (s CancelKeyDeletionRequest) GoString() string

func (*CancelKeyDeletionRequest) SetKeyId

func (CancelKeyDeletionRequest) String

func (s CancelKeyDeletionRequest) String() string

type CancelKeyDeletionResponse

type CancelKeyDeletionResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CancelKeyDeletionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CancelKeyDeletionResponse) GoString

func (s CancelKeyDeletionResponse) GoString() string

func (*CancelKeyDeletionResponse) SetBody

func (*CancelKeyDeletionResponse) SetHeaders

func (*CancelKeyDeletionResponse) SetStatusCode

func (CancelKeyDeletionResponse) String

func (s CancelKeyDeletionResponse) String() string

type CancelKeyDeletionResponseBody

type CancelKeyDeletionResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3da5b8cc-8107-40ac-a170-793cd181d7b7
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CancelKeyDeletionResponseBody) GoString

func (*CancelKeyDeletionResponseBody) SetRequestId

func (CancelKeyDeletionResponseBody) String

type CertificatePrivateKeyDecryptRequest

type CertificatePrivateKeyDecryptRequest struct {
	// The encryption algorithm. Valid values:
	//
	// 	- RSAES_OAEP_SHA\_1
	//
	// 	- RSAES_OAEP_SHA\_256
	//
	// 	- SM2PKE
	//
	// > The SM2PKE encryption algorithm is supported only in regions in mainland China. In these regions, managed hardware security modules (HSMs) are used. For more information, see [Managed HSM overview](~~125803~~).
	//
	// example:
	//
	// RSAES_OAEP_SHA_256
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The ID of the certificate. The ID must be globally unique in Certificates Manager.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The data that you want to decrypt.
	//
	// The value is encoded in Base64.
	//
	// example:
	//
	// ZOyIygCyaOW6Gj****MlNKiuyjfzw=
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
}

func (CertificatePrivateKeyDecryptRequest) GoString

func (*CertificatePrivateKeyDecryptRequest) SetAlgorithm

func (*CertificatePrivateKeyDecryptRequest) SetCertificateId

func (*CertificatePrivateKeyDecryptRequest) SetCiphertextBlob

func (CertificatePrivateKeyDecryptRequest) String

type CertificatePrivateKeyDecryptResponse

type CertificatePrivateKeyDecryptResponse struct {
	Headers    map[string]*string                        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CertificatePrivateKeyDecryptResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CertificatePrivateKeyDecryptResponse) GoString

func (*CertificatePrivateKeyDecryptResponse) SetHeaders

func (*CertificatePrivateKeyDecryptResponse) SetStatusCode

func (CertificatePrivateKeyDecryptResponse) String

type CertificatePrivateKeyDecryptResponseBody

type CertificatePrivateKeyDecryptResponseBody struct {
	// The ID of the certificate.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The plaintext after data is decrypted.
	//
	// The value is encoded in Base64.
	//
	// example:
	//
	// VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4
	Plaintext *string `json:"Plaintext,omitempty" xml:"Plaintext,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 5979d897-d69f-4fc9-87dd-f3bb73c40b80
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CertificatePrivateKeyDecryptResponseBody) GoString

func (*CertificatePrivateKeyDecryptResponseBody) SetCertificateId

func (*CertificatePrivateKeyDecryptResponseBody) SetPlaintext

func (*CertificatePrivateKeyDecryptResponseBody) SetRequestId

func (CertificatePrivateKeyDecryptResponseBody) String

type CertificatePrivateKeySignRequest

type CertificatePrivateKeySignRequest struct {
	// The signature algorithm. Valid values:
	//
	// 	- RSA_PKCS1\_SHA\_256
	//
	// 	- RSA_PSS_SHA\_256
	//
	// 	- ECDSA_SHA\_256
	//
	// 	- SM2DSA
	//
	// >	- The SM2DSA signature algorithm is supported only in regions where managed hardware security modules (HSMs) are used in mainland China. For more information, see [Managed HSM overview](~~125803~~).
	//
	// example:
	//
	// ECDSA_SHA_256
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The ID of the certificate. The ID must be globally unique in Certificates Manager.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The data to be signed.
	//
	// The value is encoded in Base64. For example, if the hexadecimal data that you want to sign is `[0x31, 0x32, 0x33, 0x34]`, the Base64-encoded data is `MTIzNA==`.
	//
	// If the MessageType parameter is set to RAW, the size of the data must be less than or equal to 4 KB.
	//
	// If the size of the data is greater than 4 KB, you can set the MessageType parameter to DIGEST and set the Message parameter to the digest of the data. The digest is also called hash value. You can compute the digest of the data on an on-premises machine. Certificates Manager uses the digest that you compute in your own certificate application system. The message digest algorithm that you use must match the specified signature algorithm. Comply with the following mapping between signature algorithms and message digest algorithms:
	//
	// 	- If the signature algorithm is RSA_PKCS1\_SHA\_256, RSA_PSS_SHA\_256, or ECDSA_SHA\_256, the message digest algorithm must be SHA-256.
	//
	// 	- If the signature algorithm is SM2DSA, the message digest algorithm must be SM3.
	//
	// >  If the key type of the certificate is EC_SM2 and the MessageType parameter is set to DIGEST, the value of the Message parameter is `e` that is described in GB/T 32918.2-2016 6.1.
	//
	// example:
	//
	// VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The type of the message. Valid values:
	//
	// 	- RAW: the raw data. This is the default value.
	//
	// 	- DIGEST: the message digest (hash value) of the raw data.
	//
	// example:
	//
	// RAW
	MessageType *string `json:"MessageType,omitempty" xml:"MessageType,omitempty"`
}

func (CertificatePrivateKeySignRequest) GoString

func (*CertificatePrivateKeySignRequest) SetAlgorithm

func (*CertificatePrivateKeySignRequest) SetCertificateId

func (*CertificatePrivateKeySignRequest) SetMessage

func (*CertificatePrivateKeySignRequest) SetMessageType

func (CertificatePrivateKeySignRequest) String

type CertificatePrivateKeySignResponse

type CertificatePrivateKeySignResponse struct {
	Headers    map[string]*string                     `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CertificatePrivateKeySignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CertificatePrivateKeySignResponse) GoString

func (*CertificatePrivateKeySignResponse) SetHeaders

func (*CertificatePrivateKeySignResponse) SetStatusCode

func (CertificatePrivateKeySignResponse) String

type CertificatePrivateKeySignResponseBody

type CertificatePrivateKeySignResponseBody struct {
	// The ID of the certificate.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 5979d897-d69f-4fc9-87dd-f3bb73c40b80
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The signature value.
	//
	// The value is encoded in Base64.
	//
	// example:
	//
	// ZOyIygCyaOW6Gj****MlNKiuyjfzw=
	SignatureValue *string `json:"SignatureValue,omitempty" xml:"SignatureValue,omitempty"`
}

func (CertificatePrivateKeySignResponseBody) GoString

func (*CertificatePrivateKeySignResponseBody) SetCertificateId

func (*CertificatePrivateKeySignResponseBody) SetRequestId

func (*CertificatePrivateKeySignResponseBody) SetSignatureValue

func (CertificatePrivateKeySignResponseBody) String

type CertificatePublicKeyEncryptRequest

type CertificatePublicKeyEncryptRequest struct {
	// The encryption algorithm. Valid values:
	//
	// 	- RSAES_OAEP_SHA\_1
	//
	// 	- RSAES_OAEP_SHA\_256
	//
	// 	- SM2PKE
	//
	// >The SM2PKE encryption algorithm is supported only in regions in mainland China. In these regions, managed hardware security modules (HSMs) are used. For more information, see [Managed HSM overview](~~125803~~).
	//
	// example:
	//
	// RSAES_OAEP_SHA_256
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The ID of the certificate. The ID must be globally unique in Certificates Manager.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The data that you want to encrypt.
	//
	// The value is encoded in Base64. For example, if the hexadecimal data that you want to encrypt is `[0x31, 0x32, 0x33, 0x34]`, the Base64-encoded data is `MTIzNA==`.
	//
	// The size of data that can be encrypted varies based on the encryption algorithm that you use:
	//
	// 	- RSAES_OAEP_SHA\_1: 214 bytes
	//
	// 	- RSAES_OAEP_SHA\_256: 190 bytes
	//
	// 	- SM2PKE: 6,047 bytes
	//
	// If the size of data that you want to encrypt exceeds the preceding limits, you can call the [GenerateDataKey](~~28948~~) operation to generate a data key to encrypt the data. Then, call the CertificatePublicKeyEncrypt operation to encrypt the data key.
	//
	// example:
	//
	// VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=
	Plaintext *string `json:"Plaintext,omitempty" xml:"Plaintext,omitempty"`
}

func (CertificatePublicKeyEncryptRequest) GoString

func (*CertificatePublicKeyEncryptRequest) SetAlgorithm

func (*CertificatePublicKeyEncryptRequest) SetCertificateId

func (*CertificatePublicKeyEncryptRequest) SetPlaintext

func (CertificatePublicKeyEncryptRequest) String

type CertificatePublicKeyEncryptResponse

type CertificatePublicKeyEncryptResponse struct {
	Headers    map[string]*string                       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CertificatePublicKeyEncryptResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CertificatePublicKeyEncryptResponse) GoString

func (*CertificatePublicKeyEncryptResponse) SetHeaders

func (*CertificatePublicKeyEncryptResponse) SetStatusCode

func (CertificatePublicKeyEncryptResponse) String

type CertificatePublicKeyEncryptResponseBody

type CertificatePublicKeyEncryptResponseBody struct {
	// The ID of the certificate.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The ciphertext.
	//
	// The value is encoded in Base64.
	//
	// example:
	//
	// ZOyIygCyaOW6Gj****MlNKiuyjfzw=
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 5979d897-d69f-4fc9-87dd-f3bb73c40b80
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CertificatePublicKeyEncryptResponseBody) GoString

func (*CertificatePublicKeyEncryptResponseBody) SetCertificateId

func (*CertificatePublicKeyEncryptResponseBody) SetCiphertextBlob

func (*CertificatePublicKeyEncryptResponseBody) SetRequestId

func (CertificatePublicKeyEncryptResponseBody) String

type CertificatePublicKeyVerifyRequest

type CertificatePublicKeyVerifyRequest struct {
	// The signature algorithm. Valid values:
	//
	// 	- RSA_PKCS1\_SHA\_256
	//
	// 	- RSA_PSS_SHA\_256
	//
	// 	- ECDSA_SHA\_256
	//
	// 	- SM2DSA
	//
	// > The SM2DSA signature algorithm is supported only in regions where managed hardware security modules (HSMs) are used in the Chinese mainland. For more information, see [Managed HSM overview](~~125803~~).
	//
	// example:
	//
	// ECDSA_SHA_256
	Algorithm *string `json:"Algorithm,omitempty" xml:"Algorithm,omitempty"`
	// The ID of the certificate. The ID must be globally unique in Certificates Manager.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The raw data that is signed.
	//
	// The value is encoded in Base64. For example, if the raw data in the hexadecimal format is `[0x31, 0x32, 0x33, 0x34]`, set this parameter to the Base64-encoded value `MTIzNA==`.
	//
	// If the MessageType parameter is set to RAW, the size of the data must be less than or equal to 4 KB.
	//
	// If the size of the data is greater than 4 KB, you can set the MessageType parameter to DIGEST and set the Message parameter to the digest of the data. The digest is also called hash value. You can compute the digest of the data on an on-premises device. Certificates Manager uses the digest that you compute in your own certificate application system. The message digest algorithm that you use must match the specified signature algorithm. Comply with the following mapping between signature algorithms and message digest algorithms:
	//
	// 	- If the signature algorithm is RSA_PKCS1\_SHA\_256, RSA_PSS_SHA\_256, or ECDSA_SHA\_256, the message digest algorithm must be SHA-256.
	//
	// 	- If the signature algorithm is SM2DSA, the message digest algorithm must be SM3.
	//
	// >  If the key type of the certificate is EC_SM2 and the MessageType parameter is set to DIGEST, the value of the Message parameter is `e` that is described in GB/T 32918.2-2016 6.1.
	//
	// example:
	//
	// VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The type of the message. Valid values:
	//
	// 	- RAW: the raw data. This is the default value.
	//
	// 	- DIGEST: the message digest (hash value) of the raw data.
	//
	// example:
	//
	// RAW
	MessageType *string `json:"MessageType,omitempty" xml:"MessageType,omitempty"`
	// The signature value.
	//
	// The value is encoded in Base64.
	//
	// example:
	//
	// ZOyIygCyaOW6Gj****MlNKiuyjfzw=
	SignatureValue *string `json:"SignatureValue,omitempty" xml:"SignatureValue,omitempty"`
}

func (CertificatePublicKeyVerifyRequest) GoString

func (*CertificatePublicKeyVerifyRequest) SetAlgorithm

func (*CertificatePublicKeyVerifyRequest) SetCertificateId

func (*CertificatePublicKeyVerifyRequest) SetMessage

func (*CertificatePublicKeyVerifyRequest) SetMessageType

func (*CertificatePublicKeyVerifyRequest) SetSignatureValue

func (CertificatePublicKeyVerifyRequest) String

type CertificatePublicKeyVerifyResponse

type CertificatePublicKeyVerifyResponse struct {
	Headers    map[string]*string                      `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                  `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CertificatePublicKeyVerifyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CertificatePublicKeyVerifyResponse) GoString

func (*CertificatePublicKeyVerifyResponse) SetHeaders

func (*CertificatePublicKeyVerifyResponse) SetStatusCode

func (CertificatePublicKeyVerifyResponse) String

type CertificatePublicKeyVerifyResponseBody

type CertificatePublicKeyVerifyResponseBody struct {
	// The ID of the certificate.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 5979d897-d69f-4fc9-87dd-f3bb73c40b80
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The verification result. Valid values:
	//
	// 	- true: The signature is valid.
	//
	// 	- false: The signature is invalid.
	//
	// example:
	//
	// true
	SignatureValid *bool `json:"SignatureValid,omitempty" xml:"SignatureValid,omitempty"`
}

func (CertificatePublicKeyVerifyResponseBody) GoString

func (*CertificatePublicKeyVerifyResponseBody) SetCertificateId

func (*CertificatePublicKeyVerifyResponseBody) SetRequestId

func (*CertificatePublicKeyVerifyResponseBody) SetSignatureValid

func (CertificatePublicKeyVerifyResponseBody) String

type Client

type Client struct {
	openapi.Client
}

func NewClient

func NewClient(config *openapi.Config) (*Client, error)

func (*Client) AsymmetricDecrypt

func (client *Client) AsymmetricDecrypt(request *AsymmetricDecryptRequest) (_result *AsymmetricDecryptResponse, _err error)

Description:

This operation supports only asymmetric keys for which the **Usage* - parameter is set to **ENCRYPT/DECRYPT**. The following table lists supported encryption algorithms.

| KeySpec | Algorithm | Description | Maximum length in bytes |

| ------- | --------- | ----------- | ----------------------- |

| RSA_2048 | RSAES_OAEP_SHA_256 | RSAES-OAEP using SHA-256 and MGF1 with SHA-256 | 256 |

| RSA_2048 | RSAES_OAEP_SHA_1 | RSAES-OAEP using SHA1 and MGF1 with SHA1 | 256 |

| RSA_3072 | RSAES_OAEP_SHA_256 | RSAES-OAEP using SHA-256 and MGF1 with SHA-256 | 384 |

| RSA_3072 | RSAES_OAEP_SHA_1 | RSAES-OAEP using SHA1 and MGF1 with SHA1 | 384 |

| EC_SM2 | SM2PKE | SM2 public key encryption algorithm based on elliptic curves | 6144 |

In this example, the asymmetric key whose ID is `5c438b18-05be-40ad-b6c2-3be6752c****` and version ID is `2ab1a983-7072-4bbc-a582-584b5bd8****` and the decryption algorithm `RSAES_OAEP_SHA_1` are used to decrypt the ciphertext `BQKP+1zK6+ZEMxTP5qaVzcsgXtWplYBKm0NXdSnB5FzliFxE1bSiu4dnEIlca2JpeH7yz1/S6fed630H+hIH6DoM25fTLNcKj+mFB0Xnh9m2+HN59Mn4qyTfcUeadnfCXSWcGBouhXFwcdd2rJ3n337bzTf4jm659gZu3L0i6PLuxM9p7mqdwO0cKJPfGVfhnfMz+f4alMg79WB/NNyE2lyX7/qxvV49ObNrrJbKSFiz8Djocaf0IESNLMbfYI5bXjWkJlX92DQbKhibtQW8ZOJ//ZC6t0AWcUoKL6QDm/dg5koQalcleRinpB+QadFm894sLbVZ9+N4GVsv1W****==`.

@param request - AsymmetricDecryptRequest

@return AsymmetricDecryptResponse

func (*Client) AsymmetricDecryptWithOptions

func (client *Client) AsymmetricDecryptWithOptions(request *AsymmetricDecryptRequest, runtime *util.RuntimeOptions) (_result *AsymmetricDecryptResponse, _err error)

Description:

This operation supports only asymmetric keys for which the **Usage* - parameter is set to **ENCRYPT/DECRYPT**. The following table lists supported encryption algorithms.

| KeySpec | Algorithm | Description | Maximum length in bytes |

| ------- | --------- | ----------- | ----------------------- |

| RSA_2048 | RSAES_OAEP_SHA_256 | RSAES-OAEP using SHA-256 and MGF1 with SHA-256 | 256 |

| RSA_2048 | RSAES_OAEP_SHA_1 | RSAES-OAEP using SHA1 and MGF1 with SHA1 | 256 |

| RSA_3072 | RSAES_OAEP_SHA_256 | RSAES-OAEP using SHA-256 and MGF1 with SHA-256 | 384 |

| RSA_3072 | RSAES_OAEP_SHA_1 | RSAES-OAEP using SHA1 and MGF1 with SHA1 | 384 |

| EC_SM2 | SM2PKE | SM2 public key encryption algorithm based on elliptic curves | 6144 |

In this example, the asymmetric key whose ID is `5c438b18-05be-40ad-b6c2-3be6752c****` and version ID is `2ab1a983-7072-4bbc-a582-584b5bd8****` and the decryption algorithm `RSAES_OAEP_SHA_1` are used to decrypt the ciphertext `BQKP+1zK6+ZEMxTP5qaVzcsgXtWplYBKm0NXdSnB5FzliFxE1bSiu4dnEIlca2JpeH7yz1/S6fed630H+hIH6DoM25fTLNcKj+mFB0Xnh9m2+HN59Mn4qyTfcUeadnfCXSWcGBouhXFwcdd2rJ3n337bzTf4jm659gZu3L0i6PLuxM9p7mqdwO0cKJPfGVfhnfMz+f4alMg79WB/NNyE2lyX7/qxvV49ObNrrJbKSFiz8Djocaf0IESNLMbfYI5bXjWkJlX92DQbKhibtQW8ZOJ//ZC6t0AWcUoKL6QDm/dg5koQalcleRinpB+QadFm894sLbVZ9+N4GVsv1W****==`.

@param request - AsymmetricDecryptRequest

@param runtime - runtime options for this request RuntimeOptions

@return AsymmetricDecryptResponse

func (*Client) AsymmetricEncrypt

func (client *Client) AsymmetricEncrypt(request *AsymmetricEncryptRequest) (_result *AsymmetricEncryptResponse, _err error)

Description:

This operation is supported only for asymmetric keys for which the **Usage* - parameter is set to **ENCRYPT/DECRYPT**. The following table lists the supported encryption algorithms:

| KeySpec | Algorithm | Description | Maximum number of bytes that can be encrypted |

| ------- | --------- | ----------- | --------------------------------------------- |

| RSA_2048 | RSAES_OAEP_SHA_256 | RSAES-OAEP using SHA-256 and MGF1 with SHA-256 | 190 |

| RSA_2048 | RSAES_OAEP_SHA_1 | RSAES-OAEP using SHA1 and MGF1 with SHA1 | 214 |

| RSA_3072 | RSAES_OAEP_SHA_256 | RSAES-OAEP using SHA-256 and MGF1 with SHA-256 | 318 |

| RSA_3072 | RSAES_OAEP_SHA_1 | RSAES-OAEP using SHA1 and MGF1 with SHA1 | 342 |

| EC_SM2 | SM2PKE | SM2 public key encryption algorithm based on elliptic curves | 6047 |

You can use the asymmetric CMK whose ID is `5c438b18-05be-40ad-b6c2-3be6752c****` and version ID is `2ab1a983-7072-4bbc-a582-584b5bd8****` and the algorithm `RSAES_OAEP_SHA_1` to encrypt the plaintext `SGVsbG8gd29ybGQ=` based on the parameter settings provided in this topic.

@param request - AsymmetricEncryptRequest

@return AsymmetricEncryptResponse

func (*Client) AsymmetricEncryptWithOptions

func (client *Client) AsymmetricEncryptWithOptions(request *AsymmetricEncryptRequest, runtime *util.RuntimeOptions) (_result *AsymmetricEncryptResponse, _err error)

Description:

This operation is supported only for asymmetric keys for which the **Usage* - parameter is set to **ENCRYPT/DECRYPT**. The following table lists the supported encryption algorithms:

| KeySpec | Algorithm | Description | Maximum number of bytes that can be encrypted |

| ------- | --------- | ----------- | --------------------------------------------- |

| RSA_2048 | RSAES_OAEP_SHA_256 | RSAES-OAEP using SHA-256 and MGF1 with SHA-256 | 190 |

| RSA_2048 | RSAES_OAEP_SHA_1 | RSAES-OAEP using SHA1 and MGF1 with SHA1 | 214 |

| RSA_3072 | RSAES_OAEP_SHA_256 | RSAES-OAEP using SHA-256 and MGF1 with SHA-256 | 318 |

| RSA_3072 | RSAES_OAEP_SHA_1 | RSAES-OAEP using SHA1 and MGF1 with SHA1 | 342 |

| EC_SM2 | SM2PKE | SM2 public key encryption algorithm based on elliptic curves | 6047 |

You can use the asymmetric CMK whose ID is `5c438b18-05be-40ad-b6c2-3be6752c****` and version ID is `2ab1a983-7072-4bbc-a582-584b5bd8****` and the algorithm `RSAES_OAEP_SHA_1` to encrypt the plaintext `SGVsbG8gd29ybGQ=` based on the parameter settings provided in this topic.

@param request - AsymmetricEncryptRequest

@param runtime - runtime options for this request RuntimeOptions

@return AsymmetricEncryptResponse

func (*Client) AsymmetricSign

func (client *Client) AsymmetricSign(request *AsymmetricSignRequest) (_result *AsymmetricSignResponse, _err error)

Description:

Generates a signature by using an asymmetric key.

@param request - AsymmetricSignRequest

@return AsymmetricSignResponse

func (*Client) AsymmetricSignWithOptions

func (client *Client) AsymmetricSignWithOptions(request *AsymmetricSignRequest, runtime *util.RuntimeOptions) (_result *AsymmetricSignResponse, _err error)

Description:

Generates a signature by using an asymmetric key.

@param request - AsymmetricSignRequest

@param runtime - runtime options for this request RuntimeOptions

@return AsymmetricSignResponse

func (*Client) AsymmetricVerify

func (client *Client) AsymmetricVerify(request *AsymmetricVerifyRequest) (_result *AsymmetricVerifyResponse, _err error)

Description:

This operation supports only asymmetric keys for which the **Usage* - parameter is set to **SIGN/VERIFY**. The following table describes the supported signature algorithms.

| KeySpec | Algorithm | Description |

| ------- | --------- | ----------- |

| RSA_2048 | RSA_PSS_SHA_256 | RSASSA-PSS using SHA-256 and MGF1 with SHA-256 |

| RSA_2048 | RSA_PKCS1_SHA_256 | RSASSA-PKCS1-v1_5 using SHA-256 |

| RSA_3072 | RSA_PSS_SHA_256 | RSASSA-PSS using SHA-256 and MGF1 with SHA-256 |

| RSA_3072 | RSA_PKCS1_SHA_256 | RSASSA-PKCS1-v1_5 using SHA-256 |

| EC_P256 | ECDSA_SHA_256 | ECDSA on the P-256 Curve(secp256r1) with a SHA-256 digest |

| EC_P256K | ECDSA_SHA_256 | ECDSA on the P-256K Curve(secp256k1) with a SHA-256 digest |

| EC_SM2 | SM2DSA | SM2 elliptic curve public key encryption algorithm |

> When you calculate the SM2 signature based on GB/T 32918, the **Digest* - parameter is used to calculate the digest value of the combination of Z(A) and M, rather than the SM3 digest value. M indicates the original message to be signed. Z(A) indicates the hash value for User A. The hash value is defined in GB/T 32918. In this example, the asymmetric key whose ID is `5c438b18-05be-40ad-b6c2-3be6752c****` and version ID is `2ab1a983-7072-4bbc-a582-584b5bd8****` and the signature algorithm RSA_PSS_SHA_256 are used to verify the signature `M2CceNZH00ZgL9ED/ZHFp21YRAvYeZHknJUc207OCZ0N9wNn9As4z2bON3FF3je+1Nu+2+/8Zj50HpMTpzYpMp2R93cYmACCmhaYoKydxylbyGzJR8y9likZRCrkD38lRoS40aBBvv/6iRKzQuo9EGYVcel36cMNg00VmYNBy3pa1rwg3gA4l3cy6kjayZja1WGPkVhrVKsrJMdbpl0ApLjXKuD8rw1n1XLCwCUEL5eLPljTZaAveqdOFQOiZnZEGI27qIiZe7I1fN8tcz6anS/gTM7xRKE++5egEvRWlTQQTJeApnPSiUPA+8ZykNdelQsOQh5SrGoyI4A5pq****==` of the digest `ZOyIygCyaOW6GjVnihtTFtIS9PNmskdyMlNKiuyjfzw=`.

@param request - AsymmetricVerifyRequest

@return AsymmetricVerifyResponse

func (*Client) AsymmetricVerifyWithOptions

func (client *Client) AsymmetricVerifyWithOptions(request *AsymmetricVerifyRequest, runtime *util.RuntimeOptions) (_result *AsymmetricVerifyResponse, _err error)

Description:

This operation supports only asymmetric keys for which the **Usage* - parameter is set to **SIGN/VERIFY**. The following table describes the supported signature algorithms.

| KeySpec | Algorithm | Description |

| ------- | --------- | ----------- |

| RSA_2048 | RSA_PSS_SHA_256 | RSASSA-PSS using SHA-256 and MGF1 with SHA-256 |

| RSA_2048 | RSA_PKCS1_SHA_256 | RSASSA-PKCS1-v1_5 using SHA-256 |

| RSA_3072 | RSA_PSS_SHA_256 | RSASSA-PSS using SHA-256 and MGF1 with SHA-256 |

| RSA_3072 | RSA_PKCS1_SHA_256 | RSASSA-PKCS1-v1_5 using SHA-256 |

| EC_P256 | ECDSA_SHA_256 | ECDSA on the P-256 Curve(secp256r1) with a SHA-256 digest |

| EC_P256K | ECDSA_SHA_256 | ECDSA on the P-256K Curve(secp256k1) with a SHA-256 digest |

| EC_SM2 | SM2DSA | SM2 elliptic curve public key encryption algorithm |

> When you calculate the SM2 signature based on GB/T 32918, the **Digest* - parameter is used to calculate the digest value of the combination of Z(A) and M, rather than the SM3 digest value. M indicates the original message to be signed. Z(A) indicates the hash value for User A. The hash value is defined in GB/T 32918. In this example, the asymmetric key whose ID is `5c438b18-05be-40ad-b6c2-3be6752c****` and version ID is `2ab1a983-7072-4bbc-a582-584b5bd8****` and the signature algorithm RSA_PSS_SHA_256 are used to verify the signature `M2CceNZH00ZgL9ED/ZHFp21YRAvYeZHknJUc207OCZ0N9wNn9As4z2bON3FF3je+1Nu+2+/8Zj50HpMTpzYpMp2R93cYmACCmhaYoKydxylbyGzJR8y9likZRCrkD38lRoS40aBBvv/6iRKzQuo9EGYVcel36cMNg00VmYNBy3pa1rwg3gA4l3cy6kjayZja1WGPkVhrVKsrJMdbpl0ApLjXKuD8rw1n1XLCwCUEL5eLPljTZaAveqdOFQOiZnZEGI27qIiZe7I1fN8tcz6anS/gTM7xRKE++5egEvRWlTQQTJeApnPSiUPA+8ZykNdelQsOQh5SrGoyI4A5pq****==` of the digest `ZOyIygCyaOW6GjVnihtTFtIS9PNmskdyMlNKiuyjfzw=`.

@param request - AsymmetricVerifyRequest

@param runtime - runtime options for this request RuntimeOptions

@return AsymmetricVerifyResponse

func (*Client) CancelKeyDeletion

func (client *Client) CancelKeyDeletion(request *CancelKeyDeletionRequest) (_result *CancelKeyDeletionResponse, _err error)

Description:

If the deletion task of a CMK is canceled, the CMK returns to the Enabled state.

@param request - CancelKeyDeletionRequest

@return CancelKeyDeletionResponse

func (*Client) CancelKeyDeletionWithOptions

func (client *Client) CancelKeyDeletionWithOptions(request *CancelKeyDeletionRequest, runtime *util.RuntimeOptions) (_result *CancelKeyDeletionResponse, _err error)

Description:

If the deletion task of a CMK is canceled, the CMK returns to the Enabled state.

@param request - CancelKeyDeletionRequest

@param runtime - runtime options for this request RuntimeOptions

@return CancelKeyDeletionResponse

func (*Client) CertificatePrivateKeyDecrypt

func (client *Client) CertificatePrivateKeyDecrypt(request *CertificatePrivateKeyDecryptRequest) (_result *CertificatePrivateKeyDecryptResponse, _err error)

Description:

Limit: The encryption algorithm in the request parameters must match the key type.

The following table describes the mapping between encryption algorithms and key types.

| Algorithm | Key Spec |

| --------- | -------- |

| RSAES_OAEP_SHA_1 | RSA_2048 |

| RSAES_OAEP_SHA_256 | RSA_2048 |

| SM2PKE | EC_SM2 |

In this example, the certificate whose ID is `12345678-1234-1234-1234-12345678****` and the encryption algorithm `RSAES_OAEP_SHA_256` are used to decrypt the data `ZOyIygCyaOW6Gj****MlNKiuyjfzw=`.

@param request - CertificatePrivateKeyDecryptRequest

@return CertificatePrivateKeyDecryptResponse

func (*Client) CertificatePrivateKeyDecryptWithOptions

func (client *Client) CertificatePrivateKeyDecryptWithOptions(request *CertificatePrivateKeyDecryptRequest, runtime *util.RuntimeOptions) (_result *CertificatePrivateKeyDecryptResponse, _err error)

Description:

Limit: The encryption algorithm in the request parameters must match the key type.

The following table describes the mapping between encryption algorithms and key types.

| Algorithm | Key Spec |

| --------- | -------- |

| RSAES_OAEP_SHA_1 | RSA_2048 |

| RSAES_OAEP_SHA_256 | RSA_2048 |

| SM2PKE | EC_SM2 |

In this example, the certificate whose ID is `12345678-1234-1234-1234-12345678****` and the encryption algorithm `RSAES_OAEP_SHA_256` are used to decrypt the data `ZOyIygCyaOW6Gj****MlNKiuyjfzw=`.

@param request - CertificatePrivateKeyDecryptRequest

@param runtime - runtime options for this request RuntimeOptions

@return CertificatePrivateKeyDecryptResponse

func (*Client) CertificatePrivateKeySign

func (client *Client) CertificatePrivateKeySign(request *CertificatePrivateKeySignRequest) (_result *CertificatePrivateKeySignResponse, _err error)

Description:

The signature algorithm in the request parameters must match the key type. The following table describes the mapping between signature algorithms and key types.

| Algorithm | Key Spec |

| --------- | -------- |

| RSA_PKCS1_SHA_256 | RSA_2048 |

| RSA_PSS_SHA_256 | RSA_2048 |

| ECDSA_SHA_256 | EC_P256 |

| SM2DSA | EC_SM2 |

In this example, the certificate whose ID is `12345678-1234-1234-1234-12345678****` and the signature algorithm `ECDSA_SHA_256` are used to generate a signature for the raw data `VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=`.

@param request - CertificatePrivateKeySignRequest

@return CertificatePrivateKeySignResponse

func (*Client) CertificatePrivateKeySignWithOptions

func (client *Client) CertificatePrivateKeySignWithOptions(request *CertificatePrivateKeySignRequest, runtime *util.RuntimeOptions) (_result *CertificatePrivateKeySignResponse, _err error)

Description:

The signature algorithm in the request parameters must match the key type. The following table describes the mapping between signature algorithms and key types.

| Algorithm | Key Spec |

| --------- | -------- |

| RSA_PKCS1_SHA_256 | RSA_2048 |

| RSA_PSS_SHA_256 | RSA_2048 |

| ECDSA_SHA_256 | EC_P256 |

| SM2DSA | EC_SM2 |

In this example, the certificate whose ID is `12345678-1234-1234-1234-12345678****` and the signature algorithm `ECDSA_SHA_256` are used to generate a signature for the raw data `VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=`.

@param request - CertificatePrivateKeySignRequest

@param runtime - runtime options for this request RuntimeOptions

@return CertificatePrivateKeySignResponse

func (*Client) CertificatePublicKeyEncrypt

func (client *Client) CertificatePublicKeyEncrypt(request *CertificatePublicKeyEncryptRequest) (_result *CertificatePublicKeyEncryptResponse, _err error)

Description:

Limit: The encryption algorithm in the request parameters must match the key type.

The following table describes the mapping between encryption algorithms and key types.

| Algorithm | Key Spec |

| --------- | -------- |

| RSAES_OAEP_SHA_1 | RSA_2048 |

| RSAES_OAEP_SHA_256 | RSA_2048 |

| SM2PKE | EC_SM2 |

In this example, the certificate whose ID is `12345678-1234-1234-1234-12345678****` and the encryption algorithm `RSAES_OAEP_SHA_256` are used to encrypt the data `VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=`.

@param request - CertificatePublicKeyEncryptRequest

@return CertificatePublicKeyEncryptResponse

func (*Client) CertificatePublicKeyEncryptWithOptions

func (client *Client) CertificatePublicKeyEncryptWithOptions(request *CertificatePublicKeyEncryptRequest, runtime *util.RuntimeOptions) (_result *CertificatePublicKeyEncryptResponse, _err error)

Description:

Limit: The encryption algorithm in the request parameters must match the key type.

The following table describes the mapping between encryption algorithms and key types.

| Algorithm | Key Spec |

| --------- | -------- |

| RSAES_OAEP_SHA_1 | RSA_2048 |

| RSAES_OAEP_SHA_256 | RSA_2048 |

| SM2PKE | EC_SM2 |

In this example, the certificate whose ID is `12345678-1234-1234-1234-12345678****` and the encryption algorithm `RSAES_OAEP_SHA_256` are used to encrypt the data `VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=`.

@param request - CertificatePublicKeyEncryptRequest

@param runtime - runtime options for this request RuntimeOptions

@return CertificatePublicKeyEncryptResponse

func (*Client) CertificatePublicKeyVerify

func (client *Client) CertificatePublicKeyVerify(request *CertificatePublicKeyVerifyRequest) (_result *CertificatePublicKeyVerifyResponse, _err error)

Description:

The signature algorithm in the request parameters must match the key type. The following table describes the mapping between signature algorithms and key types.

| Algorithm | Key Spec |

| --------- | -------- |

| RSA_PKCS1_SHA_256 | RSA_2048 |

| RSA_PSS_SHA_256 | RSA_2048 |

| ECDSA_SHA_256 | EC_P256 |

| SM2DSA | EC_SM2 |

In this example, the certificate whose ID is `12345678-1234-1234-1234-12345678****` and the signature algorithm `ECDSA_SHA_256` are used to verify the digital signature `ZOyIygCyaOW6Gj****MlNKiuyjfzw=` of the raw data `VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=`.

@param request - CertificatePublicKeyVerifyRequest

@return CertificatePublicKeyVerifyResponse

func (*Client) CertificatePublicKeyVerifyWithOptions

func (client *Client) CertificatePublicKeyVerifyWithOptions(request *CertificatePublicKeyVerifyRequest, runtime *util.RuntimeOptions) (_result *CertificatePublicKeyVerifyResponse, _err error)

Description:

The signature algorithm in the request parameters must match the key type. The following table describes the mapping between signature algorithms and key types.

| Algorithm | Key Spec |

| --------- | -------- |

| RSA_PKCS1_SHA_256 | RSA_2048 |

| RSA_PSS_SHA_256 | RSA_2048 |

| ECDSA_SHA_256 | EC_P256 |

| SM2DSA | EC_SM2 |

In this example, the certificate whose ID is `12345678-1234-1234-1234-12345678****` and the signature algorithm `ECDSA_SHA_256` are used to verify the digital signature `ZOyIygCyaOW6Gj****MlNKiuyjfzw=` of the raw data `VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=`.

@param request - CertificatePublicKeyVerifyRequest

@param runtime - runtime options for this request RuntimeOptions

@return CertificatePublicKeyVerifyResponse

func (*Client) ConnectKmsInstance added in v3.1.0

func (client *Client) ConnectKmsInstance(request *ConnectKmsInstanceRequest) (_result *ConnectKmsInstanceResponse, _err error)

Description:

### [](#)Limits

You can enable only instances of the software key management type. You cannot enable instances of the hardware key management type.

@param request - ConnectKmsInstanceRequest

@return ConnectKmsInstanceResponse

func (*Client) ConnectKmsInstanceWithOptions added in v3.1.0

func (client *Client) ConnectKmsInstanceWithOptions(request *ConnectKmsInstanceRequest, runtime *util.RuntimeOptions) (_result *ConnectKmsInstanceResponse, _err error)

Description:

### [](#)Limits

You can enable only instances of the software key management type. You cannot enable instances of the hardware key management type.

@param request - ConnectKmsInstanceRequest

@param runtime - runtime options for this request RuntimeOptions

@return ConnectKmsInstanceResponse

func (*Client) CreateAlias

func (client *Client) CreateAlias(request *CreateAliasRequest) (_result *CreateAliasResponse, _err error)

Description:

  • Each alias can be bound to only one CMK at a time.

  • The aliases of CMKs in the same region must be unique.

In this topic, an alias named `alias/example` is created for a CMK named `7906979c-8e06-46a2-be2d-68e3ccbc****`.

@param request - CreateAliasRequest

@return CreateAliasResponse

func (*Client) CreateAliasWithOptions

func (client *Client) CreateAliasWithOptions(request *CreateAliasRequest, runtime *util.RuntimeOptions) (_result *CreateAliasResponse, _err error)

Description:

  • Each alias can be bound to only one CMK at a time.

  • The aliases of CMKs in the same region must be unique.

In this topic, an alias named `alias/example` is created for a CMK named `7906979c-8e06-46a2-be2d-68e3ccbc****`.

@param request - CreateAliasRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateAliasResponse

func (*Client) CreateApplicationAccessPoint added in v3.1.0

func (client *Client) CreateApplicationAccessPoint(request *CreateApplicationAccessPointRequest) (_result *CreateApplicationAccessPointResponse, _err error)

Description:

To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a Key Management Service (KMS) instance. The following process shows how to create a client key-based AAP:

1.Create a network access rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access KMS. For more information, see [CreateNetworkRule](~~2539407~~).

2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind network access rules to the keys and secrets. For more information, see [CreatePolicy](~~2539454~~).

3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. This topic describes how to create an AAP.

4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP. For more information, see [CreateClientKey](~~2539509~~).

@param request - CreateApplicationAccessPointRequest

@return CreateApplicationAccessPointResponse

func (*Client) CreateApplicationAccessPointWithOptions added in v3.1.0

func (client *Client) CreateApplicationAccessPointWithOptions(request *CreateApplicationAccessPointRequest, runtime *util.RuntimeOptions) (_result *CreateApplicationAccessPointResponse, _err error)

Description:

To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a Key Management Service (KMS) instance. The following process shows how to create a client key-based AAP:

1.Create a network access rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access KMS. For more information, see [CreateNetworkRule](~~2539407~~).

2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind network access rules to the keys and secrets. For more information, see [CreatePolicy](~~2539454~~).

3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. This topic describes how to create an AAP.

4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP. For more information, see [CreateClientKey](~~2539509~~).

@param request - CreateApplicationAccessPointRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateApplicationAccessPointResponse

func (*Client) CreateCertificate

func (client *Client) CreateCertificate(request *CreateCertificateRequest) (_result *CreateCertificateResponse, _err error)

Description:

To create a certificate, you must specify the type of the asymmetric key. Certificates Manager generates a private key and returns a certificate signing request (CSR). Submit the CSR in the Privacy Enhanced Mail (PEM) format to a certificate authority (CA) to obtain the formal certificate and certificate chain. Then, call the [UploadCertificate](~~212136~~) operation to import the certificate into Certificates Manager.

In this example, a certificate is created and the CSR is obtained.

@param request - CreateCertificateRequest

@return CreateCertificateResponse

func (*Client) CreateCertificateWithOptions

func (client *Client) CreateCertificateWithOptions(tmpReq *CreateCertificateRequest, runtime *util.RuntimeOptions) (_result *CreateCertificateResponse, _err error)

Description:

To create a certificate, you must specify the type of the asymmetric key. Certificates Manager generates a private key and returns a certificate signing request (CSR). Submit the CSR in the Privacy Enhanced Mail (PEM) format to a certificate authority (CA) to obtain the formal certificate and certificate chain. Then, call the [UploadCertificate](~~212136~~) operation to import the certificate into Certificates Manager.

In this example, a certificate is created and the CSR is obtained.

@param tmpReq - CreateCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateCertificateResponse

func (*Client) CreateClientKey added in v3.1.0

func (client *Client) CreateClientKey(request *CreateClientKeyRequest) (_result *CreateClientKeyResponse, _err error)

Description:

To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a Key Management Service (KMS) instance. The following process shows how to create a client key-based application access point (AAP):

1.Create an access control rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access a KMS instance. For more information, see [CreateNetworkRule](~~2539407~~).

2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind access control rules to the keys and secrets. For more information, see [CreatePolicy](~~2539454~~).

3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. For more information, see [CreateApplicationAccessPoint](~~2539467~~).

4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP.

### Precautions

A client key has a validity period. After a client key expires, applications into which the client key is integrated cannot access the required KMS instance. You must replace the client key before the client key expires. We recommend that you delete the expired client key in KMS after the new client key is used.

@param request - CreateClientKeyRequest

@return CreateClientKeyResponse

func (*Client) CreateClientKeyWithOptions added in v3.1.0

func (client *Client) CreateClientKeyWithOptions(request *CreateClientKeyRequest, runtime *util.RuntimeOptions) (_result *CreateClientKeyResponse, _err error)

Description:

To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a Key Management Service (KMS) instance. The following process shows how to create a client key-based application access point (AAP):

1.Create an access control rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access a KMS instance. For more information, see [CreateNetworkRule](~~2539407~~).

2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind access control rules to the keys and secrets. For more information, see [CreatePolicy](~~2539454~~).

3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. For more information, see [CreateApplicationAccessPoint](~~2539467~~).

4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP.

### Precautions

A client key has a validity period. After a client key expires, applications into which the client key is integrated cannot access the required KMS instance. You must replace the client key before the client key expires. We recommend that you delete the expired client key in KMS after the new client key is used.

@param request - CreateClientKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateClientKeyResponse

func (*Client) CreateKey

func (client *Client) CreateKey(request *CreateKeyRequest) (_result *CreateKeyResponse, _err error)

Description:

KMS supports common symmetric keys and asymmetric keys. For more information, see [Key types and specifications](~~480161~~).

@param request - CreateKeyRequest

@return CreateKeyResponse

func (*Client) CreateKeyVersion

func (client *Client) CreateKeyVersion(request *CreateKeyVersionRequest) (_result *CreateKeyVersionResponse, _err error)

Description:

  • You can create a version only for an asymmetric CMK that is in the Enabled state. You can call the [CreateKey](~~28947~~) operation to create an asymmetric CMK and the [DescribeKey](~~28952~~) operation to query the status of the CMK. The status is specified by the KeyState parameter.

  • The minimum interval for creating a version of the same CMK is seven days. You can call the [DescribeKey](~~28952~~) operation to query the time when the last version of a CMK was created. The time is specified by the LastRotationDate parameter.

  • If a CMK is in a private key store, you cannot create a version for the CMK.

  • You can create a maximum of 50 versions for a CMK in the same region.

You can create a version for the CMK whose ID is `0b30658a-ed1a-4922-b8f7-a673ca9c****` by using the parameter settings provided in this topic.

@param request - CreateKeyVersionRequest

@return CreateKeyVersionResponse

func (*Client) CreateKeyVersionWithOptions

func (client *Client) CreateKeyVersionWithOptions(request *CreateKeyVersionRequest, runtime *util.RuntimeOptions) (_result *CreateKeyVersionResponse, _err error)

Description:

  • You can create a version only for an asymmetric CMK that is in the Enabled state. You can call the [CreateKey](~~28947~~) operation to create an asymmetric CMK and the [DescribeKey](~~28952~~) operation to query the status of the CMK. The status is specified by the KeyState parameter.

  • The minimum interval for creating a version of the same CMK is seven days. You can call the [DescribeKey](~~28952~~) operation to query the time when the last version of a CMK was created. The time is specified by the LastRotationDate parameter.

  • If a CMK is in a private key store, you cannot create a version for the CMK.

  • You can create a maximum of 50 versions for a CMK in the same region.

You can create a version for the CMK whose ID is `0b30658a-ed1a-4922-b8f7-a673ca9c****` by using the parameter settings provided in this topic.

@param request - CreateKeyVersionRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateKeyVersionResponse

func (*Client) CreateKeyWithOptions

func (client *Client) CreateKeyWithOptions(request *CreateKeyRequest, runtime *util.RuntimeOptions) (_result *CreateKeyResponse, _err error)

Description:

KMS supports common symmetric keys and asymmetric keys. For more information, see [Key types and specifications](~~480161~~).

@param request - CreateKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateKeyResponse

func (*Client) CreateNetworkRule added in v3.1.0

func (client *Client) CreateNetworkRule(request *CreateNetworkRuleRequest) (_result *CreateNetworkRuleResponse, _err error)

Description:

To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a KMS instance. The following process shows how to create a client key-based application access point (AAP):

1.Create an access control rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access a KMS instance.

2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind access control rules to the keys and secrets. For more information, see [CreatePolicy](~~2539454~~).

3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. For more information, see [CreateApplicationAccessPoint](~~2539467~~).

4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP. For more information, see [CreateClientKey](~~2539509~~).

@param request - CreateNetworkRuleRequest

@return CreateNetworkRuleResponse

func (*Client) CreateNetworkRuleWithOptions added in v3.1.0

func (client *Client) CreateNetworkRuleWithOptions(request *CreateNetworkRuleRequest, runtime *util.RuntimeOptions) (_result *CreateNetworkRuleResponse, _err error)

Description:

To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a KMS instance. The following process shows how to create a client key-based application access point (AAP):

1.Create an access control rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access a KMS instance.

2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind access control rules to the keys and secrets. For more information, see [CreatePolicy](~~2539454~~).

3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. For more information, see [CreateApplicationAccessPoint](~~2539467~~).

4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP. For more information, see [CreateClientKey](~~2539509~~).

@param request - CreateNetworkRuleRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateNetworkRuleResponse

func (*Client) CreatePolicy added in v3.1.0

func (client *Client) CreatePolicy(request *CreatePolicyRequest) (_result *CreatePolicyResponse, _err error)

Description:

To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a Key Management Service (KMS) instance. The following process shows how to create a client key-based application access point (AAP):

1.Create an access control rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access a KMS instance. For more information, see [CreateNetworkRule](~~2539407~~).

2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind access control rules to the keys and secrets.

3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. For more information, see [CreateApplicationAccessPoint](~~2539467~~).

4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP. For more information, see [CreateClientKey](~~2539509~~).

@param request - CreatePolicyRequest

@return CreatePolicyResponse

func (*Client) CreatePolicyWithOptions added in v3.1.0

func (client *Client) CreatePolicyWithOptions(request *CreatePolicyRequest, runtime *util.RuntimeOptions) (_result *CreatePolicyResponse, _err error)

Description:

To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a Key Management Service (KMS) instance. The following process shows how to create a client key-based application access point (AAP):

1.Create an access control rule: You can configure the private IP addresses or private CIDR blocks that are allowed to access a KMS instance. For more information, see [CreateNetworkRule](~~2539407~~).

2.Create a permission policy: You can configure the keys and secrets that are allowed to access and bind access control rules to the keys and secrets.

3.Create an AAP: You can configure an authentication method and bind a permission policy to an AAP. For more information, see [CreateApplicationAccessPoint](~~2539467~~).

4.Create a client key: You can configure the encryption password and validity period of a client key and bind the client key to an AAP. For more information, see [CreateClientKey](~~2539509~~).

@param request - CreatePolicyRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreatePolicyResponse

func (*Client) CreateSecret

func (client *Client) CreateSecret(request *CreateSecretRequest) (_result *CreateSecretResponse, _err error)

Description:

The name of the secret.

The value must be 1 to 64 characters in length and can contain letters, digits, underscores (\\_), forward slashes (/), plus signs (+), equal signs (=), periods (.), hyphens (-), and at signs (@). The following list describes the name requirements for different types of secrets:

  • If the SecretType parameter is set to Generic or Rds, the name cannot start with `acs/`.

  • If the SecretType parameter is set to RAMCredentials, set the SecretName parameter to `$Auto`. In this case, KMS automatically generates a secret name that starts with `acs/ram/user/`. The name includes the display name of RAM user.

  • If the SecretType parameter is set to ECS, the name must start with `acs/ecs/`.

@param request - CreateSecretRequest

@return CreateSecretResponse

func (*Client) CreateSecretWithOptions

func (client *Client) CreateSecretWithOptions(tmpReq *CreateSecretRequest, runtime *util.RuntimeOptions) (_result *CreateSecretResponse, _err error)

Description:

The name of the secret.

The value must be 1 to 64 characters in length and can contain letters, digits, underscores (\\_), forward slashes (/), plus signs (+), equal signs (=), periods (.), hyphens (-), and at signs (@). The following list describes the name requirements for different types of secrets:

  • If the SecretType parameter is set to Generic or Rds, the name cannot start with `acs/`.

  • If the SecretType parameter is set to RAMCredentials, set the SecretName parameter to `$Auto`. In this case, KMS automatically generates a secret name that starts with `acs/ram/user/`. The name includes the display name of RAM user.

  • If the SecretType parameter is set to ECS, the name must start with `acs/ecs/`.

@param tmpReq - CreateSecretRequest

@param runtime - runtime options for this request RuntimeOptions

@return CreateSecretResponse

func (*Client) Decrypt

func (client *Client) Decrypt(request *DecryptRequest) (_result *DecryptResponse, _err error)

func (*Client) DecryptWithOptions

func (client *Client) DecryptWithOptions(tmpReq *DecryptRequest, runtime *util.RuntimeOptions) (_result *DecryptResponse, _err error)

func (*Client) DeleteAlias

func (client *Client) DeleteAlias(request *DeleteAliasRequest) (_result *DeleteAliasResponse, _err error)

func (*Client) DeleteAliasWithOptions

func (client *Client) DeleteAliasWithOptions(request *DeleteAliasRequest, runtime *util.RuntimeOptions) (_result *DeleteAliasResponse, _err error)

func (*Client) DeleteApplicationAccessPoint added in v3.1.0

func (client *Client) DeleteApplicationAccessPoint(request *DeleteApplicationAccessPointRequest) (_result *DeleteApplicationAccessPointResponse, _err error)

Description:

Before you delete an AAP, make sure that the AAP is no longer in use. If you delete an AAP that is in use, applications that use the AAP cannot access Key Management Service (KMS). Exercise caution when you delete an AAP.

@param request - DeleteApplicationAccessPointRequest

@return DeleteApplicationAccessPointResponse

func (*Client) DeleteApplicationAccessPointWithOptions added in v3.1.0

func (client *Client) DeleteApplicationAccessPointWithOptions(request *DeleteApplicationAccessPointRequest, runtime *util.RuntimeOptions) (_result *DeleteApplicationAccessPointResponse, _err error)

Description:

Before you delete an AAP, make sure that the AAP is no longer in use. If you delete an AAP that is in use, applications that use the AAP cannot access Key Management Service (KMS). Exercise caution when you delete an AAP.

@param request - DeleteApplicationAccessPointRequest

@param runtime - runtime options for this request RuntimeOptions

@return DeleteApplicationAccessPointResponse

func (*Client) DeleteCertificate

func (client *Client) DeleteCertificate(request *DeleteCertificateRequest) (_result *DeleteCertificateResponse, _err error)

Description:

After the certificate and its private key and certificate chain are deleted, they cannot be restored. Proceed with caution.

In this example, the certificate whose ID is `9a28de48-8d8b-484d-a766-dec4****` and its private key and certificate chain are deleted.

@param request - DeleteCertificateRequest

@return DeleteCertificateResponse

func (*Client) DeleteCertificateWithOptions

func (client *Client) DeleteCertificateWithOptions(request *DeleteCertificateRequest, runtime *util.RuntimeOptions) (_result *DeleteCertificateResponse, _err error)

Description:

After the certificate and its private key and certificate chain are deleted, they cannot be restored. Proceed with caution.

In this example, the certificate whose ID is `9a28de48-8d8b-484d-a766-dec4****` and its private key and certificate chain are deleted.

@param request - DeleteCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return DeleteCertificateResponse

func (*Client) DeleteClientKey added in v3.1.0

func (client *Client) DeleteClientKey(request *DeleteClientKeyRequest) (_result *DeleteClientKeyResponse, _err error)

Description:

Before you delete a client key, make sure that the client key is no longer in use. If you delete a client key that is in use, applications that use the client key cannot access Key Management Service (KMS). Exercise caution when you delete a client key.

@param request - DeleteClientKeyRequest

@return DeleteClientKeyResponse

func (*Client) DeleteClientKeyWithOptions added in v3.1.0

func (client *Client) DeleteClientKeyWithOptions(request *DeleteClientKeyRequest, runtime *util.RuntimeOptions) (_result *DeleteClientKeyResponse, _err error)

Description:

Before you delete a client key, make sure that the client key is no longer in use. If you delete a client key that is in use, applications that use the client key cannot access Key Management Service (KMS). Exercise caution when you delete a client key.

@param request - DeleteClientKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return DeleteClientKeyResponse

func (*Client) DeleteKeyMaterial

func (client *Client) DeleteKeyMaterial(request *DeleteKeyMaterialRequest) (_result *DeleteKeyMaterialResponse, _err error)

Description:

This operation does not delete the CMK that is created by using the key material.

If the CMK is in the PendingDeletion state, the state of the CMK and the scheduled deletion time do not change after you call this operation. If the CMK is not in the PendingDeletion state, the state of the CMK changes to PendingImport after you call this operation.

After you delete the key material, you can upload only the same key material into the CMK.

@param request - DeleteKeyMaterialRequest

@return DeleteKeyMaterialResponse

func (*Client) DeleteKeyMaterialWithOptions

func (client *Client) DeleteKeyMaterialWithOptions(request *DeleteKeyMaterialRequest, runtime *util.RuntimeOptions) (_result *DeleteKeyMaterialResponse, _err error)

Description:

This operation does not delete the CMK that is created by using the key material.

If the CMK is in the PendingDeletion state, the state of the CMK and the scheduled deletion time do not change after you call this operation. If the CMK is not in the PendingDeletion state, the state of the CMK changes to PendingImport after you call this operation.

After you delete the key material, you can upload only the same key material into the CMK.

@param request - DeleteKeyMaterialRequest

@param runtime - runtime options for this request RuntimeOptions

@return DeleteKeyMaterialResponse

func (*Client) DeleteNetworkRule added in v3.1.0

func (client *Client) DeleteNetworkRule(request *DeleteNetworkRuleRequest) (_result *DeleteNetworkRuleResponse, _err error)

Description:

Before you delete a network access rule, make sure that the network access rule is not bound to permission policies. Otherwise, related applications cannot access Key Management Service (KMS).

@param request - DeleteNetworkRuleRequest

@return DeleteNetworkRuleResponse

func (*Client) DeleteNetworkRuleWithOptions added in v3.1.0

func (client *Client) DeleteNetworkRuleWithOptions(request *DeleteNetworkRuleRequest, runtime *util.RuntimeOptions) (_result *DeleteNetworkRuleResponse, _err error)

Description:

Before you delete a network access rule, make sure that the network access rule is not bound to permission policies. Otherwise, related applications cannot access Key Management Service (KMS).

@param request - DeleteNetworkRuleRequest

@param runtime - runtime options for this request RuntimeOptions

@return DeleteNetworkRuleResponse

func (*Client) DeletePolicy added in v3.1.0

func (client *Client) DeletePolicy(request *DeletePolicyRequest) (_result *DeletePolicyResponse, _err error)

Description:

Before you delete a permission policy, make sure that the permission policy is not associated with application access points (AAPs). Otherwise, related applications cannot access Key Management Service (KMS).

@param request - DeletePolicyRequest

@return DeletePolicyResponse

func (*Client) DeletePolicyWithOptions added in v3.1.0

func (client *Client) DeletePolicyWithOptions(request *DeletePolicyRequest, runtime *util.RuntimeOptions) (_result *DeletePolicyResponse, _err error)

Description:

Before you delete a permission policy, make sure that the permission policy is not associated with application access points (AAPs). Otherwise, related applications cannot access Key Management Service (KMS).

@param request - DeletePolicyRequest

@param runtime - runtime options for this request RuntimeOptions

@return DeletePolicyResponse

func (*Client) DeleteSecret

func (client *Client) DeleteSecret(request *DeleteSecretRequest) (_result *DeleteSecretResponse, _err error)

Description:

If you call this operation without specifying a recovery period, the deleted secret can be recovered within 30 days.

If you specify a recovery period, the deleted secret can be recovered within the recovery period. You can also forcibly delete a secret. A forcibly deleted secret cannot be recovered.

@param request - DeleteSecretRequest

@return DeleteSecretResponse

func (*Client) DeleteSecretWithOptions

func (client *Client) DeleteSecretWithOptions(request *DeleteSecretRequest, runtime *util.RuntimeOptions) (_result *DeleteSecretResponse, _err error)

Description:

If you call this operation without specifying a recovery period, the deleted secret can be recovered within 30 days.

If you specify a recovery period, the deleted secret can be recovered within the recovery period. You can also forcibly delete a secret. A forcibly deleted secret cannot be recovered.

@param request - DeleteSecretRequest

@param runtime - runtime options for this request RuntimeOptions

@return DeleteSecretResponse

func (*Client) DescribeAccountKmsStatus

func (client *Client) DescribeAccountKmsStatus() (_result *DescribeAccountKmsStatusResponse, _err error)

func (*Client) DescribeAccountKmsStatusWithOptions

func (client *Client) DescribeAccountKmsStatusWithOptions(runtime *util.RuntimeOptions) (_result *DescribeAccountKmsStatusResponse, _err error)

func (*Client) DescribeApplicationAccessPoint added in v3.1.0

func (client *Client) DescribeApplicationAccessPoint(request *DescribeApplicationAccessPointRequest) (_result *DescribeApplicationAccessPointResponse, _err error)

func (*Client) DescribeApplicationAccessPointWithOptions added in v3.1.0

func (client *Client) DescribeApplicationAccessPointWithOptions(request *DescribeApplicationAccessPointRequest, runtime *util.RuntimeOptions) (_result *DescribeApplicationAccessPointResponse, _err error)

func (*Client) DescribeCertificate

func (client *Client) DescribeCertificate(request *DescribeCertificateRequest) (_result *DescribeCertificateResponse, _err error)

Description:

In this example, the information about the certificate whose ID is `9a28de48-8d8b-484d-a766-dec4****` is queried. The certificate information includes the certificate ID, creation time, certificate issuer, validity period, serial number, and signature algorithm.

@param request - DescribeCertificateRequest

@return DescribeCertificateResponse

func (*Client) DescribeCertificateWithOptions

func (client *Client) DescribeCertificateWithOptions(request *DescribeCertificateRequest, runtime *util.RuntimeOptions) (_result *DescribeCertificateResponse, _err error)

Description:

In this example, the information about the certificate whose ID is `9a28de48-8d8b-484d-a766-dec4****` is queried. The certificate information includes the certificate ID, creation time, certificate issuer, validity period, serial number, and signature algorithm.

@param request - DescribeCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeCertificateResponse

func (*Client) DescribeKey

func (client *Client) DescribeKey(request *DescribeKeyRequest) (_result *DescribeKeyResponse, _err error)

Description:

You can query the information about the CMK `05754286-3ba2-4fa6-8d41-4323aca6****` by using parameter settings provided in this topic. The information includes the creator, creation time, status, and deletion protection status of the CMK.

@param request - DescribeKeyRequest

@return DescribeKeyResponse

func (*Client) DescribeKeyVersion

func (client *Client) DescribeKeyVersion(request *DescribeKeyVersionRequest) (_result *DescribeKeyVersionResponse, _err error)

Description:

This topic provides an example on how to query the information about a version of the CMK `1234abcd-12ab-34cd-56ef-12345678****`. The ID of the CMK version is `2ab1a983-7072-4bbc-a582-584b5bd8****`. The response shows that the creation time of the CMK version is `2016-03-25T10:42:40Z`.

@param request - DescribeKeyVersionRequest

@return DescribeKeyVersionResponse

func (*Client) DescribeKeyVersionWithOptions

func (client *Client) DescribeKeyVersionWithOptions(request *DescribeKeyVersionRequest, runtime *util.RuntimeOptions) (_result *DescribeKeyVersionResponse, _err error)

Description:

This topic provides an example on how to query the information about a version of the CMK `1234abcd-12ab-34cd-56ef-12345678****`. The ID of the CMK version is `2ab1a983-7072-4bbc-a582-584b5bd8****`. The response shows that the creation time of the CMK version is `2016-03-25T10:42:40Z`.

@param request - DescribeKeyVersionRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeKeyVersionResponse

func (*Client) DescribeKeyWithOptions

func (client *Client) DescribeKeyWithOptions(request *DescribeKeyRequest, runtime *util.RuntimeOptions) (_result *DescribeKeyResponse, _err error)

Description:

You can query the information about the CMK `05754286-3ba2-4fa6-8d41-4323aca6****` by using parameter settings provided in this topic. The information includes the creator, creation time, status, and deletion protection status of the CMK.

@param request - DescribeKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeKeyResponse

func (*Client) DescribeNetworkRule added in v3.1.0

func (client *Client) DescribeNetworkRule(request *DescribeNetworkRuleRequest) (_result *DescribeNetworkRuleResponse, _err error)

func (*Client) DescribeNetworkRuleWithOptions added in v3.1.0

func (client *Client) DescribeNetworkRuleWithOptions(request *DescribeNetworkRuleRequest, runtime *util.RuntimeOptions) (_result *DescribeNetworkRuleResponse, _err error)

func (*Client) DescribePolicy added in v3.1.0

func (client *Client) DescribePolicy(request *DescribePolicyRequest) (_result *DescribePolicyResponse, _err error)

func (*Client) DescribePolicyWithOptions added in v3.1.0

func (client *Client) DescribePolicyWithOptions(request *DescribePolicyRequest, runtime *util.RuntimeOptions) (_result *DescribePolicyResponse, _err error)

func (*Client) DescribeRegions

func (client *Client) DescribeRegions() (_result *DescribeRegionsResponse, _err error)

Description:

## Debugging

[OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Kms\\&api=DescribeRegions\\&type=RPC\\&version=2016-01-20)

@return DescribeRegionsResponse

func (*Client) DescribeRegionsWithOptions

func (client *Client) DescribeRegionsWithOptions(runtime *util.RuntimeOptions) (_result *DescribeRegionsResponse, _err error)

Description:

## Debugging

[OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.](https://api.aliyun.com/#product=Kms\\&api=DescribeRegions\\&type=RPC\\&version=2016-01-20)

@param request - DescribeRegionsRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeRegionsResponse

func (*Client) DescribeSecret

func (client *Client) DescribeSecret(request *DescribeSecretRequest) (_result *DescribeSecretResponse, _err error)

Description:

This operation returns the metadata of a secret. This operation does not return the secret value.

In this example, the metadata of the secret named `secret001` is queried.

@param request - DescribeSecretRequest

@return DescribeSecretResponse

func (*Client) DescribeSecretWithOptions

func (client *Client) DescribeSecretWithOptions(request *DescribeSecretRequest, runtime *util.RuntimeOptions) (_result *DescribeSecretResponse, _err error)

Description:

This operation returns the metadata of a secret. This operation does not return the secret value.

In this example, the metadata of the secret named `secret001` is queried.

@param request - DescribeSecretRequest

@param runtime - runtime options for this request RuntimeOptions

@return DescribeSecretResponse

func (*Client) DisableKey

func (client *Client) DisableKey(request *DisableKeyRequest) (_result *DisableKeyResponse, _err error)

Description:

If a customer master key (CMK) is disabled, the ciphertext encrypted by using this CMK cannot be decrypted until you re-enable it. You can call the [EnableKey](~~35150~~) operation to enable the CMK.

In this example, the CMK whose ID is `1234abcd-12ab-34cd-56ef-12345678****` is disabled.

@param request - DisableKeyRequest

@return DisableKeyResponse

func (*Client) DisableKeyWithOptions

func (client *Client) DisableKeyWithOptions(request *DisableKeyRequest, runtime *util.RuntimeOptions) (_result *DisableKeyResponse, _err error)

Description:

If a customer master key (CMK) is disabled, the ciphertext encrypted by using this CMK cannot be decrypted until you re-enable it. You can call the [EnableKey](~~35150~~) operation to enable the CMK.

In this example, the CMK whose ID is `1234abcd-12ab-34cd-56ef-12345678****` is disabled.

@param request - DisableKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return DisableKeyResponse

func (*Client) EnableKey

func (client *Client) EnableKey(request *EnableKeyRequest) (_result *EnableKeyResponse, _err error)

func (*Client) EnableKeyWithOptions

func (client *Client) EnableKeyWithOptions(request *EnableKeyRequest, runtime *util.RuntimeOptions) (_result *EnableKeyResponse, _err error)

func (*Client) Encrypt

func (client *Client) Encrypt(request *EncryptRequest) (_result *EncryptResponse, _err error)

Description:

  • KMS uses the primary version of a specified CMK to encrypt data.

  • Only data of 6 KB or less can be encrypted. For example, you can call this operation to encrypt RSA keys, database access passwords, or other sensitive information.

  • When you migrate encrypted data across regions, you can call this operation in the destination region to encrypt the plaintext of the data key that is used to encrypt the migrated data in the source region. This way, the ciphertext of the data key is generated in the destination region. You can also call the [Decrypt](~~28950~~) operation to decrypt the data key.

@param request - EncryptRequest

@return EncryptResponse

func (*Client) EncryptWithOptions

func (client *Client) EncryptWithOptions(tmpReq *EncryptRequest, runtime *util.RuntimeOptions) (_result *EncryptResponse, _err error)

Description:

  • KMS uses the primary version of a specified CMK to encrypt data.

  • Only data of 6 KB or less can be encrypted. For example, you can call this operation to encrypt RSA keys, database access passwords, or other sensitive information.

  • When you migrate encrypted data across regions, you can call this operation in the destination region to encrypt the plaintext of the data key that is used to encrypt the migrated data in the source region. This way, the ciphertext of the data key is generated in the destination region. You can also call the [Decrypt](~~28950~~) operation to decrypt the data key.

@param tmpReq - EncryptRequest

@param runtime - runtime options for this request RuntimeOptions

@return EncryptResponse

func (*Client) ExportDataKey

func (client *Client) ExportDataKey(request *ExportDataKeyRequest) (_result *ExportDataKeyResponse, _err error)

Description:

You can call the [GenerateDataKeyWithoutPlaintext](~~134043~~) operation to generate a data key, which is encrypted by a CMK. If you want to distribute the data key to other regions or cryptographic modules, you can call the ExportDataKey operation to use a public key to encrypt the data key.

Then, you can import the ciphertext of the data key to the cryptographic module where the private key is stored. This way, the data key is securely distributed from KMS to the cryptographic module. After the data key is imported to the cryptographic module, you can use it to encrypt or decrypt data.

@param request - ExportDataKeyRequest

@return ExportDataKeyResponse

func (*Client) ExportDataKeyWithOptions

func (client *Client) ExportDataKeyWithOptions(tmpReq *ExportDataKeyRequest, runtime *util.RuntimeOptions) (_result *ExportDataKeyResponse, _err error)

Description:

You can call the [GenerateDataKeyWithoutPlaintext](~~134043~~) operation to generate a data key, which is encrypted by a CMK. If you want to distribute the data key to other regions or cryptographic modules, you can call the ExportDataKey operation to use a public key to encrypt the data key.

Then, you can import the ciphertext of the data key to the cryptographic module where the private key is stored. This way, the data key is securely distributed from KMS to the cryptographic module. After the data key is imported to the cryptographic module, you can use it to encrypt or decrypt data.

@param tmpReq - ExportDataKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return ExportDataKeyResponse

func (*Client) GenerateAndExportDataKey

func (client *Client) GenerateAndExportDataKey(request *GenerateAndExportDataKeyRequest) (_result *GenerateAndExportDataKeyResponse, _err error)

Description:

We recommend that you perform the following steps to import your data key to a cryptographic module:

  • Call the GenerateAndExportDataKey operation to generate a data key and obtain both the ciphertext of the data key encrypted by using the CMK and that encrypted by using the public key.

  • Store the ciphertext of the data key encrypted by using the CMK in KMS Secrets Manager or in a storage service such as ApsaraDB. This ciphertext is used for backup and restoration.

  • Import the ciphertext of the data key encrypted by using the public key to the cryptographic module where the private key is stored. Then, you can use the data key to encrypt or decrypt data.

> The CMK that you specify in the request of this operation is only used to encrypt the data key and is not involved in the generation of the data key. KMS does not record or store the data keys randomly generated by calling this operation. You must take note of the data keys and the returned ciphertext.

@param request - GenerateAndExportDataKeyRequest

@return GenerateAndExportDataKeyResponse

func (*Client) GenerateAndExportDataKeyWithOptions

func (client *Client) GenerateAndExportDataKeyWithOptions(tmpReq *GenerateAndExportDataKeyRequest, runtime *util.RuntimeOptions) (_result *GenerateAndExportDataKeyResponse, _err error)

Description:

We recommend that you perform the following steps to import your data key to a cryptographic module:

  • Call the GenerateAndExportDataKey operation to generate a data key and obtain both the ciphertext of the data key encrypted by using the CMK and that encrypted by using the public key.

  • Store the ciphertext of the data key encrypted by using the CMK in KMS Secrets Manager or in a storage service such as ApsaraDB. This ciphertext is used for backup and restoration.

  • Import the ciphertext of the data key encrypted by using the public key to the cryptographic module where the private key is stored. Then, you can use the data key to encrypt or decrypt data.

> The CMK that you specify in the request of this operation is only used to encrypt the data key and is not involved in the generation of the data key. KMS does not record or store the data keys randomly generated by calling this operation. You must take note of the data keys and the returned ciphertext.

@param tmpReq - GenerateAndExportDataKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return GenerateAndExportDataKeyResponse

func (*Client) GenerateDataKey

func (client *Client) GenerateDataKey(request *GenerateDataKeyRequest) (_result *GenerateDataKeyResponse, _err error)

Description:

This operation creates a random data key, encrypts the data key by using the specified customer master key (CMK), and returns the plaintext and ciphertext of the data key. You can use the plaintext of the data key to locally encrypt your data without using KMS and store the encrypted data together with the ciphertext of the data key. You can obtain the plaintext of the data key from the Plaintext parameter in the response and the ciphertext of the data key from the CiphertextBlob parameter in the response.

The CMK that you specify in the request of this operation is only used to encrypt the data key and is not involved in the generation of the data key. KMS does not record or store the generated data key. Therefore, you need to store the ciphertext of the data key in persistent storage.

We recommend that you locally encrypt data by performing the following steps:

1\\. Call the GenerateDataKey operation.

2\\. Use the plaintext of the data key that you obtain to locally encrypt data without using KMS. Then, delete the plaintext of the data key from the memory.

3\\. Store the encrypted data together with the ciphertext of the data key that you obtain.

We recommend that you locally decrypt data by performing the following steps:

  • Call the [Decrypt](~~28950~~) operation to decrypt the locally stored ciphertext of the data key. The plaintext of data key is then returned.

  • Use the plaintext of the data key to locally decrypt data and then delete the plaintext of the data key from the memory.

In this example, a random data key is generated for the CMK whose ID is `7906979c-8e06-46a2-be2d-68e3ccbc****`.

@param request - GenerateDataKeyRequest

@return GenerateDataKeyResponse

func (*Client) GenerateDataKeyWithOptions

func (client *Client) GenerateDataKeyWithOptions(tmpReq *GenerateDataKeyRequest, runtime *util.RuntimeOptions) (_result *GenerateDataKeyResponse, _err error)

Description:

This operation creates a random data key, encrypts the data key by using the specified customer master key (CMK), and returns the plaintext and ciphertext of the data key. You can use the plaintext of the data key to locally encrypt your data without using KMS and store the encrypted data together with the ciphertext of the data key. You can obtain the plaintext of the data key from the Plaintext parameter in the response and the ciphertext of the data key from the CiphertextBlob parameter in the response.

The CMK that you specify in the request of this operation is only used to encrypt the data key and is not involved in the generation of the data key. KMS does not record or store the generated data key. Therefore, you need to store the ciphertext of the data key in persistent storage.

We recommend that you locally encrypt data by performing the following steps:

1\\. Call the GenerateDataKey operation.

2\\. Use the plaintext of the data key that you obtain to locally encrypt data without using KMS. Then, delete the plaintext of the data key from the memory.

3\\. Store the encrypted data together with the ciphertext of the data key that you obtain.

We recommend that you locally decrypt data by performing the following steps:

  • Call the [Decrypt](~~28950~~) operation to decrypt the locally stored ciphertext of the data key. The plaintext of data key is then returned.

  • Use the plaintext of the data key to locally decrypt data and then delete the plaintext of the data key from the memory.

In this example, a random data key is generated for the CMK whose ID is `7906979c-8e06-46a2-be2d-68e3ccbc****`.

@param tmpReq - GenerateDataKeyRequest

@param runtime - runtime options for this request RuntimeOptions

@return GenerateDataKeyResponse

func (*Client) GenerateDataKeyWithoutPlaintext

func (client *Client) GenerateDataKeyWithoutPlaintext(request *GenerateDataKeyWithoutPlaintextRequest) (_result *GenerateDataKeyWithoutPlaintextResponse, _err error)

Description:

This operation creates a random data key, encrypts the data key by using a specific symmetric CMK, and returns the ciphertext of the data key. This operation serves the same purpose as the [GenerateDataKey](~~28948~~) operation. The only difference is that this operation does not return the plaintext of the data key.

The CMK that you specify in the request of this operation is only used to encrypt the data key and is not involved in the generation of the data key. KMS does not record or store the generated data key.

> - This operation applies to the scenario when you do not need to use the data key to immediately encrypt data. Before you can use the data key to encrypt data, you must call the [Decrypt](~~28950~~) operation to decrypt the ciphertext of the data key.

> - This operation is also suitable for a distributed system with different trust levels. For example, a system stores data in different partitions based on a preset trust policy. A module creates different partitions and generates different data keys for each partition in advance. This module is not involved in data production and consumption after it completes initialization of the control plane. This module is the key provider. When producing and consuming data, modules on the control plane obtain the ciphertext of the data key for a partition first. After decrypting the ciphertext of the data key, modules on the control plane use the plaintext of the data key to encrypt or decrypt data and then clear the plaintext of the data key from the memory. In such a system, the key provider does not need to obtain the plaintext of the data key. It only needs to have the permissions to call the GenerateDataKeyWithoutPlaintext operation. The data producers or consumers do not need to generate new data keys. They only need to have the permissions to call the Decrypt operation.

@param request - GenerateDataKeyWithoutPlaintextRequest

@return GenerateDataKeyWithoutPlaintextResponse

func (*Client) GenerateDataKeyWithoutPlaintextWithOptions

func (client *Client) GenerateDataKeyWithoutPlaintextWithOptions(tmpReq *GenerateDataKeyWithoutPlaintextRequest, runtime *util.RuntimeOptions) (_result *GenerateDataKeyWithoutPlaintextResponse, _err error)

Description:

This operation creates a random data key, encrypts the data key by using a specific symmetric CMK, and returns the ciphertext of the data key. This operation serves the same purpose as the [GenerateDataKey](~~28948~~) operation. The only difference is that this operation does not return the plaintext of the data key.

The CMK that you specify in the request of this operation is only used to encrypt the data key and is not involved in the generation of the data key. KMS does not record or store the generated data key.

> - This operation applies to the scenario when you do not need to use the data key to immediately encrypt data. Before you can use the data key to encrypt data, you must call the [Decrypt](~~28950~~) operation to decrypt the ciphertext of the data key.

> - This operation is also suitable for a distributed system with different trust levels. For example, a system stores data in different partitions based on a preset trust policy. A module creates different partitions and generates different data keys for each partition in advance. This module is not involved in data production and consumption after it completes initialization of the control plane. This module is the key provider. When producing and consuming data, modules on the control plane obtain the ciphertext of the data key for a partition first. After decrypting the ciphertext of the data key, modules on the control plane use the plaintext of the data key to encrypt or decrypt data and then clear the plaintext of the data key from the memory. In such a system, the key provider does not need to obtain the plaintext of the data key. It only needs to have the permissions to call the GenerateDataKeyWithoutPlaintext operation. The data producers or consumers do not need to generate new data keys. They only need to have the permissions to call the Decrypt operation.

@param tmpReq - GenerateDataKeyWithoutPlaintextRequest

@param runtime - runtime options for this request RuntimeOptions

@return GenerateDataKeyWithoutPlaintextResponse

func (*Client) GetCertificate

func (client *Client) GetCertificate(request *GetCertificateRequest) (_result *GetCertificateResponse, _err error)

Description:

In this example, the certificate whose ID is `9a28de48-8d8b-484d-a766-dec4****` is queried. The certificate, certificate chain, certificate ID, and certificate signing request (CSR) are returned.

@param request - GetCertificateRequest

@return GetCertificateResponse

func (*Client) GetCertificateWithOptions

func (client *Client) GetCertificateWithOptions(request *GetCertificateRequest, runtime *util.RuntimeOptions) (_result *GetCertificateResponse, _err error)

Description:

In this example, the certificate whose ID is `9a28de48-8d8b-484d-a766-dec4****` is queried. The certificate, certificate chain, certificate ID, and certificate signing request (CSR) are returned.

@param request - GetCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return GetCertificateResponse

func (*Client) GetClientKey added in v3.1.0

func (client *Client) GetClientKey(request *GetClientKeyRequest) (_result *GetClientKeyResponse, _err error)

func (*Client) GetClientKeyWithOptions added in v3.1.0

func (client *Client) GetClientKeyWithOptions(request *GetClientKeyRequest, runtime *util.RuntimeOptions) (_result *GetClientKeyResponse, _err error)

func (*Client) GetEndpoint

func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error)

func (*Client) GetKeyPolicy added in v3.2.0

func (client *Client) GetKeyPolicy(request *GetKeyPolicyRequest) (_result *GetKeyPolicyResponse, _err error)

func (*Client) GetKeyPolicyWithOptions added in v3.2.0

func (client *Client) GetKeyPolicyWithOptions(request *GetKeyPolicyRequest, runtime *util.RuntimeOptions) (_result *GetKeyPolicyResponse, _err error)

func (*Client) GetKmsInstance added in v3.1.0

func (client *Client) GetKmsInstance(request *GetKmsInstanceRequest) (_result *GetKmsInstanceResponse, _err error)

func (*Client) GetKmsInstanceWithOptions added in v3.1.0

func (client *Client) GetKmsInstanceWithOptions(request *GetKmsInstanceRequest, runtime *util.RuntimeOptions) (_result *GetKmsInstanceResponse, _err error)

func (*Client) GetParametersForImport

func (client *Client) GetParametersForImport(request *GetParametersForImportRequest) (_result *GetParametersForImportResponse, _err error)

Description:

The returned parameters can be used to call the [ImportKeyMaterial](https://www.alibabacloud.com/help/en/key-management-service/latest/importkeymaterial) operation.

- You can import key material only for CMKs whose Origin parameter is set to EXTERNAL.

- The public key and token that are returned by the GetParametersForImport operation must be used together. The public key and token can be used to import key material only for the CMK that is specified when you call the operation.

- The public key and token that are returned vary each time you call the GetParametersForImport operation.

- You must specify the type of the public key and the encryption algorithm that are used to encrypt key material. The following table lists the types of public keys and the encryption algorithms allowed for each type.

| Public key type | Encryption algorithm | Description |

| --------------- | -------------------- | ----------- |

| RSA_2048 | RSAES_PKCS1_V1_5

RSAES_OAEP_SHA_1

RSAES_OAEP_SHA_256 | CMKs of all regions and all protection levels are supported.

Dedicated Key Management Service (KMS) does not support RSAES_OAEP_SHA_1. |

| EC_SM2 | SM2PKE | CMKs whose ProtectionLevel is set to HSM are supported. The SM2 algorithm is developed and approved by the State Cryptography Administration of China. The SM2 algorithm can be used only to import key material for a CMK whose ProtectionLevel is set to HSM. You can use the SM2 algorithm only when you enable the Managed HSM feature for KMS in the Chinese mainland. For more information, see [Overview of Managed HSM](https://www.alibabacloud.com/help/en/key-management-service/latest/managed-hsm-overview). |

For more information, see [Import key material](https://www.alibabacloud.com/help/en/key-management-service/latest/import-key-material). This topic provides an example on how to query the parameters that are used to import key material for a CMK. The ID of the CMK is `1234abcd-12ab-34cd-56ef-12345678****`, the encryption algorithm is `RSAES_PKCS1_V1_5`, and the public key is of the `RSA_2048` type. The parameters that are returned include the ID of the CMK, the public key that is used to encrypt the key material, the token that is used to import the key material, and the time when the token expires.

@param request - GetParametersForImportRequest

@return GetParametersForImportResponse

func (*Client) GetParametersForImportWithOptions

func (client *Client) GetParametersForImportWithOptions(request *GetParametersForImportRequest, runtime *util.RuntimeOptions) (_result *GetParametersForImportResponse, _err error)

Description:

The returned parameters can be used to call the [ImportKeyMaterial](https://www.alibabacloud.com/help/en/key-management-service/latest/importkeymaterial) operation.

- You can import key material only for CMKs whose Origin parameter is set to EXTERNAL.

- The public key and token that are returned by the GetParametersForImport operation must be used together. The public key and token can be used to import key material only for the CMK that is specified when you call the operation.

- The public key and token that are returned vary each time you call the GetParametersForImport operation.

- You must specify the type of the public key and the encryption algorithm that are used to encrypt key material. The following table lists the types of public keys and the encryption algorithms allowed for each type.

| Public key type | Encryption algorithm | Description |

| --------------- | -------------------- | ----------- |

| RSA_2048 | RSAES_PKCS1_V1_5

RSAES_OAEP_SHA_1

RSAES_OAEP_SHA_256 | CMKs of all regions and all protection levels are supported.

Dedicated Key Management Service (KMS) does not support RSAES_OAEP_SHA_1. |

| EC_SM2 | SM2PKE | CMKs whose ProtectionLevel is set to HSM are supported. The SM2 algorithm is developed and approved by the State Cryptography Administration of China. The SM2 algorithm can be used only to import key material for a CMK whose ProtectionLevel is set to HSM. You can use the SM2 algorithm only when you enable the Managed HSM feature for KMS in the Chinese mainland. For more information, see [Overview of Managed HSM](https://www.alibabacloud.com/help/en/key-management-service/latest/managed-hsm-overview). |

For more information, see [Import key material](https://www.alibabacloud.com/help/en/key-management-service/latest/import-key-material). This topic provides an example on how to query the parameters that are used to import key material for a CMK. The ID of the CMK is `1234abcd-12ab-34cd-56ef-12345678****`, the encryption algorithm is `RSAES_PKCS1_V1_5`, and the public key is of the `RSA_2048` type. The parameters that are returned include the ID of the CMK, the public key that is used to encrypt the key material, the token that is used to import the key material, and the time when the token expires.

@param request - GetParametersForImportRequest

@param runtime - runtime options for this request RuntimeOptions

@return GetParametersForImportResponse

func (*Client) GetPublicKey

func (client *Client) GetPublicKey(request *GetPublicKeyRequest) (_result *GetPublicKeyResponse, _err error)

func (*Client) GetPublicKeyWithOptions

func (client *Client) GetPublicKeyWithOptions(request *GetPublicKeyRequest, runtime *util.RuntimeOptions) (_result *GetPublicKeyResponse, _err error)

func (*Client) GetRandomPassword

func (client *Client) GetRandomPassword(request *GetRandomPasswordRequest) (_result *GetRandomPasswordResponse, _err error)

func (*Client) GetRandomPasswordWithOptions

func (client *Client) GetRandomPasswordWithOptions(request *GetRandomPasswordRequest, runtime *util.RuntimeOptions) (_result *GetRandomPasswordResponse, _err error)

func (*Client) GetSecretPolicy added in v3.2.0

func (client *Client) GetSecretPolicy(request *GetSecretPolicyRequest) (_result *GetSecretPolicyResponse, _err error)

func (*Client) GetSecretPolicyWithOptions added in v3.2.0

func (client *Client) GetSecretPolicyWithOptions(request *GetSecretPolicyRequest, runtime *util.RuntimeOptions) (_result *GetSecretPolicyResponse, _err error)

func (*Client) GetSecretValue

func (client *Client) GetSecretValue(request *GetSecretValueRequest) (_result *GetSecretValueResponse, _err error)

Description:

If you do not specify a version number or stage label, Secrets Manager returns the secret value of the version marked with ACSCurrent.

If a customer master key (CMK) is specified to encrypt the secret value, you must also have the `kms:Decrypt` permission on the CMK to call the GetSecretValue operation.

In this example, the value of the secret named `secret001` is obtained. The secret value is returned in the `SecretData` parameter. The secret value is `testdata1`.

@param request - GetSecretValueRequest

@return GetSecretValueResponse

func (*Client) GetSecretValueWithOptions

func (client *Client) GetSecretValueWithOptions(request *GetSecretValueRequest, runtime *util.RuntimeOptions) (_result *GetSecretValueResponse, _err error)

Description:

If you do not specify a version number or stage label, Secrets Manager returns the secret value of the version marked with ACSCurrent.

If a customer master key (CMK) is specified to encrypt the secret value, you must also have the `kms:Decrypt` permission on the CMK to call the GetSecretValue operation.

In this example, the value of the secret named `secret001` is obtained. The secret value is returned in the `SecretData` parameter. The secret value is `testdata1`.

@param request - GetSecretValueRequest

@param runtime - runtime options for this request RuntimeOptions

@return GetSecretValueResponse

func (*Client) ImportKeyMaterial

func (client *Client) ImportKeyMaterial(request *ImportKeyMaterialRequest) (_result *ImportKeyMaterialResponse, _err error)

Description:

Call [CreateKey](~~28947~~) when creating a CMK, you can select its key material source as external. **Origin* - set to **EXTERNAL**. This API is used to import the key material into the CMK.

  • To view the CMK **Origin**, see [DescribeKey](~~28952~~).

  • Before importing key material, you need to call the [GetParametersForImport](~~68621~~) obtain the parameters required to import the key material, including the public key and import token.

> - The key type of the pair is **Aliyun\\_AES\\_256* - the key material must be 256 bits. The key type must be **Aliyun\\_SM4* - the CMK and key material must be 128 bits.

> - You can set the expiration time for the key material, or you can set it to never expire.

> - You can reimport the key material and reset the expiration time for the specified CMK at any time, but the same key material must be imported.

> - After the imported key material expires or is deleted, the specified CMK is unavailable until the same key material are imported again.

> - A Key material can be imported to multiple cmks, but any Data or Data Key encrypted by one CMK cannot be decrypted by another CMK.

@param request - ImportKeyMaterialRequest

@return ImportKeyMaterialResponse

func (*Client) ImportKeyMaterialWithOptions

func (client *Client) ImportKeyMaterialWithOptions(request *ImportKeyMaterialRequest, runtime *util.RuntimeOptions) (_result *ImportKeyMaterialResponse, _err error)

Description:

Call [CreateKey](~~28947~~) when creating a CMK, you can select its key material source as external. **Origin* - set to **EXTERNAL**. This API is used to import the key material into the CMK.

  • To view the CMK **Origin**, see [DescribeKey](~~28952~~).

  • Before importing key material, you need to call the [GetParametersForImport](~~68621~~) obtain the parameters required to import the key material, including the public key and import token.

> - The key type of the pair is **Aliyun\\_AES\\_256* - the key material must be 256 bits. The key type must be **Aliyun\\_SM4* - the CMK and key material must be 128 bits.

> - You can set the expiration time for the key material, or you can set it to never expire.

> - You can reimport the key material and reset the expiration time for the specified CMK at any time, but the same key material must be imported.

> - After the imported key material expires or is deleted, the specified CMK is unavailable until the same key material are imported again.

> - A Key material can be imported to multiple cmks, but any Data or Data Key encrypted by one CMK cannot be decrypted by another CMK.

@param request - ImportKeyMaterialRequest

@param runtime - runtime options for this request RuntimeOptions

@return ImportKeyMaterialResponse

func (*Client) Init

func (client *Client) Init(config *openapi.Config) (_err error)

func (*Client) ListAliases

func (client *Client) ListAliases(request *ListAliasesRequest) (_result *ListAliasesResponse, _err error)

func (*Client) ListAliasesByKeyId

func (client *Client) ListAliasesByKeyId(request *ListAliasesByKeyIdRequest) (_result *ListAliasesByKeyIdResponse, _err error)

func (*Client) ListAliasesByKeyIdWithOptions

func (client *Client) ListAliasesByKeyIdWithOptions(request *ListAliasesByKeyIdRequest, runtime *util.RuntimeOptions) (_result *ListAliasesByKeyIdResponse, _err error)

func (*Client) ListAliasesWithOptions

func (client *Client) ListAliasesWithOptions(request *ListAliasesRequest, runtime *util.RuntimeOptions) (_result *ListAliasesResponse, _err error)

func (*Client) ListApplicationAccessPoints added in v3.1.0

func (client *Client) ListApplicationAccessPoints(request *ListApplicationAccessPointsRequest) (_result *ListApplicationAccessPointsResponse, _err error)

func (*Client) ListApplicationAccessPointsWithOptions added in v3.1.0

func (client *Client) ListApplicationAccessPointsWithOptions(request *ListApplicationAccessPointsRequest, runtime *util.RuntimeOptions) (_result *ListApplicationAccessPointsResponse, _err error)

func (*Client) ListClientKeys added in v3.1.0

func (client *Client) ListClientKeys(request *ListClientKeysRequest) (_result *ListClientKeysResponse, _err error)

func (*Client) ListClientKeysWithOptions added in v3.1.0

func (client *Client) ListClientKeysWithOptions(request *ListClientKeysRequest, runtime *util.RuntimeOptions) (_result *ListClientKeysResponse, _err error)

func (*Client) ListKeyVersions

func (client *Client) ListKeyVersions(request *ListKeyVersionsRequest) (_result *ListKeyVersionsResponse, _err error)

func (*Client) ListKeyVersionsWithOptions

func (client *Client) ListKeyVersionsWithOptions(request *ListKeyVersionsRequest, runtime *util.RuntimeOptions) (_result *ListKeyVersionsResponse, _err error)

func (*Client) ListKeys

func (client *Client) ListKeys(request *ListKeysRequest) (_result *ListKeysResponse, _err error)

func (*Client) ListKeysWithOptions

func (client *Client) ListKeysWithOptions(request *ListKeysRequest, runtime *util.RuntimeOptions) (_result *ListKeysResponse, _err error)

func (*Client) ListKmsInstances added in v3.1.0

func (client *Client) ListKmsInstances(request *ListKmsInstancesRequest) (_result *ListKmsInstancesResponse, _err error)

func (*Client) ListKmsInstancesWithOptions added in v3.1.0

func (client *Client) ListKmsInstancesWithOptions(request *ListKmsInstancesRequest, runtime *util.RuntimeOptions) (_result *ListKmsInstancesResponse, _err error)

func (*Client) ListNetworkRules added in v3.1.0

func (client *Client) ListNetworkRules(request *ListNetworkRulesRequest) (_result *ListNetworkRulesResponse, _err error)

func (*Client) ListNetworkRulesWithOptions added in v3.1.0

func (client *Client) ListNetworkRulesWithOptions(request *ListNetworkRulesRequest, runtime *util.RuntimeOptions) (_result *ListNetworkRulesResponse, _err error)

func (*Client) ListPolicies added in v3.1.0

func (client *Client) ListPolicies(request *ListPoliciesRequest) (_result *ListPoliciesResponse, _err error)

func (*Client) ListPoliciesWithOptions added in v3.1.0

func (client *Client) ListPoliciesWithOptions(request *ListPoliciesRequest, runtime *util.RuntimeOptions) (_result *ListPoliciesResponse, _err error)

func (*Client) ListResourceTags

func (client *Client) ListResourceTags(request *ListResourceTagsRequest) (_result *ListResourceTagsResponse, _err error)

Description:

Request format: KeyId="string"

@param request - ListResourceTagsRequest

@return ListResourceTagsResponse

func (*Client) ListResourceTagsWithOptions

func (client *Client) ListResourceTagsWithOptions(request *ListResourceTagsRequest, runtime *util.RuntimeOptions) (_result *ListResourceTagsResponse, _err error)

Description:

Request format: KeyId="string"

@param request - ListResourceTagsRequest

@param runtime - runtime options for this request RuntimeOptions

@return ListResourceTagsResponse

func (*Client) ListSecretVersionIds

func (client *Client) ListSecretVersionIds(request *ListSecretVersionIdsRequest) (_result *ListSecretVersionIdsResponse, _err error)

Description:

The secret value is not included in the returned version information. By default, deprecated secret versions are not returned.

@param request - ListSecretVersionIdsRequest

@return ListSecretVersionIdsResponse

func (*Client) ListSecretVersionIdsWithOptions

func (client *Client) ListSecretVersionIdsWithOptions(request *ListSecretVersionIdsRequest, runtime *util.RuntimeOptions) (_result *ListSecretVersionIdsResponse, _err error)

Description:

The secret value is not included in the returned version information. By default, deprecated secret versions are not returned.

@param request - ListSecretVersionIdsRequest

@param runtime - runtime options for this request RuntimeOptions

@return ListSecretVersionIdsResponse

func (*Client) ListSecrets

func (client *Client) ListSecrets(request *ListSecretsRequest) (_result *ListSecretsResponse, _err error)

Description:

Specifies whether to return the resource tags of the secret. Valid values:

  • true: returns the resource tags.

  • false: does not return the resource tags. This is the default value.

@param request - ListSecretsRequest

@return ListSecretsResponse

func (*Client) ListSecretsWithOptions

func (client *Client) ListSecretsWithOptions(request *ListSecretsRequest, runtime *util.RuntimeOptions) (_result *ListSecretsResponse, _err error)

Description:

Specifies whether to return the resource tags of the secret. Valid values:

  • true: returns the resource tags.

  • false: does not return the resource tags. This is the default value.

@param request - ListSecretsRequest

@param runtime - runtime options for this request RuntimeOptions

@return ListSecretsResponse

func (*Client) ListTagResources added in v3.0.2

func (client *Client) ListTagResources(request *ListTagResourcesRequest) (_result *ListTagResourcesResponse, _err error)

func (*Client) ListTagResourcesWithOptions added in v3.0.2

func (client *Client) ListTagResourcesWithOptions(request *ListTagResourcesRequest, runtime *util.RuntimeOptions) (_result *ListTagResourcesResponse, _err error)

func (*Client) OpenKmsService

func (client *Client) OpenKmsService() (_result *OpenKmsServiceResponse, _err error)

Description:

When you call this operation, note that:

- KMS is a paid service. For more information about the billing method, see [Billing description](https://www.alibabacloud.com/help/en/key-management-service/latest/billing-billing).

- An Alibaba Cloud account can activate KMS only once.

- Make sure that your Alibaba Cloud account has passed real-name authentication.

@return OpenKmsServiceResponse

func (*Client) OpenKmsServiceWithOptions

func (client *Client) OpenKmsServiceWithOptions(runtime *util.RuntimeOptions) (_result *OpenKmsServiceResponse, _err error)

Description:

When you call this operation, note that:

- KMS is a paid service. For more information about the billing method, see [Billing description](https://www.alibabacloud.com/help/en/key-management-service/latest/billing-billing).

- An Alibaba Cloud account can activate KMS only once.

- Make sure that your Alibaba Cloud account has passed real-name authentication.

@param request - OpenKmsServiceRequest

@param runtime - runtime options for this request RuntimeOptions

@return OpenKmsServiceResponse

func (*Client) PutSecretValue

func (client *Client) PutSecretValue(request *PutSecretValueRequest) (_result *PutSecretValueResponse, _err error)

Description:

This operation is used to store the secret values of new versions. It cannot be used to modify the secret value of an existing version.

By default, the newly stored secret value is marked with ACSCurrent, and the mark for the previous version of the secret value is changed from ACSCurrent to ACSPrevious. If you specify the VersionStage parameter, the newly stored secret value is marked with the stage label that you specify.

You must specify a version number when you call the operation. Secrets Manager performs operations based on the following rules:

  • If the specified version number does not exist in the secret, Secrets Manager creates the version and stores the secret value.

  • If the specified version number already exists in the secret and the secret value of the existing version is the same as the secret value that you specify, Secrets Manager ignores the request and returns a success message. The request is idempotent.

  • If the specified version number already exists in the secret but the secret value of the existing version is different from the secret value that you specify, Secrets Manager rejects the request and returns a failure message.

Limits: This operation is available only for standard secrets.

In this example, the secret value of a new version is stored into the `secret001` secret. The `VersionId` parameter is set to `00000000000000000000000000000000203` as the new version, and the `SecretData` parameter is set to `importantdata`.

@param request - PutSecretValueRequest

@return PutSecretValueResponse

func (*Client) PutSecretValueWithOptions

func (client *Client) PutSecretValueWithOptions(request *PutSecretValueRequest, runtime *util.RuntimeOptions) (_result *PutSecretValueResponse, _err error)

Description:

This operation is used to store the secret values of new versions. It cannot be used to modify the secret value of an existing version.

By default, the newly stored secret value is marked with ACSCurrent, and the mark for the previous version of the secret value is changed from ACSCurrent to ACSPrevious. If you specify the VersionStage parameter, the newly stored secret value is marked with the stage label that you specify.

You must specify a version number when you call the operation. Secrets Manager performs operations based on the following rules:

  • If the specified version number does not exist in the secret, Secrets Manager creates the version and stores the secret value.

  • If the specified version number already exists in the secret and the secret value of the existing version is the same as the secret value that you specify, Secrets Manager ignores the request and returns a success message. The request is idempotent.

  • If the specified version number already exists in the secret but the secret value of the existing version is different from the secret value that you specify, Secrets Manager rejects the request and returns a failure message.

Limits: This operation is available only for standard secrets.

In this example, the secret value of a new version is stored into the `secret001` secret. The `VersionId` parameter is set to `00000000000000000000000000000000203` as the new version, and the `SecretData` parameter is set to `importantdata`.

@param request - PutSecretValueRequest

@param runtime - runtime options for this request RuntimeOptions

@return PutSecretValueResponse

func (*Client) ReEncrypt

func (client *Client) ReEncrypt(request *ReEncryptRequest) (_result *ReEncryptResponse, _err error)

Description:

You can call this operation in the following scenarios:

  • After the CMK that was used to encrypt your data is rotated, you can call this operation to use the latest CMK version to re-encrypt the data. For more information about automatic key rotation, see [Configure automatic key rotation](~~134270~~).

  • The CMK that was used to encrypt your data remains unchanged, but EncryptionContext is changed. In this scenario, you can call this operation to re-encrypt the data.

  • You can call this operation to use a CMK in KMS to re-encrypt data or a data key that was previously encrypted by a different CMK.

To use the ReEncrypt operation, you must have two permissions:

  • kms:ReEncryptFrom on the source CMK

  • kms:ReEncryptTo on the destination CMK

  • For simplicity, you can specify kms:ReEncrypt\\ - to allow both of the preceding permissions.

@param request - ReEncryptRequest

@return ReEncryptResponse

func (*Client) ReEncryptWithOptions

func (client *Client) ReEncryptWithOptions(tmpReq *ReEncryptRequest, runtime *util.RuntimeOptions) (_result *ReEncryptResponse, _err error)

Description:

You can call this operation in the following scenarios:

  • After the CMK that was used to encrypt your data is rotated, you can call this operation to use the latest CMK version to re-encrypt the data. For more information about automatic key rotation, see [Configure automatic key rotation](~~134270~~).

  • The CMK that was used to encrypt your data remains unchanged, but EncryptionContext is changed. In this scenario, you can call this operation to re-encrypt the data.

  • You can call this operation to use a CMK in KMS to re-encrypt data or a data key that was previously encrypted by a different CMK.

To use the ReEncrypt operation, you must have two permissions:

  • kms:ReEncryptFrom on the source CMK

  • kms:ReEncryptTo on the destination CMK

  • For simplicity, you can specify kms:ReEncrypt\\ - to allow both of the preceding permissions.

@param tmpReq - ReEncryptRequest

@param runtime - runtime options for this request RuntimeOptions

@return ReEncryptResponse

func (*Client) RestoreSecret

func (client *Client) RestoreSecret(request *RestoreSecretRequest) (_result *RestoreSecretResponse, _err error)

Description:

You can only use this operation to restore a deleted secret that is within its recovery period. If you set **ForceDeleteWithoutRecovery* - to **true* - when you delete the secret, you cannot restore it.

@param request - RestoreSecretRequest

@return RestoreSecretResponse

func (*Client) RestoreSecretWithOptions

func (client *Client) RestoreSecretWithOptions(request *RestoreSecretRequest, runtime *util.RuntimeOptions) (_result *RestoreSecretResponse, _err error)

Description:

You can only use this operation to restore a deleted secret that is within its recovery period. If you set **ForceDeleteWithoutRecovery* - to **true* - when you delete the secret, you cannot restore it.

@param request - RestoreSecretRequest

@param runtime - runtime options for this request RuntimeOptions

@return RestoreSecretResponse

func (*Client) RotateSecret

func (client *Client) RotateSecret(request *RotateSecretRequest) (_result *RotateSecretResponse, _err error)

Description:

Limits:

• A secret of each Alibaba Cloud account can be rotated for a maximum of 50 times per hour.

• The RotateSecret operation is unavailable for standard secrets.

In this example, the `RdsSecret/Mysql5.4/MyCred` secret is manually rotated, and the version number of the secret is set to `000000123` after the secret is rotated.

@param request - RotateSecretRequest

@return RotateSecretResponse

func (*Client) RotateSecretWithOptions

func (client *Client) RotateSecretWithOptions(request *RotateSecretRequest, runtime *util.RuntimeOptions) (_result *RotateSecretResponse, _err error)

Description:

Limits:

• A secret of each Alibaba Cloud account can be rotated for a maximum of 50 times per hour.

• The RotateSecret operation is unavailable for standard secrets.

In this example, the `RdsSecret/Mysql5.4/MyCred` secret is manually rotated, and the version number of the secret is set to `000000123` after the secret is rotated.

@param request - RotateSecretRequest

@param runtime - runtime options for this request RuntimeOptions

@return RotateSecretResponse

func (*Client) ScheduleKeyDeletion

func (client *Client) ScheduleKeyDeletion(request *ScheduleKeyDeletionRequest) (_result *ScheduleKeyDeletionResponse, _err error)

Description:

During the scheduled period, the CMK is in the PendingDeletion state and cannot be used to encrypt data, decrypt data, or generate data keys.

After a CMK is deleted, it cannot be recovered. Data that is encrypted and data keys that are generated by using the CMK cannot be decrypted. To prevent accidental deletion of CMKs, Key Management Service (KMS) allows you to only schedule key deletion tasks. You cannot directly delete CMKs. If you want to delete a CMK, call the [DisableKey](~~35151~~) operation to disable the CMK.

When you call this operation, you must specify a scheduled period between 7 days to 366 days. The scheduled period starts from the time when you submit the request. You can call the [CancelKeyDeletion](~~44197~~) operation to cancel the key deletion task before the scheduled period ends.

@param request - ScheduleKeyDeletionRequest

@return ScheduleKeyDeletionResponse

func (*Client) ScheduleKeyDeletionWithOptions

func (client *Client) ScheduleKeyDeletionWithOptions(request *ScheduleKeyDeletionRequest, runtime *util.RuntimeOptions) (_result *ScheduleKeyDeletionResponse, _err error)

Description:

During the scheduled period, the CMK is in the PendingDeletion state and cannot be used to encrypt data, decrypt data, or generate data keys.

After a CMK is deleted, it cannot be recovered. Data that is encrypted and data keys that are generated by using the CMK cannot be decrypted. To prevent accidental deletion of CMKs, Key Management Service (KMS) allows you to only schedule key deletion tasks. You cannot directly delete CMKs. If you want to delete a CMK, call the [DisableKey](~~35151~~) operation to disable the CMK.

When you call this operation, you must specify a scheduled period between 7 days to 366 days. The scheduled period starts from the time when you submit the request. You can call the [CancelKeyDeletion](~~44197~~) operation to cancel the key deletion task before the scheduled period ends.

@param request - ScheduleKeyDeletionRequest

@param runtime - runtime options for this request RuntimeOptions

@return ScheduleKeyDeletionResponse

func (*Client) SetDeletionProtection

func (client *Client) SetDeletionProtection(request *SetDeletionProtectionRequest) (_result *SetDeletionProtectionResponse, _err error)

Description:

  • After you enable deletion protection for a CMK, you cannot delete the CMK. If you want to delete the CMK, you must first disable deletion protection for the CMK.

  • Before you can call the SetDeletionProtection operation, make sure that the required CMK is not in the Pending Deletion state. You can call the [DescribeKey](~~28952~~) operation to query the CMK status, which is specified by the KeyState parameter.

You can enable deletion protection for the CMK whose Alibaba Cloud Resource Name (ARN) is `acs:kms:cn-hangzhou:123213123****:key/0225f411-b21d-46d1-be5b-93931c82****` by using parameter settings provided in this topic. The CMK ARN is specified by the ProtectedResourceArn parameter.

@param request - SetDeletionProtectionRequest

@return SetDeletionProtectionResponse

func (*Client) SetDeletionProtectionWithOptions

func (client *Client) SetDeletionProtectionWithOptions(request *SetDeletionProtectionRequest, runtime *util.RuntimeOptions) (_result *SetDeletionProtectionResponse, _err error)

Description:

  • After you enable deletion protection for a CMK, you cannot delete the CMK. If you want to delete the CMK, you must first disable deletion protection for the CMK.

  • Before you can call the SetDeletionProtection operation, make sure that the required CMK is not in the Pending Deletion state. You can call the [DescribeKey](~~28952~~) operation to query the CMK status, which is specified by the KeyState parameter.

You can enable deletion protection for the CMK whose Alibaba Cloud Resource Name (ARN) is `acs:kms:cn-hangzhou:123213123****:key/0225f411-b21d-46d1-be5b-93931c82****` by using parameter settings provided in this topic. The CMK ARN is specified by the ProtectedResourceArn parameter.

@param request - SetDeletionProtectionRequest

@param runtime - runtime options for this request RuntimeOptions

@return SetDeletionProtectionResponse

func (*Client) SetKeyPolicy added in v3.2.0

func (client *Client) SetKeyPolicy(request *SetKeyPolicyRequest) (_result *SetKeyPolicyResponse, _err error)

func (*Client) SetKeyPolicyWithOptions added in v3.2.0

func (client *Client) SetKeyPolicyWithOptions(request *SetKeyPolicyRequest, runtime *util.RuntimeOptions) (_result *SetKeyPolicyResponse, _err error)

func (*Client) SetSecretPolicy added in v3.2.0

func (client *Client) SetSecretPolicy(request *SetSecretPolicyRequest) (_result *SetSecretPolicyResponse, _err error)

func (*Client) SetSecretPolicyWithOptions added in v3.2.0

func (client *Client) SetSecretPolicyWithOptions(request *SetSecretPolicyRequest, runtime *util.RuntimeOptions) (_result *SetSecretPolicyResponse, _err error)

func (*Client) TagResource

func (client *Client) TagResource(request *TagResourceRequest) (_result *TagResourceResponse, _err error)

Description:

You can add up to 10 tags to a CMK, secret, or certificate.

In this example, the tags `[{"TagKey":"S1key1","TagValue":"S1val1"},{"TagKey":"S1key2","TagValue":"S2val2"}]` are added to the CMK whose ID is `08c33a6f-4e0a-4a1b-a3fa-7ddf****`.

@param request - TagResourceRequest

@return TagResourceResponse

func (*Client) TagResourceWithOptions

func (client *Client) TagResourceWithOptions(request *TagResourceRequest, runtime *util.RuntimeOptions) (_result *TagResourceResponse, _err error)

Description:

You can add up to 10 tags to a CMK, secret, or certificate.

In this example, the tags `[{"TagKey":"S1key1","TagValue":"S1val1"},{"TagKey":"S1key2","TagValue":"S2val2"}]` are added to the CMK whose ID is `08c33a6f-4e0a-4a1b-a3fa-7ddf****`.

@param request - TagResourceRequest

@param runtime - runtime options for this request RuntimeOptions

@return TagResourceResponse

func (*Client) TagResources added in v3.0.2

func (client *Client) TagResources(request *TagResourcesRequest) (_result *TagResourcesResponse, _err error)

Description:

You can add multiple tags to multiple keys or multiple secrets at a time.

@param request - TagResourcesRequest

@return TagResourcesResponse

func (*Client) TagResourcesWithOptions added in v3.0.2

func (client *Client) TagResourcesWithOptions(request *TagResourcesRequest, runtime *util.RuntimeOptions) (_result *TagResourcesResponse, _err error)

Description:

You can add multiple tags to multiple keys or multiple secrets at a time.

@param request - TagResourcesRequest

@param runtime - runtime options for this request RuntimeOptions

@return TagResourcesResponse

func (*Client) UntagResource

func (client *Client) UntagResource(request *UntagResourceRequest) (_result *UntagResourceResponse, _err error)

Description:

One or more tag keys. Separate multiple tag keys with commas (,).

You need to specify only the tag keys, not the tag values.

Each tag key must be 1 to 128 bytes in length.

@param request - UntagResourceRequest

@return UntagResourceResponse

func (*Client) UntagResourceWithOptions

func (client *Client) UntagResourceWithOptions(request *UntagResourceRequest, runtime *util.RuntimeOptions) (_result *UntagResourceResponse, _err error)

Description:

One or more tag keys. Separate multiple tag keys with commas (,).

You need to specify only the tag keys, not the tag values.

Each tag key must be 1 to 128 bytes in length.

@param request - UntagResourceRequest

@param runtime - runtime options for this request RuntimeOptions

@return UntagResourceResponse

func (*Client) UntagResources added in v3.0.2

func (client *Client) UntagResources(request *UntagResourcesRequest) (_result *UntagResourcesResponse, _err error)

Description:

You can remove multiple tags from multiple keys or multiple secrets at a time. You cannot remove tags that start with aliyun or acs:.

If you enter multiple tag keys in the request parameters and only some of the tag keys are associated with resources, the operation can be called and the tags whose keys are associated with resources are removed from the resources.

@param request - UntagResourcesRequest

@return UntagResourcesResponse

func (*Client) UntagResourcesWithOptions added in v3.0.2

func (client *Client) UntagResourcesWithOptions(request *UntagResourcesRequest, runtime *util.RuntimeOptions) (_result *UntagResourcesResponse, _err error)

Description:

You can remove multiple tags from multiple keys or multiple secrets at a time. You cannot remove tags that start with aliyun or acs:.

If you enter multiple tag keys in the request parameters and only some of the tag keys are associated with resources, the operation can be called and the tags whose keys are associated with resources are removed from the resources.

@param request - UntagResourcesRequest

@param runtime - runtime options for this request RuntimeOptions

@return UntagResourcesResponse

func (*Client) UpdateAlias

func (client *Client) UpdateAlias(request *UpdateAliasRequest) (_result *UpdateAliasResponse, _err error)

func (*Client) UpdateAliasWithOptions

func (client *Client) UpdateAliasWithOptions(request *UpdateAliasRequest, runtime *util.RuntimeOptions) (_result *UpdateAliasResponse, _err error)

func (*Client) UpdateApplicationAccessPoint added in v3.1.0

func (client *Client) UpdateApplicationAccessPoint(request *UpdateApplicationAccessPointRequest) (_result *UpdateApplicationAccessPointResponse, _err error)

Description:

The update takes effect immediately after an AAP information is updated. Exercise caution when you perform this operation. You can update the description of an AAP and the permission policies that are associated with the AAP. You cannot update the name of the AAP.

@param request - UpdateApplicationAccessPointRequest

@return UpdateApplicationAccessPointResponse

func (*Client) UpdateApplicationAccessPointWithOptions added in v3.1.0

func (client *Client) UpdateApplicationAccessPointWithOptions(request *UpdateApplicationAccessPointRequest, runtime *util.RuntimeOptions) (_result *UpdateApplicationAccessPointResponse, _err error)

Description:

The update takes effect immediately after an AAP information is updated. Exercise caution when you perform this operation. You can update the description of an AAP and the permission policies that are associated with the AAP. You cannot update the name of the AAP.

@param request - UpdateApplicationAccessPointRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateApplicationAccessPointResponse

func (*Client) UpdateCertificateStatus

func (client *Client) UpdateCertificateStatus(request *UpdateCertificateStatusRequest) (_result *UpdateCertificateStatusResponse, _err error)

Description:

In this example, the status of the certificate whose ID is `9a28de48-8d8b-484d-a766-dec4****` is updated to INACTIVE.

@param request - UpdateCertificateStatusRequest

@return UpdateCertificateStatusResponse

func (*Client) UpdateCertificateStatusWithOptions

func (client *Client) UpdateCertificateStatusWithOptions(request *UpdateCertificateStatusRequest, runtime *util.RuntimeOptions) (_result *UpdateCertificateStatusResponse, _err error)

Description:

In this example, the status of the certificate whose ID is `9a28de48-8d8b-484d-a766-dec4****` is updated to INACTIVE.

@param request - UpdateCertificateStatusRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateCertificateStatusResponse

func (*Client) UpdateKeyDescription

func (client *Client) UpdateKeyDescription(request *UpdateKeyDescriptionRequest) (_result *UpdateKeyDescriptionResponse, _err error)

Description:

This operation replaces the description of a customer master key (CMK) with the description that you specify. The original description of the CMK is specified by the Description parameter when you call the [DescribeKey](~~28952~~) operation. You can call this operation to add, modify, or delete the description of a CMK.

@param request - UpdateKeyDescriptionRequest

@return UpdateKeyDescriptionResponse

func (*Client) UpdateKeyDescriptionWithOptions

func (client *Client) UpdateKeyDescriptionWithOptions(request *UpdateKeyDescriptionRequest, runtime *util.RuntimeOptions) (_result *UpdateKeyDescriptionResponse, _err error)

Description:

This operation replaces the description of a customer master key (CMK) with the description that you specify. The original description of the CMK is specified by the Description parameter when you call the [DescribeKey](~~28952~~) operation. You can call this operation to add, modify, or delete the description of a CMK.

@param request - UpdateKeyDescriptionRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateKeyDescriptionResponse

func (*Client) UpdateKmsInstanceBindVpc added in v3.1.0

func (client *Client) UpdateKmsInstanceBindVpc(request *UpdateKmsInstanceBindVpcRequest) (_result *UpdateKmsInstanceBindVpcResponse, _err error)

Description:

If your own applications are deployed in multiple VPCs in the same region, you can associate the VPCs except the VPC in which the KMS instance resides with the KMS instance. This topic describes how to configure the VPCs.

The VPCs can belong to the same Alibaba Cloud account or different Alibaba Cloud accounts. After the configuration is complete, the applications in these VPCs can access the KMS instance.

> If the VPCs belong to different Alibaba Cloud accounts, you must first configure resource sharing to share the vSwitches of other Alibaba Cloud accounts with the Alibaba Cloud account to which the KMS instance belongs. For more information, see [Access a KMS instance from multiple VPCs in the same region](~~2393236~~).

@param request - UpdateKmsInstanceBindVpcRequest

@return UpdateKmsInstanceBindVpcResponse

func (*Client) UpdateKmsInstanceBindVpcWithOptions added in v3.1.0

func (client *Client) UpdateKmsInstanceBindVpcWithOptions(request *UpdateKmsInstanceBindVpcRequest, runtime *util.RuntimeOptions) (_result *UpdateKmsInstanceBindVpcResponse, _err error)

Description:

If your own applications are deployed in multiple VPCs in the same region, you can associate the VPCs except the VPC in which the KMS instance resides with the KMS instance. This topic describes how to configure the VPCs.

The VPCs can belong to the same Alibaba Cloud account or different Alibaba Cloud accounts. After the configuration is complete, the applications in these VPCs can access the KMS instance.

> If the VPCs belong to different Alibaba Cloud accounts, you must first configure resource sharing to share the vSwitches of other Alibaba Cloud accounts with the Alibaba Cloud account to which the KMS instance belongs. For more information, see [Access a KMS instance from multiple VPCs in the same region](~~2393236~~).

@param request - UpdateKmsInstanceBindVpcRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateKmsInstanceBindVpcResponse

func (*Client) UpdateNetworkRule added in v3.1.0

func (client *Client) UpdateNetworkRule(request *UpdateNetworkRuleRequest) (_result *UpdateNetworkRuleResponse, _err error)

Description:

- You can update only private IP addresses and description of an access control rule. You cannot update the name and network type of an access control rule.

- Updating an access control rule affects all permission policies that are bound to the access control rule. Exercise caution when you perform this operation.

@param request - UpdateNetworkRuleRequest

@return UpdateNetworkRuleResponse

func (*Client) UpdateNetworkRuleWithOptions added in v3.1.0

func (client *Client) UpdateNetworkRuleWithOptions(request *UpdateNetworkRuleRequest, runtime *util.RuntimeOptions) (_result *UpdateNetworkRuleResponse, _err error)

Description:

- You can update only private IP addresses and description of an access control rule. You cannot update the name and network type of an access control rule.

- Updating an access control rule affects all permission policies that are bound to the access control rule. Exercise caution when you perform this operation.

@param request - UpdateNetworkRuleRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateNetworkRuleResponse

func (*Client) UpdatePolicy added in v3.1.0

func (client *Client) UpdatePolicy(request *UpdatePolicyRequest) (_result *UpdatePolicyResponse, _err error)

Description:

- You can update the role-based access control (RBAC) permissions, accessible resources, access control rules, and description of a permission policy. You cannot update the name or scope of a permission policy.

- Updating a permission policy affects all application access points (AAPs) that are bound to the permission policy. Exercise caution when you perform this operation.

@param request - UpdatePolicyRequest

@return UpdatePolicyResponse

func (*Client) UpdatePolicyWithOptions added in v3.1.0

func (client *Client) UpdatePolicyWithOptions(request *UpdatePolicyRequest, runtime *util.RuntimeOptions) (_result *UpdatePolicyResponse, _err error)

Description:

- You can update the role-based access control (RBAC) permissions, accessible resources, access control rules, and description of a permission policy. You cannot update the name or scope of a permission policy.

- Updating a permission policy affects all application access points (AAPs) that are bound to the permission policy. Exercise caution when you perform this operation.

@param request - UpdatePolicyRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdatePolicyResponse

func (*Client) UpdateRotationPolicy

func (client *Client) UpdateRotationPolicy(request *UpdateRotationPolicyRequest) (_result *UpdateRotationPolicyResponse, _err error)

Description:

When automatic key rotation is enabled, KMS automatically creates a key version after the preset rotation period arrives. In addition, KMS sets the new key version as the primary key version.

An automatic key rotation policy cannot be configured for the following keys:

  • Asymmetric key

  • Service-managed key

  • Bring your own key (BYOK) that is imported into KMS

  • Key that is not in the **Enabled* - state

In this example, automatic key rotation is enabled for a CMK whose ID is `1234abcd-12ab-34cd-56ef-12345678****`. The automatic rotation period is 30 days.

@param request - UpdateRotationPolicyRequest

@return UpdateRotationPolicyResponse

func (*Client) UpdateRotationPolicyWithOptions

func (client *Client) UpdateRotationPolicyWithOptions(request *UpdateRotationPolicyRequest, runtime *util.RuntimeOptions) (_result *UpdateRotationPolicyResponse, _err error)

Description:

When automatic key rotation is enabled, KMS automatically creates a key version after the preset rotation period arrives. In addition, KMS sets the new key version as the primary key version.

An automatic key rotation policy cannot be configured for the following keys:

  • Asymmetric key

  • Service-managed key

  • Bring your own key (BYOK) that is imported into KMS

  • Key that is not in the **Enabled* - state

In this example, automatic key rotation is enabled for a CMK whose ID is `1234abcd-12ab-34cd-56ef-12345678****`. The automatic rotation period is 30 days.

@param request - UpdateRotationPolicyRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateRotationPolicyResponse

func (*Client) UpdateSecret

func (client *Client) UpdateSecret(request *UpdateSecretRequest) (_result *UpdateSecretResponse, _err error)

Description:

In this example, the metadata of the `secret001` secret is updated. The `Description` parameter is set to `datainfo`.

@param request - UpdateSecretRequest

@return UpdateSecretResponse

func (*Client) UpdateSecretRotationPolicy

func (client *Client) UpdateSecretRotationPolicy(request *UpdateSecretRotationPolicyRequest) (_result *UpdateSecretRotationPolicyResponse, _err error)

Description:

After automatic rotation is enabled, Secrets Manager schedules the first automatic rotation by adding the preset rotation interval to the timestamp of the last rotation.

Limits: The UpdateSecretRotationPolicy operation cannot be used to update the rotation policy of generic secrets.

In this example, the rotation policy of the `RdsSecret/Mysql5.4/MyCred` secret is updated. The following settings are modified:

  • The `EnableAutomaticRotation` parameter is set to `true`, which indicates that automatic rotation is enabled.

  • The `RotationInterval` parameter is set to `30d`, which indicates that the interval for automatic rotation is 30 days.

@param request - UpdateSecretRotationPolicyRequest

@return UpdateSecretRotationPolicyResponse

func (*Client) UpdateSecretRotationPolicyWithOptions

func (client *Client) UpdateSecretRotationPolicyWithOptions(request *UpdateSecretRotationPolicyRequest, runtime *util.RuntimeOptions) (_result *UpdateSecretRotationPolicyResponse, _err error)

Description:

After automatic rotation is enabled, Secrets Manager schedules the first automatic rotation by adding the preset rotation interval to the timestamp of the last rotation.

Limits: The UpdateSecretRotationPolicy operation cannot be used to update the rotation policy of generic secrets.

In this example, the rotation policy of the `RdsSecret/Mysql5.4/MyCred` secret is updated. The following settings are modified:

  • The `EnableAutomaticRotation` parameter is set to `true`, which indicates that automatic rotation is enabled.

  • The `RotationInterval` parameter is set to `30d`, which indicates that the interval for automatic rotation is 30 days.

@param request - UpdateSecretRotationPolicyRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateSecretRotationPolicyResponse

func (*Client) UpdateSecretVersionStage

func (client *Client) UpdateSecretVersionStage(request *UpdateSecretVersionStageRequest) (_result *UpdateSecretVersionStageResponse, _err error)

Description:

Updates the stage label that marks a secret version.

@param request - UpdateSecretVersionStageRequest

@return UpdateSecretVersionStageResponse

func (*Client) UpdateSecretVersionStageWithOptions

func (client *Client) UpdateSecretVersionStageWithOptions(request *UpdateSecretVersionStageRequest, runtime *util.RuntimeOptions) (_result *UpdateSecretVersionStageResponse, _err error)

Description:

Updates the stage label that marks a secret version.

@param request - UpdateSecretVersionStageRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateSecretVersionStageResponse

func (*Client) UpdateSecretWithOptions

func (client *Client) UpdateSecretWithOptions(request *UpdateSecretRequest, runtime *util.RuntimeOptions) (_result *UpdateSecretResponse, _err error)

Description:

In this example, the metadata of the `secret001` secret is updated. The `Description` parameter is set to `datainfo`.

@param request - UpdateSecretRequest

@param runtime - runtime options for this request RuntimeOptions

@return UpdateSecretResponse

func (*Client) UploadCertificate

func (client *Client) UploadCertificate(request *UploadCertificateRequest) (_result *UploadCertificateResponse, _err error)

Description:

In this example, a certificate issued by a CA is imported into Certificates Manager. The ID of the certificate in Certificates Manager is `12345678-1234-1234-1234-12345678****`.

@param request - UploadCertificateRequest

@return UploadCertificateResponse

func (*Client) UploadCertificateWithOptions

func (client *Client) UploadCertificateWithOptions(request *UploadCertificateRequest, runtime *util.RuntimeOptions) (_result *UploadCertificateResponse, _err error)

Description:

In this example, a certificate issued by a CA is imported into Certificates Manager. The ID of the certificate in Certificates Manager is `12345678-1234-1234-1234-12345678****`.

@param request - UploadCertificateRequest

@param runtime - runtime options for this request RuntimeOptions

@return UploadCertificateResponse

type ConnectKmsInstanceRequest added in v3.1.0

type ConnectKmsInstanceRequest struct {
	// The provider of the KMS instance. Set the value to Aliyun.
	//
	// example:
	//
	// Aliyun
	KMProvider *string `json:"KMProvider,omitempty" xml:"KMProvider,omitempty"`
	// The ID of the KMS instance that you want to enable.
	//
	// example:
	//
	// kst-phzz64f722a1buamw0****
	KmsInstanceId *string `json:"KmsInstanceId,omitempty" xml:"KmsInstanceId,omitempty"`
	// The vSwitch in the two zones. The vSwitch must have at least one available IP address.
	//
	// example:
	//
	// vsw-bp1i512amda6d10a0****
	VSwitchIds *string `json:"VSwitchIds,omitempty" xml:"VSwitchIds,omitempty"`
	// The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
	//
	// example:
	//
	// vpc-bp19z7cwmltad5dff****
	VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"`
	// The two zones for the KMS instance. Dual-zone deployment improves service availability and disaster recovery capabilities.
	//
	// example:
	//
	// cn-hangzhou-k,cn-hangzhou-j
	ZoneIds *string `json:"ZoneIds,omitempty" xml:"ZoneIds,omitempty"`
}

func (ConnectKmsInstanceRequest) GoString added in v3.1.0

func (s ConnectKmsInstanceRequest) GoString() string

func (*ConnectKmsInstanceRequest) SetKMProvider added in v3.1.0

func (*ConnectKmsInstanceRequest) SetKmsInstanceId added in v3.1.0

func (*ConnectKmsInstanceRequest) SetVSwitchIds added in v3.1.0

func (*ConnectKmsInstanceRequest) SetVpcId added in v3.1.0

func (*ConnectKmsInstanceRequest) SetZoneIds added in v3.1.0

func (ConnectKmsInstanceRequest) String added in v3.1.0

func (s ConnectKmsInstanceRequest) String() string

type ConnectKmsInstanceResponse added in v3.1.0

type ConnectKmsInstanceResponse struct {
	Headers    map[string]*string              `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                          `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ConnectKmsInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ConnectKmsInstanceResponse) GoString added in v3.1.0

func (s ConnectKmsInstanceResponse) GoString() string

func (*ConnectKmsInstanceResponse) SetBody added in v3.1.0

func (*ConnectKmsInstanceResponse) SetHeaders added in v3.1.0

func (*ConnectKmsInstanceResponse) SetStatusCode added in v3.1.0

func (ConnectKmsInstanceResponse) String added in v3.1.0

type ConnectKmsInstanceResponseBody added in v3.1.0

type ConnectKmsInstanceResponseBody struct {
	// The request ID.
	//
	// example:
	//
	// d3eca5c8-a856-4347-8eb6-e1898c3fda2e
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ConnectKmsInstanceResponseBody) GoString added in v3.1.0

func (*ConnectKmsInstanceResponseBody) SetRequestId added in v3.1.0

func (ConnectKmsInstanceResponseBody) String added in v3.1.0

type CreateAliasRequest

type CreateAliasRequest struct {
	// The alias of the CMK.
	//
	// The alias must be 1 to 255 characters in length and must contain the prefix `alias/`. The alias cannot be prefixed with the reserved word `alias/acs`.
	//
	// example:
	//
	// alias/example
	AliasName *string `json:"AliasName,omitempty" xml:"AliasName,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 7906979c-8e06-46a2-be2d-68e3ccbc****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (CreateAliasRequest) GoString

func (s CreateAliasRequest) GoString() string

func (*CreateAliasRequest) SetAliasName

func (s *CreateAliasRequest) SetAliasName(v string) *CreateAliasRequest

func (*CreateAliasRequest) SetKeyId

func (CreateAliasRequest) String

func (s CreateAliasRequest) String() string

type CreateAliasResponse

type CreateAliasResponse struct {
	Headers    map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateAliasResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateAliasResponse) GoString

func (s CreateAliasResponse) GoString() string

func (*CreateAliasResponse) SetBody

func (*CreateAliasResponse) SetHeaders

func (s *CreateAliasResponse) SetHeaders(v map[string]*string) *CreateAliasResponse

func (*CreateAliasResponse) SetStatusCode

func (s *CreateAliasResponse) SetStatusCode(v int32) *CreateAliasResponse

func (CreateAliasResponse) String

func (s CreateAliasResponse) String() string

type CreateAliasResponseBody

type CreateAliasResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 1d2baaf3-d357-46c2-832e-13560c2bd9cd
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateAliasResponseBody) GoString

func (s CreateAliasResponseBody) GoString() string

func (*CreateAliasResponseBody) SetRequestId

func (CreateAliasResponseBody) String

func (s CreateAliasResponseBody) String() string

type CreateApplicationAccessPointRequest added in v3.1.0

type CreateApplicationAccessPointRequest struct {
	// The authentication method. Currently, only ClientKey is supported.
	//
	// example:
	//
	// ClientKey
	AuthenticationMethod *string `json:"AuthenticationMethod,omitempty" xml:"AuthenticationMethod,omitempty"`
	// The description of the AAP.
	//
	// example:
	//
	// aap description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the AAP.
	//
	// example:
	//
	// aap_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The permission policy.
	//
	// > You can bind up to three permission policies to each AAP.
	//
	// example:
	//
	// ["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]
	Policies *string `json:"Policies,omitempty" xml:"Policies,omitempty"`
}

func (CreateApplicationAccessPointRequest) GoString added in v3.1.0

func (*CreateApplicationAccessPointRequest) SetAuthenticationMethod added in v3.1.0

func (*CreateApplicationAccessPointRequest) SetDescription added in v3.1.0

func (*CreateApplicationAccessPointRequest) SetName added in v3.1.0

func (*CreateApplicationAccessPointRequest) SetPolicies added in v3.1.0

func (CreateApplicationAccessPointRequest) String added in v3.1.0

type CreateApplicationAccessPointResponse added in v3.1.0

type CreateApplicationAccessPointResponse struct {
	Headers    map[string]*string                        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateApplicationAccessPointResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateApplicationAccessPointResponse) GoString added in v3.1.0

func (*CreateApplicationAccessPointResponse) SetBody added in v3.1.0

func (*CreateApplicationAccessPointResponse) SetHeaders added in v3.1.0

func (*CreateApplicationAccessPointResponse) SetStatusCode added in v3.1.0

func (CreateApplicationAccessPointResponse) String added in v3.1.0

type CreateApplicationAccessPointResponseBody added in v3.1.0

type CreateApplicationAccessPointResponseBody struct {
	// The Alibaba Cloud Resource Name (ARN) of the AAP.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:119285303511****:applicationaccesspoint/aap_test
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The authentication method.
	//
	// example:
	//
	// ClientKey
	AuthenticationMethod *string `json:"AuthenticationMethod,omitempty" xml:"AuthenticationMethod,omitempty"`
	// The description of the AAP.
	//
	// example:
	//
	// aap description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the AAP.
	//
	// example:
	//
	// aap_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The permission policy.
	//
	// example:
	//
	// ["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]
	Policies *string `json:"Policies,omitempty" xml:"Policies,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// bcfefe15-46f0-44a3-bd96-3d422474b71a
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateApplicationAccessPointResponseBody) GoString added in v3.1.0

func (*CreateApplicationAccessPointResponseBody) SetArn added in v3.1.0

func (*CreateApplicationAccessPointResponseBody) SetAuthenticationMethod added in v3.1.0

func (*CreateApplicationAccessPointResponseBody) SetDescription added in v3.1.0

func (*CreateApplicationAccessPointResponseBody) SetName added in v3.1.0

func (*CreateApplicationAccessPointResponseBody) SetPolicies added in v3.1.0

func (*CreateApplicationAccessPointResponseBody) SetRequestId added in v3.1.0

func (CreateApplicationAccessPointResponseBody) String added in v3.1.0

type CreateCertificateRequest

type CreateCertificateRequest struct {
	// Specifies whether the private key of the certificate can be exported for use. Valid values:
	//
	// 	- true: The private key of the certificate can be exported for use. This is the default value.
	//
	// 	- false: The private key of the certificate cannot be exported for use. We recommend that you set this parameter to false to protect keys with a higher security level.
	//
	// example:
	//
	// true
	ExportablePrivateKey *bool `json:"ExportablePrivateKey,omitempty" xml:"ExportablePrivateKey,omitempty"`
	// The type of the key. Valid values:
	//
	// 	- RSA\_2048
	//
	// 	- EC_P256
	//
	// 	- EC_SM2
	//
	// example:
	//
	// RSA_2048
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The certificate subject, which is the owner of the certificate.
	//
	// Specify the value in the distinguished name (DN) format, as defined in [RFC 2253](https://tools.ietf.org/html/rfc2253?spm=a2c4g.11186623.2.13.265f1a1cGFCn3Q). A DN is a sequence of relative distinguished names (RDNs).
	//
	// RDNs are key-value pairs in the format of `attribute1=value1,attribute2=value2`. Separate multiple RDNs with commas (,).
	//
	// The Subject parameter consists of the following fields:
	//
	// 	- CN: required. The name of the certificate subject.
	//
	// 	- C: required. The two-character country or region code in the [ISO 3166-1](https://www.iso.org/obp/ui/#search/code/) standard. For example, CN indicates China.
	//
	// 	- O: required. The legal name of the enterprise, company, organization, or institution.
	//
	// 	- OU: required. The name of the department.
	//
	// 	- ST: optional. The name of the province, municipality, autonomous region, or special administrative region.
	//
	// 	- L: optional. The name of the city.
	//
	// example:
	//
	// CN=userName,OU=kms,O=aliyun,C=CN
	Subject *string `json:"Subject,omitempty" xml:"Subject,omitempty"`
	// The subject alternative names.
	//
	// A domain name list is supported. A maximum of 10 domain names are supported.
	//
	// example:
	//
	// ["test1.example.com","test2.example.com"]
	SubjectAlternativeNames map[string]interface{} `json:"SubjectAlternativeNames,omitempty" xml:"SubjectAlternativeNames,omitempty"`
}

func (CreateCertificateRequest) GoString

func (s CreateCertificateRequest) GoString() string

func (*CreateCertificateRequest) SetExportablePrivateKey

func (s *CreateCertificateRequest) SetExportablePrivateKey(v bool) *CreateCertificateRequest

func (*CreateCertificateRequest) SetKeySpec

func (*CreateCertificateRequest) SetSubject

func (*CreateCertificateRequest) SetSubjectAlternativeNames

func (s *CreateCertificateRequest) SetSubjectAlternativeNames(v map[string]interface{}) *CreateCertificateRequest

func (CreateCertificateRequest) String

func (s CreateCertificateRequest) String() string

type CreateCertificateResponse

type CreateCertificateResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateCertificateResponse) GoString

func (s CreateCertificateResponse) GoString() string

func (*CreateCertificateResponse) SetBody

func (*CreateCertificateResponse) SetHeaders

func (*CreateCertificateResponse) SetStatusCode

func (CreateCertificateResponse) String

func (s CreateCertificateResponse) String() string

type CreateCertificateResponseBody

type CreateCertificateResponseBody struct {
	// The Alibaba Cloud Resource Name (ARN) of the certificate.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:154035569884****:certificate/98e85c94-52d0-40c9-b3b2-afda52f4****
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The ID of the certificate. It is the globally unique identifier (GUID) of the certificate in Certificates Manager.
	//
	// example:
	//
	// 9a28de48-8d8b-484d-a766-dec4****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The CSR in the PEM format.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE REQUEST-----\nMIIDADCCAegCAQAwgboxCzAJBgNVBAYTAkNOMREwDwYDVQQIEwhaaGVqaWFuZzER\n****\nmkj4rg==\n-----END CERTIFICATE REQUEST-----\n
	Csr *string `json:"Csr,omitempty" xml:"Csr,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 15a735a1-8fe6-45cc-a64c-3c4ff839334e
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateCertificateResponseBody) GoString

func (*CreateCertificateResponseBody) SetArn

func (*CreateCertificateResponseBody) SetCertificateId

func (*CreateCertificateResponseBody) SetCsr

func (*CreateCertificateResponseBody) SetRequestId

func (CreateCertificateResponseBody) String

type CreateCertificateShrinkRequest

type CreateCertificateShrinkRequest struct {
	// Specifies whether the private key of the certificate can be exported for use. Valid values:
	//
	// 	- true: The private key of the certificate can be exported for use. This is the default value.
	//
	// 	- false: The private key of the certificate cannot be exported for use. We recommend that you set this parameter to false to protect keys with a higher security level.
	//
	// example:
	//
	// true
	ExportablePrivateKey *bool `json:"ExportablePrivateKey,omitempty" xml:"ExportablePrivateKey,omitempty"`
	// The type of the key. Valid values:
	//
	// 	- RSA\_2048
	//
	// 	- EC_P256
	//
	// 	- EC_SM2
	//
	// example:
	//
	// RSA_2048
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The certificate subject, which is the owner of the certificate.
	//
	// Specify the value in the distinguished name (DN) format, as defined in [RFC 2253](https://tools.ietf.org/html/rfc2253?spm=a2c4g.11186623.2.13.265f1a1cGFCn3Q). A DN is a sequence of relative distinguished names (RDNs).
	//
	// RDNs are key-value pairs in the format of `attribute1=value1,attribute2=value2`. Separate multiple RDNs with commas (,).
	//
	// The Subject parameter consists of the following fields:
	//
	// 	- CN: required. The name of the certificate subject.
	//
	// 	- C: required. The two-character country or region code in the [ISO 3166-1](https://www.iso.org/obp/ui/#search/code/) standard. For example, CN indicates China.
	//
	// 	- O: required. The legal name of the enterprise, company, organization, or institution.
	//
	// 	- OU: required. The name of the department.
	//
	// 	- ST: optional. The name of the province, municipality, autonomous region, or special administrative region.
	//
	// 	- L: optional. The name of the city.
	//
	// example:
	//
	// CN=userName,OU=kms,O=aliyun,C=CN
	Subject *string `json:"Subject,omitempty" xml:"Subject,omitempty"`
	// The subject alternative names.
	//
	// A domain name list is supported. A maximum of 10 domain names are supported.
	//
	// example:
	//
	// ["test1.example.com","test2.example.com"]
	SubjectAlternativeNamesShrink *string `json:"SubjectAlternativeNames,omitempty" xml:"SubjectAlternativeNames,omitempty"`
}

func (CreateCertificateShrinkRequest) GoString

func (*CreateCertificateShrinkRequest) SetExportablePrivateKey

func (*CreateCertificateShrinkRequest) SetKeySpec

func (*CreateCertificateShrinkRequest) SetSubject

func (*CreateCertificateShrinkRequest) SetSubjectAlternativeNamesShrink

func (s *CreateCertificateShrinkRequest) SetSubjectAlternativeNamesShrink(v string) *CreateCertificateShrinkRequest

func (CreateCertificateShrinkRequest) String

type CreateClientKeyRequest added in v3.1.0

type CreateClientKeyRequest struct {
	// The operation that you want to perform. Set the value to **CreateClientKey**.
	//
	// example:
	//
	// aap_test
	AapName *string `json:"AapName,omitempty" xml:"AapName,omitempty"`
	// The encryption password of the client key.
	//
	// The password must be 8 to 64 characters in length and must contain at least two of the following types: digits, letters, and special characters. Special characters include `~ ! @ # $ % ^ & 	- ? _ -`.
	//
	// example:
	//
	// 2028-08-31T17:14:33Z
	NotAfter *string `json:"NotAfter,omitempty" xml:"NotAfter,omitempty"`
	// The end of the validity period of the client key.
	//
	// Specify the time in the ISO 8601 standard. The time must be in UTC. The time must be in the yyyy-MM-ddTHH:mm:ssZ format.
	//
	// >
	//
	// 	- If you do not configure NotAfter, the default value is the time when the client key was created plus five years.
	//
	// 	- If you configure NotAfter, you must configure NotBefore.
	//
	// example:
	//
	// 2023-08-31T17:14:33Z
	NotBefore *string `json:"NotBefore,omitempty" xml:"NotBefore,omitempty"`
	// The name of the AAP.
	//
	// example:
	//
	// bcfefe15-46f0****
	Password *string `json:"Password,omitempty" xml:"Password,omitempty"`
}

func (CreateClientKeyRequest) GoString added in v3.1.0

func (s CreateClientKeyRequest) GoString() string

func (*CreateClientKeyRequest) SetAapName added in v3.1.0

func (*CreateClientKeyRequest) SetNotAfter added in v3.1.0

func (*CreateClientKeyRequest) SetNotBefore added in v3.1.0

func (*CreateClientKeyRequest) SetPassword added in v3.1.0

func (CreateClientKeyRequest) String added in v3.1.0

func (s CreateClientKeyRequest) String() string

type CreateClientKeyResponse added in v3.1.0

type CreateClientKeyResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateClientKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateClientKeyResponse) GoString added in v3.1.0

func (s CreateClientKeyResponse) GoString() string

func (*CreateClientKeyResponse) SetBody added in v3.1.0

func (*CreateClientKeyResponse) SetHeaders added in v3.1.0

func (*CreateClientKeyResponse) SetStatusCode added in v3.1.0

func (CreateClientKeyResponse) String added in v3.1.0

func (s CreateClientKeyResponse) String() string

type CreateClientKeyResponseBody added in v3.1.0

type CreateClientKeyResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// KAAP.66abf237-63f6-4625-b8cf-47e1086e****
	ClientKeyId *string `json:"ClientKeyId,omitempty" xml:"ClientKeyId,omitempty"`
	// The ID of the client key.
	//
	// example:
	//
	// RSA_2048
	KeyAlgorithm *string `json:"KeyAlgorithm,omitempty" xml:"KeyAlgorithm,omitempty"`
	// The beginning of the validity period of the client key.
	//
	// example:
	//
	// 2028-08-31T17:14:33Z
	NotAfter *string `json:"NotAfter,omitempty" xml:"NotAfter,omitempty"`
	// The private key of the client key.
	//
	// example:
	//
	// 2023-08-31T17:14:33Z
	NotBefore *string `json:"NotBefore,omitempty" xml:"NotBefore,omitempty"`
	// The algorithm that is used to encrypt the private key of the client key. Currently, only RSA\_2048 is supported.
	//
	// example:
	//
	// MIIJqwIBAzCCCXcGCSqGSIb3DQEHAaCCCWgEgglkMIIJYDCCBBcGCSqGSIb3DQEHBqCCBAgwgg******
	PrivateKeyData *string `json:"PrivateKeyData,omitempty" xml:"PrivateKeyData,omitempty"`
	// The beginning of the validity period of the client key.
	//
	// Specify the time in the ISO 8601 standard. The time must be in UTC. The time must be in the yyyy-MM-ddTHH:mm:ssZ format.
	//
	// >
	//
	// 	- If you do not configure NotBefore, the default value is the time when the client key was created.
	//
	// 	- If you configure NotBefore, you must configure NotAfter.
	//
	// example:
	//
	// 2312e45f-b2fa-4c34-ad94-3eca50932916
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateClientKeyResponseBody) GoString added in v3.1.0

func (s CreateClientKeyResponseBody) GoString() string

func (*CreateClientKeyResponseBody) SetClientKeyId added in v3.1.0

func (*CreateClientKeyResponseBody) SetKeyAlgorithm added in v3.1.0

func (*CreateClientKeyResponseBody) SetNotAfter added in v3.1.0

func (*CreateClientKeyResponseBody) SetNotBefore added in v3.1.0

func (*CreateClientKeyResponseBody) SetPrivateKeyData added in v3.1.0

func (*CreateClientKeyResponseBody) SetRequestId added in v3.1.0

func (CreateClientKeyResponseBody) String added in v3.1.0

type CreateKeyRequest

type CreateKeyRequest struct {
	// The ID of the KMS instance.
	//
	// > You must specify this parameter if you need to create a key for a KMS instance. If you need to create a default key of the CMK type, you do not need to specify this parameter.
	//
	// example:
	//
	// kst-bjj62d8f5e0sgtx8h****
	DKMSInstanceId *string `json:"DKMSInstanceId,omitempty" xml:"DKMSInstanceId,omitempty"`
	// The description of the key.
	//
	// The description can be 0 to 8,192 characters in length.
	//
	// example:
	//
	// key description example
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// Specifies whether to enable automatic key rotation. Valid values:
	//
	// - true
	//
	// - false (default)
	//
	// This parameter is valid only when the key belongs to an instance type that supports automatic rotation. For more information, see [Key rotation](~~2358146~~).
	//
	// example:
	//
	// true
	EnableAutomaticRotation *bool `json:"EnableAutomaticRotation,omitempty" xml:"EnableAutomaticRotation,omitempty"`
	// The key specification. The valid values vary based on the KMS instance type. For more information, see [Overview](~~480159~~).
	//
	// > If you do not specify a value for this parameter, the default key specification is Aliyun_AES_256.
	//
	// example:
	//
	// Aliyun_AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The usage of the key. Valid values:
	//
	// - ENCRYPT/DECRYPT
	//
	// - SIGN/VERIFY
	//
	// If the key supports signing and verification, the default value is SIGN/VERIFY. If the key does not support signing and verification, the default value is ENCRYPT/DECRYPT.
	//
	// example:
	//
	// ENCRYPT/DECRYPT
	KeyUsage *string `json:"KeyUsage,omitempty" xml:"KeyUsage,omitempty"`
	// The key material origin. Valid values:
	//
	// - Aliyun_KMS (default): KMS generates key material.
	//
	// - EXTERNAL: You import key material.
	//
	//
	// > - The value of this parameter is case-sensitive.
	//
	// > - Default keys of the customer master key (CMK) type support Aliyun_KMS and EXTERNAL. Keys in instances of the software key management type support only Aliyun_KMS. Keys in instances of the hardware key management type support Aliyun_KMS and EXTERNAL.
	//
	// > - If you set Origin to EXTERNAL, you must import key material. For more information, see [Import key material into a symmetric key](~~607841~~) or [Import key material into an asymmetric key](~~608827~~).
	//
	// example:
	//
	// Aliyun_KMS
	Origin *string `json:"Origin,omitempty" xml:"Origin,omitempty"`
	Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	// You do not need to specify this parameter. KMS sets a protection level for your key.
	//
	// The protection level of the key. Valid values:
	//
	// - SOFTWARE
	//
	// - HSM
	//
	//
	// > - If DKMSInstanceId is specified, this parameter does not take effect. If your instance is an instance of the software key management type, set the value to SOFTWARE. If your instance is an instance of the hardware key management type, set the value to HSM.
	//
	// > - If you do not specify DKMSInstanceId, we recommend that you do not specify this parameter. KMS sets a protection level for your key. If managed hardware security modules (HSMs) exist in the region of your KMS instance, set the value to HSM. If managed HSMs do not exist in the region of your KMS instance, set the value to SOFTWARE. For more information, see Managed HSM overview.
	//
	// example:
	//
	// SOFTWARE
	ProtectionLevel *string `json:"ProtectionLevel,omitempty" xml:"ProtectionLevel,omitempty"`
	// The period of automatic key rotation. Format: integer[unit]. Unit: d (day), h (hour), m (minute), or s (second). For example, both 7d and 604800s represent a seven-day interval.
	//
	// - For a default key, set the value to 365 days.
	//
	// - For a software-protected key, set a value that ranges from 7 to 365 days.
	//
	// - A hardware-protected key does not support automatic rotation.
	//
	// > If EnableAutomaticRotation is set to true, this parameter is required.
	//
	// example:
	//
	// 365d
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
	// The tag that is added to the key. A tag consists of a key-value pair.
	//
	// You can enter up to 20 tags. Enter multiple tags in the [{"TagKey":"key1","TagValue":"value1"},{"TagKey":"key2","TagValue":"value2"},..] format.
	//
	// Each tag key or tag value can be up to 128 characters in length and can contain letters, digits, forward slashes (/), backslashes (\), underscores (_), hyphens (-), periods (.), plus signs (+), equal signs (=), colons (:), and at signs (@).
	//
	// > The tag key cannot start with aliyun or acs:.
	//
	// example:
	//
	// [{"TagKey":"disk-encryption","TagValue":"true"}]
	Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"`
}

func (CreateKeyRequest) GoString

func (s CreateKeyRequest) GoString() string

func (*CreateKeyRequest) SetDKMSInstanceId

func (s *CreateKeyRequest) SetDKMSInstanceId(v string) *CreateKeyRequest

func (*CreateKeyRequest) SetDescription

func (s *CreateKeyRequest) SetDescription(v string) *CreateKeyRequest

func (*CreateKeyRequest) SetEnableAutomaticRotation

func (s *CreateKeyRequest) SetEnableAutomaticRotation(v bool) *CreateKeyRequest

func (*CreateKeyRequest) SetKeySpec

func (s *CreateKeyRequest) SetKeySpec(v string) *CreateKeyRequest

func (*CreateKeyRequest) SetKeyUsage

func (s *CreateKeyRequest) SetKeyUsage(v string) *CreateKeyRequest

func (*CreateKeyRequest) SetOrigin

func (s *CreateKeyRequest) SetOrigin(v string) *CreateKeyRequest

func (*CreateKeyRequest) SetPolicy added in v3.2.0

func (s *CreateKeyRequest) SetPolicy(v string) *CreateKeyRequest

func (*CreateKeyRequest) SetProtectionLevel

func (s *CreateKeyRequest) SetProtectionLevel(v string) *CreateKeyRequest

func (*CreateKeyRequest) SetRotationInterval

func (s *CreateKeyRequest) SetRotationInterval(v string) *CreateKeyRequest

func (*CreateKeyRequest) SetTags added in v3.0.2

func (s *CreateKeyRequest) SetTags(v string) *CreateKeyRequest

func (CreateKeyRequest) String

func (s CreateKeyRequest) String() string

type CreateKeyResponse

type CreateKeyResponse struct {
	Headers    map[string]*string     `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateKeyResponse) GoString

func (s CreateKeyResponse) GoString() string

func (*CreateKeyResponse) SetBody

func (*CreateKeyResponse) SetHeaders

func (s *CreateKeyResponse) SetHeaders(v map[string]*string) *CreateKeyResponse

func (*CreateKeyResponse) SetStatusCode

func (s *CreateKeyResponse) SetStatusCode(v int32) *CreateKeyResponse

func (CreateKeyResponse) String

func (s CreateKeyResponse) String() string

type CreateKeyResponseBody

type CreateKeyResponseBody struct {
	// The metadata of the key.
	KeyMetadata *CreateKeyResponseBodyKeyMetadata `json:"KeyMetadata,omitempty" xml:"KeyMetadata,omitempty" type:"Struct"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 381D5D33-BB8F-395F-8EE4-AE3BB4B523C4
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateKeyResponseBody) GoString

func (s CreateKeyResponseBody) GoString() string

func (*CreateKeyResponseBody) SetKeyMetadata

func (*CreateKeyResponseBody) SetRequestId

func (CreateKeyResponseBody) String

func (s CreateKeyResponseBody) String() string

type CreateKeyResponseBodyKeyMetadata

type CreateKeyResponseBodyKeyMetadata struct {
	// The Alibaba Cloud Resource Name (ARN) of the key.
	//
	// example:
	//
	// acs:kms:cn-qingdao:154035569884****:key/key-hzz62f1cb66fa42qo****
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The status of automatic key rotation. Valid values:
	//
	// - Enabled
	//
	// - Disabled
	//
	// - Suspended
	//
	// example:
	//
	// Enabled
	AutomaticRotation *string `json:"AutomaticRotation,omitempty" xml:"AutomaticRotation,omitempty"`
	// The date and time (UTC) when the key was created.
	//
	// example:
	//
	// 2023-03-25T10:00:00Z
	CreationDate *string `json:"CreationDate,omitempty" xml:"CreationDate,omitempty"`
	// The user who created the key.
	//
	// example:
	//
	// 154035569884****
	Creator *string `json:"Creator,omitempty" xml:"Creator,omitempty"`
	// The ID of the KMS instance.
	//
	// example:
	//
	// kst-bjj62d8f5e0sgtx8h****
	DKMSInstanceId *string `json:"DKMSInstanceId,omitempty" xml:"DKMSInstanceId,omitempty"`
	// The time when the key is scheduled for deletion. For more information, see ScheduleKeyDeletion.
	//
	// This parameter is returned only when the value of KeyState is PendingDeletion.
	//
	// example:
	//
	// 2025-03-25T10:00:00Z
	DeleteDate *string `json:"DeleteDate,omitempty" xml:"DeleteDate,omitempty"`
	// The description of the key.
	//
	// example:
	//
	// key description example
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The globally unique ID of the key.
	//
	// example:
	//
	// key-hzz62f1cb66fa42qo****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The specification of the key.
	//
	// example:
	//
	// Aliyun_AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The status of the key.
	//
	// For more information, see [Impacts of key status on API operations](~~44211~~).
	//
	// example:
	//
	// Enabled
	KeyState *string `json:"KeyState,omitempty" xml:"KeyState,omitempty"`
	// The usage of the key.
	//
	// example:
	//
	// ENCRYPT/DECRYPT
	KeyUsage *string `json:"KeyUsage,omitempty" xml:"KeyUsage,omitempty"`
	// The time when the last rotation was performed. The time is displayed in UTC.
	//
	// For a new key, this parameter value is the time when the initial version of the key was generated.
	//
	// example:
	//
	// 2023-03-25T10:00:00Z
	LastRotationDate *string `json:"LastRotationDate,omitempty" xml:"LastRotationDate,omitempty"`
	// The time when the key material expires. The time is displayed in UTC.
	//
	// If this parameter value is empty, the key material does not expire.
	//
	// example:
	//
	// 2025-03-25T10:00:00Z
	MaterialExpireTime *string `json:"MaterialExpireTime,omitempty" xml:"MaterialExpireTime,omitempty"`
	// The time when the key is next rotated.
	//
	// This value is returned only when the value of AutomaticRotation is Enabled or Suspended.
	//
	// example:
	//
	// 2024-03-25T10:00:00Z
	NextRotationDate *string `json:"NextRotationDate,omitempty" xml:"NextRotationDate,omitempty"`
	// The key material origin.
	//
	// example:
	//
	// Aliyun_KMS
	Origin *string `json:"Origin,omitempty" xml:"Origin,omitempty"`
	// The current primary version identifier of the key.
	//
	// example:
	//
	// 7ce1d081-06cb-42e6-aab6-5c5de030****
	PrimaryKeyVersion *string `json:"PrimaryKeyVersion,omitempty" xml:"PrimaryKeyVersion,omitempty"`
	// The protection level of the key.
	//
	// example:
	//
	// SOFTWARE
	ProtectionLevel *string `json:"ProtectionLevel,omitempty" xml:"ProtectionLevel,omitempty"`
	// The interval for automatic key rotation. Unit: seconds. The format is an integer value followed by the character s. For example, if the rotation period is seven days, this parameter is set to 604800s.
	//
	// This value is returned only when the value of AutomaticRotation is Enabled or Suspended.
	//
	// example:
	//
	// 31536000s
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
}

func (CreateKeyResponseBodyKeyMetadata) GoString

func (*CreateKeyResponseBodyKeyMetadata) SetArn

func (*CreateKeyResponseBodyKeyMetadata) SetAutomaticRotation

func (*CreateKeyResponseBodyKeyMetadata) SetCreationDate

func (*CreateKeyResponseBodyKeyMetadata) SetCreator

func (*CreateKeyResponseBodyKeyMetadata) SetDKMSInstanceId

func (*CreateKeyResponseBodyKeyMetadata) SetDeleteDate

func (*CreateKeyResponseBodyKeyMetadata) SetDescription

func (*CreateKeyResponseBodyKeyMetadata) SetKeyId

func (*CreateKeyResponseBodyKeyMetadata) SetKeySpec

func (*CreateKeyResponseBodyKeyMetadata) SetKeyState

func (*CreateKeyResponseBodyKeyMetadata) SetKeyUsage

func (*CreateKeyResponseBodyKeyMetadata) SetLastRotationDate

func (*CreateKeyResponseBodyKeyMetadata) SetMaterialExpireTime

func (*CreateKeyResponseBodyKeyMetadata) SetNextRotationDate

func (*CreateKeyResponseBodyKeyMetadata) SetOrigin

func (*CreateKeyResponseBodyKeyMetadata) SetPrimaryKeyVersion

func (*CreateKeyResponseBodyKeyMetadata) SetProtectionLevel

func (*CreateKeyResponseBodyKeyMetadata) SetRotationInterval

func (CreateKeyResponseBodyKeyMetadata) String

type CreateKeyVersionRequest

type CreateKeyVersionRequest struct {
	// The ID of the CMK. The ID must be globally unique.
	//
	// >  You can also set the value to an alias that is bound to the CMK. For more information, see [Overview of aliases](~~68522~~).
	//
	// example:
	//
	// 0b30658a-ed1a-4922-b8f7-a673ca9c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (CreateKeyVersionRequest) GoString

func (s CreateKeyVersionRequest) GoString() string

func (*CreateKeyVersionRequest) SetKeyId

func (CreateKeyVersionRequest) String

func (s CreateKeyVersionRequest) String() string

type CreateKeyVersionResponse

type CreateKeyVersionResponse struct {
	Headers    map[string]*string            `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                        `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateKeyVersionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateKeyVersionResponse) GoString

func (s CreateKeyVersionResponse) GoString() string

func (*CreateKeyVersionResponse) SetBody

func (*CreateKeyVersionResponse) SetHeaders

func (*CreateKeyVersionResponse) SetStatusCode

func (CreateKeyVersionResponse) String

func (s CreateKeyVersionResponse) String() string

type CreateKeyVersionResponseBody

type CreateKeyVersionResponseBody struct {
	// The metadata of the version.
	KeyVersion *CreateKeyVersionResponseBodyKeyVersion `json:"KeyVersion,omitempty" xml:"KeyVersion,omitempty" type:"Struct"`
	// The ID of the request.
	//
	// example:
	//
	// b96f250a-4b75-498c-91be-22c6928f85be
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateKeyVersionResponseBody) GoString

func (s CreateKeyVersionResponseBody) GoString() string

func (*CreateKeyVersionResponseBody) SetRequestId

func (CreateKeyVersionResponseBody) String

type CreateKeyVersionResponseBodyKeyVersion

type CreateKeyVersionResponseBodyKeyVersion struct {
	// The date and time when the version was created. The time is displayed in UTC.
	//
	// example:
	//
	// 2019-08-02T10:38:27Z
	CreationDate *string `json:"CreationDate,omitempty" xml:"CreationDate,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 0b30658a-ed1a-4922-b8f7-a673ca9c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the version.
	//
	// example:
	//
	// c0a3d5dc-0b47-4199-a050-b289349a****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
}

func (CreateKeyVersionResponseBodyKeyVersion) GoString

func (*CreateKeyVersionResponseBodyKeyVersion) SetCreationDate

func (*CreateKeyVersionResponseBodyKeyVersion) SetKeyId

func (*CreateKeyVersionResponseBodyKeyVersion) SetKeyVersionId

func (CreateKeyVersionResponseBodyKeyVersion) String

type CreateNetworkRuleRequest added in v3.1.0

type CreateNetworkRuleRequest struct {
	// The description.
	//
	// example:
	//
	// networkrule description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the access control rule.
	//
	// example:
	//
	// networkrule_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The private IP address or private CIDR block. Separate multiple items with commas (,).
	//
	// example:
	//
	// ["192.10.XX.XX","192.168.XX.XX/24"]
	SourcePrivateIp *string `json:"SourcePrivateIp,omitempty" xml:"SourcePrivateIp,omitempty"`
	// The network type.
	//
	// Only private IP addresses are supported. Set the value to Private.
	//
	// example:
	//
	// Private
	Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
}

func (CreateNetworkRuleRequest) GoString added in v3.1.0

func (s CreateNetworkRuleRequest) GoString() string

func (*CreateNetworkRuleRequest) SetDescription added in v3.1.0

func (*CreateNetworkRuleRequest) SetName added in v3.1.0

func (*CreateNetworkRuleRequest) SetSourcePrivateIp added in v3.1.0

func (s *CreateNetworkRuleRequest) SetSourcePrivateIp(v string) *CreateNetworkRuleRequest

func (*CreateNetworkRuleRequest) SetType added in v3.1.0

func (CreateNetworkRuleRequest) String added in v3.1.0

func (s CreateNetworkRuleRequest) String() string

type CreateNetworkRuleResponse added in v3.1.0

type CreateNetworkRuleResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateNetworkRuleResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateNetworkRuleResponse) GoString added in v3.1.0

func (s CreateNetworkRuleResponse) GoString() string

func (*CreateNetworkRuleResponse) SetBody added in v3.1.0

func (*CreateNetworkRuleResponse) SetHeaders added in v3.1.0

func (*CreateNetworkRuleResponse) SetStatusCode added in v3.1.0

func (CreateNetworkRuleResponse) String added in v3.1.0

func (s CreateNetworkRuleResponse) String() string

type CreateNetworkRuleResponseBody added in v3.1.0

type CreateNetworkRuleResponseBody struct {
	// The ARN of the access control rule.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:119285303511****:network/networkrule_test
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The description.
	//
	// example:
	//
	// networkrule description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the access control rule.
	//
	// example:
	//
	// networkrule_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3bf02f7a-015b-4f93-be0f-cc043fda2dd3
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The private IP address or private CIDR block.
	//
	// example:
	//
	// ["192.10.XX.XX","192.168.XX.XX/24"]
	SourcePrivateIp *string `json:"SourcePrivateIp,omitempty" xml:"SourcePrivateIp,omitempty"`
	// The network type.
	//
	// example:
	//
	// Private
	Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
}

func (CreateNetworkRuleResponseBody) GoString added in v3.1.0

func (*CreateNetworkRuleResponseBody) SetArn added in v3.1.0

func (*CreateNetworkRuleResponseBody) SetDescription added in v3.1.0

func (*CreateNetworkRuleResponseBody) SetName added in v3.1.0

func (*CreateNetworkRuleResponseBody) SetRequestId added in v3.1.0

func (*CreateNetworkRuleResponseBody) SetSourcePrivateIp added in v3.1.0

func (*CreateNetworkRuleResponseBody) SetType added in v3.1.0

func (CreateNetworkRuleResponseBody) String added in v3.1.0

type CreatePolicyRequest added in v3.1.0

type CreatePolicyRequest struct {
	// The name of the access control rule.
	//
	// > For more information about how to query created access control rules, see [ListNetworkRules](~~2539433~~).
	//
	// example:
	//
	// {"NetworkRules":["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]}
	AccessControlRules *string `json:"AccessControlRules,omitempty" xml:"AccessControlRules,omitempty"`
	// The description.
	//
	// example:
	//
	// policy  description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The scope of the permission policy. You need to specify the KMS instance that you want to access.
	//
	// example:
	//
	// kst-hzz634e67d126u9p9****
	KmsInstance *string `json:"KmsInstance,omitempty" xml:"KmsInstance,omitempty"`
	// The name of the permission policy.
	//
	// example:
	//
	// policy_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The operations that can be performed. Valid values:
	//
	// 	- RbacPermission/Template/CryptoServiceKeyUser: allows you to perform cryptographic operations.
	//
	// 	- RbacPermission/Template/CryptoServiceSecretUser: allows you to perform secret-related operations.
	//
	// You can select both.
	//
	// example:
	//
	// ["RbacPermission/Template/CryptoServiceKeyUser", "RbacPermission/Template/CryptoServiceSecretUser"]
	Permissions *string `json:"Permissions,omitempty" xml:"Permissions,omitempty"`
	// The key and secret that are allowed to access.
	//
	// 	- Key: Enter a key in the `key/${KeyId}` format. To allow access to all keys of a KMS instance, enter key/\*.
	//
	// 	- Secret: Enter a secret in the `secret/${SecretName}` format. To allow access to all secrets of a KMS instance, enter secret/\*.
	//
	// example:
	//
	// ["secret/acs/ram/user/ram-secret", "secret/acs/ram/user/acr-master", "key/key-hzz63d9c8d3dfv8cv****"]
	Resources *string `json:"Resources,omitempty" xml:"Resources,omitempty"`
}

func (CreatePolicyRequest) GoString added in v3.1.0

func (s CreatePolicyRequest) GoString() string

func (*CreatePolicyRequest) SetAccessControlRules added in v3.1.0

func (s *CreatePolicyRequest) SetAccessControlRules(v string) *CreatePolicyRequest

func (*CreatePolicyRequest) SetDescription added in v3.1.0

func (s *CreatePolicyRequest) SetDescription(v string) *CreatePolicyRequest

func (*CreatePolicyRequest) SetKmsInstance added in v3.1.0

func (s *CreatePolicyRequest) SetKmsInstance(v string) *CreatePolicyRequest

func (*CreatePolicyRequest) SetName added in v3.1.0

func (*CreatePolicyRequest) SetPermissions added in v3.1.0

func (s *CreatePolicyRequest) SetPermissions(v string) *CreatePolicyRequest

func (*CreatePolicyRequest) SetResources added in v3.1.0

func (s *CreatePolicyRequest) SetResources(v string) *CreatePolicyRequest

func (CreatePolicyRequest) String added in v3.1.0

func (s CreatePolicyRequest) String() string

type CreatePolicyResponse added in v3.1.0

type CreatePolicyResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreatePolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreatePolicyResponse) GoString added in v3.1.0

func (s CreatePolicyResponse) GoString() string

func (*CreatePolicyResponse) SetBody added in v3.1.0

func (*CreatePolicyResponse) SetHeaders added in v3.1.0

func (s *CreatePolicyResponse) SetHeaders(v map[string]*string) *CreatePolicyResponse

func (*CreatePolicyResponse) SetStatusCode added in v3.1.0

func (s *CreatePolicyResponse) SetStatusCode(v int32) *CreatePolicyResponse

func (CreatePolicyResponse) String added in v3.1.0

func (s CreatePolicyResponse) String() string

type CreatePolicyResponseBody added in v3.1.0

type CreatePolicyResponseBody struct {
	// The name of the access control rule.
	//
	// example:
	//
	// {"NetworkRules":["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]}
	AccessControlRules *string `json:"AccessControlRules,omitempty" xml:"AccessControlRules,omitempty"`
	// The ARN of the permission policy.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:119285303511****:policy/policy_test
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The description.
	//
	// example:
	//
	// policy  description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The scope of the permission policy.
	//
	// example:
	//
	// kst-hzz634e67d126u9p9****
	KmsInstance *string `json:"KmsInstance,omitempty" xml:"KmsInstance,omitempty"`
	// The name of the permission policy.
	//
	// example:
	//
	// policy_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The operations that can be performed.
	//
	// example:
	//
	// ["RbacPermission/Template/CryptoServiceKeyUser", "RbacPermission/Template/CryptoServiceSecretUser"]
	Permissions *string `json:"Permissions,omitempty" xml:"Permissions,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3bf02f7a-015b-4f34-be0f-c4543fda2d33
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The key and secret that are allowed to access.
	//
	// 	- `key/*` indicates that all keys of the KMS instance can be accessed.
	//
	// 	- `secret/*` indicates all secrets of the KMS instance can be accessed.
	//
	// example:
	//
	// ["secret/acs/ram/user/ram-secret", "secret/acs/ram/user/acr-master", "key/key-hzz63d9c8d3dfv8cv****"]
	Resources *string `json:"Resources,omitempty" xml:"Resources,omitempty"`
}

func (CreatePolicyResponseBody) GoString added in v3.1.0

func (s CreatePolicyResponseBody) GoString() string

func (*CreatePolicyResponseBody) SetAccessControlRules added in v3.1.0

func (s *CreatePolicyResponseBody) SetAccessControlRules(v string) *CreatePolicyResponseBody

func (*CreatePolicyResponseBody) SetArn added in v3.1.0

func (*CreatePolicyResponseBody) SetDescription added in v3.1.0

func (*CreatePolicyResponseBody) SetKmsInstance added in v3.1.0

func (*CreatePolicyResponseBody) SetName added in v3.1.0

func (*CreatePolicyResponseBody) SetPermissions added in v3.1.0

func (*CreatePolicyResponseBody) SetRequestId added in v3.1.0

func (*CreatePolicyResponseBody) SetResources added in v3.1.0

func (CreatePolicyResponseBody) String added in v3.1.0

func (s CreatePolicyResponseBody) String() string

type CreateSecretRequest

type CreateSecretRequest struct {
	// The version number of the secret.
	//
	// example:
	//
	// kst-bjj62d8f5e0sgtx8h****
	DKMSInstanceId *string `json:"DKMSInstanceId,omitempty" xml:"DKMSInstanceId,omitempty"`
	// Specifies whether to enable automatic rotation. Valid values:
	//
	// 	- true: specifies to enable automatic rotation.
	//
	// 	- false: specifies to disable automatic rotation. This is the default value.
	//
	// >  This parameter is valid if you set the SecretType parameter to Rds, RAMCredentials, or ECS.
	//
	// example:
	//
	// mydbinfo
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// Indicates whether automatic rotation is enabled. Valid values:
	//
	// 	- Enabled: indicates that automatic rotation is enabled.
	//
	// 	- Disabled: indicates that automatic rotation is disabled.
	//
	// 	- Invalid: indicates that the status of automatic rotation is abnormal. In this case, Secrets Manager cannot automatically rotate the secret.
	//
	// >  This parameter is returned if you set the SecretType parameter to Rds, RAMCredentials, or ECS.
	//
	// example:
	//
	// true
	EnableAutomaticRotation *bool `json:"EnableAutomaticRotation,omitempty" xml:"EnableAutomaticRotation,omitempty"`
	// The description of the secret.
	//
	// example:
	//
	// 00aa68af-2c02-4f68-95fe-3435d330****
	EncryptionKeyId *string `json:"EncryptionKeyId,omitempty" xml:"EncryptionKeyId,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// {"SecretSubType":"SingleUser", "DBInstanceId":"rm-bp1b3dd3a506e****" ,"CustomData":{}}
	ExtendedConfig map[string]interface{} `json:"ExtendedConfig,omitempty" xml:"ExtendedConfig,omitempty"`
	Policy         *string                `json:"Policy,omitempty" xml:"Policy,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// 30d
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
	// The tags of the secret.
	//
	// example:
	//
	// The type of the secret. Valid values:
	//
	// 	- Generic: specifies a generic secret.
	//
	// 	- Rds: specifies a managed ApsaraDB RDS secret.
	//
	// 	- RAMCredentials: specifies a managed RAM secret.
	//
	// 	- ECS: specifies a managed ECS secret.
	SecretData *string `json:"SecretData,omitempty" xml:"SecretData,omitempty"`
	// The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length.
	//
	// 	- If you set the SecretType parameter to Generic, you do not need to configure this parameter.
	//
	// 	- If you set the SecretType parameter to Rds, configure the following fields for the ExtendedConfig parameter:
	//
	//     	- SecretSubType: required. The subtype of the secret. Valid values:
	//
	//         	- SingleUser: Secrets Manager manages the ApsaraDB RDS secret in single-account mode. When the secret is rotated, the password of the specified account is reset to a new random password.
	//
	//         	- DoubleUsers: Secrets Manager manages the ApsaraDB RDS secret in dual-account mode. One account is referenced by the ACSCurrent version, and the other account is referenced by the ACSPrevious version. When the secret is rotated, the password of the account referenced by the ACSPrevious version is reset to a new random password. Then, Secrets Manager switches the referenced accounts between the ACSCurrent and ACSPrevious versions.
	//
	//     	- DBInstanceId: required. The ApsaraDB RDS instance to which the ApsaraDB RDS account belongs.
	//
	//     	- CustomData: optional. The custom data. The value is a collection of key-value pairs in the JSON format. Up to 10 key-value pairs can be specified. Separate multiple key-value pairs with commas (,). Example: `{"Key1": "v1", "fds":"fdsf"}`. The default value is a pair of empty braces (`{}`).
	//
	// 	- If you set the SecretType parameter to RAMCredentials, configure the following fields for the ExtendedConfig parameter:
	//
	//     	- SecretSubType: required. The subtype of the secret. Set the value to RamUserAccessKey.
	//
	//     	- UserName: required. The name of the RAM user.
	//
	//     	- CustomData: optional. The custom data. The value is a collection of key-value pairs in the JSON format. Up to 10 key-value pairs can be specified. Separate multiple key-value pairs with commas (,). The default value is a pair of empty braces (`{}`).
	//
	// 	- If you set the SecretType parameter to ECS, configure the following fields for the ExtendedConfig parameter:
	//
	//     	- SecretSubType: required. The subtype of the secret. Valid values:
	//
	//         	- Password: the password that is used to log on to the ECS instance.
	//
	//         	- SSHKey: the SSH public key and private key that are used to log on to the ECS instance.
	//
	//     	- RegionId: required. The ID of the region in which the ECS instance resides.
	//
	//     	- InstanceId: required. The ID of the ECS instance.
	//
	//     	- CustomData: optional. The custom data. The value is a collection of key-value pairs in the JSON format. Up to 10 key-value pairs can be specified. Separate multiple key-value pairs with commas (,). The default value is a pair of empty braces (`{}`).
	//
	// >  This parameter is required if you set the SecretType parameter to Rds, RAMCredentials, or ECS.
	//
	// example:
	//
	// text
	SecretDataType *string `json:"SecretDataType,omitempty" xml:"SecretDataType,omitempty"`
	// The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores the encrypted value in the initial version.
	//
	// 	- If you set the SecretType parameter to Generic that indicates a generic secret, you can customize the secret value.
	//
	// 	- If you set the SecretType parameter to Rds that indicates a managed ApsaraDB RDS secret, the secret value must be in the format of `{"Accounts":[{"AccountName":"","AccountPassword":""}]}`. In the preceding format, `AccountName` indicates the username of the account that is used to connect to your ApsaraDB RDS instance, and `AccountPassword` specifies the password of the account.
	//
	// 	- If you set the SecretType parameter to RAMCredentials that indicates a managed RAM secret, the secret value must be in the format of `{"AccessKeys":[{"AccessKeyId":"","AccessKeySecret":"",}]}`. In the preceding format, `AccessKeyId` indicates the AccessKey ID of the RAM user and `AccessKeySecret` specifies the AccessKey secret of the RAM user. You must specify all the AccessKey pairs of the RAM user.
	//
	// 	- If you set the SecretType parameter to ECS that indicates a managed ECS secret, the secret value must be in one of the following formats:
	//
	//     	- `{"UserName":"","Password": ""}`: In the format, `UserName` specifies the username that is used to log on to the ECS instance, and `Password` specifies the password that is used to log on to the ECS instance.
	//
	//     	- `{"UserName":"","PublicKey": "", "PrivateKey": ""}`: In the format, `PublicKey` indicates the SSH public key that is used to log on to the ECS instance, and `PrivateKey` specifies the SSH private key that is used to log on to the ECS instance.
	//
	// example:
	//
	// mydbconninfo
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The ID of the dedicated KMS instance.
	//
	// example:
	//
	// Rds
	SecretType *string `json:"SecretType,omitempty" xml:"SecretType,omitempty"`
	// The interval for automatic rotation. Valid values: 6 hours to 8,760 hours (365 days).
	//
	// The value is in the `integer[unit]` format.
	//
	// The unit can be d (day), h (hour), m (minute), or s (second). For example, both 7d and 604800s indicate a seven-day interval.
	//
	// >  This parameter is required if you set the EnableAutomaticRotation parameter to true. This parameter is ignored if you set the EnableAutomaticRotation parameter to false or if the EnableAutomaticRotation parameter is not configured.
	//
	// example:
	//
	// [{\"TagKey\":\"key1\",\"TagValue\":\"val1\"},{\"TagKey\":\"key2\",\"TagValue\":\"val2\"}]
	Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"`
	// The type of the secret value. Valid values:
	//
	// 	- text
	//
	// 	- binary
	//
	// >  If you set the SecretType parameter to Rds, RAMCredentials, or ECS, the SecretDataType parameter must be set to text.
	//
	// example:
	//
	// v1
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
}

func (CreateSecretRequest) GoString

func (s CreateSecretRequest) GoString() string

func (*CreateSecretRequest) SetDKMSInstanceId

func (s *CreateSecretRequest) SetDKMSInstanceId(v string) *CreateSecretRequest

func (*CreateSecretRequest) SetDescription

func (s *CreateSecretRequest) SetDescription(v string) *CreateSecretRequest

func (*CreateSecretRequest) SetEnableAutomaticRotation

func (s *CreateSecretRequest) SetEnableAutomaticRotation(v bool) *CreateSecretRequest

func (*CreateSecretRequest) SetEncryptionKeyId

func (s *CreateSecretRequest) SetEncryptionKeyId(v string) *CreateSecretRequest

func (*CreateSecretRequest) SetExtendedConfig

func (s *CreateSecretRequest) SetExtendedConfig(v map[string]interface{}) *CreateSecretRequest

func (*CreateSecretRequest) SetPolicy added in v3.2.0

func (*CreateSecretRequest) SetRotationInterval

func (s *CreateSecretRequest) SetRotationInterval(v string) *CreateSecretRequest

func (*CreateSecretRequest) SetSecretData

func (s *CreateSecretRequest) SetSecretData(v string) *CreateSecretRequest

func (*CreateSecretRequest) SetSecretDataType

func (s *CreateSecretRequest) SetSecretDataType(v string) *CreateSecretRequest

func (*CreateSecretRequest) SetSecretName

func (s *CreateSecretRequest) SetSecretName(v string) *CreateSecretRequest

func (*CreateSecretRequest) SetSecretType

func (s *CreateSecretRequest) SetSecretType(v string) *CreateSecretRequest

func (*CreateSecretRequest) SetTags

func (*CreateSecretRequest) SetVersionId

func (s *CreateSecretRequest) SetVersionId(v string) *CreateSecretRequest

func (CreateSecretRequest) String

func (s CreateSecretRequest) String() string

type CreateSecretResponse

type CreateSecretResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateSecretResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateSecretResponse) GoString

func (s CreateSecretResponse) GoString() string

func (*CreateSecretResponse) SetBody

func (*CreateSecretResponse) SetHeaders

func (s *CreateSecretResponse) SetHeaders(v map[string]*string) *CreateSecretResponse

func (*CreateSecretResponse) SetStatusCode

func (s *CreateSecretResponse) SetStatusCode(v int32) *CreateSecretResponse

func (CreateSecretResponse) String

func (s CreateSecretResponse) String() string

type CreateSecretResponseBody

type CreateSecretResponseBody struct {
	// example:
	//
	// acs:kms:cn-hangzhou:154035569884****:secret/mydbconninfo
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The type of the secret. Valid values:
	//
	// 	- Generic: indicates a generic secret.
	//
	// 	- Rds: indicates a managed ApsaraDB RDS secret.
	//
	// 	- RAMCredentials: indicates a managed RAM secret.
	//
	// 	- ECS: indicates a managed ECS secret.
	//
	// example:
	//
	// Enabled
	AutomaticRotation *string `json:"AutomaticRotation,omitempty" xml:"AutomaticRotation,omitempty"`
	// example:
	//
	// kst-bjj62d8f5e0sgtx8h****
	DKMSInstanceId *string `json:"DKMSInstanceId,omitempty" xml:"DKMSInstanceId,omitempty"`
	// example:
	//
	// {\"SecretSubType\":\"SingleUser\", \"DBInstanceId\":\"rm-uf667446pc955****\",  \"CustomData\":{} }
	ExtendedConfig *string `json:"ExtendedConfig,omitempty" xml:"ExtendedConfig,omitempty"`
	// The extended configuration of the secret.
	//
	// >  This parameter is returned if you set the SecretType parameter to Rds, RAMCredentials, or ECS.
	//
	// example:
	//
	// 2022-07-06T18:22:03Z
	NextRotationDate *string `json:"NextRotationDate,omitempty" xml:"NextRotationDate,omitempty"`
	// The time when the next rotation will be performed.
	//
	// >  This parameter is returned if automatic rotation is enabled.
	//
	// example:
	//
	// 3bf02f7a-015b-4f93-be0f-cc043fda2dd3
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// example:
	//
	// 604800s
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
	// The interval for automatic rotation.
	//
	// The value is in the `integer[unit]` format. The value of the `unit` field is fixed as s. For example, if the value is 604800s, automatic rotation is performed at a 7-day interval.
	//
	// >  This parameter is returned if automatic rotation is enabled.
	//
	// example:
	//
	// mydbconninfo
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The ID of the dedicated KMS instance.
	//
	// example:
	//
	// Rds
	SecretType *string `json:"SecretType,omitempty" xml:"SecretType,omitempty"`
	// The Alibaba Cloud Resource Name (ARN) of the secret.
	//
	// example:
	//
	// v1
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
}

func (CreateSecretResponseBody) GoString

func (s CreateSecretResponseBody) GoString() string

func (*CreateSecretResponseBody) SetArn

func (*CreateSecretResponseBody) SetAutomaticRotation

func (s *CreateSecretResponseBody) SetAutomaticRotation(v string) *CreateSecretResponseBody

func (*CreateSecretResponseBody) SetDKMSInstanceId

func (s *CreateSecretResponseBody) SetDKMSInstanceId(v string) *CreateSecretResponseBody

func (*CreateSecretResponseBody) SetExtendedConfig

func (s *CreateSecretResponseBody) SetExtendedConfig(v string) *CreateSecretResponseBody

func (*CreateSecretResponseBody) SetNextRotationDate

func (s *CreateSecretResponseBody) SetNextRotationDate(v string) *CreateSecretResponseBody

func (*CreateSecretResponseBody) SetRequestId

func (*CreateSecretResponseBody) SetRotationInterval

func (s *CreateSecretResponseBody) SetRotationInterval(v string) *CreateSecretResponseBody

func (*CreateSecretResponseBody) SetSecretName

func (*CreateSecretResponseBody) SetSecretType

func (*CreateSecretResponseBody) SetVersionId

func (CreateSecretResponseBody) String

func (s CreateSecretResponseBody) String() string

type CreateSecretShrinkRequest

type CreateSecretShrinkRequest struct {
	// The version number of the secret.
	//
	// example:
	//
	// kst-bjj62d8f5e0sgtx8h****
	DKMSInstanceId *string `json:"DKMSInstanceId,omitempty" xml:"DKMSInstanceId,omitempty"`
	// Specifies whether to enable automatic rotation. Valid values:
	//
	// 	- true: specifies to enable automatic rotation.
	//
	// 	- false: specifies to disable automatic rotation. This is the default value.
	//
	// >  This parameter is valid if you set the SecretType parameter to Rds, RAMCredentials, or ECS.
	//
	// example:
	//
	// mydbinfo
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// Indicates whether automatic rotation is enabled. Valid values:
	//
	// 	- Enabled: indicates that automatic rotation is enabled.
	//
	// 	- Disabled: indicates that automatic rotation is disabled.
	//
	// 	- Invalid: indicates that the status of automatic rotation is abnormal. In this case, Secrets Manager cannot automatically rotate the secret.
	//
	// >  This parameter is returned if you set the SecretType parameter to Rds, RAMCredentials, or ECS.
	//
	// example:
	//
	// true
	EnableAutomaticRotation *bool `json:"EnableAutomaticRotation,omitempty" xml:"EnableAutomaticRotation,omitempty"`
	// The description of the secret.
	//
	// example:
	//
	// 00aa68af-2c02-4f68-95fe-3435d330****
	EncryptionKeyId *string `json:"EncryptionKeyId,omitempty" xml:"EncryptionKeyId,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// {"SecretSubType":"SingleUser", "DBInstanceId":"rm-bp1b3dd3a506e****" ,"CustomData":{}}
	ExtendedConfigShrink *string `json:"ExtendedConfig,omitempty" xml:"ExtendedConfig,omitempty"`
	Policy               *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// 30d
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
	// The tags of the secret.
	//
	// example:
	//
	// The type of the secret. Valid values:
	//
	// 	- Generic: specifies a generic secret.
	//
	// 	- Rds: specifies a managed ApsaraDB RDS secret.
	//
	// 	- RAMCredentials: specifies a managed RAM secret.
	//
	// 	- ECS: specifies a managed ECS secret.
	SecretData *string `json:"SecretData,omitempty" xml:"SecretData,omitempty"`
	// The extended configuration of the secret. This parameter specifies the properties of the secret of the specific type. The description can be up to 1,024 characters in length.
	//
	// 	- If you set the SecretType parameter to Generic, you do not need to configure this parameter.
	//
	// 	- If you set the SecretType parameter to Rds, configure the following fields for the ExtendedConfig parameter:
	//
	//     	- SecretSubType: required. The subtype of the secret. Valid values:
	//
	//         	- SingleUser: Secrets Manager manages the ApsaraDB RDS secret in single-account mode. When the secret is rotated, the password of the specified account is reset to a new random password.
	//
	//         	- DoubleUsers: Secrets Manager manages the ApsaraDB RDS secret in dual-account mode. One account is referenced by the ACSCurrent version, and the other account is referenced by the ACSPrevious version. When the secret is rotated, the password of the account referenced by the ACSPrevious version is reset to a new random password. Then, Secrets Manager switches the referenced accounts between the ACSCurrent and ACSPrevious versions.
	//
	//     	- DBInstanceId: required. The ApsaraDB RDS instance to which the ApsaraDB RDS account belongs.
	//
	//     	- CustomData: optional. The custom data. The value is a collection of key-value pairs in the JSON format. Up to 10 key-value pairs can be specified. Separate multiple key-value pairs with commas (,). Example: `{"Key1": "v1", "fds":"fdsf"}`. The default value is a pair of empty braces (`{}`).
	//
	// 	- If you set the SecretType parameter to RAMCredentials, configure the following fields for the ExtendedConfig parameter:
	//
	//     	- SecretSubType: required. The subtype of the secret. Set the value to RamUserAccessKey.
	//
	//     	- UserName: required. The name of the RAM user.
	//
	//     	- CustomData: optional. The custom data. The value is a collection of key-value pairs in the JSON format. Up to 10 key-value pairs can be specified. Separate multiple key-value pairs with commas (,). The default value is a pair of empty braces (`{}`).
	//
	// 	- If you set the SecretType parameter to ECS, configure the following fields for the ExtendedConfig parameter:
	//
	//     	- SecretSubType: required. The subtype of the secret. Valid values:
	//
	//         	- Password: the password that is used to log on to the ECS instance.
	//
	//         	- SSHKey: the SSH public key and private key that are used to log on to the ECS instance.
	//
	//     	- RegionId: required. The ID of the region in which the ECS instance resides.
	//
	//     	- InstanceId: required. The ID of the ECS instance.
	//
	//     	- CustomData: optional. The custom data. The value is a collection of key-value pairs in the JSON format. Up to 10 key-value pairs can be specified. Separate multiple key-value pairs with commas (,). The default value is a pair of empty braces (`{}`).
	//
	// >  This parameter is required if you set the SecretType parameter to Rds, RAMCredentials, or ECS.
	//
	// example:
	//
	// text
	SecretDataType *string `json:"SecretDataType,omitempty" xml:"SecretDataType,omitempty"`
	// The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores the encrypted value in the initial version.
	//
	// 	- If you set the SecretType parameter to Generic that indicates a generic secret, you can customize the secret value.
	//
	// 	- If you set the SecretType parameter to Rds that indicates a managed ApsaraDB RDS secret, the secret value must be in the format of `{"Accounts":[{"AccountName":"","AccountPassword":""}]}`. In the preceding format, `AccountName` indicates the username of the account that is used to connect to your ApsaraDB RDS instance, and `AccountPassword` specifies the password of the account.
	//
	// 	- If you set the SecretType parameter to RAMCredentials that indicates a managed RAM secret, the secret value must be in the format of `{"AccessKeys":[{"AccessKeyId":"","AccessKeySecret":"",}]}`. In the preceding format, `AccessKeyId` indicates the AccessKey ID of the RAM user and `AccessKeySecret` specifies the AccessKey secret of the RAM user. You must specify all the AccessKey pairs of the RAM user.
	//
	// 	- If you set the SecretType parameter to ECS that indicates a managed ECS secret, the secret value must be in one of the following formats:
	//
	//     	- `{"UserName":"","Password": ""}`: In the format, `UserName` specifies the username that is used to log on to the ECS instance, and `Password` specifies the password that is used to log on to the ECS instance.
	//
	//     	- `{"UserName":"","PublicKey": "", "PrivateKey": ""}`: In the format, `PublicKey` indicates the SSH public key that is used to log on to the ECS instance, and `PrivateKey` specifies the SSH private key that is used to log on to the ECS instance.
	//
	// example:
	//
	// mydbconninfo
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The ID of the dedicated KMS instance.
	//
	// example:
	//
	// Rds
	SecretType *string `json:"SecretType,omitempty" xml:"SecretType,omitempty"`
	// The interval for automatic rotation. Valid values: 6 hours to 8,760 hours (365 days).
	//
	// The value is in the `integer[unit]` format.
	//
	// The unit can be d (day), h (hour), m (minute), or s (second). For example, both 7d and 604800s indicate a seven-day interval.
	//
	// >  This parameter is required if you set the EnableAutomaticRotation parameter to true. This parameter is ignored if you set the EnableAutomaticRotation parameter to false or if the EnableAutomaticRotation parameter is not configured.
	//
	// example:
	//
	// [{\"TagKey\":\"key1\",\"TagValue\":\"val1\"},{\"TagKey\":\"key2\",\"TagValue\":\"val2\"}]
	Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"`
	// The type of the secret value. Valid values:
	//
	// 	- text
	//
	// 	- binary
	//
	// >  If you set the SecretType parameter to Rds, RAMCredentials, or ECS, the SecretDataType parameter must be set to text.
	//
	// example:
	//
	// v1
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
}

func (CreateSecretShrinkRequest) GoString

func (s CreateSecretShrinkRequest) GoString() string

func (*CreateSecretShrinkRequest) SetDKMSInstanceId

func (*CreateSecretShrinkRequest) SetDescription

func (*CreateSecretShrinkRequest) SetEnableAutomaticRotation

func (s *CreateSecretShrinkRequest) SetEnableAutomaticRotation(v bool) *CreateSecretShrinkRequest

func (*CreateSecretShrinkRequest) SetEncryptionKeyId

func (*CreateSecretShrinkRequest) SetExtendedConfigShrink

func (s *CreateSecretShrinkRequest) SetExtendedConfigShrink(v string) *CreateSecretShrinkRequest

func (*CreateSecretShrinkRequest) SetPolicy added in v3.2.0

func (*CreateSecretShrinkRequest) SetRotationInterval

func (s *CreateSecretShrinkRequest) SetRotationInterval(v string) *CreateSecretShrinkRequest

func (*CreateSecretShrinkRequest) SetSecretData

func (*CreateSecretShrinkRequest) SetSecretDataType

func (*CreateSecretShrinkRequest) SetSecretName

func (*CreateSecretShrinkRequest) SetSecretType

func (*CreateSecretShrinkRequest) SetTags

func (*CreateSecretShrinkRequest) SetVersionId

func (CreateSecretShrinkRequest) String

func (s CreateSecretShrinkRequest) String() string

type DecryptRequest

type DecryptRequest struct {
	// The ciphertext that you want to decrypt.
	//
	// You can generate the ciphertext by calling the following operations:
	//
	// 	- [GenerateDataKey](~~28948~~)
	//
	// 	- [Encrypt](~~28949~~)
	//
	// 	- [GenerateDataKeyWithoutPlaintext](~~134043~~)
	//
	// example:
	//
	// DZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmaaSl+TztSIMe43nbTH/Z1Wr4XfLftKhAciUmDQXuMRl4WTvKhxjMThjK****
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The JSON string that consists of key-value pairs.
	//
	// >  If you specify the EncryptionContext parameter when you call the [GenerateDataKey](~~28948~~), [Encrypt](~~28949~~), or [GenerateDataKeyWithoutPlaintext](~~134043~~) operation, you must specify the same context when you call the Decrypt operation. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContext map[string]interface{} `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
}

func (DecryptRequest) GoString

func (s DecryptRequest) GoString() string

func (*DecryptRequest) SetCiphertextBlob

func (s *DecryptRequest) SetCiphertextBlob(v string) *DecryptRequest

func (*DecryptRequest) SetEncryptionContext

func (s *DecryptRequest) SetEncryptionContext(v map[string]interface{}) *DecryptRequest

func (DecryptRequest) String

func (s DecryptRequest) String() string

type DecryptResponse

type DecryptResponse struct {
	Headers    map[string]*string   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DecryptResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DecryptResponse) GoString

func (s DecryptResponse) GoString() string

func (*DecryptResponse) SetBody

func (*DecryptResponse) SetHeaders

func (s *DecryptResponse) SetHeaders(v map[string]*string) *DecryptResponse

func (*DecryptResponse) SetStatusCode

func (s *DecryptResponse) SetStatusCode(v int32) *DecryptResponse

func (DecryptResponse) String

func (s DecryptResponse) String() string

type DecryptResponseBody

type DecryptResponseBody struct {
	// The ID of the customer master key (CMK) that is used to decrypt the ciphertext.
	//
	// It is the GUID of the CMK.
	//
	// example:
	//
	// 202b9877-5a25-46e3-a763-e20791b5****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the CMK version that is used to decrypt the ciphertext.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The plaintext that is generated after decryption.
	//
	// example:
	//
	// tRYXuCwgja12xxO1N/gZERDDCLw9doZEQiPDk/Bv****
	Plaintext *string `json:"Plaintext,omitempty" xml:"Plaintext,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 207596a2-36d3-4840-b1bd-f87044699bd7
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DecryptResponseBody) GoString

func (s DecryptResponseBody) GoString() string

func (*DecryptResponseBody) SetKeyId

func (*DecryptResponseBody) SetKeyVersionId

func (s *DecryptResponseBody) SetKeyVersionId(v string) *DecryptResponseBody

func (*DecryptResponseBody) SetPlaintext

func (s *DecryptResponseBody) SetPlaintext(v string) *DecryptResponseBody

func (*DecryptResponseBody) SetRequestId

func (s *DecryptResponseBody) SetRequestId(v string) *DecryptResponseBody

func (DecryptResponseBody) String

func (s DecryptResponseBody) String() string

type DecryptShrinkRequest

type DecryptShrinkRequest struct {
	// The ciphertext that you want to decrypt.
	//
	// You can generate the ciphertext by calling the following operations:
	//
	// 	- [GenerateDataKey](~~28948~~)
	//
	// 	- [Encrypt](~~28949~~)
	//
	// 	- [GenerateDataKeyWithoutPlaintext](~~134043~~)
	//
	// example:
	//
	// DZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmaaSl+TztSIMe43nbTH/Z1Wr4XfLftKhAciUmDQXuMRl4WTvKhxjMThjK****
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The JSON string that consists of key-value pairs.
	//
	// >  If you specify the EncryptionContext parameter when you call the [GenerateDataKey](~~28948~~), [Encrypt](~~28949~~), or [GenerateDataKeyWithoutPlaintext](~~134043~~) operation, you must specify the same context when you call the Decrypt operation. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContextShrink *string `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
}

func (DecryptShrinkRequest) GoString

func (s DecryptShrinkRequest) GoString() string

func (*DecryptShrinkRequest) SetCiphertextBlob

func (s *DecryptShrinkRequest) SetCiphertextBlob(v string) *DecryptShrinkRequest

func (*DecryptShrinkRequest) SetEncryptionContextShrink

func (s *DecryptShrinkRequest) SetEncryptionContextShrink(v string) *DecryptShrinkRequest

func (DecryptShrinkRequest) String

func (s DecryptShrinkRequest) String() string

type DeleteAliasRequest

type DeleteAliasRequest struct {
	// The alias that you want to delete.
	//
	// The value must be 1 to 255 characters in length and must include the alias/ prefix.
	//
	// example:
	//
	// alias/example
	AliasName *string `json:"AliasName,omitempty" xml:"AliasName,omitempty"`
}

func (DeleteAliasRequest) GoString

func (s DeleteAliasRequest) GoString() string

func (*DeleteAliasRequest) SetAliasName

func (s *DeleteAliasRequest) SetAliasName(v string) *DeleteAliasRequest

func (DeleteAliasRequest) String

func (s DeleteAliasRequest) String() string

type DeleteAliasResponse

type DeleteAliasResponse struct {
	Headers    map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteAliasResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteAliasResponse) GoString

func (s DeleteAliasResponse) GoString() string

func (*DeleteAliasResponse) SetBody

func (*DeleteAliasResponse) SetHeaders

func (s *DeleteAliasResponse) SetHeaders(v map[string]*string) *DeleteAliasResponse

func (*DeleteAliasResponse) SetStatusCode

func (s *DeleteAliasResponse) SetStatusCode(v int32) *DeleteAliasResponse

func (DeleteAliasResponse) String

func (s DeleteAliasResponse) String() string

type DeleteAliasResponseBody

type DeleteAliasResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// 4c8ae23f-3a42-6791-a4ba-1faa77831c28
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteAliasResponseBody) GoString

func (s DeleteAliasResponseBody) GoString() string

func (*DeleteAliasResponseBody) SetRequestId

func (DeleteAliasResponseBody) String

func (s DeleteAliasResponseBody) String() string

type DeleteApplicationAccessPointRequest added in v3.1.0

type DeleteApplicationAccessPointRequest struct {
	// The name of the AAP that you want to delete.
	//
	// example:
	//
	// aap_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (DeleteApplicationAccessPointRequest) GoString added in v3.1.0

func (*DeleteApplicationAccessPointRequest) SetName added in v3.1.0

func (DeleteApplicationAccessPointRequest) String added in v3.1.0

type DeleteApplicationAccessPointResponse added in v3.1.0

type DeleteApplicationAccessPointResponse struct {
	Headers    map[string]*string                        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteApplicationAccessPointResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteApplicationAccessPointResponse) GoString added in v3.1.0

func (*DeleteApplicationAccessPointResponse) SetBody added in v3.1.0

func (*DeleteApplicationAccessPointResponse) SetHeaders added in v3.1.0

func (*DeleteApplicationAccessPointResponse) SetStatusCode added in v3.1.0

func (DeleteApplicationAccessPointResponse) String added in v3.1.0

type DeleteApplicationAccessPointResponseBody added in v3.1.0

type DeleteApplicationAccessPointResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// bcfefe15-46f0-44a3-bd96-3d422474b71a
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteApplicationAccessPointResponseBody) GoString added in v3.1.0

func (*DeleteApplicationAccessPointResponseBody) SetRequestId added in v3.1.0

func (DeleteApplicationAccessPointResponseBody) String added in v3.1.0

type DeleteCertificateRequest

type DeleteCertificateRequest struct {
	// The ID of the certificate. It is the globally unique identifier (GUID) of the certificate in Alibaba Cloud Certificate Manager.
	//
	// example:
	//
	// 9a28de48-8d8b-484d-a766-dec4****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
}

func (DeleteCertificateRequest) GoString

func (s DeleteCertificateRequest) GoString() string

func (*DeleteCertificateRequest) SetCertificateId

func (DeleteCertificateRequest) String

func (s DeleteCertificateRequest) String() string

type DeleteCertificateResponse

type DeleteCertificateResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteCertificateResponse) GoString

func (s DeleteCertificateResponse) GoString() string

func (*DeleteCertificateResponse) SetBody

func (*DeleteCertificateResponse) SetHeaders

func (*DeleteCertificateResponse) SetStatusCode

func (DeleteCertificateResponse) String

func (s DeleteCertificateResponse) String() string

type DeleteCertificateResponseBody

type DeleteCertificateResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// d97f6c33-ca26-4de2-a580-0e2fd1c5bfb0
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteCertificateResponseBody) GoString

func (*DeleteCertificateResponseBody) SetRequestId

func (DeleteCertificateResponseBody) String

type DeleteClientKeyRequest added in v3.1.0

type DeleteClientKeyRequest struct {
	// The ID of the client key.
	//
	// example:
	//
	// KAAP.66abf237-63f6-4625-b8cf-47e1086e****
	ClientKeyId *string `json:"ClientKeyId,omitempty" xml:"ClientKeyId,omitempty"`
}

func (DeleteClientKeyRequest) GoString added in v3.1.0

func (s DeleteClientKeyRequest) GoString() string

func (*DeleteClientKeyRequest) SetClientKeyId added in v3.1.0

func (DeleteClientKeyRequest) String added in v3.1.0

func (s DeleteClientKeyRequest) String() string

type DeleteClientKeyResponse added in v3.1.0

type DeleteClientKeyResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteClientKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteClientKeyResponse) GoString added in v3.1.0

func (s DeleteClientKeyResponse) GoString() string

func (*DeleteClientKeyResponse) SetBody added in v3.1.0

func (*DeleteClientKeyResponse) SetHeaders added in v3.1.0

func (*DeleteClientKeyResponse) SetStatusCode added in v3.1.0

func (DeleteClientKeyResponse) String added in v3.1.0

func (s DeleteClientKeyResponse) String() string

type DeleteClientKeyResponseBody added in v3.1.0

type DeleteClientKeyResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 2312e45f-b2fa-4c34-ad94-3eca50932916
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteClientKeyResponseBody) GoString added in v3.1.0

func (s DeleteClientKeyResponseBody) GoString() string

func (*DeleteClientKeyResponseBody) SetRequestId added in v3.1.0

func (DeleteClientKeyResponseBody) String added in v3.1.0

type DeleteKeyMaterialRequest

type DeleteKeyMaterialRequest struct {
	// The globally unique ID of the CMK.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (DeleteKeyMaterialRequest) GoString

func (s DeleteKeyMaterialRequest) GoString() string

func (*DeleteKeyMaterialRequest) SetKeyId

func (DeleteKeyMaterialRequest) String

func (s DeleteKeyMaterialRequest) String() string

type DeleteKeyMaterialResponse

type DeleteKeyMaterialResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteKeyMaterialResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteKeyMaterialResponse) GoString

func (s DeleteKeyMaterialResponse) GoString() string

func (*DeleteKeyMaterialResponse) SetBody

func (*DeleteKeyMaterialResponse) SetHeaders

func (*DeleteKeyMaterialResponse) SetStatusCode

func (DeleteKeyMaterialResponse) String

func (s DeleteKeyMaterialResponse) String() string

type DeleteKeyMaterialResponseBody

type DeleteKeyMaterialResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// 4162a6af-bc99-40b3-a552-89dcc8aaf7c8
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteKeyMaterialResponseBody) GoString

func (*DeleteKeyMaterialResponseBody) SetRequestId

func (DeleteKeyMaterialResponseBody) String

type DeleteNetworkRuleRequest added in v3.1.0

type DeleteNetworkRuleRequest struct {
	// The name of the network access rule that you want to delete.
	//
	// example:
	//
	// networkrule_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (DeleteNetworkRuleRequest) GoString added in v3.1.0

func (s DeleteNetworkRuleRequest) GoString() string

func (*DeleteNetworkRuleRequest) SetName added in v3.1.0

func (DeleteNetworkRuleRequest) String added in v3.1.0

func (s DeleteNetworkRuleRequest) String() string

type DeleteNetworkRuleResponse added in v3.1.0

type DeleteNetworkRuleResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteNetworkRuleResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteNetworkRuleResponse) GoString added in v3.1.0

func (s DeleteNetworkRuleResponse) GoString() string

func (*DeleteNetworkRuleResponse) SetBody added in v3.1.0

func (*DeleteNetworkRuleResponse) SetHeaders added in v3.1.0

func (*DeleteNetworkRuleResponse) SetStatusCode added in v3.1.0

func (DeleteNetworkRuleResponse) String added in v3.1.0

func (s DeleteNetworkRuleResponse) String() string

type DeleteNetworkRuleResponseBody added in v3.1.0

type DeleteNetworkRuleResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3bf02f7a-015b-4f93-be0f-cc043fda2d4
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteNetworkRuleResponseBody) GoString added in v3.1.0

func (*DeleteNetworkRuleResponseBody) SetRequestId added in v3.1.0

func (DeleteNetworkRuleResponseBody) String added in v3.1.0

type DeletePolicyRequest added in v3.1.0

type DeletePolicyRequest struct {
	// The name of the permission policy that you want to delete.
	//
	// example:
	//
	// policy_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (DeletePolicyRequest) GoString added in v3.1.0

func (s DeletePolicyRequest) GoString() string

func (*DeletePolicyRequest) SetName added in v3.1.0

func (DeletePolicyRequest) String added in v3.1.0

func (s DeletePolicyRequest) String() string

type DeletePolicyResponse added in v3.1.0

type DeletePolicyResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeletePolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeletePolicyResponse) GoString added in v3.1.0

func (s DeletePolicyResponse) GoString() string

func (*DeletePolicyResponse) SetBody added in v3.1.0

func (*DeletePolicyResponse) SetHeaders added in v3.1.0

func (s *DeletePolicyResponse) SetHeaders(v map[string]*string) *DeletePolicyResponse

func (*DeletePolicyResponse) SetStatusCode added in v3.1.0

func (s *DeletePolicyResponse) SetStatusCode(v int32) *DeletePolicyResponse

func (DeletePolicyResponse) String added in v3.1.0

func (s DeletePolicyResponse) String() string

type DeletePolicyResponseBody added in v3.1.0

type DeletePolicyResponseBody struct {
	// The request ID.
	//
	// example:
	//
	// 00a26a33-d992-42f3-9012-5fd12764430f
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeletePolicyResponseBody) GoString added in v3.1.0

func (s DeletePolicyResponseBody) GoString() string

func (*DeletePolicyResponseBody) SetRequestId added in v3.1.0

func (DeletePolicyResponseBody) String added in v3.1.0

func (s DeletePolicyResponseBody) String() string

type DeleteSecretRequest

type DeleteSecretRequest struct {
	// Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered.
	//
	// Valid values:
	//
	// 	- **true**
	//
	// 	- **false*	- (default value)
	//
	// example:
	//
	// false
	ForceDeleteWithoutRecovery *string `json:"ForceDeleteWithoutRecovery,omitempty" xml:"ForceDeleteWithoutRecovery,omitempty"`
	// Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. Unit: Days.
	//
	// example:
	//
	// 10
	RecoveryWindowInDays *string `json:"RecoveryWindowInDays,omitempty" xml:"RecoveryWindowInDays,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (DeleteSecretRequest) GoString

func (s DeleteSecretRequest) GoString() string

func (*DeleteSecretRequest) SetForceDeleteWithoutRecovery

func (s *DeleteSecretRequest) SetForceDeleteWithoutRecovery(v string) *DeleteSecretRequest

func (*DeleteSecretRequest) SetRecoveryWindowInDays

func (s *DeleteSecretRequest) SetRecoveryWindowInDays(v string) *DeleteSecretRequest

func (*DeleteSecretRequest) SetSecretName

func (s *DeleteSecretRequest) SetSecretName(v string) *DeleteSecretRequest

func (DeleteSecretRequest) String

func (s DeleteSecretRequest) String() string

type DeleteSecretResponse

type DeleteSecretResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteSecretResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteSecretResponse) GoString

func (s DeleteSecretResponse) GoString() string

func (*DeleteSecretResponse) SetBody

func (*DeleteSecretResponse) SetHeaders

func (s *DeleteSecretResponse) SetHeaders(v map[string]*string) *DeleteSecretResponse

func (*DeleteSecretResponse) SetStatusCode

func (s *DeleteSecretResponse) SetStatusCode(v int32) *DeleteSecretResponse

func (DeleteSecretResponse) String

func (s DeleteSecretResponse) String() string

type DeleteSecretResponseBody

type DeleteSecretResponseBody struct {
	// The time when the secret is scheduled to be deleted.
	//
	// example:
	//
	// 2022-09-15T07:02:14Z
	PlannedDeleteTime *string `json:"PlannedDeleteTime,omitempty" xml:"PlannedDeleteTime,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 38bbed2a-15e0-45ad-98d4-816ad2ccf4ea
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (DeleteSecretResponseBody) GoString

func (s DeleteSecretResponseBody) GoString() string

func (*DeleteSecretResponseBody) SetPlannedDeleteTime

func (s *DeleteSecretResponseBody) SetPlannedDeleteTime(v string) *DeleteSecretResponseBody

func (*DeleteSecretResponseBody) SetRequestId

func (*DeleteSecretResponseBody) SetSecretName

func (DeleteSecretResponseBody) String

func (s DeleteSecretResponseBody) String() string

type DescribeAccountKmsStatusResponse

type DescribeAccountKmsStatusResponse struct {
	Headers    map[string]*string                    `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeAccountKmsStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeAccountKmsStatusResponse) GoString

func (*DescribeAccountKmsStatusResponse) SetHeaders

func (*DescribeAccountKmsStatusResponse) SetStatusCode

func (DescribeAccountKmsStatusResponse) String

type DescribeAccountKmsStatusResponseBody

type DescribeAccountKmsStatusResponseBody struct {
	// The status of KMS within your Alibaba cloud account. Valid values:
	//
	// 	- Enabled: KMS is enabled.
	//
	// 	- NotEnabled: KMS is disabled.
	//
	// 	- InDebt: Your account is overdue, and KMS stops providing services.
	//
	// > If your Alibaba Cloud account is overdue, top up your account at the earliest opportunity to avoid impacts on your services.
	//
	// 	- Suspended: KMS is suspended.
	//
	// example:
	//
	// Enabled
	AccountStatus *string `json:"AccountStatus,omitempty" xml:"AccountStatus,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3ac84333-d64d-4784-a8bc-997834a7ac6c
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeAccountKmsStatusResponseBody) GoString

func (*DescribeAccountKmsStatusResponseBody) SetAccountStatus

func (*DescribeAccountKmsStatusResponseBody) SetRequestId

func (DescribeAccountKmsStatusResponseBody) String

type DescribeApplicationAccessPointRequest added in v3.1.0

type DescribeApplicationAccessPointRequest struct {
	// The name of the AAP that you want to query.
	//
	// example:
	//
	// aap_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (DescribeApplicationAccessPointRequest) GoString added in v3.1.0

func (*DescribeApplicationAccessPointRequest) SetName added in v3.1.0

func (DescribeApplicationAccessPointRequest) String added in v3.1.0

type DescribeApplicationAccessPointResponse added in v3.1.0

type DescribeApplicationAccessPointResponse struct {
	Headers    map[string]*string                          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeApplicationAccessPointResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeApplicationAccessPointResponse) GoString added in v3.1.0

func (*DescribeApplicationAccessPointResponse) SetBody added in v3.1.0

func (*DescribeApplicationAccessPointResponse) SetHeaders added in v3.1.0

func (*DescribeApplicationAccessPointResponse) SetStatusCode added in v3.1.0

func (DescribeApplicationAccessPointResponse) String added in v3.1.0

type DescribeApplicationAccessPointResponseBody added in v3.1.0

type DescribeApplicationAccessPointResponseBody struct {
	// The ARN of the AAP.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:119285303511****:applicationaccesspoint/aap_test
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The authentication method.
	//
	// example:
	//
	// ClientKey
	AuthenticationMethod *string `json:"AuthenticationMethod,omitempty" xml:"AuthenticationMethod,omitempty"`
	// The description.
	//
	// example:
	//
	// aap description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the AAP.
	//
	// example:
	//
	// aap_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The permission policy that is bound to the AAP.
	//
	// example:
	//
	// ["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]
	Policies *string `json:"Policies,omitempty" xml:"Policies,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// bcfefe15-46f0-44a3-bd96-3d422474b71a
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeApplicationAccessPointResponseBody) GoString added in v3.1.0

func (*DescribeApplicationAccessPointResponseBody) SetArn added in v3.1.0

func (*DescribeApplicationAccessPointResponseBody) SetAuthenticationMethod added in v3.1.0

func (*DescribeApplicationAccessPointResponseBody) SetDescription added in v3.1.0

func (*DescribeApplicationAccessPointResponseBody) SetName added in v3.1.0

func (*DescribeApplicationAccessPointResponseBody) SetPolicies added in v3.1.0

func (*DescribeApplicationAccessPointResponseBody) SetRequestId added in v3.1.0

func (DescribeApplicationAccessPointResponseBody) String added in v3.1.0

type DescribeCertificateRequest

type DescribeCertificateRequest struct {
	// The ID of the certificate. The ID must be globally unique in Certificates Manager.
	//
	// example:
	//
	// 9a28de48-8d8b-484d-a766-dec4****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
}

func (DescribeCertificateRequest) GoString

func (s DescribeCertificateRequest) GoString() string

func (*DescribeCertificateRequest) SetCertificateId

func (DescribeCertificateRequest) String

type DescribeCertificateResponse

type DescribeCertificateResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeCertificateResponse) GoString

func (s DescribeCertificateResponse) GoString() string

func (*DescribeCertificateResponse) SetBody

func (*DescribeCertificateResponse) SetHeaders

func (*DescribeCertificateResponse) SetStatusCode

func (DescribeCertificateResponse) String

type DescribeCertificateResponseBody

type DescribeCertificateResponseBody struct {
	// The Alibaba Cloud Resource Name (ARN) of the certificate.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:159498693826****:certificate/9a28de48-8d8b-484d-a766-dec4****"
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The ID of the certificate. The ID must be globally unique in Certificates Manager.
	//
	// example:
	//
	// 9a28de48-8d8b-484d-a766-dec4****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The time when the certificate was created.
	//
	// example:
	//
	// 2020-10-13T03:05:03Z
	CreatedAt *string `json:"CreatedAt,omitempty" xml:"CreatedAt,omitempty"`
	// Indicates whether the private key of the certificate can be exported for use. Valid values:
	//
	// 	- true: The private key of the certificate can be exported for use. This is the default value.
	//
	// 	- false: The private key of the certificate cannot be exported for use.
	//
	// example:
	//
	// true
	ExportablePrivateKey *bool `json:"ExportablePrivateKey,omitempty" xml:"ExportablePrivateKey,omitempty"`
	// The certificate issuer in the distinguished name (DN) format.
	//
	// example:
	//
	// CN=testCA,OU=kms,O=aliyun,C=CN
	Issuer *string `json:"Issuer,omitempty" xml:"Issuer,omitempty"`
	// The type of the key.
	//
	// example:
	//
	// RSA_2048
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The end of the validity period of the certificate.
	//
	// example:
	//
	// 2022-10-13T03:09:00Z
	NotAfter *string `json:"NotAfter,omitempty" xml:"NotAfter,omitempty"`
	// The beginning of the validity period of the certificate.
	//
	// example:
	//
	// 2020-10-13T03:09:00Z
	NotBefore *string `json:"NotBefore,omitempty" xml:"NotBefore,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// edb671a3-c5a1-4ebe-a1de-d748b640bdf2
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The serial number of the certificate.
	//
	// example:
	//
	// 12345678
	Serial *string `json:"Serial,omitempty" xml:"Serial,omitempty"`
	// The signature algorithm of the certificate. Valid values:
	//
	// 	- RSA2048-SHA256
	//
	// 	- ECDSA-SHA256
	//
	// 	- SM2-SM3
	//
	// example:
	//
	// ECDSA-SHA256
	SignatureAlgorithm *string `json:"SignatureAlgorithm,omitempty" xml:"SignatureAlgorithm,omitempty"`
	// The status of the certificate. Valid values:
	//
	// 	- PENDING: The certificate is to be imported.
	//
	// 	- ACTIVE: The certificate is enabled.
	//
	// 	- INACTIVE: The certificate is disabled.
	//
	// 	- REVOKED: The certificate is revoked.
	//
	// example:
	//
	// ACTIVE
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The subject of the certificate, which is in the DN format.
	//
	// example:
	//
	// CN=userName,OU=aliyun,O=aliyun,C=CN
	Subject *string `json:"Subject,omitempty" xml:"Subject,omitempty"`
	// The alias of the certificate subject.
	//
	// A domain name list is supported. A maximum of 10 domain names are supported.
	SubjectAlternativeNames []*string `json:"SubjectAlternativeNames,omitempty" xml:"SubjectAlternativeNames,omitempty" type:"Repeated"`
	// The public key identifier of the certificate subject.
	//
	// example:
	//
	// 79 36 26 DE 9F F5 15 E3 56 DC ****
	SubjectKeyIdentifier *string `json:"SubjectKeyIdentifier,omitempty" xml:"SubjectKeyIdentifier,omitempty"`
	// The public key of the certificate.
	//
	// example:
	//
	// -----BEGIN PUBLIC KEY----- MIIBIjA -----END PUBLIC KEY-----
	SubjectPublicKey *string `json:"SubjectPublicKey,omitempty" xml:"SubjectPublicKey,omitempty"`
	// The tag of the certificate.
	//
	// example:
	//
	// [{\"TagKey\":\"S1key1\",\"TagValue\":\"S1val1\"},{\"TagKey\":\"S1key2\",\"TagValue\":\"S2val2\"}]
	Tags map[string]interface{} `json:"Tags,omitempty" xml:"Tags,omitempty"`
	// The time when the certificate was updated.
	//
	// example:
	//
	// 2020-12-23T06:10:13Z
	UpdatedAt *string `json:"UpdatedAt,omitempty" xml:"UpdatedAt,omitempty"`
}

func (DescribeCertificateResponseBody) GoString

func (*DescribeCertificateResponseBody) SetArn

func (*DescribeCertificateResponseBody) SetCertificateId

func (*DescribeCertificateResponseBody) SetCreatedAt

func (*DescribeCertificateResponseBody) SetExportablePrivateKey

func (*DescribeCertificateResponseBody) SetIssuer

func (*DescribeCertificateResponseBody) SetKeySpec

func (*DescribeCertificateResponseBody) SetNotAfter

func (*DescribeCertificateResponseBody) SetNotBefore

func (*DescribeCertificateResponseBody) SetRequestId

func (*DescribeCertificateResponseBody) SetSerial

func (*DescribeCertificateResponseBody) SetSignatureAlgorithm

func (*DescribeCertificateResponseBody) SetStatus

func (*DescribeCertificateResponseBody) SetSubject

func (*DescribeCertificateResponseBody) SetSubjectAlternativeNames

func (s *DescribeCertificateResponseBody) SetSubjectAlternativeNames(v []*string) *DescribeCertificateResponseBody

func (*DescribeCertificateResponseBody) SetSubjectKeyIdentifier

func (*DescribeCertificateResponseBody) SetSubjectPublicKey

func (*DescribeCertificateResponseBody) SetTags

func (*DescribeCertificateResponseBody) SetUpdatedAt

func (DescribeCertificateResponseBody) String

type DescribeKeyRequest

type DescribeKeyRequest struct {
	// The ID of the CMK. The ID must be globally unique.
	//
	// You can also set this parameter to an alias that is bound to the CMK. For more information, see [Overview of aliases](~~68522~~).
	//
	// example:
	//
	// 05754286-3ba2-4fa6-8d41-4323aca6****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (DescribeKeyRequest) GoString

func (s DescribeKeyRequest) GoString() string

func (*DescribeKeyRequest) SetKeyId

func (DescribeKeyRequest) String

func (s DescribeKeyRequest) String() string

type DescribeKeyResponse

type DescribeKeyResponse struct {
	Headers    map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeKeyResponse) GoString

func (s DescribeKeyResponse) GoString() string

func (*DescribeKeyResponse) SetBody

func (*DescribeKeyResponse) SetHeaders

func (s *DescribeKeyResponse) SetHeaders(v map[string]*string) *DescribeKeyResponse

func (*DescribeKeyResponse) SetStatusCode

func (s *DescribeKeyResponse) SetStatusCode(v int32) *DescribeKeyResponse

func (DescribeKeyResponse) String

func (s DescribeKeyResponse) String() string

type DescribeKeyResponseBody

type DescribeKeyResponseBody struct {
	// The metadata of the CMK.
	KeyMetadata *DescribeKeyResponseBodyKeyMetadata `json:"KeyMetadata,omitempty" xml:"KeyMetadata,omitempty" type:"Struct"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// f1fdfa9d-bd49-418b-942f-8f3e3ec00a4f
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeKeyResponseBody) GoString

func (s DescribeKeyResponseBody) GoString() string

func (*DescribeKeyResponseBody) SetKeyMetadata

func (*DescribeKeyResponseBody) SetRequestId

func (DescribeKeyResponseBody) String

func (s DescribeKeyResponseBody) String() string

type DescribeKeyResponseBodyKeyMetadata

type DescribeKeyResponseBodyKeyMetadata struct {
	// The Alibaba Cloud Resource Name (ARN) of the CMK.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:154035569884****:key/05754286-3ba2-4fa6-8d41-4323aca6****
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// Indicates whether automatic key rotation is enabled. Valid values:
	//
	// 	- Enabled
	//
	// 	- Disabled
	//
	// 	- Suspended
	//
	// For more information, see [Automatic key rotation](~~134270~~).
	//
	// >  Only symmetric CMKs support automatic key rotation.
	//
	// example:
	//
	// Disabled
	AutomaticRotation *string `json:"AutomaticRotation,omitempty" xml:"AutomaticRotation,omitempty"`
	// The time when the CMK was created. The time is displayed in UTC.
	//
	// example:
	//
	// 2021-05-20T06:34:21Z
	CreationDate *string `json:"CreationDate,omitempty" xml:"CreationDate,omitempty"`
	// The Alibaba Cloud account that is used to create the CMK.
	//
	// example:
	//
	// 154035569884****
	Creator *string `json:"Creator,omitempty" xml:"Creator,omitempty"`
	// The ID of the dedicated KMS instance.
	//
	// example:
	//
	// kst-bjj62d8f5e0sgtx8h****
	DKMSInstanceId *string `json:"DKMSInstanceId,omitempty" xml:"DKMSInstanceId,omitempty"`
	// The time at which the CMK is scheduled for deletion. The time is displayed in UTC.
	//
	// For more information, see [ScheduleKeyDeletion](~~44196~~).
	//
	// >  This parameter is returned only when the value of the KeyState parameter is PendingDeletion.
	//
	// example:
	//
	// 2021-05-26T18:22:03Z
	DeleteDate *string `json:"DeleteDate,omitempty" xml:"DeleteDate,omitempty"`
	// Indicates whether deletion protection is enabled. Valid values:
	//
	// 	- Enabled
	//
	// 	- Disabled
	//
	// example:
	//
	// Enabled
	DeletionProtection *string `json:"DeletionProtection,omitempty" xml:"DeletionProtection,omitempty"`
	// The description of deletion protection.
	//
	// example:
	//
	// The CMK is being used by XXX. Deletion protection is set.
	DeletionProtectionDescription *string `json:"DeletionProtectionDescription,omitempty" xml:"DeletionProtectionDescription,omitempty"`
	// The description of the CMK.
	//
	// example:
	//
	// key description example
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 05754286-3ba2-4fa6-8d41-4323aca6****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The type of the CMK.
	//
	// example:
	//
	// Aliyun_AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The status of the CMK.
	//
	// For more information, see [Impact of CMK status on API operations](~~44211~~).
	//
	// example:
	//
	// Enabled
	KeyState *string `json:"KeyState,omitempty" xml:"KeyState,omitempty"`
	// The usage of the CMK.
	//
	// example:
	//
	// ENCRYPT/DECRYPT
	KeyUsage *string `json:"KeyUsage,omitempty" xml:"KeyUsage,omitempty"`
	// The time when the last rotation was performed. The time is displayed in UTC. For a new CMK, the value of this parameter is the time when the initial version of the CMK was generated.
	//
	// example:
	//
	// 2021-05-20T06:34:21Z
	LastRotationDate *string `json:"LastRotationDate,omitempty" xml:"LastRotationDate,omitempty"`
	// The time when the key material expires. The time is displayed in UTC. If this parameter value is empty, the key material does not expire.
	//
	// example:
	//
	// 2021-07-06T18:22:03Z
	MaterialExpireTime *string `json:"MaterialExpireTime,omitempty" xml:"MaterialExpireTime,omitempty"`
	// The time when the next rotation will be performed.
	//
	// >  This parameter is returned only when the value of the AutomaticRotation parameter is Enabled or Suspended.
	//
	// example:
	//
	// 2021-07-06T18:22:03Z
	NextRotationDate *string `json:"NextRotationDate,omitempty" xml:"NextRotationDate,omitempty"`
	// The source of the key material for the CMK.
	//
	// example:
	//
	// Aliyun_KMS
	Origin *string `json:"Origin,omitempty" xml:"Origin,omitempty"`
	// The ID of the current primary key version for the symmetric CMK.
	//
	// example:
	//
	// 515e0b0a-624f-45ab-92b5-54f9b551****
	PrimaryKeyVersion *string `json:"PrimaryKeyVersion,omitempty" xml:"PrimaryKeyVersion,omitempty"`
	// The protection level of the CMK.
	//
	// example:
	//
	// HSM
	ProtectionLevel *string `json:"ProtectionLevel,omitempty" xml:"ProtectionLevel,omitempty"`
	// The interval for automatic key rotation.
	//
	// Unit: seconds.
	//
	// For example, if the value is 604800s, automatic key rotation is performed at a 7-day interval.
	//
	// >  This parameter is returned only when the value of the AutomaticRotation parameter is Enabled or Suspended.
	//
	// example:
	//
	// 31536000s
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
}

func (DescribeKeyResponseBodyKeyMetadata) GoString

func (*DescribeKeyResponseBodyKeyMetadata) SetArn

func (*DescribeKeyResponseBodyKeyMetadata) SetAutomaticRotation

func (*DescribeKeyResponseBodyKeyMetadata) SetCreationDate

func (*DescribeKeyResponseBodyKeyMetadata) SetCreator

func (*DescribeKeyResponseBodyKeyMetadata) SetDKMSInstanceId

func (*DescribeKeyResponseBodyKeyMetadata) SetDeleteDate

func (*DescribeKeyResponseBodyKeyMetadata) SetDeletionProtection

func (*DescribeKeyResponseBodyKeyMetadata) SetDeletionProtectionDescription

func (s *DescribeKeyResponseBodyKeyMetadata) SetDeletionProtectionDescription(v string) *DescribeKeyResponseBodyKeyMetadata

func (*DescribeKeyResponseBodyKeyMetadata) SetDescription

func (*DescribeKeyResponseBodyKeyMetadata) SetKeyId

func (*DescribeKeyResponseBodyKeyMetadata) SetKeySpec

func (*DescribeKeyResponseBodyKeyMetadata) SetKeyState

func (*DescribeKeyResponseBodyKeyMetadata) SetKeyUsage

func (*DescribeKeyResponseBodyKeyMetadata) SetLastRotationDate

func (*DescribeKeyResponseBodyKeyMetadata) SetMaterialExpireTime

func (*DescribeKeyResponseBodyKeyMetadata) SetNextRotationDate

func (*DescribeKeyResponseBodyKeyMetadata) SetOrigin

func (*DescribeKeyResponseBodyKeyMetadata) SetPrimaryKeyVersion

func (*DescribeKeyResponseBodyKeyMetadata) SetProtectionLevel

func (*DescribeKeyResponseBodyKeyMetadata) SetRotationInterval

func (DescribeKeyResponseBodyKeyMetadata) String

type DescribeKeyVersionRequest

type DescribeKeyVersionRequest struct {
	// The globally unique ID of the CMK.
	//
	// You can also set this parameter to an alias that is bound to the CMK. For more information, see [Alias overview](~~68522~~).
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The globally unique ID of the CMK version.
	//
	// You can call the [ListKeyVersions](~~133966~~) operation to query the versions of the CMK.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
}

func (DescribeKeyVersionRequest) GoString

func (s DescribeKeyVersionRequest) GoString() string

func (*DescribeKeyVersionRequest) SetKeyId

func (*DescribeKeyVersionRequest) SetKeyVersionId

func (DescribeKeyVersionRequest) String

func (s DescribeKeyVersionRequest) String() string

type DescribeKeyVersionResponse

type DescribeKeyVersionResponse struct {
	Headers    map[string]*string              `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                          `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeKeyVersionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeKeyVersionResponse) GoString

func (s DescribeKeyVersionResponse) GoString() string

func (*DescribeKeyVersionResponse) SetBody

func (*DescribeKeyVersionResponse) SetHeaders

func (*DescribeKeyVersionResponse) SetStatusCode

func (DescribeKeyVersionResponse) String

type DescribeKeyVersionResponseBody

type DescribeKeyVersionResponseBody struct {
	// The metadata of the CMK version.
	KeyVersion *DescribeKeyVersionResponseBodyKeyVersion `json:"KeyVersion,omitempty" xml:"KeyVersion,omitempty" type:"Struct"`
	// The ID of the request.
	//
	// example:
	//
	// 7021b6ec-4be7-4d3c-8a68-1e85d4d515a0
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeKeyVersionResponseBody) GoString

func (*DescribeKeyVersionResponseBody) SetRequestId

func (DescribeKeyVersionResponseBody) String

type DescribeKeyVersionResponseBodyKeyVersion

type DescribeKeyVersionResponseBodyKeyVersion struct {
	// The date and time when the CMK version was created. The time is displayed in UTC.
	//
	// example:
	//
	// 2016-03-25T10:42:40Z
	CreationDate *string `json:"CreationDate,omitempty" xml:"CreationDate,omitempty"`
	// The globally unique ID of the CMK.
	//
	// >  If you set the KeyId parameter in the request to an alias of the CMK, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The globally unique ID of the CMK version.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
}

func (DescribeKeyVersionResponseBodyKeyVersion) GoString

func (*DescribeKeyVersionResponseBodyKeyVersion) SetCreationDate

func (*DescribeKeyVersionResponseBodyKeyVersion) SetKeyId

func (*DescribeKeyVersionResponseBodyKeyVersion) SetKeyVersionId

func (DescribeKeyVersionResponseBodyKeyVersion) String

type DescribeNetworkRuleRequest added in v3.1.0

type DescribeNetworkRuleRequest struct {
	// The name of the access control rule that you want to query.
	//
	// example:
	//
	// networkrule_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (DescribeNetworkRuleRequest) GoString added in v3.1.0

func (s DescribeNetworkRuleRequest) GoString() string

func (*DescribeNetworkRuleRequest) SetName added in v3.1.0

func (DescribeNetworkRuleRequest) String added in v3.1.0

type DescribeNetworkRuleResponse added in v3.1.0

type DescribeNetworkRuleResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeNetworkRuleResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeNetworkRuleResponse) GoString added in v3.1.0

func (s DescribeNetworkRuleResponse) GoString() string

func (*DescribeNetworkRuleResponse) SetBody added in v3.1.0

func (*DescribeNetworkRuleResponse) SetHeaders added in v3.1.0

func (*DescribeNetworkRuleResponse) SetStatusCode added in v3.1.0

func (DescribeNetworkRuleResponse) String added in v3.1.0

type DescribeNetworkRuleResponseBody added in v3.1.0

type DescribeNetworkRuleResponseBody struct {
	// The ARN of the access control rule.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:119285303511****:network/networkrule_test
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The description.
	//
	// example:
	//
	// Creat by kst-hzz62ee817bvyyr5****
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3bf02f7a-015b-4f93-be0f-cc043fda2d33
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The private IP address or private CIDR block.
	//
	// example:
	//
	// ["192.10.XX.XX","192.168.XX.XX/24"]
	SourcePrivateIp *string `json:"SourcePrivateIp,omitempty" xml:"SourcePrivateIp,omitempty"`
	// The network type. Only private IP addresses are supported. The value is fixed as Private.
	//
	// example:
	//
	// Private
	Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
}

func (DescribeNetworkRuleResponseBody) GoString added in v3.1.0

func (*DescribeNetworkRuleResponseBody) SetArn added in v3.1.0

func (*DescribeNetworkRuleResponseBody) SetDescription added in v3.1.0

func (*DescribeNetworkRuleResponseBody) SetRequestId added in v3.1.0

func (*DescribeNetworkRuleResponseBody) SetSourcePrivateIp added in v3.1.0

func (*DescribeNetworkRuleResponseBody) SetType added in v3.1.0

func (DescribeNetworkRuleResponseBody) String added in v3.1.0

type DescribePolicyRequest added in v3.1.0

type DescribePolicyRequest struct {
	// The name of the permission policy that you want to query.
	//
	// example:
	//
	// policy_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (DescribePolicyRequest) GoString added in v3.1.0

func (s DescribePolicyRequest) GoString() string

func (*DescribePolicyRequest) SetName added in v3.1.0

func (DescribePolicyRequest) String added in v3.1.0

func (s DescribePolicyRequest) String() string

type DescribePolicyResponse added in v3.1.0

type DescribePolicyResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribePolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribePolicyResponse) GoString added in v3.1.0

func (s DescribePolicyResponse) GoString() string

func (*DescribePolicyResponse) SetBody added in v3.1.0

func (*DescribePolicyResponse) SetHeaders added in v3.1.0

func (*DescribePolicyResponse) SetStatusCode added in v3.1.0

func (DescribePolicyResponse) String added in v3.1.0

func (s DescribePolicyResponse) String() string

type DescribePolicyResponseBody added in v3.1.0

type DescribePolicyResponseBody struct {
	// The network access rule that is associated with the permission policy.
	//
	// example:
	//
	// {"NetworkRules":["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]}
	AccessControlRules *string `json:"AccessControlRules,omitempty" xml:"AccessControlRules,omitempty"`
	// The Alibaba Cloud Resource Name (ARN) of the permission policy.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:119285303511****:policy/policy_test
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The description.
	//
	// example:
	//
	// policy  description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The scope of the permission policy.
	//
	// example:
	//
	// kst-hzz634e67d126u9p9****
	KmsInstance *string `json:"KmsInstance,omitempty" xml:"KmsInstance,omitempty"`
	// The name of the permission policy.
	//
	// example:
	//
	// policy_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// A list of operations that can be performed.
	//
	// example:
	//
	// ["RbacPermission/Template/CryptoServiceKeyUser", "RbacPermission/Template/CryptoServiceSecretUser"]
	Permissions []*string `json:"Permissions,omitempty" xml:"Permissions,omitempty" type:"Repeated"`
	// The request ID.
	//
	// example:
	//
	// f455324b-e229-4066-9f58-9c1cf3fe83a9
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// A list of keys and secrets that are allowed to access.
	//
	// example:
	//
	// ["secret/acs/ram/user/ram-secret", "secret/acs/ram/user/acr-master", "key/key-hzz63d9c8d3dfv8cv****"]
	Resources []*string `json:"Resources,omitempty" xml:"Resources,omitempty" type:"Repeated"`
}

func (DescribePolicyResponseBody) GoString added in v3.1.0

func (s DescribePolicyResponseBody) GoString() string

func (*DescribePolicyResponseBody) SetAccessControlRules added in v3.1.0

func (s *DescribePolicyResponseBody) SetAccessControlRules(v string) *DescribePolicyResponseBody

func (*DescribePolicyResponseBody) SetArn added in v3.1.0

func (*DescribePolicyResponseBody) SetDescription added in v3.1.0

func (*DescribePolicyResponseBody) SetKmsInstance added in v3.1.0

func (*DescribePolicyResponseBody) SetName added in v3.1.0

func (*DescribePolicyResponseBody) SetPermissions added in v3.1.0

func (*DescribePolicyResponseBody) SetRequestId added in v3.1.0

func (*DescribePolicyResponseBody) SetResources added in v3.1.0

func (DescribePolicyResponseBody) String added in v3.1.0

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeRegionsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeRegionsResponse) GoString

func (s DescribeRegionsResponse) GoString() string

func (*DescribeRegionsResponse) SetBody

func (*DescribeRegionsResponse) SetHeaders

func (*DescribeRegionsResponse) SetStatusCode

func (DescribeRegionsResponse) String

func (s DescribeRegionsResponse) String() string

type DescribeRegionsResponseBody

type DescribeRegionsResponseBody struct {
	// The region.
	Regions *DescribeRegionsResponseBodyRegions `json:"Regions,omitempty" xml:"Regions,omitempty" type:"Struct"`
	// The ID of the request.
	//
	// example:
	//
	// 815240e2-aa37-4c26-9cca-05d4df3e8fe6
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DescribeRegionsResponseBody) GoString

func (s DescribeRegionsResponseBody) GoString() string

func (*DescribeRegionsResponseBody) SetRegions

func (*DescribeRegionsResponseBody) SetRequestId

func (DescribeRegionsResponseBody) String

type DescribeRegionsResponseBodyRegions

type DescribeRegionsResponseBodyRegions struct {
	Region []*DescribeRegionsResponseBodyRegionsRegion `json:"Region,omitempty" xml:"Region,omitempty" type:"Repeated"`
}

func (DescribeRegionsResponseBodyRegions) GoString

func (DescribeRegionsResponseBodyRegions) String

type DescribeRegionsResponseBodyRegionsRegion

type DescribeRegionsResponseBodyRegionsRegion struct {
	// The region ID.
	//
	// example:
	//
	// cn-hangzhou
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
}

func (DescribeRegionsResponseBodyRegionsRegion) GoString

func (*DescribeRegionsResponseBodyRegionsRegion) SetRegionId

func (DescribeRegionsResponseBodyRegionsRegion) String

type DescribeSecretRequest

type DescribeSecretRequest struct {
	// Specifies whether to return the resource tags of the secret. Valid values:
	//
	// 	- true: The resource tags are returned.
	//
	// 	- false: The resource tags are not returned. This is the default value.
	//
	// example:
	//
	// true
	FetchTags *string `json:"FetchTags,omitempty" xml:"FetchTags,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (DescribeSecretRequest) GoString

func (s DescribeSecretRequest) GoString() string

func (*DescribeSecretRequest) SetFetchTags

func (*DescribeSecretRequest) SetSecretName

func (s *DescribeSecretRequest) SetSecretName(v string) *DescribeSecretRequest

func (DescribeSecretRequest) String

func (s DescribeSecretRequest) String() string

type DescribeSecretResponse

type DescribeSecretResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeSecretResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeSecretResponse) GoString

func (s DescribeSecretResponse) GoString() string

func (*DescribeSecretResponse) SetBody

func (*DescribeSecretResponse) SetHeaders

func (*DescribeSecretResponse) SetStatusCode

func (DescribeSecretResponse) String

func (s DescribeSecretResponse) String() string

type DescribeSecretResponseBody

type DescribeSecretResponseBody struct {
	// The Alibaba Cloud Resource Name (ARN) of the secret.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:154035569884****:secret/secret001
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// Indicates whether automatic rotation is enabled. Valid values:
	//
	// 	- Enabled: indicates that automatic rotation is enabled.
	//
	// 	- Disabled: indicates that automatic rotation is disabled.
	//
	// 	- Invalid: indicates that the status of automatic rotation is abnormal. In this case, Secrets Manager cannot automatically rotate the secret.
	//
	// >  This parameter is returned only for a managed ApsaraDB RDS secret, a managed RAM secret, or a managed ECS secret.
	//
	// example:
	//
	// Enabled
	AutomaticRotation *string `json:"AutomaticRotation,omitempty" xml:"AutomaticRotation,omitempty"`
	// The time when the secret was created.
	//
	// example:
	//
	// 2022-02-21T15:39:26Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The ID of the dedicated KMS instance.
	//
	// example:
	//
	// kst-bjj62d8f5e0sgtx8h****
	DKMSInstanceId *string `json:"DKMSInstanceId,omitempty" xml:"DKMSInstanceId,omitempty"`
	// The description of the secret.
	//
	// example:
	//
	// userinfo
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The ID of the customer master key (CMK) that is used to encrypt the secret value.
	//
	// example:
	//
	// 00aa68af-2c02-4f68-95fe-3435d330****
	EncryptionKeyId *string `json:"EncryptionKeyId,omitempty" xml:"EncryptionKeyId,omitempty"`
	// The extended configuration of the secret.
	//
	// >  This parameter is returned only for a managed ApsaraDB RDS secret, a managed Resource Access Management (RAM) secret, or a managed Elastic Compute Service (ECS) secret.
	//
	// example:
	//
	// {\"SecretSubType\":\"SingleUser\", \"DBInstanceId\":\"rm-uf667446pc955****\",  \"CustomData\":{} }
	ExtendedConfig *string `json:"ExtendedConfig,omitempty" xml:"ExtendedConfig,omitempty"`
	// The time when the last rotation was performed.
	//
	// >  This parameter is returned if the secret was rotated.
	//
	// example:
	//
	// 2022-07-05T08:22:03Z
	LastRotationDate *string `json:"LastRotationDate,omitempty" xml:"LastRotationDate,omitempty"`
	// The time when the next rotation will be performed.
	//
	// >  This parameter is returned when automatic rotation is enabled.
	//
	// example:
	//
	// 2022-07-06T18:22:03Z
	NextRotationDate *string `json:"NextRotationDate,omitempty" xml:"NextRotationDate,omitempty"`
	// The time when the secret is scheduled to be deleted.
	//
	// example:
	//
	// 2022-03-21T15:45:12Z
	PlannedDeleteTime *string `json:"PlannedDeleteTime,omitempty" xml:"PlannedDeleteTime,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 93348dfb-3627-4417-8d90-487a76a909c9
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The interval for automatic rotation.
	//
	// The value is in the `integer[unit]` format. `integer` indicates the length of time. `unit`: indicates the time unit. The value of `unit` is fixed as s. For example, if the value is 604800s, automatic rotation is performed at a 7-day interval.
	//
	// >  This parameter is returned when automatic rotation is enabled.
	//
	// example:
	//
	// 3153600s
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The type of the secret. Valid values:
	//
	// 	- Generic: indicates a generic secret.
	//
	// 	- Rds: indicates a managed ApsaraDB RDS secret.
	//
	// 	- RAMCredentials: indicates a managed RAM secret.
	//
	// 	- ECS: indicates a managed ECS secret.
	//
	// example:
	//
	// Rds
	SecretType *string `json:"SecretType,omitempty" xml:"SecretType,omitempty"`
	// The resource tags of the secret.
	//
	// This parameter is not returned if you set the FetchTags parameter to false or you do not specify the FetchTags parameter.
	Tags *DescribeSecretResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"`
	// The time when the secret was updated.
	//
	// example:
	//
	// 2022-02-21T15:39:26Z
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (DescribeSecretResponseBody) GoString

func (s DescribeSecretResponseBody) GoString() string

func (*DescribeSecretResponseBody) SetArn

func (*DescribeSecretResponseBody) SetAutomaticRotation

func (s *DescribeSecretResponseBody) SetAutomaticRotation(v string) *DescribeSecretResponseBody

func (*DescribeSecretResponseBody) SetCreateTime

func (*DescribeSecretResponseBody) SetDKMSInstanceId

func (*DescribeSecretResponseBody) SetDescription

func (*DescribeSecretResponseBody) SetEncryptionKeyId

func (*DescribeSecretResponseBody) SetExtendedConfig

func (*DescribeSecretResponseBody) SetLastRotationDate

func (*DescribeSecretResponseBody) SetNextRotationDate

func (*DescribeSecretResponseBody) SetPlannedDeleteTime

func (s *DescribeSecretResponseBody) SetPlannedDeleteTime(v string) *DescribeSecretResponseBody

func (*DescribeSecretResponseBody) SetRequestId

func (*DescribeSecretResponseBody) SetRotationInterval

func (*DescribeSecretResponseBody) SetSecretName

func (*DescribeSecretResponseBody) SetSecretType

func (*DescribeSecretResponseBody) SetTags

func (*DescribeSecretResponseBody) SetUpdateTime

func (DescribeSecretResponseBody) String

type DescribeSecretResponseBodyTags

type DescribeSecretResponseBodyTags struct {
	Tag []*DescribeSecretResponseBodyTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
}

func (DescribeSecretResponseBodyTags) GoString

func (*DescribeSecretResponseBodyTags) SetTag

func (DescribeSecretResponseBodyTags) String

type DescribeSecretResponseBodyTagsTag

type DescribeSecretResponseBodyTagsTag struct {
	// The tag key.
	//
	// example:
	//
	// key1
	TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"`
	// The tag value.
	//
	// example:
	//
	// val1
	TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"`
}

func (DescribeSecretResponseBodyTagsTag) GoString

func (*DescribeSecretResponseBodyTagsTag) SetTagKey

func (*DescribeSecretResponseBodyTagsTag) SetTagValue

func (DescribeSecretResponseBodyTagsTag) String

type DisableKeyRequest

type DisableKeyRequest struct {
	// The ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (DisableKeyRequest) GoString

func (s DisableKeyRequest) GoString() string

func (*DisableKeyRequest) SetKeyId

func (s *DisableKeyRequest) SetKeyId(v string) *DisableKeyRequest

func (DisableKeyRequest) String

func (s DisableKeyRequest) String() string

type DisableKeyResponse

type DisableKeyResponse struct {
	Headers    map[string]*string      `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                  `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DisableKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DisableKeyResponse) GoString

func (s DisableKeyResponse) GoString() string

func (*DisableKeyResponse) SetBody

func (*DisableKeyResponse) SetHeaders

func (s *DisableKeyResponse) SetHeaders(v map[string]*string) *DisableKeyResponse

func (*DisableKeyResponse) SetStatusCode

func (s *DisableKeyResponse) SetStatusCode(v int32) *DisableKeyResponse

func (DisableKeyResponse) String

func (s DisableKeyResponse) String() string

type DisableKeyResponseBody

type DisableKeyResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// 2fe70ce2-3303-4fd6-b3ac-472fb2705c62
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DisableKeyResponseBody) GoString

func (s DisableKeyResponseBody) GoString() string

func (*DisableKeyResponseBody) SetRequestId

func (DisableKeyResponseBody) String

func (s DisableKeyResponseBody) String() string

type EnableKeyRequest

type EnableKeyRequest struct {
	// The globally unique ID of the CMK.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (EnableKeyRequest) GoString

func (s EnableKeyRequest) GoString() string

func (*EnableKeyRequest) SetKeyId

func (s *EnableKeyRequest) SetKeyId(v string) *EnableKeyRequest

func (EnableKeyRequest) String

func (s EnableKeyRequest) String() string

type EnableKeyResponse

type EnableKeyResponse struct {
	Headers    map[string]*string     `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *EnableKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (EnableKeyResponse) GoString

func (s EnableKeyResponse) GoString() string

func (*EnableKeyResponse) SetBody

func (*EnableKeyResponse) SetHeaders

func (s *EnableKeyResponse) SetHeaders(v map[string]*string) *EnableKeyResponse

func (*EnableKeyResponse) SetStatusCode

func (s *EnableKeyResponse) SetStatusCode(v int32) *EnableKeyResponse

func (EnableKeyResponse) String

func (s EnableKeyResponse) String() string

type EnableKeyResponseBody

type EnableKeyResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// efb1cbbd-a093-4278-bc03-639dd4fcc207
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (EnableKeyResponseBody) GoString

func (s EnableKeyResponseBody) GoString() string

func (*EnableKeyResponseBody) SetRequestId

func (EnableKeyResponseBody) String

func (s EnableKeyResponseBody) String() string

type EncryptRequest

type EncryptRequest struct {
	// A JSON string that consists of key-value pairs. If you specify this parameter, an equivalent value is required when you call the Decrypt operation. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContext map[string]interface{} `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see [Use aliases](~~68522~~).
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The plaintext to be encrypted. The plaintext must be Base64 encoded.
	//
	// example:
	//
	// SGVsbG8gd29y****
	Plaintext *string `json:"Plaintext,omitempty" xml:"Plaintext,omitempty"`
}

func (EncryptRequest) GoString

func (s EncryptRequest) GoString() string

func (*EncryptRequest) SetEncryptionContext

func (s *EncryptRequest) SetEncryptionContext(v map[string]interface{}) *EncryptRequest

func (*EncryptRequest) SetKeyId

func (s *EncryptRequest) SetKeyId(v string) *EncryptRequest

func (*EncryptRequest) SetPlaintext

func (s *EncryptRequest) SetPlaintext(v string) *EncryptRequest

func (EncryptRequest) String

func (s EncryptRequest) String() string

type EncryptResponse

type EncryptResponse struct {
	Headers    map[string]*string   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *EncryptResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (EncryptResponse) GoString

func (s EncryptResponse) GoString() string

func (*EncryptResponse) SetBody

func (*EncryptResponse) SetHeaders

func (s *EncryptResponse) SetHeaders(v map[string]*string) *EncryptResponse

func (*EncryptResponse) SetStatusCode

func (s *EncryptResponse) SetStatusCode(v int32) *EncryptResponse

func (EncryptResponse) String

func (s EncryptResponse) String() string

type EncryptResponseBody

type EncryptResponseBody struct {
	// The ciphertext of the data that is encrypted by using the primary CMK version.
	//
	// example:
	//
	// DZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmaaSl+TztSIMe43nbTH/Z1Wr4XfLftKhAciUmDQXuMRl4WTvKhxjMThjK****
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The globally unique ID of the CMK. If you set the KeyId parameter to an alias, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the key version that is used to encrypt the plaintext. It is the primary version of the CMK.
	//
	// example:
	//
	// 86a9efd9-3d16-4894-bd4f-1fc43f3f****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 475f1620-b9d3-4d35-b5c6-3fbdd941423d
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (EncryptResponseBody) GoString

func (s EncryptResponseBody) GoString() string

func (*EncryptResponseBody) SetCiphertextBlob

func (s *EncryptResponseBody) SetCiphertextBlob(v string) *EncryptResponseBody

func (*EncryptResponseBody) SetKeyId

func (*EncryptResponseBody) SetKeyVersionId

func (s *EncryptResponseBody) SetKeyVersionId(v string) *EncryptResponseBody

func (*EncryptResponseBody) SetRequestId

func (s *EncryptResponseBody) SetRequestId(v string) *EncryptResponseBody

func (EncryptResponseBody) String

func (s EncryptResponseBody) String() string

type EncryptShrinkRequest

type EncryptShrinkRequest struct {
	// A JSON string that consists of key-value pairs. If you specify this parameter, an equivalent value is required when you call the Decrypt operation. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContextShrink *string `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see [Use aliases](~~68522~~).
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The plaintext to be encrypted. The plaintext must be Base64 encoded.
	//
	// example:
	//
	// SGVsbG8gd29y****
	Plaintext *string `json:"Plaintext,omitempty" xml:"Plaintext,omitempty"`
}

func (EncryptShrinkRequest) GoString

func (s EncryptShrinkRequest) GoString() string

func (*EncryptShrinkRequest) SetEncryptionContextShrink

func (s *EncryptShrinkRequest) SetEncryptionContextShrink(v string) *EncryptShrinkRequest

func (*EncryptShrinkRequest) SetKeyId

func (*EncryptShrinkRequest) SetPlaintext

func (s *EncryptShrinkRequest) SetPlaintext(v string) *EncryptShrinkRequest

func (EncryptShrinkRequest) String

func (s EncryptShrinkRequest) String() string

type ExportDataKeyRequest

type ExportDataKeyRequest struct {
	// The ciphertext of the data key encrypted by using a CMK.
	//
	// example:
	//
	// ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901q********
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// A JSON string that consists of key-value pairs. If you specify this parameter when you use a CMK to encrypt the data key, an equivalent value is required here. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContext map[string]interface{} `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// A Base64-encoded public key.
	//
	// example:
	//
	// MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAndKfC2ReLL2+y8a0+ZBBeAft/uBYo86GZiYJuflqgUzKxpyuvlo3uQkBv6b+nx+0tz8g8v7GhpPWMSW5L9mNHYsvYFsa7jTxsYdt17yj6GlUHPuMIs8hr5qbwl38IHU1iIa7nYWwE2fb3ePOvLDACRJVgGpU0yxioW80d2QD+9aU4jF5dlAahcfgsNzo2CXzCUc1+xbmNuq7Rp+H9VJB9dyYOwqnW3RhOLBo21FzpORapf0UiRlrHRpk1V6ez+aE1dofaYh/9bh0m6ioxj7j5hpZbWccuEZTMBKd+cbuBkRhJzc6Tti6qwZbDiu4fUwbZS0Tqpuo1UadiyxMW********
	PublicKeyBlob *string `json:"PublicKeyBlob,omitempty" xml:"PublicKeyBlob,omitempty"`
	// The encryption algorithm based on which you want to use the public key specified by PublicKeyBlob to encrypt the data key. For more information about encryption algorithms, see [AsymmetricDecrypt](~~148130~~).
	//
	// Valid values:
	//
	// 	- RSAES_OAEP_SHA\_256
	//
	// 	- RSAES_OAEP_SHA\_1
	//
	// 	- SM2PKE
	//
	// example:
	//
	// RSAES_OAEP_SHA_256
	WrappingAlgorithm *string `json:"WrappingAlgorithm,omitempty" xml:"WrappingAlgorithm,omitempty"`
	// The key type of the public key specified by PublicKeyBlob. For more information about key types, see [Introduction to asymmetric keys](~~148147~~).
	//
	// Valid values:
	//
	// 	- RSA\_2048
	//
	// 	- EC_SM2
	//
	// example:
	//
	// RSA_2048
	WrappingKeySpec *string `json:"WrappingKeySpec,omitempty" xml:"WrappingKeySpec,omitempty"`
}

func (ExportDataKeyRequest) GoString

func (s ExportDataKeyRequest) GoString() string

func (*ExportDataKeyRequest) SetCiphertextBlob

func (s *ExportDataKeyRequest) SetCiphertextBlob(v string) *ExportDataKeyRequest

func (*ExportDataKeyRequest) SetEncryptionContext

func (s *ExportDataKeyRequest) SetEncryptionContext(v map[string]interface{}) *ExportDataKeyRequest

func (*ExportDataKeyRequest) SetPublicKeyBlob

func (s *ExportDataKeyRequest) SetPublicKeyBlob(v string) *ExportDataKeyRequest

func (*ExportDataKeyRequest) SetWrappingAlgorithm

func (s *ExportDataKeyRequest) SetWrappingAlgorithm(v string) *ExportDataKeyRequest

func (*ExportDataKeyRequest) SetWrappingKeySpec

func (s *ExportDataKeyRequest) SetWrappingKeySpec(v string) *ExportDataKeyRequest

func (ExportDataKeyRequest) String

func (s ExportDataKeyRequest) String() string

type ExportDataKeyResponse

type ExportDataKeyResponse struct {
	Headers    map[string]*string         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ExportDataKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ExportDataKeyResponse) GoString

func (s ExportDataKeyResponse) GoString() string

func (*ExportDataKeyResponse) SetBody

func (*ExportDataKeyResponse) SetHeaders

func (*ExportDataKeyResponse) SetStatusCode

func (s *ExportDataKeyResponse) SetStatusCode(v int32) *ExportDataKeyResponse

func (ExportDataKeyResponse) String

func (s ExportDataKeyResponse) String() string

type ExportDataKeyResponseBody

type ExportDataKeyResponseBody struct {
	// The data key encrypted by using the public key and then exported.
	//
	// example:
	//
	// BQKP+1zK6+ZEMxTP5qaVzcsgXtWplYBKm0NXdSnB5FzliFxE1bSiu4dnEIlca2JpeH7yz1/S6fed630H+hIH6DoM25fTLNcKj+mFB0Xnh9m2+HN59Mn4qyTfcUeadnfCXSWcGBouhXFwcdd2rJ3n337bzTf4jm659gZu3L0i6PLuxM9p7mqdwO0cKJPfGVfhnfMz+f4alMg79WB/NNyE2lyX7/qxvV49ObNrrJbKSFiz8Djocaf0IESNLMbfYI5bXjWkJlX92DQbKhibtQW8ZOJ//ZC6t0AWcUoKL6QDm/dg5koQalcleRinpB+QadFm894sLbVZ9+N4GVs*******
	ExportedDataKey *string `json:"ExportedDataKey,omitempty" xml:"ExportedDataKey,omitempty"`
	// The ID of the CMK that is used to decrypt the specified ciphertext of the data key.
	//
	// This parameter is the globally unique ID of the CMK.
	//
	// example:
	//
	// 202b9877-5a25-46e3-a763-e20791b5****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the CMK version that is used to decrypt the specified ciphertext of the data key.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 4bd560a1-729e-45f1-a3d9-b2a33d61046b
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ExportDataKeyResponseBody) GoString

func (s ExportDataKeyResponseBody) GoString() string

func (*ExportDataKeyResponseBody) SetExportedDataKey

func (*ExportDataKeyResponseBody) SetKeyId

func (*ExportDataKeyResponseBody) SetKeyVersionId

func (*ExportDataKeyResponseBody) SetRequestId

func (ExportDataKeyResponseBody) String

func (s ExportDataKeyResponseBody) String() string

type ExportDataKeyShrinkRequest

type ExportDataKeyShrinkRequest struct {
	// The ciphertext of the data key encrypted by using a CMK.
	//
	// example:
	//
	// ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901q********
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// A JSON string that consists of key-value pairs. If you specify this parameter when you use a CMK to encrypt the data key, an equivalent value is required here. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContextShrink *string `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// A Base64-encoded public key.
	//
	// example:
	//
	// MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAndKfC2ReLL2+y8a0+ZBBeAft/uBYo86GZiYJuflqgUzKxpyuvlo3uQkBv6b+nx+0tz8g8v7GhpPWMSW5L9mNHYsvYFsa7jTxsYdt17yj6GlUHPuMIs8hr5qbwl38IHU1iIa7nYWwE2fb3ePOvLDACRJVgGpU0yxioW80d2QD+9aU4jF5dlAahcfgsNzo2CXzCUc1+xbmNuq7Rp+H9VJB9dyYOwqnW3RhOLBo21FzpORapf0UiRlrHRpk1V6ez+aE1dofaYh/9bh0m6ioxj7j5hpZbWccuEZTMBKd+cbuBkRhJzc6Tti6qwZbDiu4fUwbZS0Tqpuo1UadiyxMW********
	PublicKeyBlob *string `json:"PublicKeyBlob,omitempty" xml:"PublicKeyBlob,omitempty"`
	// The encryption algorithm based on which you want to use the public key specified by PublicKeyBlob to encrypt the data key. For more information about encryption algorithms, see [AsymmetricDecrypt](~~148130~~).
	//
	// Valid values:
	//
	// 	- RSAES_OAEP_SHA\_256
	//
	// 	- RSAES_OAEP_SHA\_1
	//
	// 	- SM2PKE
	//
	// example:
	//
	// RSAES_OAEP_SHA_256
	WrappingAlgorithm *string `json:"WrappingAlgorithm,omitempty" xml:"WrappingAlgorithm,omitempty"`
	// The key type of the public key specified by PublicKeyBlob. For more information about key types, see [Introduction to asymmetric keys](~~148147~~).
	//
	// Valid values:
	//
	// 	- RSA\_2048
	//
	// 	- EC_SM2
	//
	// example:
	//
	// RSA_2048
	WrappingKeySpec *string `json:"WrappingKeySpec,omitempty" xml:"WrappingKeySpec,omitempty"`
}

func (ExportDataKeyShrinkRequest) GoString

func (s ExportDataKeyShrinkRequest) GoString() string

func (*ExportDataKeyShrinkRequest) SetCiphertextBlob

func (*ExportDataKeyShrinkRequest) SetEncryptionContextShrink

func (s *ExportDataKeyShrinkRequest) SetEncryptionContextShrink(v string) *ExportDataKeyShrinkRequest

func (*ExportDataKeyShrinkRequest) SetPublicKeyBlob

func (*ExportDataKeyShrinkRequest) SetWrappingAlgorithm

func (s *ExportDataKeyShrinkRequest) SetWrappingAlgorithm(v string) *ExportDataKeyShrinkRequest

func (*ExportDataKeyShrinkRequest) SetWrappingKeySpec

func (ExportDataKeyShrinkRequest) String

type GenerateAndExportDataKeyRequest

type GenerateAndExportDataKeyRequest struct {
	// A JSON string of key-value pairs. If you specify this parameter here, an equivalent value is required when you decrypt or re-encrypt the data key. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContext map[string]interface{} `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see [Use aliases](~~68522~~).
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The length of the data key that you want to generate. Valid values:
	//
	// 	- AES\_256: a 256-bit symmetric key
	//
	// 	- AES\_128: a 128-bit symmetric key
	//
	// >  We recommend that you use the KeySpec or NumberOfBytes parameter to specify the length of a data key. If both parameters are not specified, KMS generates a 256-bit data key. If both parameters are specified, KMS ignores the KeySpec parameter.
	//
	// example:
	//
	// AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The length of the data key that you want to generate.
	//
	// Valid values: 1 to 1024.
	//
	// Unit: bytes.
	//
	// example:
	//
	// 32
	NumberOfBytes *int32 `json:"NumberOfBytes,omitempty" xml:"NumberOfBytes,omitempty"`
	// A Base64-encoded public key.
	//
	// example:
	//
	// MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAndKfC2ReLL2+y8a0+ZBBeAft/uBYo86GZiYJuflqgUzKxpyuvlo3uQkBv6b+nx+0tz8g8v7GhpPWMSW5L9mNHYsvYFsa7jTxsYdt17yj6GlUHPuMIs8hr5qbwl38IHU1iIa7nYWwE2fb3ePOvLDACRJVgGpU0yxioW80d2QD+9aU4jF5dlAahcfgsNzo2CXzCUc1+xbmNuq7Rp+H9VJB9dyYOwqnW3RhOLBo21FzpORapf0UiRlrHRpk1V6ez+aE1dofaYh/9bh0m6ioxj7j5hpZbWccuEZTMBKd+cbuBkRhJzc6Tti6qwZbDiu4fUwbZS0Tqpuo1UadiyxMW********
	PublicKeyBlob *string `json:"PublicKeyBlob,omitempty" xml:"PublicKeyBlob,omitempty"`
	// The encryption algorithm based on which you want to use the public key specified by PublicKeyBlob to encrypt the data key. For more information about encryption algorithms, see [AsymmetricDecrypt](~~148130~~).
	//
	// Valid values:
	//
	// 	- RSAES_OAEP_SHA\_256
	//
	// 	- RSAES_OAEP_SHA\_1
	//
	// 	- SM2PKE
	//
	// example:
	//
	// RSAES_OAEP_SHA_256
	WrappingAlgorithm *string `json:"WrappingAlgorithm,omitempty" xml:"WrappingAlgorithm,omitempty"`
	// The key type of the public key specified by PublicKeyBlob. For more information about key types, see [Introduction to asymmetric keys](~~148147~~).
	//
	// Valid values:
	//
	// 	- RSA\_2048
	//
	// 	- EC_SM2
	//
	// example:
	//
	// RSA_2048
	WrappingKeySpec *string `json:"WrappingKeySpec,omitempty" xml:"WrappingKeySpec,omitempty"`
}

func (GenerateAndExportDataKeyRequest) GoString

func (*GenerateAndExportDataKeyRequest) SetEncryptionContext

func (s *GenerateAndExportDataKeyRequest) SetEncryptionContext(v map[string]interface{}) *GenerateAndExportDataKeyRequest

func (*GenerateAndExportDataKeyRequest) SetKeyId

func (*GenerateAndExportDataKeyRequest) SetKeySpec

func (*GenerateAndExportDataKeyRequest) SetNumberOfBytes

func (*GenerateAndExportDataKeyRequest) SetPublicKeyBlob

func (*GenerateAndExportDataKeyRequest) SetWrappingAlgorithm

func (*GenerateAndExportDataKeyRequest) SetWrappingKeySpec

func (GenerateAndExportDataKeyRequest) String

type GenerateAndExportDataKeyResponse

type GenerateAndExportDataKeyResponse struct {
	Headers    map[string]*string                    `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GenerateAndExportDataKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GenerateAndExportDataKeyResponse) GoString

func (*GenerateAndExportDataKeyResponse) SetHeaders

func (*GenerateAndExportDataKeyResponse) SetStatusCode

func (GenerateAndExportDataKeyResponse) String

type GenerateAndExportDataKeyResponseBody

type GenerateAndExportDataKeyResponseBody struct {
	// The ciphertext of the data key encrypted by using the primary CMK version.
	//
	// example:
	//
	// ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901qOjop4bTS****
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The data key encrypted by using the public key and then exported.
	//
	// example:
	//
	// BQKP+1zK6+ZEMxTP5qaVzcsgXtWplYBKm0NXdSnB5FzliFxE1bSiu4dnEIlca2JpeH7yz1/S6fed630H+hIH6DoM25fTLNcKj+mFB0Xnh9m2+HN59Mn4qyTfcUeadnfCXSWcGBouhXFwcdd2rJ3n337bzTf4jm659gZu3L0i6PLuxM9p7mqdwO0cKJPfGVfhnfMz+f4alMg79WB/NNyE2lyX7/qxvV49ObNrrJbKSFiz8Djocaf0IESNLMbfYI5bXjWkJlX92DQbKhibtQW8ZOJ//ZC6t0AWcUoKL6QDm/dg5koQalcleRinpB+QadFm894sLbVZ9+N4GVs*******
	ExportedDataKey *string `json:"ExportedDataKey,omitempty" xml:"ExportedDataKey,omitempty"`
	// The globally unique ID of the CMK.
	//
	// >  If you set the KeyId parameter to an alias, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 599fa825-17de-417e-9554-bb032cc6****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the CMK version that is used to encrypt the plaintext. It is the primary version of the CMK.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 7021b6ec-4be7-4d3c-8a68-1e85d4d515a0
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GenerateAndExportDataKeyResponseBody) GoString

func (*GenerateAndExportDataKeyResponseBody) SetCiphertextBlob

func (*GenerateAndExportDataKeyResponseBody) SetExportedDataKey

func (*GenerateAndExportDataKeyResponseBody) SetKeyId

func (*GenerateAndExportDataKeyResponseBody) SetKeyVersionId

func (*GenerateAndExportDataKeyResponseBody) SetRequestId

func (GenerateAndExportDataKeyResponseBody) String

type GenerateAndExportDataKeyShrinkRequest

type GenerateAndExportDataKeyShrinkRequest struct {
	// A JSON string of key-value pairs. If you specify this parameter here, an equivalent value is required when you decrypt or re-encrypt the data key. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContextShrink *string `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see [Use aliases](~~68522~~).
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The length of the data key that you want to generate. Valid values:
	//
	// 	- AES\_256: a 256-bit symmetric key
	//
	// 	- AES\_128: a 128-bit symmetric key
	//
	// >  We recommend that you use the KeySpec or NumberOfBytes parameter to specify the length of a data key. If both parameters are not specified, KMS generates a 256-bit data key. If both parameters are specified, KMS ignores the KeySpec parameter.
	//
	// example:
	//
	// AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The length of the data key that you want to generate.
	//
	// Valid values: 1 to 1024.
	//
	// Unit: bytes.
	//
	// example:
	//
	// 32
	NumberOfBytes *int32 `json:"NumberOfBytes,omitempty" xml:"NumberOfBytes,omitempty"`
	// A Base64-encoded public key.
	//
	// example:
	//
	// MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAndKfC2ReLL2+y8a0+ZBBeAft/uBYo86GZiYJuflqgUzKxpyuvlo3uQkBv6b+nx+0tz8g8v7GhpPWMSW5L9mNHYsvYFsa7jTxsYdt17yj6GlUHPuMIs8hr5qbwl38IHU1iIa7nYWwE2fb3ePOvLDACRJVgGpU0yxioW80d2QD+9aU4jF5dlAahcfgsNzo2CXzCUc1+xbmNuq7Rp+H9VJB9dyYOwqnW3RhOLBo21FzpORapf0UiRlrHRpk1V6ez+aE1dofaYh/9bh0m6ioxj7j5hpZbWccuEZTMBKd+cbuBkRhJzc6Tti6qwZbDiu4fUwbZS0Tqpuo1UadiyxMW********
	PublicKeyBlob *string `json:"PublicKeyBlob,omitempty" xml:"PublicKeyBlob,omitempty"`
	// The encryption algorithm based on which you want to use the public key specified by PublicKeyBlob to encrypt the data key. For more information about encryption algorithms, see [AsymmetricDecrypt](~~148130~~).
	//
	// Valid values:
	//
	// 	- RSAES_OAEP_SHA\_256
	//
	// 	- RSAES_OAEP_SHA\_1
	//
	// 	- SM2PKE
	//
	// example:
	//
	// RSAES_OAEP_SHA_256
	WrappingAlgorithm *string `json:"WrappingAlgorithm,omitempty" xml:"WrappingAlgorithm,omitempty"`
	// The key type of the public key specified by PublicKeyBlob. For more information about key types, see [Introduction to asymmetric keys](~~148147~~).
	//
	// Valid values:
	//
	// 	- RSA\_2048
	//
	// 	- EC_SM2
	//
	// example:
	//
	// RSA_2048
	WrappingKeySpec *string `json:"WrappingKeySpec,omitempty" xml:"WrappingKeySpec,omitempty"`
}

func (GenerateAndExportDataKeyShrinkRequest) GoString

func (*GenerateAndExportDataKeyShrinkRequest) SetEncryptionContextShrink

func (*GenerateAndExportDataKeyShrinkRequest) SetKeyId

func (*GenerateAndExportDataKeyShrinkRequest) SetKeySpec

func (*GenerateAndExportDataKeyShrinkRequest) SetNumberOfBytes

func (*GenerateAndExportDataKeyShrinkRequest) SetPublicKeyBlob

func (*GenerateAndExportDataKeyShrinkRequest) SetWrappingAlgorithm

func (*GenerateAndExportDataKeyShrinkRequest) SetWrappingKeySpec

func (GenerateAndExportDataKeyShrinkRequest) String

type GenerateDataKeyRequest

type GenerateDataKeyRequest struct {
	// The JSON string that consists of key-value pairs.
	//
	// If you specify this parameter, an equivalent value is required when you call the [Decrypt](~~28950~~) operation. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContext map[string]interface{} `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// You can also set this parameter to an alias that is bound to the CMK. For more information, see [Alias overview](~~68522~~).
	//
	// example:
	//
	// 7906979c-8e06-46a2-be2d-68e3ccbc****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The type of the data key that you want to generate. Valid values:
	//
	// 	- AES\_256: a 256-bit symmetric key
	//
	// 	- AES\_128: a 128-bit symmetric key
	//
	// >  We recommend that you use the KeySpec or NumberOfBytes parameter to specify the length of a data key. If none of the parameters are specified, KMS generates a 256-bit data key. If both parameters are specified, KMS ignores the KeySpec parameter.
	//
	// example:
	//
	// AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The length of the data key that you want to generate. Unit: bytes.
	//
	// Valid values: 1 to 1024.
	//
	// Default value:
	//
	// 	- If the KeySpec parameter is set to AES\_256, set the value of the NumberOfBytes parameter to 32.
	//
	// 	- If the KeySpec parameter is set to AES\_128, set the value of the NumberOfBytes parameter to 16.
	//
	// example:
	//
	// 256
	NumberOfBytes *int32 `json:"NumberOfBytes,omitempty" xml:"NumberOfBytes,omitempty"`
}

func (GenerateDataKeyRequest) GoString

func (s GenerateDataKeyRequest) GoString() string

func (*GenerateDataKeyRequest) SetEncryptionContext

func (s *GenerateDataKeyRequest) SetEncryptionContext(v map[string]interface{}) *GenerateDataKeyRequest

func (*GenerateDataKeyRequest) SetKeyId

func (*GenerateDataKeyRequest) SetKeySpec

func (*GenerateDataKeyRequest) SetNumberOfBytes

func (s *GenerateDataKeyRequest) SetNumberOfBytes(v int32) *GenerateDataKeyRequest

func (GenerateDataKeyRequest) String

func (s GenerateDataKeyRequest) String() string

type GenerateDataKeyResponse

type GenerateDataKeyResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GenerateDataKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GenerateDataKeyResponse) GoString

func (s GenerateDataKeyResponse) GoString() string

func (*GenerateDataKeyResponse) SetBody

func (*GenerateDataKeyResponse) SetHeaders

func (*GenerateDataKeyResponse) SetStatusCode

func (GenerateDataKeyResponse) String

func (s GenerateDataKeyResponse) String() string

type GenerateDataKeyResponseBody

type GenerateDataKeyResponseBody struct {
	// The ciphertext of the data key that is encrypted by using the primary version of the specified CMK.
	//
	// example:
	//
	// ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901qOjop4bTS****
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// >  If you set the KeyId parameter in the request to an alias of the CMK, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 7906979c-8e06-46a2-be2d-68e3ccbc****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the CMK version. The ID must be globally unique.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The Base64 encoded plaintext of the data key.
	//
	// example:
	//
	// QmFzZTY0IGVuY29kZWQgcGxhaW50****
	Plaintext *string `json:"Plaintext,omitempty" xml:"Plaintext,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 7021b6ec-4be7-4d3c-8a68-1e85d4d515a0
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GenerateDataKeyResponseBody) GoString

func (s GenerateDataKeyResponseBody) GoString() string

func (*GenerateDataKeyResponseBody) SetCiphertextBlob

func (*GenerateDataKeyResponseBody) SetKeyId

func (*GenerateDataKeyResponseBody) SetKeyVersionId

func (*GenerateDataKeyResponseBody) SetPlaintext

func (*GenerateDataKeyResponseBody) SetRequestId

func (GenerateDataKeyResponseBody) String

type GenerateDataKeyShrinkRequest

type GenerateDataKeyShrinkRequest struct {
	// The JSON string that consists of key-value pairs.
	//
	// If you specify this parameter, an equivalent value is required when you call the [Decrypt](~~28950~~) operation. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContextShrink *string `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// You can also set this parameter to an alias that is bound to the CMK. For more information, see [Alias overview](~~68522~~).
	//
	// example:
	//
	// 7906979c-8e06-46a2-be2d-68e3ccbc****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The type of the data key that you want to generate. Valid values:
	//
	// 	- AES\_256: a 256-bit symmetric key
	//
	// 	- AES\_128: a 128-bit symmetric key
	//
	// >  We recommend that you use the KeySpec or NumberOfBytes parameter to specify the length of a data key. If none of the parameters are specified, KMS generates a 256-bit data key. If both parameters are specified, KMS ignores the KeySpec parameter.
	//
	// example:
	//
	// AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The length of the data key that you want to generate. Unit: bytes.
	//
	// Valid values: 1 to 1024.
	//
	// Default value:
	//
	// 	- If the KeySpec parameter is set to AES\_256, set the value of the NumberOfBytes parameter to 32.
	//
	// 	- If the KeySpec parameter is set to AES\_128, set the value of the NumberOfBytes parameter to 16.
	//
	// example:
	//
	// 256
	NumberOfBytes *int32 `json:"NumberOfBytes,omitempty" xml:"NumberOfBytes,omitempty"`
}

func (GenerateDataKeyShrinkRequest) GoString

func (s GenerateDataKeyShrinkRequest) GoString() string

func (*GenerateDataKeyShrinkRequest) SetEncryptionContextShrink

func (s *GenerateDataKeyShrinkRequest) SetEncryptionContextShrink(v string) *GenerateDataKeyShrinkRequest

func (*GenerateDataKeyShrinkRequest) SetKeyId

func (*GenerateDataKeyShrinkRequest) SetKeySpec

func (*GenerateDataKeyShrinkRequest) SetNumberOfBytes

func (GenerateDataKeyShrinkRequest) String

type GenerateDataKeyWithoutPlaintextRequest

type GenerateDataKeyWithoutPlaintextRequest struct {
	// A JSON string that consists of key-value pairs. If you specify this parameter, an equivalent value is required when you call the Decrypt operation. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContext map[string]interface{} `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see Use aliases.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The length of the data key that you want to generate. Valid values:
	//
	// 	- AES\_256: 256-bit symmetric key
	//
	// 	- AES\_128: 128-bit symmetric key
	//
	// >  We recommend that you use the KeySpec or NumberOfBytes parameter to specify the length of a data key. If both of them are not specified, KMS generates a 256-bit data key. If both of them are specified, KMS ignores the KeySpec parameter.
	//
	// example:
	//
	// AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The length of the data key that you want to generate.
	//
	// Valid values: 1 to 1024.
	//
	// Unit: bytes.
	//
	// example:
	//
	// 256
	NumberOfBytes *int32 `json:"NumberOfBytes,omitempty" xml:"NumberOfBytes,omitempty"`
}

func (GenerateDataKeyWithoutPlaintextRequest) GoString

func (*GenerateDataKeyWithoutPlaintextRequest) SetEncryptionContext

func (s *GenerateDataKeyWithoutPlaintextRequest) SetEncryptionContext(v map[string]interface{}) *GenerateDataKeyWithoutPlaintextRequest

func (*GenerateDataKeyWithoutPlaintextRequest) SetKeyId

func (*GenerateDataKeyWithoutPlaintextRequest) SetKeySpec

func (*GenerateDataKeyWithoutPlaintextRequest) SetNumberOfBytes

func (GenerateDataKeyWithoutPlaintextRequest) String

type GenerateDataKeyWithoutPlaintextResponse

type GenerateDataKeyWithoutPlaintextResponse struct {
	Headers    map[string]*string                           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GenerateDataKeyWithoutPlaintextResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GenerateDataKeyWithoutPlaintextResponse) GoString

func (*GenerateDataKeyWithoutPlaintextResponse) SetHeaders

func (*GenerateDataKeyWithoutPlaintextResponse) SetStatusCode

func (GenerateDataKeyWithoutPlaintextResponse) String

type GenerateDataKeyWithoutPlaintextResponseBody

type GenerateDataKeyWithoutPlaintextResponseBody struct {
	// The ciphertext of the data that is encrypted by using the primary CMK version.
	//
	// example:
	//
	// ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901qOjop4bTS****
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The globally unique ID of the CMK.
	//
	// >  If you set the KeyId parameter to an alias, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 599fa825-17de-417e-9554-bb032cc6****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the key version that is used to encrypt the plaintext. It is the primary version of the CMK.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 7021b6ec-4be7-4d3c-8a68-1e85d4d515a0
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GenerateDataKeyWithoutPlaintextResponseBody) GoString

func (*GenerateDataKeyWithoutPlaintextResponseBody) SetCiphertextBlob

func (*GenerateDataKeyWithoutPlaintextResponseBody) SetKeyId

func (*GenerateDataKeyWithoutPlaintextResponseBody) SetKeyVersionId

func (*GenerateDataKeyWithoutPlaintextResponseBody) SetRequestId

func (GenerateDataKeyWithoutPlaintextResponseBody) String

type GenerateDataKeyWithoutPlaintextShrinkRequest

type GenerateDataKeyWithoutPlaintextShrinkRequest struct {
	// A JSON string that consists of key-value pairs. If you specify this parameter, an equivalent value is required when you call the Decrypt operation. For more information, see [EncryptionContext](~~42975~~).
	//
	// example:
	//
	// {"Example":"Example"}
	EncryptionContextShrink *string `json:"EncryptionContext,omitempty" xml:"EncryptionContext,omitempty"`
	// The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see Use aliases.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The length of the data key that you want to generate. Valid values:
	//
	// 	- AES\_256: 256-bit symmetric key
	//
	// 	- AES\_128: 128-bit symmetric key
	//
	// >  We recommend that you use the KeySpec or NumberOfBytes parameter to specify the length of a data key. If both of them are not specified, KMS generates a 256-bit data key. If both of them are specified, KMS ignores the KeySpec parameter.
	//
	// example:
	//
	// AES_256
	KeySpec *string `json:"KeySpec,omitempty" xml:"KeySpec,omitempty"`
	// The length of the data key that you want to generate.
	//
	// Valid values: 1 to 1024.
	//
	// Unit: bytes.
	//
	// example:
	//
	// 256
	NumberOfBytes *int32 `json:"NumberOfBytes,omitempty" xml:"NumberOfBytes,omitempty"`
}

func (GenerateDataKeyWithoutPlaintextShrinkRequest) GoString

func (*GenerateDataKeyWithoutPlaintextShrinkRequest) SetEncryptionContextShrink

func (*GenerateDataKeyWithoutPlaintextShrinkRequest) SetKeyId

func (*GenerateDataKeyWithoutPlaintextShrinkRequest) SetKeySpec

func (*GenerateDataKeyWithoutPlaintextShrinkRequest) SetNumberOfBytes

func (GenerateDataKeyWithoutPlaintextShrinkRequest) String

type GetCertificateRequest

type GetCertificateRequest struct {
	// The ID of the certificate. It is the globally unique identifier (GUID) of the certificate in Certificates Manager.
	//
	// example:
	//
	// 9a28de48-8d8b-484d-a766-dec4****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
}

func (GetCertificateRequest) GoString

func (s GetCertificateRequest) GoString() string

func (*GetCertificateRequest) SetCertificateId

func (s *GetCertificateRequest) SetCertificateId(v string) *GetCertificateRequest

func (GetCertificateRequest) String

func (s GetCertificateRequest) String() string

type GetCertificateResponse

type GetCertificateResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetCertificateResponse) GoString

func (s GetCertificateResponse) GoString() string

func (*GetCertificateResponse) SetBody

func (*GetCertificateResponse) SetHeaders

func (*GetCertificateResponse) SetStatusCode

func (GetCertificateResponse) String

func (s GetCertificateResponse) String() string

type GetCertificateResponseBody

type GetCertificateResponseBody struct {
	// The certificate in the Privacy Enhanced Mail (PEM) format.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----  (X.509 Certificate PEM Content)  -----END CERTIFICATE-----
	Certificate *string `json:"Certificate,omitempty" xml:"Certificate,omitempty"`
	// The certificate chain in the PEM format.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----  (Sub CA Certificate PEM Content)  -----END CERTIFICATE-----  -----BEGIN CERTIFICATE-----  (Sub CA Certificate PEM Content)  -----END CERTIFICATE-----  -----BEGIN CERTIFICATE-----  (Root CA Certificate PEM Content)  -----END CERTIFICATE-----
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The ID of the certificate.
	//
	// example:
	//
	// 9a28de48-8d8b-484d-a766-dec4****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The CSR in the PEM format.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE REQUEST-----MIICxjCCAa4CAQAwPzELMAkGA1UEBhMCQ04xDzANBgNVBAoTBmFsaXl1bjEMMAoGA1UECxMDa21zMREwDwY****-----END CERTIFICATE REQUEST-----
	Csr *string `json:"Csr,omitempty" xml:"Csr,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// b3e104b4-0319-4a20-ab7f-9fef6****
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetCertificateResponseBody) GoString

func (s GetCertificateResponseBody) GoString() string

func (*GetCertificateResponseBody) SetCertificate

func (*GetCertificateResponseBody) SetCertificateChain

func (*GetCertificateResponseBody) SetCertificateId

func (*GetCertificateResponseBody) SetCsr

func (*GetCertificateResponseBody) SetRequestId

func (GetCertificateResponseBody) String

type GetClientKeyRequest added in v3.1.0

type GetClientKeyRequest struct {
	// The ID of the client key.
	//
	// example:
	//
	// KAAP.66abf237-63f6-4625-b8cf-47e1086e****
	ClientKeyId *string `json:"ClientKeyId,omitempty" xml:"ClientKeyId,omitempty"`
}

func (GetClientKeyRequest) GoString added in v3.1.0

func (s GetClientKeyRequest) GoString() string

func (*GetClientKeyRequest) SetClientKeyId added in v3.1.0

func (s *GetClientKeyRequest) SetClientKeyId(v string) *GetClientKeyRequest

func (GetClientKeyRequest) String added in v3.1.0

func (s GetClientKeyRequest) String() string

type GetClientKeyResponse added in v3.1.0

type GetClientKeyResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetClientKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetClientKeyResponse) GoString added in v3.1.0

func (s GetClientKeyResponse) GoString() string

func (*GetClientKeyResponse) SetBody added in v3.1.0

func (*GetClientKeyResponse) SetHeaders added in v3.1.0

func (s *GetClientKeyResponse) SetHeaders(v map[string]*string) *GetClientKeyResponse

func (*GetClientKeyResponse) SetStatusCode added in v3.1.0

func (s *GetClientKeyResponse) SetStatusCode(v int32) *GetClientKeyResponse

func (GetClientKeyResponse) String added in v3.1.0

func (s GetClientKeyResponse) String() string

type GetClientKeyResponseBody added in v3.1.0

type GetClientKeyResponseBody struct {
	// The name of the application access point (AAP).
	//
	// example:
	//
	// aap_test
	AapName *string `json:"AapName,omitempty" xml:"AapName,omitempty"`
	// The ID of the client key.
	//
	// example:
	//
	// KAAP.66abf237-63f6-4625-b8cf-47e1086e****
	ClientKeyId *string `json:"ClientKeyId,omitempty" xml:"ClientKeyId,omitempty"`
	// The time when the client key was created.
	//
	// example:
	//
	// 2023-08-31T09:14:38Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The private key algorithm of the client key.
	//
	// example:
	//
	// RSA_2048
	KeyAlgorithm *string `json:"KeyAlgorithm,omitempty" xml:"KeyAlgorithm,omitempty"`
	// The provider of the client key.
	//
	// Currently, only Key Management Service (KMS) is supported. The value is fixed as KMS_PROVIDED.
	//
	// example:
	//
	// KMS_PROVIDED
	KeyOrigin *string `json:"KeyOrigin,omitempty" xml:"KeyOrigin,omitempty"`
	// The end of the validity period of the client key.
	//
	// example:
	//
	// 2028-08-31T17:14:33Z
	NotAfter *string `json:"NotAfter,omitempty" xml:"NotAfter,omitempty"`
	// The beginning of the validity period of the client key.
	//
	// example:
	//
	// 2023-08-31T17:14:33Z
	NotBefore *string `json:"NotBefore,omitempty" xml:"NotBefore,omitempty"`
	// The content of the public key of the client key.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\nMIIDcjCCAlqgAwIBAgIQT/sAVRxwYp54mrw****-----END CERTIFICATE-----
	PublicKeyData *string `json:"PublicKeyData,omitempty" xml:"PublicKeyData,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 63d849a6-045b-4a57-ad9f-c5f756cea9e9
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetClientKeyResponseBody) GoString added in v3.1.0

func (s GetClientKeyResponseBody) GoString() string

func (*GetClientKeyResponseBody) SetAapName added in v3.1.0

func (*GetClientKeyResponseBody) SetClientKeyId added in v3.1.0

func (*GetClientKeyResponseBody) SetCreateTime added in v3.1.0

func (*GetClientKeyResponseBody) SetKeyAlgorithm added in v3.1.0

func (*GetClientKeyResponseBody) SetKeyOrigin added in v3.1.0

func (*GetClientKeyResponseBody) SetNotAfter added in v3.1.0

func (*GetClientKeyResponseBody) SetNotBefore added in v3.1.0

func (*GetClientKeyResponseBody) SetPublicKeyData added in v3.1.0

func (*GetClientKeyResponseBody) SetRequestId added in v3.1.0

func (GetClientKeyResponseBody) String added in v3.1.0

func (s GetClientKeyResponseBody) String() string

type GetKeyPolicyRequest added in v3.2.0

type GetKeyPolicyRequest struct {
	KeyId      *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	PolicyName *string `json:"PolicyName,omitempty" xml:"PolicyName,omitempty"`
}

func (GetKeyPolicyRequest) GoString added in v3.2.0

func (s GetKeyPolicyRequest) GoString() string

func (*GetKeyPolicyRequest) SetKeyId added in v3.2.0

func (*GetKeyPolicyRequest) SetPolicyName added in v3.2.0

func (s *GetKeyPolicyRequest) SetPolicyName(v string) *GetKeyPolicyRequest

func (GetKeyPolicyRequest) String added in v3.2.0

func (s GetKeyPolicyRequest) String() string

type GetKeyPolicyResponse added in v3.2.0

type GetKeyPolicyResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetKeyPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetKeyPolicyResponse) GoString added in v3.2.0

func (s GetKeyPolicyResponse) GoString() string

func (*GetKeyPolicyResponse) SetBody added in v3.2.0

func (*GetKeyPolicyResponse) SetHeaders added in v3.2.0

func (s *GetKeyPolicyResponse) SetHeaders(v map[string]*string) *GetKeyPolicyResponse

func (*GetKeyPolicyResponse) SetStatusCode added in v3.2.0

func (s *GetKeyPolicyResponse) SetStatusCode(v int32) *GetKeyPolicyResponse

func (GetKeyPolicyResponse) String added in v3.2.0

func (s GetKeyPolicyResponse) String() string

type GetKeyPolicyResponseBody added in v3.2.0

type GetKeyPolicyResponseBody struct {
	Policy    *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetKeyPolicyResponseBody) GoString added in v3.2.0

func (s GetKeyPolicyResponseBody) GoString() string

func (*GetKeyPolicyResponseBody) SetPolicy added in v3.2.0

func (*GetKeyPolicyResponseBody) SetRequestId added in v3.2.0

func (GetKeyPolicyResponseBody) String added in v3.2.0

func (s GetKeyPolicyResponseBody) String() string

type GetKmsInstanceRequest added in v3.1.0

type GetKmsInstanceRequest struct {
	// The ID of the KMS instance that you want to query.
	//
	// example:
	//
	// kst-bjj62f5ba3dnpb6v8****
	KmsInstanceId *string `json:"KmsInstanceId,omitempty" xml:"KmsInstanceId,omitempty"`
}

func (GetKmsInstanceRequest) GoString added in v3.1.0

func (s GetKmsInstanceRequest) GoString() string

func (*GetKmsInstanceRequest) SetKmsInstanceId added in v3.1.0

func (s *GetKmsInstanceRequest) SetKmsInstanceId(v string) *GetKmsInstanceRequest

func (GetKmsInstanceRequest) String added in v3.1.0

func (s GetKmsInstanceRequest) String() string

type GetKmsInstanceResponse added in v3.1.0

type GetKmsInstanceResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetKmsInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetKmsInstanceResponse) GoString added in v3.1.0

func (s GetKmsInstanceResponse) GoString() string

func (*GetKmsInstanceResponse) SetBody added in v3.1.0

func (*GetKmsInstanceResponse) SetHeaders added in v3.1.0

func (*GetKmsInstanceResponse) SetStatusCode added in v3.1.0

func (GetKmsInstanceResponse) String added in v3.1.0

func (s GetKmsInstanceResponse) String() string

type GetKmsInstanceResponseBody added in v3.1.0

type GetKmsInstanceResponseBody struct {
	// The details of the KMS instance.
	KmsInstance *GetKmsInstanceResponseBodyKmsInstance `json:"KmsInstance,omitempty" xml:"KmsInstance,omitempty" type:"Struct"`
	// The request ID.
	//
	// example:
	//
	// 46b4a94a-57d2-44b4-9810-1e87d31abb33
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetKmsInstanceResponseBody) GoString added in v3.1.0

func (s GetKmsInstanceResponseBody) GoString() string

func (*GetKmsInstanceResponseBody) SetKmsInstance added in v3.1.0

func (*GetKmsInstanceResponseBody) SetRequestId added in v3.1.0

func (GetKmsInstanceResponseBody) String added in v3.1.0

type GetKmsInstanceResponseBodyKmsInstance added in v3.1.0

type GetKmsInstanceResponseBodyKmsInstance struct {
	// A list of associated VPCs.
	//
	// >  If your self-managed applications are deployed in multiple VPCs in the same region, you can associate VPCs with the KMS instance beyond the VPC that you specify when you enable the KMS instance. The VPCs can belong to the same Alibaba Cloud account or different Alibaba Cloud accounts. After the configuration is complete, self-managed applications in the VPCs can access the specified KMS instance.
	BindVpcs *GetKmsInstanceResponseBodyKmsInstanceBindVpcs `json:"BindVpcs,omitempty" xml:"BindVpcs,omitempty" type:"Struct"`
	// The content of the certificate authority (CA) certificate of the KMS instance.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\r\nMIIDuzCCAqOgAwIBAgIJALTKwWAjvbMiMA0GCSqGSIb3DQEBCwUAMHQxCzAJBgNV****-----END CERTIFICATE-----
	CaCertificateChainPem *string `json:"CaCertificateChainPem,omitempty" xml:"CaCertificateChainPem,omitempty"`
	// The time when the KMS instance is created.
	//
	// example:
	//
	// 2023-09-05T12:44:20Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The expiration time of the KMS instance.
	//
	// example:
	//
	// 2023-10-05T16:00:00Z
	EndDate *string `json:"EndDate,omitempty" xml:"EndDate,omitempty"`
	// The ID of the KMS instance.
	//
	// example:
	//
	// kst-bjj62f5ba3dnpb6v8****
	InstanceId *string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"`
	// The name of the KMS instance.
	//
	// example:
	//
	// kst-bjj62f5ba3dnpb6v8****
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// The number of keys that can be created for the KMS instance.
	//
	// example:
	//
	// 1000
	KeyNum *int64 `json:"KeyNum,omitempty" xml:"KeyNum,omitempty"`
	// The number of secrets that can be created for the KMS instance.
	//
	// example:
	//
	// 10
	SecretNum *string `json:"SecretNum,omitempty" xml:"SecretNum,omitempty"`
	// The computing performance of the KMS instance.
	//
	// example:
	//
	// 1000
	Spec *int64 `json:"Spec,omitempty" xml:"Spec,omitempty"`
	// The time when the KMS instance is enabled.
	//
	// example:
	//
	// 2023-09-05T12:44:19Z
	StartDate *string `json:"StartDate,omitempty" xml:"StartDate,omitempty"`
	// The status of the KMS instance. Valid values:
	//
	// 	- Uninitialized: The KMS instance is not enabled.
	//
	// 	- Connecting: The KMS instance is being connected.
	//
	// 	- Connected: The KMS instance is enabled.
	//
	// 	- Disconnected: The KMS instance is disconnected.
	//
	// 	- Error: The KMS instance is abnormal.
	//
	// example:
	//
	// Connected
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The virtual private cloud (VPC) with which the KMS instance is associated.
	//
	// example:
	//
	// vpc-bp19z7cwmltad5dff****
	VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"`
	// The access management quota for the KMS instance.
	//
	// example:
	//
	// 5
	VpcNum *int64 `json:"VpcNum,omitempty" xml:"VpcNum,omitempty"`
	// The vSwitch in the VPC.
	//
	// example:
	//
	// vsw-bp1i512amda6d10a0****
	VswitchIds *string `json:"VswitchIds,omitempty" xml:"VswitchIds,omitempty"`
	// The zone with which the KMS instance is associated.
	//
	// example:
	//
	// "cn-hangzhou-k",       "cn-hangzhou-j"
	ZoneIds *string `json:"ZoneIds,omitempty" xml:"ZoneIds,omitempty"`
}

func (GetKmsInstanceResponseBodyKmsInstance) GoString added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetBindVpcs added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetCaCertificateChainPem added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetCreateTime added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetEndDate added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetInstanceId added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetInstanceName added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetKeyNum added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetSecretNum added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetSpec added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetStartDate added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetStatus added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetVpcId added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetVpcNum added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetVswitchIds added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstance) SetZoneIds added in v3.1.0

func (GetKmsInstanceResponseBodyKmsInstance) String added in v3.1.0

type GetKmsInstanceResponseBodyKmsInstanceBindVpcs added in v3.1.0

type GetKmsInstanceResponseBodyKmsInstanceBindVpcs struct {
	BindVpc []*GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc `json:"BindVpc,omitempty" xml:"BindVpc,omitempty" type:"Repeated"`
}

func (GetKmsInstanceResponseBodyKmsInstanceBindVpcs) GoString added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstanceBindVpcs) SetBindVpc added in v3.1.0

func (GetKmsInstanceResponseBodyKmsInstanceBindVpcs) String added in v3.1.0

type GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc added in v3.1.0

type GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc struct {
	// The region to which the VPC belongs.
	//
	// example:
	//
	// cn-hangzhou
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
	// The vSwitch in the VPC.
	//
	// example:
	//
	// vsw-bp1i512amhdje10f1****
	VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"`
	// The ID of the VPC.
	//
	// example:
	//
	// vpc-bp19z7djuhtad5dff****
	VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"`
	// The Alibaba Cloud account to which the VPC belongs.
	//
	// example:
	//
	// 190325303126****
	VpcOwnerId *string `json:"VpcOwnerId,omitempty" xml:"VpcOwnerId,omitempty"`
}

func (GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc) GoString added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc) SetRegionId added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc) SetVSwitchId added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc) SetVpcId added in v3.1.0

func (*GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc) SetVpcOwnerId added in v3.1.0

func (GetKmsInstanceResponseBodyKmsInstanceBindVpcsBindVpc) String added in v3.1.0

type GetParametersForImportRequest

type GetParametersForImportRequest struct {
	// The globally unique ID of the CMK.
	//
	// >  You can import key material only for CMKs whose Origin parameter is set to EXTERNAL.
	//
	// example:
	//
	// 202b9877-5a25-46e3-a763-e20791b5****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The algorithm that is used to encrypt key material.
	//
	// example:
	//
	// RSAES_PKCS1_V1_5
	WrappingAlgorithm *string `json:"WrappingAlgorithm,omitempty" xml:"WrappingAlgorithm,omitempty"`
	// The type of the public key that is used to encrypt key material.
	//
	// example:
	//
	// RSA_2048
	WrappingKeySpec *string `json:"WrappingKeySpec,omitempty" xml:"WrappingKeySpec,omitempty"`
}

func (GetParametersForImportRequest) GoString

func (*GetParametersForImportRequest) SetKeyId

func (*GetParametersForImportRequest) SetWrappingAlgorithm

func (*GetParametersForImportRequest) SetWrappingKeySpec

func (GetParametersForImportRequest) String

type GetParametersForImportResponse

type GetParametersForImportResponse struct {
	Headers    map[string]*string                  `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                              `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetParametersForImportResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetParametersForImportResponse) GoString

func (*GetParametersForImportResponse) SetHeaders

func (*GetParametersForImportResponse) SetStatusCode

func (GetParametersForImportResponse) String

type GetParametersForImportResponseBody

type GetParametersForImportResponseBody struct {
	// The token that is used to import key material.
	//
	// The token is valid for 24 hours. The value of this parameter is required when you call the [ImportKeyMaterial](~~68622~~) operation.
	//
	// example:
	//
	// Base64String
	ImportToken *string `json:"ImportToken,omitempty" xml:"ImportToken,omitempty"`
	// The globally unique ID of the CMK.
	//
	// The value of this parameter is required when you call the [ImportKeyMaterial](~~68622~~) operation.
	//
	// example:
	//
	// 202b9877-5a25-46e3-a763-e20791b5****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The public key that is used to encrypt key material.
	//
	// The public key is Base64-encoded.
	//
	// example:
	//
	// MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlls4uIBxD0GG84C+lGBO6Dhpf1J3XimC6cPmPNaKKJMOzoX4tD+C+r7aZv8lZ3vnPfxuxvy/YwG+whUxTEEFUdqJTOIzhPfYucupqKM92crVHIuG+xtMVeHKjyTr+UrtKCsQikqHT+19yDRN/RMoo2HUx0gmEnRyXd8t3JyUXun9FdoxKA08GrsV7nodb9ZsoBLhnev7tTLcXvLyKW6XG1ZQCQm6dPnbnwLeDXR7uK0Lqn9PM28mBIdaiQUQxj2XbM1CoJA+JiyVX3Ptdb+4rqukb4Rb05B80Bs9xV/cf7FIku08l7xGhrGiQFq+DFXwQWtwihXHZxz3LhldU+4ZPwID****
	PublicKey *string `json:"PublicKey,omitempty" xml:"PublicKey,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 8cdf51fd-bcd6-d79a-0ef4-e52c9b5466dc
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The time when the token expires.
	//
	// example:
	//
	// 2018-01-25T00:01:02Z
	TokenExpireTime *string `json:"TokenExpireTime,omitempty" xml:"TokenExpireTime,omitempty"`
}

func (GetParametersForImportResponseBody) GoString

func (*GetParametersForImportResponseBody) SetImportToken

func (*GetParametersForImportResponseBody) SetKeyId

func (*GetParametersForImportResponseBody) SetPublicKey

func (*GetParametersForImportResponseBody) SetRequestId

func (*GetParametersForImportResponseBody) SetTokenExpireTime

func (GetParametersForImportResponseBody) String

type GetPublicKeyRequest

type GetPublicKeyRequest struct {
	// The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see [Use aliases](~~68522~~).
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The globally unique ID of the CMK version.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
}

func (GetPublicKeyRequest) GoString

func (s GetPublicKeyRequest) GoString() string

func (*GetPublicKeyRequest) SetKeyId

func (*GetPublicKeyRequest) SetKeyVersionId

func (s *GetPublicKeyRequest) SetKeyVersionId(v string) *GetPublicKeyRequest

func (GetPublicKeyRequest) String

func (s GetPublicKeyRequest) String() string

type GetPublicKeyResponse

type GetPublicKeyResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetPublicKeyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetPublicKeyResponse) GoString

func (s GetPublicKeyResponse) GoString() string

func (*GetPublicKeyResponse) SetBody

func (*GetPublicKeyResponse) SetHeaders

func (s *GetPublicKeyResponse) SetHeaders(v map[string]*string) *GetPublicKeyResponse

func (*GetPublicKeyResponse) SetStatusCode

func (s *GetPublicKeyResponse) SetStatusCode(v int32) *GetPublicKeyResponse

func (GetPublicKeyResponse) String

func (s GetPublicKeyResponse) String() string

type GetPublicKeyResponseBody

type GetPublicKeyResponseBody struct {
	// The globally unique ID of the CMK.
	//
	// >  If you set the KeyId parameter to the alias of the CMK, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The version of the CMK that is used to encrypt the plaintext.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The public key returned in the PEM format.
	//
	// example:
	//
	// -----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs5Yu9AEgATN2/e3nUz1K\nEy6ng8MSPutcse2/VECG/NUF9C6D4IsJ64ShzY3dcn34WYzTOe916eMJFxyrNrSw\nHtc4UOR5AvaoRrfpgu2uq+i70/ZXrWL+pGb1hgZV8cWheIHMxwrR3IiQlM5qN7EF\n9BdyWtyBfUGsp0Bn1VqlPc5G0x0a9xU2z9YtP994yDenNVIoIQ6Cov1lIEuwXAb2\n7boC41ePXwD0JWt41sP+rgCmpjBx00puIG+IlnoReEgI1ZGYmK98GgA/XzmNjZiD\nyvXJZAcM33Ue85+PkR5iHTtSEbi4QAoqpJabprUzz3Fin2j1dRrcacxGb7p31A9c\nJQIDAQAB\n-----END PUBLIC KEY-----\n
	PublicKey *string `json:"PublicKey,omitempty" xml:"PublicKey,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 475f1620-b9d3-4d35-b5c6-3fbdd941423d
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetPublicKeyResponseBody) GoString

func (s GetPublicKeyResponseBody) GoString() string

func (*GetPublicKeyResponseBody) SetKeyId

func (*GetPublicKeyResponseBody) SetKeyVersionId

func (*GetPublicKeyResponseBody) SetPublicKey

func (*GetPublicKeyResponseBody) SetRequestId

func (GetPublicKeyResponseBody) String

func (s GetPublicKeyResponseBody) String() string

type GetRandomPasswordRequest

type GetRandomPasswordRequest struct {
	// The characters that are not included in the password to be generated.
	//
	// Valid values:
	//
	// ` Valid characters: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ! \"#$%&\"()*+,-. /:;<=>? @[\] your_project_id} ~  `.
	//
	// This parameter is empty by default.
	//
	// example:
	//
	// ABCabc
	ExcludeCharacters *string `json:"ExcludeCharacters,omitempty" xml:"ExcludeCharacters,omitempty"`
	// Specifies whether to exclude lowercase letters.
	//
	// Valid values:
	//
	// 	- true
	//
	// 	- false
	//
	// example:
	//
	// false
	ExcludeLowercase *string `json:"ExcludeLowercase,omitempty" xml:"ExcludeLowercase,omitempty"`
	// Specifies whether to exclude digits.
	//
	// Valid values:
	//
	// 	- true
	//
	// 	- false
	//
	// example:
	//
	// false
	ExcludeNumbers *string `json:"ExcludeNumbers,omitempty" xml:"ExcludeNumbers,omitempty"`
	// Specifies whether to exclude special characters.
	//
	// Valid values:
	//
	// 	- true
	//
	// 	- false
	//
	// example:
	//
	// false
	ExcludePunctuation *string `json:"ExcludePunctuation,omitempty" xml:"ExcludePunctuation,omitempty"`
	// Specifies whether to exclude uppercase letters.
	//
	// Valid values:
	//
	// 	- true
	//
	// 	- false
	//
	// example:
	//
	// false
	ExcludeUppercase *string `json:"ExcludeUppercase,omitempty" xml:"ExcludeUppercase,omitempty"`
	// The number of bytes that the password to be generated contains.
	//
	// Valid values: 8 to 128.
	//
	// Default value: 32
	//
	// example:
	//
	// 32
	PasswordLength *string `json:"PasswordLength,omitempty" xml:"PasswordLength,omitempty"`
	// Specifies whether to include all the preceding character types.
	//
	// Valid values:
	//
	// 	- true
	//
	// 	- false
	//
	// example:
	//
	// true
	RequireEachIncludedType *string `json:"RequireEachIncludedType,omitempty" xml:"RequireEachIncludedType,omitempty"`
}

func (GetRandomPasswordRequest) GoString

func (s GetRandomPasswordRequest) GoString() string

func (*GetRandomPasswordRequest) SetExcludeCharacters

func (s *GetRandomPasswordRequest) SetExcludeCharacters(v string) *GetRandomPasswordRequest

func (*GetRandomPasswordRequest) SetExcludeLowercase

func (s *GetRandomPasswordRequest) SetExcludeLowercase(v string) *GetRandomPasswordRequest

func (*GetRandomPasswordRequest) SetExcludeNumbers

func (s *GetRandomPasswordRequest) SetExcludeNumbers(v string) *GetRandomPasswordRequest

func (*GetRandomPasswordRequest) SetExcludePunctuation

func (s *GetRandomPasswordRequest) SetExcludePunctuation(v string) *GetRandomPasswordRequest

func (*GetRandomPasswordRequest) SetExcludeUppercase

func (s *GetRandomPasswordRequest) SetExcludeUppercase(v string) *GetRandomPasswordRequest

func (*GetRandomPasswordRequest) SetPasswordLength

func (s *GetRandomPasswordRequest) SetPasswordLength(v string) *GetRandomPasswordRequest

func (*GetRandomPasswordRequest) SetRequireEachIncludedType

func (s *GetRandomPasswordRequest) SetRequireEachIncludedType(v string) *GetRandomPasswordRequest

func (GetRandomPasswordRequest) String

func (s GetRandomPasswordRequest) String() string

type GetRandomPasswordResponse

type GetRandomPasswordResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetRandomPasswordResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetRandomPasswordResponse) GoString

func (s GetRandomPasswordResponse) GoString() string

func (*GetRandomPasswordResponse) SetBody

func (*GetRandomPasswordResponse) SetHeaders

func (*GetRandomPasswordResponse) SetStatusCode

func (GetRandomPasswordResponse) String

func (s GetRandomPasswordResponse) String() string

type GetRandomPasswordResponseBody

type GetRandomPasswordResponseBody struct {
	// The generated random password.
	//
	// example:
	//
	// IxGn>NMmNB(y?iZ<Yc,_H/{2GC\"U****
	RandomPassword *string `json:"RandomPassword,omitempty" xml:"RandomPassword,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 6b0cbe25-5e33-467e-972e-7a83c6c97604
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetRandomPasswordResponseBody) GoString

func (*GetRandomPasswordResponseBody) SetRandomPassword

func (*GetRandomPasswordResponseBody) SetRequestId

func (GetRandomPasswordResponseBody) String

type GetSecretPolicyRequest added in v3.2.0

type GetSecretPolicyRequest struct {
	PolicyName *string `json:"PolicyName,omitempty" xml:"PolicyName,omitempty"`
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (GetSecretPolicyRequest) GoString added in v3.2.0

func (s GetSecretPolicyRequest) GoString() string

func (*GetSecretPolicyRequest) SetPolicyName added in v3.2.0

func (*GetSecretPolicyRequest) SetSecretName added in v3.2.0

func (GetSecretPolicyRequest) String added in v3.2.0

func (s GetSecretPolicyRequest) String() string

type GetSecretPolicyResponse added in v3.2.0

type GetSecretPolicyResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetSecretPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetSecretPolicyResponse) GoString added in v3.2.0

func (s GetSecretPolicyResponse) GoString() string

func (*GetSecretPolicyResponse) SetBody added in v3.2.0

func (*GetSecretPolicyResponse) SetHeaders added in v3.2.0

func (*GetSecretPolicyResponse) SetStatusCode added in v3.2.0

func (GetSecretPolicyResponse) String added in v3.2.0

func (s GetSecretPolicyResponse) String() string

type GetSecretPolicyResponseBody added in v3.2.0

type GetSecretPolicyResponseBody struct {
	Policy    *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (GetSecretPolicyResponseBody) GoString added in v3.2.0

func (s GetSecretPolicyResponseBody) GoString() string

func (*GetSecretPolicyResponseBody) SetPolicy added in v3.2.0

func (*GetSecretPolicyResponseBody) SetRequestId added in v3.2.0

func (GetSecretPolicyResponseBody) String added in v3.2.0

type GetSecretValueRequest

type GetSecretValueRequest struct {
	// Specifies whether to obtain the extended configuration of the secret. Valid values:
	//
	// 	- true
	//
	// 	- false: This is the default value.
	//
	// >  This parameter is ignored for a generic secret.
	//
	// example:
	//
	// true
	FetchExtendedConfig *bool `json:"FetchExtendedConfig,omitempty" xml:"FetchExtendedConfig,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The version number of the secret value. If you specify this parameter, Secrets Manager returns the secret value of the specified version.
	//
	// >  This parameter is ignored for a managed ApsaraDB RDS secret, a managed RAM secret, or a managed ECS secret.
	//
	// example:
	//
	// 00000000000000000000000000000001
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
	// The stage label that marks the secret version. If you specify this parameter, Secrets Manager returns the secret value of the version that is marked with the specified stage label.
	//
	// Default value: ACSCurrent.
	//
	// >  For a managed ApsaraDB RDS secret, a managed RAM secret, or a managed ECS secret, Secrets Manager can return only the secret value of the version marked with ACSPrevious or ACSCurrent.
	//
	// example:
	//
	// ACSCurrent
	VersionStage *string `json:"VersionStage,omitempty" xml:"VersionStage,omitempty"`
}

func (GetSecretValueRequest) GoString

func (s GetSecretValueRequest) GoString() string

func (*GetSecretValueRequest) SetFetchExtendedConfig

func (s *GetSecretValueRequest) SetFetchExtendedConfig(v bool) *GetSecretValueRequest

func (*GetSecretValueRequest) SetSecretName

func (s *GetSecretValueRequest) SetSecretName(v string) *GetSecretValueRequest

func (*GetSecretValueRequest) SetVersionId

func (*GetSecretValueRequest) SetVersionStage

func (s *GetSecretValueRequest) SetVersionStage(v string) *GetSecretValueRequest

func (GetSecretValueRequest) String

func (s GetSecretValueRequest) String() string

type GetSecretValueResponse

type GetSecretValueResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetSecretValueResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetSecretValueResponse) GoString

func (s GetSecretValueResponse) GoString() string

func (*GetSecretValueResponse) SetBody

func (*GetSecretValueResponse) SetHeaders

func (*GetSecretValueResponse) SetStatusCode

func (GetSecretValueResponse) String

func (s GetSecretValueResponse) String() string

type GetSecretValueResponseBody

type GetSecretValueResponseBody struct {
	// Indicates whether automatic rotation is enabled. Valid values:
	//
	// 	- Enabled: indicates that automatic rotation is enabled.
	//
	// 	- Disabled: indicates that automatic rotation is disabled.
	//
	// 	- Invalid: indicates that the status of automatic rotation is abnormal. In this case, Secrets Manager cannot automatically rotate the secret.
	//
	// >  This parameter is returned only for a managed ApsaraDB RDS secret, a managed RAM secret, or a managed ECS secret.
	//
	// example:
	//
	// Enabled
	AutomaticRotation *string `json:"AutomaticRotation,omitempty" xml:"AutomaticRotation,omitempty"`
	// The time when the secret was created.
	//
	// example:
	//
	// 2020-02-21T15:39:26Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The extended configuration of the secret.
	//
	// >  This parameter is returned if you set the FetchExtendedConfig parameter to true. This parameter is returned only for a managed ApsaraDB RDS secret, a managed RAM secret, or a managed ECS secret.
	//
	// example:
	//
	// {\"SecretSubType\":\"SingleUser\", \"DBInstanceId\":\"rm-uf667446pc955****\",  \"CustomData\":{} }
	ExtendedConfig *string `json:"ExtendedConfig,omitempty" xml:"ExtendedConfig,omitempty"`
	// The time when the last rotation was performed.
	//
	// >  This parameter is returned if the secret was rotated.
	//
	// example:
	//
	// 2020-07-05T08:22:03Z
	LastRotationDate *string `json:"LastRotationDate,omitempty" xml:"LastRotationDate,omitempty"`
	// The time when the next rotation will be performed.
	//
	// >  This parameter is returned if automatic rotation is enabled.
	//
	// example:
	//
	// 2020-07-06T18:22:03Z
	NextRotationDate *string `json:"NextRotationDate,omitempty" xml:"NextRotationDate,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 6a3e9c36-1150-4881-84d3-eb8672fcafad
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The interval for automatic rotation.
	//
	// The value is in the `integer[unit]` format. The `unit` field has a fixed value of s. For example, if the value is 604800s, automatic rotation is performed at a 7-day interval.
	//
	// >  This parameter is returned if automatic rotation is enabled.
	//
	// example:
	//
	// 604800s
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
	// The secret value. Secrets Manager decrypts the ciphertext of the secret value and returns the plaintext of the secret value in this parameter.
	//
	// 	- For a generic secret, the secret value of the specified version is returned.
	//
	// 	- For a managed ApsaraDB RDS secret, the value is returned in the following format:`{"AccountName":"","AccountPassword":""}` .
	//
	// 	- For a managed RAM secret, the secret value is returned in the following format: `{"AccessKeyId":"Adfdsfd","AccessKeySecret":"fdsfdsf","GenerateTimestamp": "2016-03-25T10:42:40Z"}`.
	//
	// 	- For a managed ECS secret, the secret value is returned in one of the following formats:
	//
	//     	- `{"UserName":"root","Password":"H5asdasdsads****"}`: The secret value is returned in this format if the ECS secret is a password.
	//
	//     	- `{"UserName":"root","PublicKey":"ssh-rsa ****mKwnVix9YTFY9Rs= imported-openssh-key","PrivateKey": "d6bee1cb-2e14-4277-ba6b-73786b21****"}`: The secret value is returned in this format is the ECS secret is a pair of SSH keys. The private key is in the Privacy Enhanced Mail (PEM) format.
	//
	// example:
	//
	// testdata1
	SecretData *string `json:"SecretData,omitempty" xml:"SecretData,omitempty"`
	// The type of the secret value. Valid values:
	//
	// 	- text
	//
	// 	- binary
	//
	// example:
	//
	// binary
	SecretDataType *string `json:"SecretDataType,omitempty" xml:"SecretDataType,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The type of the secret. Valid values:
	//
	// 	- Generic: indicates a generic secret.
	//
	// 	- Rds: indicates a managed ApsaraDB RDS secret.
	//
	// 	- RAMCredentials: indicates a managed RAM secret.
	//
	// 	- ECS: indicates a managed ECS secret.
	//
	// example:
	//
	// Generic
	SecretType *string `json:"SecretType,omitempty" xml:"SecretType,omitempty"`
	// The version number of the secret value.
	//
	// example:
	//
	// 00000000000000000000000000000001
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
	// The stage labels that mark the secret versions.
	VersionStages *GetSecretValueResponseBodyVersionStages `json:"VersionStages,omitempty" xml:"VersionStages,omitempty" type:"Struct"`
}

func (GetSecretValueResponseBody) GoString

func (s GetSecretValueResponseBody) GoString() string

func (*GetSecretValueResponseBody) SetAutomaticRotation

func (s *GetSecretValueResponseBody) SetAutomaticRotation(v string) *GetSecretValueResponseBody

func (*GetSecretValueResponseBody) SetCreateTime

func (*GetSecretValueResponseBody) SetExtendedConfig

func (*GetSecretValueResponseBody) SetLastRotationDate

func (*GetSecretValueResponseBody) SetNextRotationDate

func (*GetSecretValueResponseBody) SetRequestId

func (*GetSecretValueResponseBody) SetRotationInterval

func (*GetSecretValueResponseBody) SetSecretData

func (*GetSecretValueResponseBody) SetSecretDataType

func (*GetSecretValueResponseBody) SetSecretName

func (*GetSecretValueResponseBody) SetSecretType

func (*GetSecretValueResponseBody) SetVersionId

func (*GetSecretValueResponseBody) SetVersionStages

func (GetSecretValueResponseBody) String

type GetSecretValueResponseBodyVersionStages

type GetSecretValueResponseBodyVersionStages struct {
	VersionStage []*string `json:"VersionStage,omitempty" xml:"VersionStage,omitempty" type:"Repeated"`
}

func (GetSecretValueResponseBodyVersionStages) GoString

func (*GetSecretValueResponseBodyVersionStages) SetVersionStage

func (GetSecretValueResponseBodyVersionStages) String

type ImportKeyMaterialRequest

type ImportKeyMaterialRequest struct {
	// Use **GetParametersForImport*	- the Returned public key and the base64-encoded key material.
	//
	// example:
	//
	// bCPZx7I6v6KXsqEpr2OXKxuj2CCRtKdwp75Bw+BGncYqBdfjFBYRtOE6HRlT0oeiRDWzwnw9OA54OL36smDJrq4Lo9x0CyYDiuKnRkcKtMtlzW0din7Pd7IlZWWRdVueiw2qpzl7PkUWQGTdsdbzpfJJQ+qj/cRIrk/E83UGyeyytSpgnb+lu0xEYcPajRyWNsbi98N3pqqQzHXNNHO2NJqHlnQgglqTiBEjkGeKFhfKmTc3vjulIdVa3EaVIN6lwWfgx+UUYSrvbA77WDYKlDsZ4SbK2/T7za9Tp1qU7Ynqba7OKGVVj7PMbiaO80AxWZnjUMYCgEp5w7V+seOXqw==
	EncryptedKeyMaterial *string `json:"EncryptedKeyMaterial,omitempty" xml:"EncryptedKeyMaterial,omitempty"`
	// By calling **GetParametersForImport*	- the import token.
	//
	// example:
	//
	// Base64String
	ImportToken *string `json:"ImportToken,omitempty" xml:"ImportToken,omitempty"`
	// The ID of the CMK to be imported.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The time when the key material expires.
	//
	// If this parameter is not specified or set this parameter to 0, the key material does not expire.
	//
	// >  The value cannot be earlier than the time when the API is called (based on the server time).
	//
	// example:
	//
	// 0
	KeyMaterialExpireUnix *int64 `json:"KeyMaterialExpireUnix,omitempty" xml:"KeyMaterialExpireUnix,omitempty"`
}

func (ImportKeyMaterialRequest) GoString

func (s ImportKeyMaterialRequest) GoString() string

func (*ImportKeyMaterialRequest) SetEncryptedKeyMaterial

func (s *ImportKeyMaterialRequest) SetEncryptedKeyMaterial(v string) *ImportKeyMaterialRequest

func (*ImportKeyMaterialRequest) SetImportToken

func (*ImportKeyMaterialRequest) SetKeyId

func (*ImportKeyMaterialRequest) SetKeyMaterialExpireUnix

func (s *ImportKeyMaterialRequest) SetKeyMaterialExpireUnix(v int64) *ImportKeyMaterialRequest

func (ImportKeyMaterialRequest) String

func (s ImportKeyMaterialRequest) String() string

type ImportKeyMaterialResponse

type ImportKeyMaterialResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ImportKeyMaterialResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ImportKeyMaterialResponse) GoString

func (s ImportKeyMaterialResponse) GoString() string

func (*ImportKeyMaterialResponse) SetBody

func (*ImportKeyMaterialResponse) SetHeaders

func (*ImportKeyMaterialResponse) SetStatusCode

func (ImportKeyMaterialResponse) String

func (s ImportKeyMaterialResponse) String() string

type ImportKeyMaterialResponseBody

type ImportKeyMaterialResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// ec1017cf-ead4-f3ca-babc-c3b34f3dbecb
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ImportKeyMaterialResponseBody) GoString

func (*ImportKeyMaterialResponseBody) SetRequestId

func (ImportKeyMaterialResponseBody) String

type ListAliasesByKeyIdRequest

type ListAliasesByKeyIdRequest struct {
	// The globally unique ID of the CMK.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The number of the page to return.
	//
	// Valid values: an integer that is greater than 0.
	//
	// Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries to return on each page.
	//
	// Valid values: 0 to 101.
	//
	// Default value: 10
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListAliasesByKeyIdRequest) GoString

func (s ListAliasesByKeyIdRequest) GoString() string

func (*ListAliasesByKeyIdRequest) SetKeyId

func (*ListAliasesByKeyIdRequest) SetPageNumber

func (*ListAliasesByKeyIdRequest) SetPageSize

func (ListAliasesByKeyIdRequest) String

func (s ListAliasesByKeyIdRequest) String() string

type ListAliasesByKeyIdResponse

type ListAliasesByKeyIdResponse struct {
	Headers    map[string]*string              `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                          `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListAliasesByKeyIdResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListAliasesByKeyIdResponse) GoString

func (s ListAliasesByKeyIdResponse) GoString() string

func (*ListAliasesByKeyIdResponse) SetBody

func (*ListAliasesByKeyIdResponse) SetHeaders

func (*ListAliasesByKeyIdResponse) SetStatusCode

func (ListAliasesByKeyIdResponse) String

type ListAliasesByKeyIdResponseBody

type ListAliasesByKeyIdResponseBody struct {
	// An array that consists of aliases.
	Aliases *ListAliasesByKeyIdResponseBodyAliases `json:"Aliases,omitempty" xml:"Aliases,omitempty" type:"Struct"`
	// The page number of the returned page.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries returned per page.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 1b57992c-834b-4811-a889-f8bac1ba0353
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of returned CMKs.
	//
	// example:
	//
	// 1
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListAliasesByKeyIdResponseBody) GoString

func (*ListAliasesByKeyIdResponseBody) SetPageNumber

func (*ListAliasesByKeyIdResponseBody) SetPageSize

func (*ListAliasesByKeyIdResponseBody) SetRequestId

func (*ListAliasesByKeyIdResponseBody) SetTotalCount

func (ListAliasesByKeyIdResponseBody) String

type ListAliasesByKeyIdResponseBodyAliases

type ListAliasesByKeyIdResponseBodyAliases struct {
	Alias []*ListAliasesByKeyIdResponseBodyAliasesAlias `json:"Alias,omitempty" xml:"Alias,omitempty" type:"Repeated"`
}

func (ListAliasesByKeyIdResponseBodyAliases) GoString

func (ListAliasesByKeyIdResponseBodyAliases) String

type ListAliasesByKeyIdResponseBodyAliasesAlias

type ListAliasesByKeyIdResponseBodyAliasesAlias struct {
	// The Alibaba Cloud Resource Name (ARN) of the alias.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:123456:alias/ExampleAlias1
	AliasArn *string `json:"AliasArn,omitempty" xml:"AliasArn,omitempty"`
	// The ID of the alias.
	//
	// example:
	//
	// alias/ExampleAlias1
	AliasName *string `json:"AliasName,omitempty" xml:"AliasName,omitempty"`
	// The CMK to which an alias is bound.
	//
	// example:
	//
	// 08c33a6f-4e0a-4a1b-a3fa-7ddfa1d4****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (ListAliasesByKeyIdResponseBodyAliasesAlias) GoString

func (*ListAliasesByKeyIdResponseBodyAliasesAlias) SetAliasArn

func (*ListAliasesByKeyIdResponseBodyAliasesAlias) SetAliasName

func (*ListAliasesByKeyIdResponseBodyAliasesAlias) SetKeyId

func (ListAliasesByKeyIdResponseBodyAliasesAlias) String

type ListAliasesRequest

type ListAliasesRequest struct {
	// The number of the page to return.
	//
	// Pages start from page 1.
	//
	// Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries to return on each page.
	//
	// Valid values: 0 to 100.
	//
	// Default value: 10.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListAliasesRequest) GoString

func (s ListAliasesRequest) GoString() string

func (*ListAliasesRequest) SetPageNumber

func (s *ListAliasesRequest) SetPageNumber(v int32) *ListAliasesRequest

func (*ListAliasesRequest) SetPageSize

func (s *ListAliasesRequest) SetPageSize(v int32) *ListAliasesRequest

func (ListAliasesRequest) String

func (s ListAliasesRequest) String() string

type ListAliasesResponse

type ListAliasesResponse struct {
	Headers    map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListAliasesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListAliasesResponse) GoString

func (s ListAliasesResponse) GoString() string

func (*ListAliasesResponse) SetBody

func (*ListAliasesResponse) SetHeaders

func (s *ListAliasesResponse) SetHeaders(v map[string]*string) *ListAliasesResponse

func (*ListAliasesResponse) SetStatusCode

func (s *ListAliasesResponse) SetStatusCode(v int32) *ListAliasesResponse

func (ListAliasesResponse) String

func (s ListAliasesResponse) String() string

type ListAliasesResponseBody

type ListAliasesResponseBody struct {
	// The alias of the user.
	Aliases *ListAliasesResponseBodyAliases `json:"Aliases,omitempty" xml:"Aliases,omitempty" type:"Struct"`
	// The page number of the returned page.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries returned per page.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 1b57992c-834b-4811-a889-f8bac1ba0353
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of returned aliases.
	//
	// example:
	//
	// 1
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListAliasesResponseBody) GoString

func (s ListAliasesResponseBody) GoString() string

func (*ListAliasesResponseBody) SetAliases

func (*ListAliasesResponseBody) SetPageNumber

func (*ListAliasesResponseBody) SetPageSize

func (*ListAliasesResponseBody) SetRequestId

func (*ListAliasesResponseBody) SetTotalCount

func (ListAliasesResponseBody) String

func (s ListAliasesResponseBody) String() string

type ListAliasesResponseBodyAliases

type ListAliasesResponseBodyAliases struct {
	Alias []*ListAliasesResponseBodyAliasesAlias `json:"Alias,omitempty" xml:"Alias,omitempty" type:"Repeated"`
}

func (ListAliasesResponseBodyAliases) GoString

func (*ListAliasesResponseBodyAliases) SetAlias

func (ListAliasesResponseBodyAliases) String

type ListAliasesResponseBodyAliasesAlias

type ListAliasesResponseBodyAliasesAlias struct {
	// The Alibaba Cloud Resource Name (ARN) of the alias.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:123456:alias/ExampleAlias1
	AliasArn *string `json:"AliasArn,omitempty" xml:"AliasArn,omitempty"`
	// The ID of the alias.
	//
	// example:
	//
	// alias/ExampleAlias1
	AliasName *string `json:"AliasName,omitempty" xml:"AliasName,omitempty"`
	// The CMK to which the alias belongs.
	//
	// example:
	//
	// 08c33a6f-4e0a-4a1b-a3fa-7ddfa1d****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (ListAliasesResponseBodyAliasesAlias) GoString

func (*ListAliasesResponseBodyAliasesAlias) SetAliasArn

func (*ListAliasesResponseBodyAliasesAlias) SetAliasName

func (*ListAliasesResponseBodyAliasesAlias) SetKeyId

func (ListAliasesResponseBodyAliasesAlias) String

type ListApplicationAccessPointsRequest added in v3.1.0

type ListApplicationAccessPointsRequest struct {
	// The page number. Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries per page. Valid values: 1 to 100. Default value: 20.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListApplicationAccessPointsRequest) GoString added in v3.1.0

func (*ListApplicationAccessPointsRequest) SetPageNumber added in v3.1.0

func (*ListApplicationAccessPointsRequest) SetPageSize added in v3.1.0

func (ListApplicationAccessPointsRequest) String added in v3.1.0

type ListApplicationAccessPointsResponse added in v3.1.0

type ListApplicationAccessPointsResponse struct {
	Headers    map[string]*string                       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListApplicationAccessPointsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListApplicationAccessPointsResponse) GoString added in v3.1.0

func (*ListApplicationAccessPointsResponse) SetBody added in v3.1.0

func (*ListApplicationAccessPointsResponse) SetHeaders added in v3.1.0

func (*ListApplicationAccessPointsResponse) SetStatusCode added in v3.1.0

func (ListApplicationAccessPointsResponse) String added in v3.1.0

type ListApplicationAccessPointsResponseBody added in v3.1.0

type ListApplicationAccessPointsResponseBody struct {
	// A list of AAPs.
	ApplicationAccessPoints *ListApplicationAccessPointsResponseBodyApplicationAccessPoints `json:"ApplicationAccessPoints,omitempty" xml:"ApplicationAccessPoints,omitempty" type:"Struct"`
	// The page number.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries per page.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// bcfefe15-46f0-44a3-bd96-3d422474b71a
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of entries returned.
	//
	// example:
	//
	// 1
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListApplicationAccessPointsResponseBody) GoString added in v3.1.0

func (*ListApplicationAccessPointsResponseBody) SetApplicationAccessPoints added in v3.1.0

func (*ListApplicationAccessPointsResponseBody) SetPageNumber added in v3.1.0

func (*ListApplicationAccessPointsResponseBody) SetPageSize added in v3.1.0

func (*ListApplicationAccessPointsResponseBody) SetRequestId added in v3.1.0

func (*ListApplicationAccessPointsResponseBody) SetTotalCount added in v3.1.0

func (ListApplicationAccessPointsResponseBody) String added in v3.1.0

type ListApplicationAccessPointsResponseBodyApplicationAccessPoints added in v3.1.0

type ListApplicationAccessPointsResponseBodyApplicationAccessPoints struct {
	ApplicationAccessPoint []*ListApplicationAccessPointsResponseBodyApplicationAccessPointsApplicationAccessPoint `json:"ApplicationAccessPoint,omitempty" xml:"ApplicationAccessPoint,omitempty" type:"Repeated"`
}

func (ListApplicationAccessPointsResponseBodyApplicationAccessPoints) GoString added in v3.1.0

func (ListApplicationAccessPointsResponseBodyApplicationAccessPoints) String added in v3.1.0

type ListApplicationAccessPointsResponseBodyApplicationAccessPointsApplicationAccessPoint added in v3.1.0

type ListApplicationAccessPointsResponseBodyApplicationAccessPointsApplicationAccessPoint struct {
	// The authentication method.
	//
	// example:
	//
	// ClientKey
	AuthenticationMethod *string `json:"AuthenticationMethod,omitempty" xml:"AuthenticationMethod,omitempty"`
	// The name of the AAP.
	//
	// example:
	//
	// aap_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (ListApplicationAccessPointsResponseBodyApplicationAccessPointsApplicationAccessPoint) GoString added in v3.1.0

func (*ListApplicationAccessPointsResponseBodyApplicationAccessPointsApplicationAccessPoint) SetAuthenticationMethod added in v3.1.0

func (*ListApplicationAccessPointsResponseBodyApplicationAccessPointsApplicationAccessPoint) SetName added in v3.1.0

func (ListApplicationAccessPointsResponseBodyApplicationAccessPointsApplicationAccessPoint) String added in v3.1.0

type ListClientKeysRequest added in v3.1.0

type ListClientKeysRequest struct {
	// The name of the application access point (AAP).
	//
	// example:
	//
	// aap_test
	AapName *string `json:"AapName,omitempty" xml:"AapName,omitempty"`
}

func (ListClientKeysRequest) GoString added in v3.1.0

func (s ListClientKeysRequest) GoString() string

func (*ListClientKeysRequest) SetAapName added in v3.1.0

func (ListClientKeysRequest) String added in v3.1.0

func (s ListClientKeysRequest) String() string

type ListClientKeysResponse added in v3.1.0

type ListClientKeysResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListClientKeysResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListClientKeysResponse) GoString added in v3.1.0

func (s ListClientKeysResponse) GoString() string

func (*ListClientKeysResponse) SetBody added in v3.1.0

func (*ListClientKeysResponse) SetHeaders added in v3.1.0

func (*ListClientKeysResponse) SetStatusCode added in v3.1.0

func (ListClientKeysResponse) String added in v3.1.0

func (s ListClientKeysResponse) String() string

type ListClientKeysResponseBody added in v3.1.0

type ListClientKeysResponseBody struct {
	// A list of client keys.
	ClientKeys []*ListClientKeysResponseBodyClientKeys `json:"ClientKeys,omitempty" xml:"ClientKeys,omitempty" type:"Repeated"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 2312e45f-b2fa-4c34-ad94-3eca50932916
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ListClientKeysResponseBody) GoString added in v3.1.0

func (s ListClientKeysResponseBody) GoString() string

func (*ListClientKeysResponseBody) SetClientKeys added in v3.1.0

func (*ListClientKeysResponseBody) SetRequestId added in v3.1.0

func (ListClientKeysResponseBody) String added in v3.1.0

type ListClientKeysResponseBodyClientKeys added in v3.1.0

type ListClientKeysResponseBodyClientKeys struct {
	// The name of the AAP.
	//
	// example:
	//
	// aap_test
	AapName *string `json:"AapName,omitempty" xml:"AapName,omitempty"`
	// The ID of the client key.
	//
	// example:
	//
	// KAAP.66abf237-63f6-4625-b8cf-47e1086e****
	ClientKeyId *string `json:"ClientKeyId,omitempty" xml:"ClientKeyId,omitempty"`
	// The time when the client key was created.
	//
	// example:
	//
	// 2023-08-31T09:14:38Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The private key algorithm of the client key.
	//
	// example:
	//
	// RSA_2048
	KeyAlgorithm *string `json:"KeyAlgorithm,omitempty" xml:"KeyAlgorithm,omitempty"`
	// The provider of the client key.
	//
	// Currently, only KMS is supported. The value is fixed as KMS_PROVIDED.
	//
	// example:
	//
	// KMS_PROVIDED
	KeyOrigin *string `json:"KeyOrigin,omitempty" xml:"KeyOrigin,omitempty"`
	// The end of the validity period of the client key.
	//
	// example:
	//
	// 2028-08-31T17:14:33Z
	NotAfter *string `json:"NotAfter,omitempty" xml:"NotAfter,omitempty"`
	// The beginning of the validity period of the client key.
	//
	// example:
	//
	// 2023-08-31T17:14:33Z
	NotBefore *string `json:"NotBefore,omitempty" xml:"NotBefore,omitempty"`
	// The public key of the client key.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----\nMIIDcjCCAlqgAwIBAgIQT/sAVRxwYp54mrw****-----END CERTIFICATE-----
	PublicKeyData *string `json:"PublicKeyData,omitempty" xml:"PublicKeyData,omitempty"`
}

func (ListClientKeysResponseBodyClientKeys) GoString added in v3.1.0

func (*ListClientKeysResponseBodyClientKeys) SetAapName added in v3.1.0

func (*ListClientKeysResponseBodyClientKeys) SetClientKeyId added in v3.1.0

func (*ListClientKeysResponseBodyClientKeys) SetCreateTime added in v3.1.0

func (*ListClientKeysResponseBodyClientKeys) SetKeyAlgorithm added in v3.1.0

func (*ListClientKeysResponseBodyClientKeys) SetKeyOrigin added in v3.1.0

func (*ListClientKeysResponseBodyClientKeys) SetNotAfter added in v3.1.0

func (*ListClientKeysResponseBodyClientKeys) SetNotBefore added in v3.1.0

func (*ListClientKeysResponseBodyClientKeys) SetPublicKeyData added in v3.1.0

func (ListClientKeysResponseBodyClientKeys) String added in v3.1.0

type ListKeyVersionsRequest

type ListKeyVersionsRequest struct {
	// The globally unique ID of the CMK. You can also set this parameter to an alias that is bound to the CMK. For more information, see [Use aliases](~~68522~~).
	//
	// example:
	//
	// 0b30658a-ed1a-4922-b8f7-a673ca9c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The number of the page to return.
	//
	// Pages start from page 1.
	//
	// Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries to return on each page.
	//
	// Valid values: 0 to 101.
	//
	// Default value: 10.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListKeyVersionsRequest) GoString

func (s ListKeyVersionsRequest) GoString() string

func (*ListKeyVersionsRequest) SetKeyId

func (*ListKeyVersionsRequest) SetPageNumber

func (*ListKeyVersionsRequest) SetPageSize

func (ListKeyVersionsRequest) String

func (s ListKeyVersionsRequest) String() string

type ListKeyVersionsResponse

type ListKeyVersionsResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListKeyVersionsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListKeyVersionsResponse) GoString

func (s ListKeyVersionsResponse) GoString() string

func (*ListKeyVersionsResponse) SetBody

func (*ListKeyVersionsResponse) SetHeaders

func (*ListKeyVersionsResponse) SetStatusCode

func (ListKeyVersionsResponse) String

func (s ListKeyVersionsResponse) String() string

type ListKeyVersionsResponseBody

type ListKeyVersionsResponseBody struct {
	// An array that consists of key versions.
	KeyVersions *ListKeyVersionsResponseBodyKeyVersions `json:"KeyVersions,omitempty" xml:"KeyVersions,omitempty" type:"Struct"`
	// The page number of the returned page.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries returned per page.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// f71204c4-53cd-4eea-b405-653ba2db7e86
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of returned key versions.
	//
	// example:
	//
	// 3
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListKeyVersionsResponseBody) GoString

func (s ListKeyVersionsResponseBody) GoString() string

func (*ListKeyVersionsResponseBody) SetKeyVersions

func (*ListKeyVersionsResponseBody) SetPageNumber

func (*ListKeyVersionsResponseBody) SetPageSize

func (*ListKeyVersionsResponseBody) SetRequestId

func (*ListKeyVersionsResponseBody) SetTotalCount

func (ListKeyVersionsResponseBody) String

type ListKeyVersionsResponseBodyKeyVersions

type ListKeyVersionsResponseBodyKeyVersions struct {
	KeyVersion []*ListKeyVersionsResponseBodyKeyVersionsKeyVersion `json:"KeyVersion,omitempty" xml:"KeyVersion,omitempty" type:"Repeated"`
}

func (ListKeyVersionsResponseBodyKeyVersions) GoString

func (ListKeyVersionsResponseBodyKeyVersions) String

type ListKeyVersionsResponseBodyKeyVersionsKeyVersion

type ListKeyVersionsResponseBodyKeyVersionsKeyVersion struct {
	// The date and time when the CMK version was created. The time is displayed in UTC.
	//
	// example:
	//
	// 2016-03-25T10:42:40Z
	CreationDate *string `json:"CreationDate,omitempty" xml:"CreationDate,omitempty"`
	// The globally unique ID of the CMK.
	//
	// >  If you set the KeyId parameter to the alias of the CMK, the ID of the CMK to which the alias is bound is returned.
	//
	// example:
	//
	// 0b30658a-ed1a-4922-b8f7-a673ca9c****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The globally unique ID of the CMK version.
	//
	// example:
	//
	// 1e3304fd-68ac-4d5b-8886-ae5f01a1****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
}

func (ListKeyVersionsResponseBodyKeyVersionsKeyVersion) GoString

func (*ListKeyVersionsResponseBodyKeyVersionsKeyVersion) SetCreationDate

func (*ListKeyVersionsResponseBodyKeyVersionsKeyVersion) SetKeyId

func (*ListKeyVersionsResponseBodyKeyVersionsKeyVersion) SetKeyVersionId

func (ListKeyVersionsResponseBodyKeyVersionsKeyVersion) String

type ListKeysRequest

type ListKeysRequest struct {
	// The CMK filter. The filter consists of one or more key-value pairs. You can specify a maximum of 10 key-value pairs.
	//
	// 	- Key
	//
	//     	- Description: the property that you want to filter.
	//
	//     	- Type: string.
	//
	//     	- Valid values:
	//
	//         	- KeyState: the status of the CMK.
	//
	//         	- KeySpec: the type of the CMK.
	//
	//         	- KeyUsage: the usage of the CMK.
	//
	//         	- ProtectionLevel: the protection level.
	//
	//         	- CreatorType: the type of the creator.
	//
	// 	- Values
	//
	//     	- Description: the value to be included after filtering.
	//
	//     	- Format: string array.
	//
	//     	- Length: 0 to 10.
	//
	//     	- Valid values:
	//
	//         	- When Key is set to KeyState, the value can be Enabled, Disabled, PendingDeletion, or PendingImport.
	//
	//         	- When Key is set to KeySpec, the value can be Aliyun_AES\_256, Aliyun_SM4, RSA\_2048, EC_P256, EC_P256K, or EC_SM2.
	//
	//             Note: You can create CMKs of the EC_SM2 or Aliyun_SM4 type only in regions where State Cryptography Administration (SCA)-certified managed HSMs reside. For more information about the regions, see [Supported regions](~~125803~~). If your region does not support EC_SM2 or Aliyun_SM4, the two values are ignored if they are specified.
	//
	//         	- When Key is set to KeyUsage, the value can be ENCRYPT/DECRYPT or SIGN/VERIFY. ENCRYPT/DECRYPT indicates that the CMK is used to encrypt and decrypt data. SIGN/VERIFY indicates that the CMK is used to generate and verify digital signatures.
	//
	//         	- When Key is set to ProtectionLevel, the value can be SOFTWARE (software) or HSM (hardware).
	//
	//             You can set ProtectionLevel to HSM in only specific regions. For more information about the regions, see [Supported regions](~~125803~~). If your region does not support the value HSM, the value is ignored if the value is specified.
	//
	//         	- If Key is set to CreatorType, the value can be User or Service. User indicates that CMKs created by the current account are queried. Service indicates that CMKs automatically created by other cloud services authorized by the current account are queried.
	//
	// The logical relationship between different keys is AND, and the logical relationship between multiple items in the same key is OR. Example:
	//
	// `[ {"Key":"KeyState", "Values":["Enabled","Disabled"]}, {"Key":"KeyState", "Values":["PendingDeletion"]}, {"Key":"KeySpec", "Values":["Aliyun_AES_256"]}]`. In this example, the semantics are:`(KeyState=Enabled OR KeyState=Disabled OR KeyState=PendingDeletion) AND (KeySpec=Aliyun_AES_ 256)`.
	//
	// example:
	//
	// [{"Key":"KeyState", "Values":["Enabled","Disabled"]}]
	Filters *string `json:"Filters,omitempty" xml:"Filters,omitempty"`
	// The number of the page to return.
	//
	// Pages start from page 1.
	//
	// Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries to return on each page.
	//
	// Valid values: 1 to 100.
	//
	// Default value: 10
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListKeysRequest) GoString

func (s ListKeysRequest) GoString() string

func (*ListKeysRequest) SetFilters

func (s *ListKeysRequest) SetFilters(v string) *ListKeysRequest

func (*ListKeysRequest) SetPageNumber

func (s *ListKeysRequest) SetPageNumber(v int32) *ListKeysRequest

func (*ListKeysRequest) SetPageSize

func (s *ListKeysRequest) SetPageSize(v int32) *ListKeysRequest

func (ListKeysRequest) String

func (s ListKeysRequest) String() string

type ListKeysResponse

type ListKeysResponse struct {
	Headers    map[string]*string    `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListKeysResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListKeysResponse) GoString

func (s ListKeysResponse) GoString() string

func (*ListKeysResponse) SetBody

func (*ListKeysResponse) SetHeaders

func (s *ListKeysResponse) SetHeaders(v map[string]*string) *ListKeysResponse

func (*ListKeysResponse) SetStatusCode

func (s *ListKeysResponse) SetStatusCode(v int32) *ListKeysResponse

func (ListKeysResponse) String

func (s ListKeysResponse) String() string

type ListKeysResponseBody

type ListKeysResponseBody struct {
	// An array that consists of the CMKs of the current Alibaba Cloud account in the current region.
	Keys *ListKeysResponseBodyKeys `json:"Keys,omitempty" xml:"Keys,omitempty" type:"Struct"`
	// The page number of the returned page.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries returned per page.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 8252db58-2036-408c-a3d5-56e656dc2551
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of CMKs.
	//
	// example:
	//
	// 3
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListKeysResponseBody) GoString

func (s ListKeysResponseBody) GoString() string

func (*ListKeysResponseBody) SetKeys

func (*ListKeysResponseBody) SetPageNumber

func (s *ListKeysResponseBody) SetPageNumber(v int32) *ListKeysResponseBody

func (*ListKeysResponseBody) SetPageSize

func (s *ListKeysResponseBody) SetPageSize(v int32) *ListKeysResponseBody

func (*ListKeysResponseBody) SetRequestId

func (s *ListKeysResponseBody) SetRequestId(v string) *ListKeysResponseBody

func (*ListKeysResponseBody) SetTotalCount

func (s *ListKeysResponseBody) SetTotalCount(v int32) *ListKeysResponseBody

func (ListKeysResponseBody) String

func (s ListKeysResponseBody) String() string

type ListKeysResponseBodyKeys

type ListKeysResponseBodyKeys struct {
	Key []*ListKeysResponseBodyKeysKey `json:"Key,omitempty" xml:"Key,omitempty" type:"Repeated"`
}

func (ListKeysResponseBodyKeys) GoString

func (s ListKeysResponseBodyKeys) GoString() string

func (*ListKeysResponseBodyKeys) SetKey

func (ListKeysResponseBodyKeys) String

func (s ListKeysResponseBodyKeys) String() string

type ListKeysResponseBodyKeysKey

type ListKeysResponseBodyKeysKey struct {
	// The Alibaba Cloud Resource Name (ARN) of the CMK.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:123456:key/80e9409f-78fa-42ab-84bd-83f40c81****
	KeyArn *string `json:"KeyArn,omitempty" xml:"KeyArn,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 08c33a6f-4e0a-4a1b-a3fa-7ddfa1d4****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (ListKeysResponseBodyKeysKey) GoString

func (s ListKeysResponseBodyKeysKey) GoString() string

func (*ListKeysResponseBodyKeysKey) SetKeyArn

func (*ListKeysResponseBodyKeysKey) SetKeyId

func (ListKeysResponseBodyKeysKey) String

type ListKmsInstancesRequest added in v3.1.0

type ListKmsInstancesRequest struct {
	// The page number. Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries per page. Valid values: 1 to 100. Default value: 20.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListKmsInstancesRequest) GoString added in v3.1.0

func (s ListKmsInstancesRequest) GoString() string

func (*ListKmsInstancesRequest) SetPageNumber added in v3.1.0

func (*ListKmsInstancesRequest) SetPageSize added in v3.1.0

func (ListKmsInstancesRequest) String added in v3.1.0

func (s ListKmsInstancesRequest) String() string

type ListKmsInstancesResponse added in v3.1.0

type ListKmsInstancesResponse struct {
	Headers    map[string]*string            `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                        `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListKmsInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListKmsInstancesResponse) GoString added in v3.1.0

func (s ListKmsInstancesResponse) GoString() string

func (*ListKmsInstancesResponse) SetBody added in v3.1.0

func (*ListKmsInstancesResponse) SetHeaders added in v3.1.0

func (*ListKmsInstancesResponse) SetStatusCode added in v3.1.0

func (ListKmsInstancesResponse) String added in v3.1.0

func (s ListKmsInstancesResponse) String() string

type ListKmsInstancesResponseBody added in v3.1.0

type ListKmsInstancesResponseBody struct {
	// A list of KMS instances.
	KmsInstances *ListKmsInstancesResponseBodyKmsInstances `json:"KmsInstances,omitempty" xml:"KmsInstances,omitempty" type:"Struct"`
	// The page number.
	//
	// example:
	//
	// 1
	PageNumber *int64 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries per page.
	//
	// example:
	//
	// 10
	PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// d3eca5c8-a856-4347-8eb6-e1898c3fda2e
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of KMS instances.
	//
	// example:
	//
	// 1
	TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListKmsInstancesResponseBody) GoString added in v3.1.0

func (s ListKmsInstancesResponseBody) GoString() string

func (*ListKmsInstancesResponseBody) SetKmsInstances added in v3.1.0

func (*ListKmsInstancesResponseBody) SetPageNumber added in v3.1.0

func (*ListKmsInstancesResponseBody) SetPageSize added in v3.1.0

func (*ListKmsInstancesResponseBody) SetRequestId added in v3.1.0

func (*ListKmsInstancesResponseBody) SetTotalCount added in v3.1.0

func (ListKmsInstancesResponseBody) String added in v3.1.0

type ListKmsInstancesResponseBodyKmsInstances added in v3.1.0

type ListKmsInstancesResponseBodyKmsInstances struct {
	KmsInstance []*ListKmsInstancesResponseBodyKmsInstancesKmsInstance `json:"KmsInstance,omitempty" xml:"KmsInstance,omitempty" type:"Repeated"`
}

func (ListKmsInstancesResponseBodyKmsInstances) GoString added in v3.1.0

func (*ListKmsInstancesResponseBodyKmsInstances) SetKmsInstance added in v3.1.0

func (ListKmsInstancesResponseBodyKmsInstances) String added in v3.1.0

type ListKmsInstancesResponseBodyKmsInstancesKmsInstance added in v3.1.0

type ListKmsInstancesResponseBodyKmsInstancesKmsInstance struct {
	// The ARN of the KMS instance.
	//
	// example:
	//
	// acs:kms:pre-hangzhou:120708975881****:keystore/kst-phzz64c9f84eo32dbs****
	KmsInstanceArn *string `json:"KmsInstanceArn,omitempty" xml:"KmsInstanceArn,omitempty"`
	// The ID of the KMS instance.
	//
	// example:
	//
	// kst-phzz64c9f84eo32dbs****
	KmsInstanceId *string `json:"KmsInstanceId,omitempty" xml:"KmsInstanceId,omitempty"`
}

func (ListKmsInstancesResponseBodyKmsInstancesKmsInstance) GoString added in v3.1.0

func (*ListKmsInstancesResponseBodyKmsInstancesKmsInstance) SetKmsInstanceArn added in v3.1.0

func (*ListKmsInstancesResponseBodyKmsInstancesKmsInstance) SetKmsInstanceId added in v3.1.0

func (ListKmsInstancesResponseBodyKmsInstancesKmsInstance) String added in v3.1.0

type ListNetworkRulesRequest added in v3.1.0

type ListNetworkRulesRequest struct {
	// The page number. Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries per page. Valid values: 1 to 100. Default value: 20.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListNetworkRulesRequest) GoString added in v3.1.0

func (s ListNetworkRulesRequest) GoString() string

func (*ListNetworkRulesRequest) SetPageNumber added in v3.1.0

func (*ListNetworkRulesRequest) SetPageSize added in v3.1.0

func (ListNetworkRulesRequest) String added in v3.1.0

func (s ListNetworkRulesRequest) String() string

type ListNetworkRulesResponse added in v3.1.0

type ListNetworkRulesResponse struct {
	Headers    map[string]*string            `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                        `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListNetworkRulesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListNetworkRulesResponse) GoString added in v3.1.0

func (s ListNetworkRulesResponse) GoString() string

func (*ListNetworkRulesResponse) SetBody added in v3.1.0

func (*ListNetworkRulesResponse) SetHeaders added in v3.1.0

func (*ListNetworkRulesResponse) SetStatusCode added in v3.1.0

func (ListNetworkRulesResponse) String added in v3.1.0

func (s ListNetworkRulesResponse) String() string

type ListNetworkRulesResponseBody added in v3.1.0

type ListNetworkRulesResponseBody struct {
	// A list of access control rules.
	NetworkRules *ListNetworkRulesResponseBodyNetworkRules `json:"NetworkRules,omitempty" xml:"NetworkRules,omitempty" type:"Struct"`
	// The page number.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries per page.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3bf02f7a-015b-4f34-be0f-cc043fda2d33
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of entries returned.
	//
	// example:
	//
	// 1
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListNetworkRulesResponseBody) GoString added in v3.1.0

func (s ListNetworkRulesResponseBody) GoString() string

func (*ListNetworkRulesResponseBody) SetNetworkRules added in v3.1.0

func (*ListNetworkRulesResponseBody) SetPageNumber added in v3.1.0

func (*ListNetworkRulesResponseBody) SetPageSize added in v3.1.0

func (*ListNetworkRulesResponseBody) SetRequestId added in v3.1.0

func (*ListNetworkRulesResponseBody) SetTotalCount added in v3.1.0

func (ListNetworkRulesResponseBody) String added in v3.1.0

type ListNetworkRulesResponseBodyNetworkRules added in v3.1.0

type ListNetworkRulesResponseBodyNetworkRules struct {
	NetworkRule []*ListNetworkRulesResponseBodyNetworkRulesNetworkRule `json:"NetworkRule,omitempty" xml:"NetworkRule,omitempty" type:"Repeated"`
}

func (ListNetworkRulesResponseBodyNetworkRules) GoString added in v3.1.0

func (*ListNetworkRulesResponseBodyNetworkRules) SetNetworkRule added in v3.1.0

func (ListNetworkRulesResponseBodyNetworkRules) String added in v3.1.0

type ListNetworkRulesResponseBodyNetworkRulesNetworkRule added in v3.1.0

type ListNetworkRulesResponseBodyNetworkRulesNetworkRule struct {
	// The name of the access control rule.
	//
	// example:
	//
	// networkrule_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The network type. The value is fixed as Private. Self-managed applications can access KMS instances only over a private virtual private cloud (VPC).
	//
	// example:
	//
	// Private
	Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
}

func (ListNetworkRulesResponseBodyNetworkRulesNetworkRule) GoString added in v3.1.0

func (*ListNetworkRulesResponseBodyNetworkRulesNetworkRule) SetName added in v3.1.0

func (*ListNetworkRulesResponseBodyNetworkRulesNetworkRule) SetType added in v3.1.0

func (ListNetworkRulesResponseBodyNetworkRulesNetworkRule) String added in v3.1.0

type ListPoliciesRequest added in v3.1.0

type ListPoliciesRequest struct {
	// The page number. Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries per page. Valid values: 1 to 100. Default value: 20.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListPoliciesRequest) GoString added in v3.1.0

func (s ListPoliciesRequest) GoString() string

func (*ListPoliciesRequest) SetPageNumber added in v3.1.0

func (s *ListPoliciesRequest) SetPageNumber(v int32) *ListPoliciesRequest

func (*ListPoliciesRequest) SetPageSize added in v3.1.0

func (s *ListPoliciesRequest) SetPageSize(v int32) *ListPoliciesRequest

func (ListPoliciesRequest) String added in v3.1.0

func (s ListPoliciesRequest) String() string

type ListPoliciesResponse added in v3.1.0

type ListPoliciesResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListPoliciesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListPoliciesResponse) GoString added in v3.1.0

func (s ListPoliciesResponse) GoString() string

func (*ListPoliciesResponse) SetBody added in v3.1.0

func (*ListPoliciesResponse) SetHeaders added in v3.1.0

func (s *ListPoliciesResponse) SetHeaders(v map[string]*string) *ListPoliciesResponse

func (*ListPoliciesResponse) SetStatusCode added in v3.1.0

func (s *ListPoliciesResponse) SetStatusCode(v int32) *ListPoliciesResponse

func (ListPoliciesResponse) String added in v3.1.0

func (s ListPoliciesResponse) String() string

type ListPoliciesResponseBody added in v3.1.0

type ListPoliciesResponseBody struct {
	// The page number.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries per page.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// A list of permission policies.
	Policies *ListPoliciesResponseBodyPolicies `json:"Policies,omitempty" xml:"Policies,omitempty" type:"Struct"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// b66ad557-9c00-4064-9c8d-b621c3263308
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of entries returned.
	//
	// example:
	//
	// 1
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListPoliciesResponseBody) GoString added in v3.1.0

func (s ListPoliciesResponseBody) GoString() string

func (*ListPoliciesResponseBody) SetPageNumber added in v3.1.0

func (*ListPoliciesResponseBody) SetPageSize added in v3.1.0

func (*ListPoliciesResponseBody) SetPolicies added in v3.1.0

func (*ListPoliciesResponseBody) SetRequestId added in v3.1.0

func (*ListPoliciesResponseBody) SetTotalCount added in v3.1.0

func (ListPoliciesResponseBody) String added in v3.1.0

func (s ListPoliciesResponseBody) String() string

type ListPoliciesResponseBodyPolicies added in v3.1.0

type ListPoliciesResponseBodyPolicies struct {
	Policy []*ListPoliciesResponseBodyPoliciesPolicy `json:"Policy,omitempty" xml:"Policy,omitempty" type:"Repeated"`
}

func (ListPoliciesResponseBodyPolicies) GoString added in v3.1.0

func (*ListPoliciesResponseBodyPolicies) SetPolicy added in v3.1.0

func (ListPoliciesResponseBodyPolicies) String added in v3.1.0

type ListPoliciesResponseBodyPoliciesPolicy added in v3.1.0

type ListPoliciesResponseBodyPoliciesPolicy struct {
	// The name of the permission policy.
	//
	// example:
	//
	// policy_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (ListPoliciesResponseBodyPoliciesPolicy) GoString added in v3.1.0

func (*ListPoliciesResponseBodyPoliciesPolicy) SetName added in v3.1.0

func (ListPoliciesResponseBodyPoliciesPolicy) String added in v3.1.0

type ListResourceTagsRequest

type ListResourceTagsRequest struct {
	// The globally unique ID of the CMK.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (ListResourceTagsRequest) GoString

func (s ListResourceTagsRequest) GoString() string

func (*ListResourceTagsRequest) SetKeyId

func (ListResourceTagsRequest) String

func (s ListResourceTagsRequest) String() string

type ListResourceTagsResponse

type ListResourceTagsResponse struct {
	Headers    map[string]*string            `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                        `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListResourceTagsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListResourceTagsResponse) GoString

func (s ListResourceTagsResponse) GoString() string

func (*ListResourceTagsResponse) SetBody

func (*ListResourceTagsResponse) SetHeaders

func (*ListResourceTagsResponse) SetStatusCode

func (ListResourceTagsResponse) String

func (s ListResourceTagsResponse) String() string

type ListResourceTagsResponseBody

type ListResourceTagsResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 4162a6af-bc99-40b3-a552-89dcc8aaf7c8
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The tags of the CMK.
	Tags *ListResourceTagsResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"`
}

func (ListResourceTagsResponseBody) GoString

func (s ListResourceTagsResponseBody) GoString() string

func (*ListResourceTagsResponseBody) SetRequestId

func (*ListResourceTagsResponseBody) SetTags

func (ListResourceTagsResponseBody) String

type ListResourceTagsResponseBodyTags

type ListResourceTagsResponseBodyTags struct {
	Tag []*ListResourceTagsResponseBodyTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
}

func (ListResourceTagsResponseBodyTags) GoString

func (ListResourceTagsResponseBodyTags) String

type ListResourceTagsResponseBodyTagsTag

type ListResourceTagsResponseBodyTagsTag struct {
	// The globally unique ID of the CMK.
	//
	// example:
	//
	// 33caea95-c3e5-4b3e-a9c6-cec76e4e****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The tag key.
	//
	// example:
	//
	// Project
	TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"`
	// The tag value.
	//
	// example:
	//
	// Test
	TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"`
}

func (ListResourceTagsResponseBodyTagsTag) GoString

func (*ListResourceTagsResponseBodyTagsTag) SetKeyId

func (*ListResourceTagsResponseBodyTagsTag) SetTagKey

func (*ListResourceTagsResponseBodyTagsTag) SetTagValue

func (ListResourceTagsResponseBodyTagsTag) String

type ListSecretVersionIdsRequest

type ListSecretVersionIdsRequest struct {
	// Specifies whether to return deprecated secret versions.
	//
	// Valid values:
	//
	// 	- false: no
	//
	// 	- true: yes
	//
	// Default value: false.
	//
	// example:
	//
	// false
	IncludeDeprecated *string `json:"IncludeDeprecated,omitempty" xml:"IncludeDeprecated,omitempty"`
	// The number of the page to return. Default value: 1.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries to return on each page. Default value: 10.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (ListSecretVersionIdsRequest) GoString

func (s ListSecretVersionIdsRequest) GoString() string

func (*ListSecretVersionIdsRequest) SetIncludeDeprecated

func (*ListSecretVersionIdsRequest) SetPageNumber

func (*ListSecretVersionIdsRequest) SetPageSize

func (*ListSecretVersionIdsRequest) SetSecretName

func (ListSecretVersionIdsRequest) String

type ListSecretVersionIdsResponse

type ListSecretVersionIdsResponse struct {
	Headers    map[string]*string                `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                            `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListSecretVersionIdsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListSecretVersionIdsResponse) GoString

func (s ListSecretVersionIdsResponse) GoString() string

func (*ListSecretVersionIdsResponse) SetBody

func (*ListSecretVersionIdsResponse) SetHeaders

func (*ListSecretVersionIdsResponse) SetStatusCode

func (ListSecretVersionIdsResponse) String

type ListSecretVersionIdsResponseBody

type ListSecretVersionIdsResponseBody struct {
	// The page number of the returned page.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of entries returned per page.
	//
	// example:
	//
	// 10
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 5b75d8b1-5b6a-4ec0-8e0c-c08befdfad47
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The number of entries returned on the current page.
	//
	// example:
	//
	// 4
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
	// The list of secret versions.
	VersionIds *ListSecretVersionIdsResponseBodyVersionIds `json:"VersionIds,omitempty" xml:"VersionIds,omitempty" type:"Struct"`
}

func (ListSecretVersionIdsResponseBody) GoString

func (*ListSecretVersionIdsResponseBody) SetPageNumber

func (*ListSecretVersionIdsResponseBody) SetPageSize

func (*ListSecretVersionIdsResponseBody) SetRequestId

func (*ListSecretVersionIdsResponseBody) SetSecretName

func (*ListSecretVersionIdsResponseBody) SetTotalCount

func (ListSecretVersionIdsResponseBody) String

type ListSecretVersionIdsResponseBodyVersionIds

type ListSecretVersionIdsResponseBodyVersionIds struct {
	VersionId []*ListSecretVersionIdsResponseBodyVersionIdsVersionId `json:"VersionId,omitempty" xml:"VersionId,omitempty" type:"Repeated"`
}

func (ListSecretVersionIdsResponseBodyVersionIds) GoString

func (ListSecretVersionIdsResponseBodyVersionIds) String

type ListSecretVersionIdsResponseBodyVersionIdsVersionId

type ListSecretVersionIdsResponseBodyVersionIdsVersionId struct {
	// The time when the secret version was created.
	//
	// example:
	//
	// 2020-02-21T15:39:26Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The version number.
	//
	// example:
	//
	// 00000000000000000000000000000000203
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
	// The stage labels that mark the secret version.
	VersionStages *ListSecretVersionIdsResponseBodyVersionIdsVersionIdVersionStages `json:"VersionStages,omitempty" xml:"VersionStages,omitempty" type:"Struct"`
}

func (ListSecretVersionIdsResponseBodyVersionIdsVersionId) GoString

func (*ListSecretVersionIdsResponseBodyVersionIdsVersionId) SetCreateTime

func (*ListSecretVersionIdsResponseBodyVersionIdsVersionId) SetVersionId

func (ListSecretVersionIdsResponseBodyVersionIdsVersionId) String

type ListSecretVersionIdsResponseBodyVersionIdsVersionIdVersionStages

type ListSecretVersionIdsResponseBodyVersionIdsVersionIdVersionStages struct {
	VersionStage []*string `json:"VersionStage,omitempty" xml:"VersionStage,omitempty" type:"Repeated"`
}

func (ListSecretVersionIdsResponseBodyVersionIdsVersionIdVersionStages) GoString

func (*ListSecretVersionIdsResponseBodyVersionIdsVersionIdVersionStages) SetVersionStage

func (ListSecretVersionIdsResponseBodyVersionIdsVersionIdVersionStages) String

type ListSecretsRequest

type ListSecretsRequest struct {
	// The number of entries to return on each page.
	//
	// Valid values: 1 to 100.
	//
	// Default value: 10.
	//
	// example:
	//
	// false
	FetchTags *string `json:"FetchTags,omitempty" xml:"FetchTags,omitempty"`
	// The number of entries returned per page.
	//
	// example:
	//
	// [{"Key":"SecretName", "Values":["Val1","Val2"]}]
	Filters *string `json:"Filters,omitempty" xml:"Filters,omitempty"`
	// The secret filter. The filter consists of one or more key-value pairs. You can specify one key-value pair or leave this parameter empty. If you use one tag key or tag value to filter resources, up to 4,000 resources can be queried. If you want to query more than 4,000 resources, call the [ListResourceTags](~~120090~~) operation.
	//
	// 	- Key
	//
	//     	- Description: the property that you want to filter.
	//
	//     	- Type: string.
	//
	//     	- Valid values:
	//
	//         	- SecretName: the secret name.
	//
	//         	- Description: the description of the secret.
	//
	//         	- TagKey: the tag key.
	//
	//         	- TagValue: the tag value.
	//
	// 	- Values
	//
	//     	- Description: the value to be included after filtering.
	//
	//     	- Type: string.
	//
	//     	- Length: 0 to 10.
	//
	//     	- Valid values:
	//
	//         	- If the Key field is set to SecretName, the value must be 1 to 192 characters in length and can contain letters, digits, and special characters `_ / + = . @ -`.
	//
	//         	- If the Key field is set to Description, the value must be 1 to 256 characters in length.
	//
	//         	- If the Key field is set to TagKey, the value must be 1 to 256 characters in length and can contain letters, digits, and special characters `/ _ - . + = @ :`.
	//
	//         	- If the Key field is set to TagValue, the value must be 1 to 256 characters in length and can contain letters, numbers, and special characters `/ _ - . + = @ :`.
	//
	// The logical relationship between values of the Values field in a key-value pair is OR. Example: `[ {"Key":"SecretName", "Values":["sec1","sec2"]}]`. In this example, the semantics are `SecretName=sec 1 OR SecretName=sec 2`.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The page number of the returned page.
	//
	// example:
	//
	// 2
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
}

func (ListSecretsRequest) GoString

func (s ListSecretsRequest) GoString() string

func (*ListSecretsRequest) SetFetchTags

func (s *ListSecretsRequest) SetFetchTags(v string) *ListSecretsRequest

func (*ListSecretsRequest) SetFilters

func (s *ListSecretsRequest) SetFilters(v string) *ListSecretsRequest

func (*ListSecretsRequest) SetPageNumber

func (s *ListSecretsRequest) SetPageNumber(v int32) *ListSecretsRequest

func (*ListSecretsRequest) SetPageSize

func (s *ListSecretsRequest) SetPageSize(v int32) *ListSecretsRequest

func (ListSecretsRequest) String

func (s ListSecretsRequest) String() string

type ListSecretsResponse

type ListSecretsResponse struct {
	Headers    map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListSecretsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListSecretsResponse) GoString

func (s ListSecretsResponse) GoString() string

func (*ListSecretsResponse) SetBody

func (*ListSecretsResponse) SetHeaders

func (s *ListSecretsResponse) SetHeaders(v map[string]*string) *ListSecretsResponse

func (*ListSecretsResponse) SetStatusCode

func (s *ListSecretsResponse) SetStatusCode(v int32) *ListSecretsResponse

func (ListSecretsResponse) String

func (s ListSecretsResponse) String() string

type ListSecretsResponseBody

type ListSecretsResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 1
	PageNumber *int32 `json:"PageNumber,omitempty" xml:"PageNumber,omitempty"`
	// The number of returned secrets.
	//
	// example:
	//
	// 2
	PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
	// The list of secrets.
	//
	// example:
	//
	// 6a6287a0-ff34-4780-a790-fdfca900557f
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The time when the secret was updated.
	SecretList *ListSecretsResponseBodySecretList `json:"SecretList,omitempty" xml:"SecretList,omitempty" type:"Struct"`
	// The secret name.
	//
	// example:
	//
	// 55
	TotalCount *int32 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListSecretsResponseBody) GoString

func (s ListSecretsResponseBody) GoString() string

func (*ListSecretsResponseBody) SetPageNumber

func (*ListSecretsResponseBody) SetPageSize

func (*ListSecretsResponseBody) SetRequestId

func (*ListSecretsResponseBody) SetSecretList

func (*ListSecretsResponseBody) SetTotalCount

func (ListSecretsResponseBody) String

func (s ListSecretsResponseBody) String() string

type ListSecretsResponseBodySecretList

type ListSecretsResponseBodySecretList struct {
	Secret []*ListSecretsResponseBodySecretListSecret `json:"Secret,omitempty" xml:"Secret,omitempty" type:"Repeated"`
}

func (ListSecretsResponseBodySecretList) GoString

func (ListSecretsResponseBodySecretList) String

type ListSecretsResponseBodySecretListSecret

type ListSecretsResponseBodySecretListSecret struct {
	// The tag value.
	//
	// example:
	//
	// 2022-07-17T07:59:05Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The resource tags of the secret.
	//
	// This parameter is not returned if you set the FetchTags parameter to false or do not specify the FetchTags parameter.
	//
	// example:
	//
	// 2022-08-17T07:59:05Z
	PlannedDeleteTime *string `json:"PlannedDeleteTime,omitempty" xml:"PlannedDeleteTime,omitempty"`
	// The type of the secret. Valid values:
	//
	// 	- Generic: indicates a generic secret.
	//
	// 	- Rds: indicates a managed ApsaraDB RDS secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The time when the secret was created.
	//
	// example:
	//
	// Generic
	SecretType *string `json:"SecretType,omitempty" xml:"SecretType,omitempty"`
	// The tag key.
	Tags *ListSecretsResponseBodySecretListSecretTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Struct"`
	// The time when the secret is scheduled to be deleted.
	//
	// example:
	//
	// 2022-07-17T07:59:05Z
	UpdateTime *string `json:"UpdateTime,omitempty" xml:"UpdateTime,omitempty"`
}

func (ListSecretsResponseBodySecretListSecret) GoString

func (*ListSecretsResponseBodySecretListSecret) SetCreateTime

func (*ListSecretsResponseBodySecretListSecret) SetPlannedDeleteTime

func (*ListSecretsResponseBodySecretListSecret) SetSecretName

func (*ListSecretsResponseBodySecretListSecret) SetSecretType

func (*ListSecretsResponseBodySecretListSecret) SetUpdateTime

func (ListSecretsResponseBodySecretListSecret) String

type ListSecretsResponseBodySecretListSecretTags

type ListSecretsResponseBodySecretListSecretTags struct {
	Tag []*ListSecretsResponseBodySecretListSecretTagsTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
}

func (ListSecretsResponseBodySecretListSecretTags) GoString

func (ListSecretsResponseBodySecretListSecretTags) String

type ListSecretsResponseBodySecretListSecretTagsTag

type ListSecretsResponseBodySecretListSecretTagsTag struct {
	// example:
	//
	// key1
	TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"`
	// example:
	//
	// val1
	TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"`
}

func (ListSecretsResponseBodySecretListSecretTagsTag) GoString

func (*ListSecretsResponseBodySecretListSecretTagsTag) SetTagKey

func (*ListSecretsResponseBodySecretListSecretTagsTag) SetTagValue

func (ListSecretsResponseBodySecretListSecretTagsTag) String

type ListTagResourcesRequest added in v3.0.2

type ListTagResourcesRequest struct {
	// The pagination token that is used in the next request to retrieve a new page of results.
	//
	// >  If the call does not return all result entries, the value of the NextToken parameter is returned. By default, 200 rows are returned. You can call this operation again and set the value of the parameter to the value of the parameter that is returned in the last call to implement paged query.
	//
	// example:
	//
	// caeba0bbb2be03f84eb48b699f0a4883
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The region ID of the resource.
	//
	// >  You can call the [DescribeRegions](~~601478~~) to query the most recent region list.
	//
	// example:
	//
	// cn-hangzhou
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
	// A list of resource IDs for which you want to query tags. You can enter a maximum of 50 resource IDs.
	//
	// Enter multiple resource IDs in the `["ResourceId. 1","ResourceId. 2",...]` format.
	ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"`
	// The type of resource whose tags you want to query. Valid value:
	//
	// 	- key
	//
	// 	- secret
	//
	// example:
	//
	// key
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// A list of tags that you want to query. Valid values of N: 1 to 20.
	Tag []*ListTagResourcesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
}

func (ListTagResourcesRequest) GoString added in v3.0.2

func (s ListTagResourcesRequest) GoString() string

func (*ListTagResourcesRequest) SetNextToken added in v3.0.2

func (*ListTagResourcesRequest) SetRegionId added in v3.0.2

func (*ListTagResourcesRequest) SetResourceId added in v3.0.2

func (s *ListTagResourcesRequest) SetResourceId(v []*string) *ListTagResourcesRequest

func (*ListTagResourcesRequest) SetResourceType added in v3.0.2

func (*ListTagResourcesRequest) SetTag added in v3.0.2

func (ListTagResourcesRequest) String added in v3.0.2

func (s ListTagResourcesRequest) String() string

type ListTagResourcesRequestTag added in v3.0.2

type ListTagResourcesRequestTag struct {
	// The key of the tag. A tag consists of a key-value pair.
	//
	// You can enter up to 20 tags. Enter multiple tags in the `[{"Key":"key1","Value":"value1"},{"Key":"key2","Value":"value2"},..]` format.
	//
	// >  The key cannot start with aliyun or acs:.
	//
	// example:
	//
	// disk-encryption
	Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
	// The value of the tag. A tag consists of a key-value pair.
	//
	// You can enter up to 20 tags. Enter multiple tags in the `[{"Key":"key1","Value":"value1"},{"Key":"key2","Value":"value2"},..]` format.
	//
	// example:
	//
	// true
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (ListTagResourcesRequestTag) GoString added in v3.0.2

func (s ListTagResourcesRequestTag) GoString() string

func (*ListTagResourcesRequestTag) SetKey added in v3.0.2

func (*ListTagResourcesRequestTag) SetValue added in v3.0.2

func (ListTagResourcesRequestTag) String added in v3.0.2

type ListTagResourcesResponse added in v3.0.2

type ListTagResourcesResponse struct {
	Headers    map[string]*string            `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                        `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListTagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListTagResourcesResponse) GoString added in v3.0.2

func (s ListTagResourcesResponse) GoString() string

func (*ListTagResourcesResponse) SetBody added in v3.0.2

func (*ListTagResourcesResponse) SetHeaders added in v3.0.2

func (*ListTagResourcesResponse) SetStatusCode added in v3.0.2

func (ListTagResourcesResponse) String added in v3.0.2

func (s ListTagResourcesResponse) String() string

type ListTagResourcesResponseBody added in v3.0.2

type ListTagResourcesResponseBody struct {
	// A pagination token. It can be used in the next request to retrieve a new page of results.
	//
	// 	- If NextToken is empty ("NextToken": ""), no next page exists.
	//
	// 	- If NextToken is not empty, the next query is required, and the value is the token used to start the next query.
	//
	// example:
	//
	// e71d8a535bd9cc11
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The request ID.
	//
	// example:
	//
	// 00827261-20B7-4562-83F2-4DF39876A45A
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// A list of tags.
	TagResources *ListTagResourcesResponseBodyTagResources `json:"TagResources,omitempty" xml:"TagResources,omitempty" type:"Struct"`
}

func (ListTagResourcesResponseBody) GoString added in v3.0.2

func (s ListTagResourcesResponseBody) GoString() string

func (*ListTagResourcesResponseBody) SetNextToken added in v3.0.2

func (*ListTagResourcesResponseBody) SetRequestId added in v3.0.2

func (*ListTagResourcesResponseBody) SetTagResources added in v3.0.2

func (ListTagResourcesResponseBody) String added in v3.0.2

type ListTagResourcesResponseBodyTagResources added in v3.0.2

type ListTagResourcesResponseBodyTagResources struct {
	TagResource []*ListTagResourcesResponseBodyTagResourcesTagResource `json:"TagResource,omitempty" xml:"TagResource,omitempty" type:"Repeated"`
}

func (ListTagResourcesResponseBodyTagResources) GoString added in v3.0.2

func (*ListTagResourcesResponseBodyTagResources) SetTagResource added in v3.0.2

func (ListTagResourcesResponseBodyTagResources) String added in v3.0.2

type ListTagResourcesResponseBodyTagResourcesTagResource added in v3.0.2

type ListTagResourcesResponseBodyTagResourcesTagResource struct {
	// The resource ID.
	//
	// example:
	//
	// key-hzz62f1cb66fa42qo****
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The type of the resource.
	//
	// example:
	//
	// key
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The key of the tag.
	//
	// example:
	//
	// disk-encryption
	TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"`
	// The value of the tag.
	//
	// example:
	//
	// true
	TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"`
}

func (ListTagResourcesResponseBodyTagResourcesTagResource) GoString added in v3.0.2

func (*ListTagResourcesResponseBodyTagResourcesTagResource) SetResourceId added in v3.0.2

func (*ListTagResourcesResponseBodyTagResourcesTagResource) SetResourceType added in v3.0.2

func (*ListTagResourcesResponseBodyTagResourcesTagResource) SetTagKey added in v3.0.2

func (*ListTagResourcesResponseBodyTagResourcesTagResource) SetTagValue added in v3.0.2

func (ListTagResourcesResponseBodyTagResourcesTagResource) String added in v3.0.2

type OpenKmsServiceResponse

type OpenKmsServiceResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *OpenKmsServiceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (OpenKmsServiceResponse) GoString

func (s OpenKmsServiceResponse) GoString() string

func (*OpenKmsServiceResponse) SetBody

func (*OpenKmsServiceResponse) SetHeaders

func (*OpenKmsServiceResponse) SetStatusCode

func (OpenKmsServiceResponse) String

func (s OpenKmsServiceResponse) String() string

type OpenKmsServiceResponseBody

type OpenKmsServiceResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// 3455b9b4-95c1-419d-b310-db6a53b09a39
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (OpenKmsServiceResponseBody) GoString

func (s OpenKmsServiceResponseBody) GoString() string

func (*OpenKmsServiceResponseBody) SetRequestId

func (OpenKmsServiceResponseBody) String

type PutSecretValueRequest

type PutSecretValueRequest struct {
	// The secret value. The value is encrypted and then stored in the new version.
	//
	// example:
	//
	// importantdata
	SecretData *string `json:"SecretData,omitempty" xml:"SecretData,omitempty"`
	// The type of the secret value. Valid values:
	//
	// 	- text: This is the default value.
	//
	// 	- binary
	//
	// example:
	//
	// text
	SecretDataType *string `json:"SecretDataType,omitempty" xml:"SecretDataType,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The new version of the secret value. Version numbers must be unique in each secret.
	//
	// example:
	//
	// 00000000000000000000000000000000203
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
	// The stage labels that are used to mark the new version. If you do not specify this parameter, Secrets Manager marks the new version with ACSCurrent.
	//
	// example:
	//
	// ["ACSCurrent","ACSNext"]
	VersionStages *string `json:"VersionStages,omitempty" xml:"VersionStages,omitempty"`
}

func (PutSecretValueRequest) GoString

func (s PutSecretValueRequest) GoString() string

func (*PutSecretValueRequest) SetSecretData

func (s *PutSecretValueRequest) SetSecretData(v string) *PutSecretValueRequest

func (*PutSecretValueRequest) SetSecretDataType

func (s *PutSecretValueRequest) SetSecretDataType(v string) *PutSecretValueRequest

func (*PutSecretValueRequest) SetSecretName

func (s *PutSecretValueRequest) SetSecretName(v string) *PutSecretValueRequest

func (*PutSecretValueRequest) SetVersionId

func (*PutSecretValueRequest) SetVersionStages

func (s *PutSecretValueRequest) SetVersionStages(v string) *PutSecretValueRequest

func (PutSecretValueRequest) String

func (s PutSecretValueRequest) String() string

type PutSecretValueResponse

type PutSecretValueResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *PutSecretValueResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (PutSecretValueResponse) GoString

func (s PutSecretValueResponse) GoString() string

func (*PutSecretValueResponse) SetBody

func (*PutSecretValueResponse) SetHeaders

func (*PutSecretValueResponse) SetStatusCode

func (PutSecretValueResponse) String

func (s PutSecretValueResponse) String() string

type PutSecretValueResponseBody

type PutSecretValueResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// f94ec9d3-2d10-4922-9a5c-5dcd5ebcb5e8
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The new version of the secret value.
	//
	// example:
	//
	// 00000000000000000000000000000000203
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
	// The stage labels that are used to mark the new version.
	VersionStages *PutSecretValueResponseBodyVersionStages `json:"VersionStages,omitempty" xml:"VersionStages,omitempty" type:"Struct"`
}

func (PutSecretValueResponseBody) GoString

func (s PutSecretValueResponseBody) GoString() string

func (*PutSecretValueResponseBody) SetRequestId

func (*PutSecretValueResponseBody) SetSecretName

func (*PutSecretValueResponseBody) SetVersionId

func (*PutSecretValueResponseBody) SetVersionStages

func (PutSecretValueResponseBody) String

type PutSecretValueResponseBodyVersionStages

type PutSecretValueResponseBodyVersionStages struct {
	VersionStage []*string `json:"VersionStage,omitempty" xml:"VersionStage,omitempty" type:"Repeated"`
}

func (PutSecretValueResponseBodyVersionStages) GoString

func (*PutSecretValueResponseBodyVersionStages) SetVersionStage

func (PutSecretValueResponseBodyVersionStages) String

type ReEncryptRequest

type ReEncryptRequest struct {
	// The ciphertext that you want to re-encrypt.
	//
	// You can set this parameter to the ciphertext that is returned after a symmetric or asymmetric encryption operation.
	//
	// 	- Symmetric encryption: the ciphertext returned after you call the [Encrypt](~~28949~~), [GenerateDataKey](~~28948~~), [GenerateDataKeyWithoutPlaintext](~~134043~~), or [GenerateAndExportDataKey](~~176804~~) operation
	//
	// 	- Asymmetric encryption: the public key-encrypted ciphertext returned after you call the [GenerateAndExportDataKey](~~176804~~) operation, or the ciphertext encrypted by using the public key of an asymmetric key pair outside KMS
	//
	// example:
	//
	// ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901q********
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// A JSON string that consists of key-value pairs. This parameter specifies the EncryptionContext that is used to re-encrypt the decrypted data or data key.
	//
	// example:
	//
	// {"Example":"Example"}
	DestinationEncryptionContext map[string]interface{} `json:"DestinationEncryptionContext,omitempty" xml:"DestinationEncryptionContext,omitempty"`
	// The ID of the symmetric CMK that is used to re-encrypt the ciphertext after the ciphertext is decrypted.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	DestinationKeyId *string `json:"DestinationKeyId,omitempty" xml:"DestinationKeyId,omitempty"`
	// The encryption algorithm based on which the public key is used to encrypt the ciphertext specified by CiphertextBlob. For more information about encryption algorithms, see [AsymmetricDecrypt](~~148130~~).
	//
	// Valid values:
	//
	// 	- RSAES_OAEP_SHA\_256
	//
	// 	- RSAES_OAEP_SHA\_1
	//
	// 	- SM2PKE
	//
	// >  If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
	//
	// example:
	//
	// RSAES_OAEP_SHA_256
	SourceEncryptionAlgorithm *string `json:"SourceEncryptionAlgorithm,omitempty" xml:"SourceEncryptionAlgorithm,omitempty"`
	// A JSON string that consists of key-value pairs. If you specify EncryptionContext when you call the [Encrypt](~~28949~~), [GenerateDataKey](~~28948~~), [GenerateDataKeyWithoutPlaintext](~~134043~~), or [GenerateAndExportDataKey](~~176804~~) operation to encrypt the data or data key, an equivalent value is required here. For more information, see [EncryptionContext](~~42975~~).
	//
	// >  If you set CiphertextBlob to the ciphertext that is returned after a symmetric encryption operation, specify this parameter.
	//
	// example:
	//
	// {"Example":"Example"}
	SourceEncryptionContext map[string]interface{} `json:"SourceEncryptionContext,omitempty" xml:"SourceEncryptionContext,omitempty"`
	// The ID of the CMK that is used to decrypt the ciphertext.
	//
	// This parameter is the globally unique ID of the CMK.
	//
	// >  If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	SourceKeyId *string `json:"SourceKeyId,omitempty" xml:"SourceKeyId,omitempty"`
	// The ID of the CMK version that is used to decrypt the ciphertext.
	//
	// >  If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	SourceKeyVersionId *string `json:"SourceKeyVersionId,omitempty" xml:"SourceKeyVersionId,omitempty"`
}

func (ReEncryptRequest) GoString

func (s ReEncryptRequest) GoString() string

func (*ReEncryptRequest) SetCiphertextBlob

func (s *ReEncryptRequest) SetCiphertextBlob(v string) *ReEncryptRequest

func (*ReEncryptRequest) SetDestinationEncryptionContext

func (s *ReEncryptRequest) SetDestinationEncryptionContext(v map[string]interface{}) *ReEncryptRequest

func (*ReEncryptRequest) SetDestinationKeyId

func (s *ReEncryptRequest) SetDestinationKeyId(v string) *ReEncryptRequest

func (*ReEncryptRequest) SetSourceEncryptionAlgorithm

func (s *ReEncryptRequest) SetSourceEncryptionAlgorithm(v string) *ReEncryptRequest

func (*ReEncryptRequest) SetSourceEncryptionContext

func (s *ReEncryptRequest) SetSourceEncryptionContext(v map[string]interface{}) *ReEncryptRequest

func (*ReEncryptRequest) SetSourceKeyId

func (s *ReEncryptRequest) SetSourceKeyId(v string) *ReEncryptRequest

func (*ReEncryptRequest) SetSourceKeyVersionId

func (s *ReEncryptRequest) SetSourceKeyVersionId(v string) *ReEncryptRequest

func (ReEncryptRequest) String

func (s ReEncryptRequest) String() string

type ReEncryptResponse

type ReEncryptResponse struct {
	Headers    map[string]*string     `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ReEncryptResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ReEncryptResponse) GoString

func (s ReEncryptResponse) GoString() string

func (*ReEncryptResponse) SetBody

func (*ReEncryptResponse) SetHeaders

func (s *ReEncryptResponse) SetHeaders(v map[string]*string) *ReEncryptResponse

func (*ReEncryptResponse) SetStatusCode

func (s *ReEncryptResponse) SetStatusCode(v int32) *ReEncryptResponse

func (ReEncryptResponse) String

func (s ReEncryptResponse) String() string

type ReEncryptResponseBody

type ReEncryptResponseBody struct {
	// The ciphertext re-encrypted.
	//
	// example:
	//
	// DZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmaaSl+TztSIMe43nbTH/Z1Wr4XfLftKhAciUmDQXuMRl4WTvKhxjMThjK****
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// The ID of the CMK that is used to decrypt the original ciphertext.
	//
	// This parameter is the globally unique ID of the CMK.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The ID of the CMK version that is used to decrypt the original ciphertext.
	//
	// example:
	//
	// 202b9877-5a25-46e3-a763-e20791b5****
	KeyVersionId *string `json:"KeyVersionId,omitempty" xml:"KeyVersionId,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 207596a2-36d3-4840-b1bd-f87044699bd7
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ReEncryptResponseBody) GoString

func (s ReEncryptResponseBody) GoString() string

func (*ReEncryptResponseBody) SetCiphertextBlob

func (s *ReEncryptResponseBody) SetCiphertextBlob(v string) *ReEncryptResponseBody

func (*ReEncryptResponseBody) SetKeyId

func (*ReEncryptResponseBody) SetKeyVersionId

func (s *ReEncryptResponseBody) SetKeyVersionId(v string) *ReEncryptResponseBody

func (*ReEncryptResponseBody) SetRequestId

func (ReEncryptResponseBody) String

func (s ReEncryptResponseBody) String() string

type ReEncryptShrinkRequest

type ReEncryptShrinkRequest struct {
	// The ciphertext that you want to re-encrypt.
	//
	// You can set this parameter to the ciphertext that is returned after a symmetric or asymmetric encryption operation.
	//
	// 	- Symmetric encryption: the ciphertext returned after you call the [Encrypt](~~28949~~), [GenerateDataKey](~~28948~~), [GenerateDataKeyWithoutPlaintext](~~134043~~), or [GenerateAndExportDataKey](~~176804~~) operation
	//
	// 	- Asymmetric encryption: the public key-encrypted ciphertext returned after you call the [GenerateAndExportDataKey](~~176804~~) operation, or the ciphertext encrypted by using the public key of an asymmetric key pair outside KMS
	//
	// example:
	//
	// ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901q********
	CiphertextBlob *string `json:"CiphertextBlob,omitempty" xml:"CiphertextBlob,omitempty"`
	// A JSON string that consists of key-value pairs. This parameter specifies the EncryptionContext that is used to re-encrypt the decrypted data or data key.
	//
	// example:
	//
	// {"Example":"Example"}
	DestinationEncryptionContextShrink *string `json:"DestinationEncryptionContext,omitempty" xml:"DestinationEncryptionContext,omitempty"`
	// The ID of the symmetric CMK that is used to re-encrypt the ciphertext after the ciphertext is decrypted.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	DestinationKeyId *string `json:"DestinationKeyId,omitempty" xml:"DestinationKeyId,omitempty"`
	// The encryption algorithm based on which the public key is used to encrypt the ciphertext specified by CiphertextBlob. For more information about encryption algorithms, see [AsymmetricDecrypt](~~148130~~).
	//
	// Valid values:
	//
	// 	- RSAES_OAEP_SHA\_256
	//
	// 	- RSAES_OAEP_SHA\_1
	//
	// 	- SM2PKE
	//
	// >  If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
	//
	// example:
	//
	// RSAES_OAEP_SHA_256
	SourceEncryptionAlgorithm *string `json:"SourceEncryptionAlgorithm,omitempty" xml:"SourceEncryptionAlgorithm,omitempty"`
	// A JSON string that consists of key-value pairs. If you specify EncryptionContext when you call the [Encrypt](~~28949~~), [GenerateDataKey](~~28948~~), [GenerateDataKeyWithoutPlaintext](~~134043~~), or [GenerateAndExportDataKey](~~176804~~) operation to encrypt the data or data key, an equivalent value is required here. For more information, see [EncryptionContext](~~42975~~).
	//
	// >  If you set CiphertextBlob to the ciphertext that is returned after a symmetric encryption operation, specify this parameter.
	//
	// example:
	//
	// {"Example":"Example"}
	SourceEncryptionContextShrink *string `json:"SourceEncryptionContext,omitempty" xml:"SourceEncryptionContext,omitempty"`
	// The ID of the CMK that is used to decrypt the ciphertext.
	//
	// This parameter is the globally unique ID of the CMK.
	//
	// >  If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
	//
	// example:
	//
	// 5c438b18-05be-40ad-b6c2-3be6752c****
	SourceKeyId *string `json:"SourceKeyId,omitempty" xml:"SourceKeyId,omitempty"`
	// The ID of the CMK version that is used to decrypt the ciphertext.
	//
	// >  If you set CiphertextBlob to the public key-encrypted ciphertext that is returned after an asymmetric encryption operation, specify this parameter.
	//
	// example:
	//
	// 2ab1a983-7072-4bbc-a582-584b5bd8****
	SourceKeyVersionId *string `json:"SourceKeyVersionId,omitempty" xml:"SourceKeyVersionId,omitempty"`
}

func (ReEncryptShrinkRequest) GoString

func (s ReEncryptShrinkRequest) GoString() string

func (*ReEncryptShrinkRequest) SetCiphertextBlob

func (s *ReEncryptShrinkRequest) SetCiphertextBlob(v string) *ReEncryptShrinkRequest

func (*ReEncryptShrinkRequest) SetDestinationEncryptionContextShrink

func (s *ReEncryptShrinkRequest) SetDestinationEncryptionContextShrink(v string) *ReEncryptShrinkRequest

func (*ReEncryptShrinkRequest) SetDestinationKeyId

func (s *ReEncryptShrinkRequest) SetDestinationKeyId(v string) *ReEncryptShrinkRequest

func (*ReEncryptShrinkRequest) SetSourceEncryptionAlgorithm

func (s *ReEncryptShrinkRequest) SetSourceEncryptionAlgorithm(v string) *ReEncryptShrinkRequest

func (*ReEncryptShrinkRequest) SetSourceEncryptionContextShrink

func (s *ReEncryptShrinkRequest) SetSourceEncryptionContextShrink(v string) *ReEncryptShrinkRequest

func (*ReEncryptShrinkRequest) SetSourceKeyId

func (*ReEncryptShrinkRequest) SetSourceKeyVersionId

func (s *ReEncryptShrinkRequest) SetSourceKeyVersionId(v string) *ReEncryptShrinkRequest

func (ReEncryptShrinkRequest) String

func (s ReEncryptShrinkRequest) String() string

type RestoreSecretRequest

type RestoreSecretRequest struct {
	// The name of the secret you want to restore.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (RestoreSecretRequest) GoString

func (s RestoreSecretRequest) GoString() string

func (*RestoreSecretRequest) SetSecretName

func (s *RestoreSecretRequest) SetSecretName(v string) *RestoreSecretRequest

func (RestoreSecretRequest) String

func (s RestoreSecretRequest) String() string

type RestoreSecretResponse

type RestoreSecretResponse struct {
	Headers    map[string]*string         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *RestoreSecretResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (RestoreSecretResponse) GoString

func (s RestoreSecretResponse) GoString() string

func (*RestoreSecretResponse) SetBody

func (*RestoreSecretResponse) SetHeaders

func (*RestoreSecretResponse) SetStatusCode

func (s *RestoreSecretResponse) SetStatusCode(v int32) *RestoreSecretResponse

func (RestoreSecretResponse) String

func (s RestoreSecretResponse) String() string

type RestoreSecretResponseBody

type RestoreSecretResponseBody struct {
	// The ID of the request.
	//
	// example:
	//
	// e4885adf-548f-4ca5-8075-f540bbd3a55f
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (RestoreSecretResponseBody) GoString

func (s RestoreSecretResponseBody) GoString() string

func (*RestoreSecretResponseBody) SetRequestId

func (*RestoreSecretResponseBody) SetSecretName

func (RestoreSecretResponseBody) String

func (s RestoreSecretResponseBody) String() string

type RotateSecretRequest

type RotateSecretRequest struct {
	// The name of the secret.
	//
	// example:
	//
	// RdsSecret/Mysql5.4/MyCred
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The version number of the secret after the secret is rotated.
	//
	// >  The version number is used to ensure the idempotence of the request. Secrets Manager uses this version number to prevent your application from creating the same version of the secret when the application retries a request. If a version number already exists, Secrets Manager ignores the request for rotation and returns a success message.
	//
	// example:
	//
	// 000000123
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
}

func (RotateSecretRequest) GoString

func (s RotateSecretRequest) GoString() string

func (*RotateSecretRequest) SetSecretName

func (s *RotateSecretRequest) SetSecretName(v string) *RotateSecretRequest

func (*RotateSecretRequest) SetVersionId

func (s *RotateSecretRequest) SetVersionId(v string) *RotateSecretRequest

func (RotateSecretRequest) String

func (s RotateSecretRequest) String() string

type RotateSecretResponse

type RotateSecretResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *RotateSecretResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (RotateSecretResponse) GoString

func (s RotateSecretResponse) GoString() string

func (*RotateSecretResponse) SetBody

func (*RotateSecretResponse) SetHeaders

func (s *RotateSecretResponse) SetHeaders(v map[string]*string) *RotateSecretResponse

func (*RotateSecretResponse) SetStatusCode

func (s *RotateSecretResponse) SetStatusCode(v int32) *RotateSecretResponse

func (RotateSecretResponse) String

func (s RotateSecretResponse) String() string

type RotateSecretResponseBody

type RotateSecretResponseBody struct {
	// The Alibaba Cloud Resource Name (ARN) of the secret.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:154035569884****:secret/RdsSecret/Mysql5.4/MyCred
	Arn *string `json:"Arn,omitempty" xml:"Arn,omitempty"`
	// The ID of the request.
	//
	// example:
	//
	// 10257c86-269d-43aa-aaf3-90ed4144bb7c
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// RdsSecret/Mysql5.4/MyCred
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The version number of the secret after the secret is rotated.
	//
	// example:
	//
	// 000000123
	VersionId *string `json:"VersionId,omitempty" xml:"VersionId,omitempty"`
}

func (RotateSecretResponseBody) GoString

func (s RotateSecretResponseBody) GoString() string

func (*RotateSecretResponseBody) SetArn

func (*RotateSecretResponseBody) SetRequestId

func (*RotateSecretResponseBody) SetSecretName

func (*RotateSecretResponseBody) SetVersionId

func (RotateSecretResponseBody) String

func (s RotateSecretResponseBody) String() string

type ScheduleKeyDeletionRequest

type ScheduleKeyDeletionRequest struct {
	// The ID of the customer master key (CMK). The ID must be globally unique.
	//
	// example:
	//
	// 7906979c-8e06-46a2-be2d-68e3ccbc****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The scheduled period after which the CMK is deleted. During this period, the CMK is in the PendingDeletion state. After this period ends, you cannot cancel the key deletion task.
	//
	// Valid values: 7 to 366.
	//
	// Unit: days.
	//
	// example:
	//
	// 7
	PendingWindowInDays *int32 `json:"PendingWindowInDays,omitempty" xml:"PendingWindowInDays,omitempty"`
}

func (ScheduleKeyDeletionRequest) GoString

func (s ScheduleKeyDeletionRequest) GoString() string

func (*ScheduleKeyDeletionRequest) SetKeyId

func (*ScheduleKeyDeletionRequest) SetPendingWindowInDays

func (s *ScheduleKeyDeletionRequest) SetPendingWindowInDays(v int32) *ScheduleKeyDeletionRequest

func (ScheduleKeyDeletionRequest) String

type ScheduleKeyDeletionResponse

type ScheduleKeyDeletionResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ScheduleKeyDeletionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ScheduleKeyDeletionResponse) GoString

func (s ScheduleKeyDeletionResponse) GoString() string

func (*ScheduleKeyDeletionResponse) SetBody

func (*ScheduleKeyDeletionResponse) SetHeaders

func (*ScheduleKeyDeletionResponse) SetStatusCode

func (ScheduleKeyDeletionResponse) String

type ScheduleKeyDeletionResponseBody

type ScheduleKeyDeletionResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3da5b8cc-8107-40ac-a170-793cd181d7b7
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ScheduleKeyDeletionResponseBody) GoString

func (*ScheduleKeyDeletionResponseBody) SetRequestId

func (ScheduleKeyDeletionResponseBody) String

type SetDeletionProtectionRequest

type SetDeletionProtectionRequest struct {
	// The description of deletion protection.
	//
	// >  This parameter takes effect only when you set the EnableDeletionProtection parameter to true.
	//
	// example:
	//
	// This key is being used by XXX service. You are protected from deletion.
	DeletionProtectionDescription *string `json:"DeletionProtectionDescription,omitempty" xml:"DeletionProtectionDescription,omitempty"`
	// Specifies whether to enable deletion protection. Valid values:
	//
	// 	- true: enables deletion protection.
	//
	// 	- false: disables deletion protection.
	//
	// example:
	//
	// true
	EnableDeletionProtection *bool `json:"EnableDeletionProtection,omitempty" xml:"EnableDeletionProtection,omitempty"`
	// The ARN of the CMK for which you want to set deletion protection.
	//
	// You can call the [DescribeKey](~~28952~~) operation to query the CMK ARN.
	//
	// example:
	//
	// acs:kms:cn-hangzhou:123213123****:key/0225f411-b21d-46d1-be5b-93931c82****
	ProtectedResourceArn *string `json:"ProtectedResourceArn,omitempty" xml:"ProtectedResourceArn,omitempty"`
}

func (SetDeletionProtectionRequest) GoString

func (s SetDeletionProtectionRequest) GoString() string

func (*SetDeletionProtectionRequest) SetDeletionProtectionDescription

func (s *SetDeletionProtectionRequest) SetDeletionProtectionDescription(v string) *SetDeletionProtectionRequest

func (*SetDeletionProtectionRequest) SetEnableDeletionProtection

func (s *SetDeletionProtectionRequest) SetEnableDeletionProtection(v bool) *SetDeletionProtectionRequest

func (*SetDeletionProtectionRequest) SetProtectedResourceArn

func (s *SetDeletionProtectionRequest) SetProtectedResourceArn(v string) *SetDeletionProtectionRequest

func (SetDeletionProtectionRequest) String

type SetDeletionProtectionResponse

type SetDeletionProtectionResponse struct {
	Headers    map[string]*string                 `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                             `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *SetDeletionProtectionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (SetDeletionProtectionResponse) GoString

func (*SetDeletionProtectionResponse) SetBody

func (*SetDeletionProtectionResponse) SetHeaders

func (*SetDeletionProtectionResponse) SetStatusCode

func (SetDeletionProtectionResponse) String

type SetDeletionProtectionResponseBody

type SetDeletionProtectionResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3455b9b4-95c1-419d-b310-db6a53b09a39
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (SetDeletionProtectionResponseBody) GoString

func (*SetDeletionProtectionResponseBody) SetRequestId

func (SetDeletionProtectionResponseBody) String

type SetKeyPolicyRequest added in v3.2.0

type SetKeyPolicyRequest struct {
	KeyId      *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	Policy     *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	PolicyName *string `json:"PolicyName,omitempty" xml:"PolicyName,omitempty"`
}

func (SetKeyPolicyRequest) GoString added in v3.2.0

func (s SetKeyPolicyRequest) GoString() string

func (*SetKeyPolicyRequest) SetKeyId added in v3.2.0

func (*SetKeyPolicyRequest) SetPolicy added in v3.2.0

func (*SetKeyPolicyRequest) SetPolicyName added in v3.2.0

func (s *SetKeyPolicyRequest) SetPolicyName(v string) *SetKeyPolicyRequest

func (SetKeyPolicyRequest) String added in v3.2.0

func (s SetKeyPolicyRequest) String() string

type SetKeyPolicyResponse added in v3.2.0

type SetKeyPolicyResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *SetKeyPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (SetKeyPolicyResponse) GoString added in v3.2.0

func (s SetKeyPolicyResponse) GoString() string

func (*SetKeyPolicyResponse) SetBody added in v3.2.0

func (*SetKeyPolicyResponse) SetHeaders added in v3.2.0

func (s *SetKeyPolicyResponse) SetHeaders(v map[string]*string) *SetKeyPolicyResponse

func (*SetKeyPolicyResponse) SetStatusCode added in v3.2.0

func (s *SetKeyPolicyResponse) SetStatusCode(v int32) *SetKeyPolicyResponse

func (SetKeyPolicyResponse) String added in v3.2.0

func (s SetKeyPolicyResponse) String() string

type SetKeyPolicyResponseBody added in v3.2.0

type SetKeyPolicyResponseBody struct {
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (SetKeyPolicyResponseBody) GoString added in v3.2.0

func (s SetKeyPolicyResponseBody) GoString() string

func (*SetKeyPolicyResponseBody) SetRequestId added in v3.2.0

func (SetKeyPolicyResponseBody) String added in v3.2.0

func (s SetKeyPolicyResponseBody) String() string

type SetSecretPolicyRequest added in v3.2.0

type SetSecretPolicyRequest struct {
	Policy     *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	PolicyName *string `json:"PolicyName,omitempty" xml:"PolicyName,omitempty"`
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (SetSecretPolicyRequest) GoString added in v3.2.0

func (s SetSecretPolicyRequest) GoString() string

func (*SetSecretPolicyRequest) SetPolicy added in v3.2.0

func (*SetSecretPolicyRequest) SetPolicyName added in v3.2.0

func (*SetSecretPolicyRequest) SetSecretName added in v3.2.0

func (SetSecretPolicyRequest) String added in v3.2.0

func (s SetSecretPolicyRequest) String() string

type SetSecretPolicyResponse added in v3.2.0

type SetSecretPolicyResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *SetSecretPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (SetSecretPolicyResponse) GoString added in v3.2.0

func (s SetSecretPolicyResponse) GoString() string

func (*SetSecretPolicyResponse) SetBody added in v3.2.0

func (*SetSecretPolicyResponse) SetHeaders added in v3.2.0

func (*SetSecretPolicyResponse) SetStatusCode added in v3.2.0

func (SetSecretPolicyResponse) String added in v3.2.0

func (s SetSecretPolicyResponse) String() string

type SetSecretPolicyResponseBody added in v3.2.0

type SetSecretPolicyResponseBody struct {
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (SetSecretPolicyResponseBody) GoString added in v3.2.0

func (s SetSecretPolicyResponseBody) GoString() string

func (*SetSecretPolicyResponseBody) SetRequestId added in v3.2.0

func (SetSecretPolicyResponseBody) String added in v3.2.0

type TagResourceRequest

type TagResourceRequest struct {
	// The ID of the certificate.
	//
	// >  You can configure only one of the KeyId, SecretName, and CertificateId parameters.
	//
	// example:
	//
	// 770dbe42-e146-43d1-a55a-1355db86****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The ID of the customer master key (CMK). The ID must be globally unique.
	//
	// >  You can configure only one of the KeyId, SecretName, and CertificateId parameters.
	//
	// example:
	//
	// 08c33a6f-4e0a-4a1b-a3fa-7ddf****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The name of the secret.
	//
	// >  You can configure only one of the KeyId, SecretName, and CertificateId parameters.
	//
	// example:
	//
	// MyDbC****
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// One or more tags that you want to add. The value is in the array format.
	//
	// Tag attributes:
	//
	// 	- TagKey: the tag key.
	//
	// 	- TagValue: the tag value.
	//
	// example:
	//
	// [{"TagKey":"S1key1","TagValue":"S1val1"},{"TagKey":"S1key2","TagValue":"S2val2"}]
	Tags *string `json:"Tags,omitempty" xml:"Tags,omitempty"`
}

func (TagResourceRequest) GoString

func (s TagResourceRequest) GoString() string

func (*TagResourceRequest) SetCertificateId

func (s *TagResourceRequest) SetCertificateId(v string) *TagResourceRequest

func (*TagResourceRequest) SetKeyId

func (*TagResourceRequest) SetSecretName

func (s *TagResourceRequest) SetSecretName(v string) *TagResourceRequest

func (*TagResourceRequest) SetTags

func (TagResourceRequest) String

func (s TagResourceRequest) String() string

type TagResourceResponse

type TagResourceResponse struct {
	Headers    map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *TagResourceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (TagResourceResponse) GoString

func (s TagResourceResponse) GoString() string

func (*TagResourceResponse) SetBody

func (*TagResourceResponse) SetHeaders

func (s *TagResourceResponse) SetHeaders(v map[string]*string) *TagResourceResponse

func (*TagResourceResponse) SetStatusCode

func (s *TagResourceResponse) SetStatusCode(v int32) *TagResourceResponse

func (TagResourceResponse) String

func (s TagResourceResponse) String() string

type TagResourceResponseBody

type TagResourceResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 4162a6af-bc99-40b3-a552-89dcc8aaf7c8
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (TagResourceResponseBody) GoString

func (s TagResourceResponseBody) GoString() string

func (*TagResourceResponseBody) SetRequestId

func (TagResourceResponseBody) String

func (s TagResourceResponseBody) String() string

type TagResourcesRequest added in v3.0.2

type TagResourcesRequest struct {
	// The region ID of the resource.
	//
	// >  You can call the [DescribeRegions](~~601478~~) to query the most recent region list.
	//
	// example:
	//
	// cn-hangzhou
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
	// The IDs of the resources to which you want to add tags. You can enter a maximum of 50 resource IDs.
	//
	// Enter multiple resource IDs in the `["ResourceId. 1","ResourceId. 2",...]` format.
	ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"`
	// The type of the resource to which you want to add tags. Valid values:
	//
	// 	- key
	//
	// 	- secret
	//
	// example:
	//
	// key
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// A list of tags. You can enter up to 20 tags.
	//
	// A tag consists of a key-value pair. Enter multiple tags in the `[{"Key":"key1","Value":"value1"},{"Key":"key2","Value":"value2"},..]` format.
	Tag []*TagResourcesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
}

func (TagResourcesRequest) GoString added in v3.0.2

func (s TagResourcesRequest) GoString() string

func (*TagResourcesRequest) SetRegionId added in v3.0.2

func (s *TagResourcesRequest) SetRegionId(v string) *TagResourcesRequest

func (*TagResourcesRequest) SetResourceId added in v3.0.2

func (s *TagResourcesRequest) SetResourceId(v []*string) *TagResourcesRequest

func (*TagResourcesRequest) SetResourceType added in v3.0.2

func (s *TagResourcesRequest) SetResourceType(v string) *TagResourcesRequest

func (*TagResourcesRequest) SetTag added in v3.0.2

func (TagResourcesRequest) String added in v3.0.2

func (s TagResourcesRequest) String() string

type TagResourcesRequestTag added in v3.0.2

type TagResourcesRequestTag struct {
	// The key of the tag. A tag consists of a key-value pair.
	//
	// You can enter up to 20 tags. Enter multiple tags in the `[{"Key":"key1","Value":"value1"},{"Key":"key2","Value":"value2"},..]` format.
	//
	// Each key can be up to 128 characters in length and can contain letters, digits, forward slashes (/), backslashes (\\), underscores (\_), hyphens (-), periods (.), plus signs (+), equal signs (=), colons (:), and at signs (@).
	//
	// >  The key cannot start with aliyun or acs:.
	//
	// example:
	//
	// disk-encryption
	Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
	// The value of the tag. A tag consists of a key-value pair.
	//
	// You can enter up to 20 tags. Enter multiple tags in the `[{"Key":"key1","Value":"value1"},{"Key":"key2","Value":"value2"},..]` format.
	//
	// Each value can be up to 128 characters in length and can contain letters, digits, forward slashes (/), backslashes (\\), underscores (\_), hyphens (-), periods (.), plus signs (+), equal signs (=), colons (:), and at signs (@).
	//
	// example:
	//
	// true
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (TagResourcesRequestTag) GoString added in v3.0.2

func (s TagResourcesRequestTag) GoString() string

func (*TagResourcesRequestTag) SetKey added in v3.0.2

func (*TagResourcesRequestTag) SetValue added in v3.0.2

func (TagResourcesRequestTag) String added in v3.0.2

func (s TagResourcesRequestTag) String() string

type TagResourcesResponse added in v3.0.2

type TagResourcesResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *TagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (TagResourcesResponse) GoString added in v3.0.2

func (s TagResourcesResponse) GoString() string

func (*TagResourcesResponse) SetBody added in v3.0.2

func (*TagResourcesResponse) SetHeaders added in v3.0.2

func (s *TagResourcesResponse) SetHeaders(v map[string]*string) *TagResourcesResponse

func (*TagResourcesResponse) SetStatusCode added in v3.0.2

func (s *TagResourcesResponse) SetStatusCode(v int32) *TagResourcesResponse

func (TagResourcesResponse) String added in v3.0.2

func (s TagResourcesResponse) String() string

type TagResourcesResponseBody added in v3.0.2

type TagResourcesResponseBody struct {
	// The request ID.
	//
	// example:
	//
	// 598d0219-45cd-4477-84ad-85a52d9debcf
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (TagResourcesResponseBody) GoString added in v3.0.2

func (s TagResourcesResponseBody) GoString() string

func (*TagResourcesResponseBody) SetRequestId added in v3.0.2

func (TagResourcesResponseBody) String added in v3.0.2

func (s TagResourcesResponseBody) String() string

type UntagResourceRequest

type UntagResourceRequest struct {
	// example:
	//
	// 770dbe42-e146-43d1-a55a-1355db86****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 08c33a6f-4e0a-4a1b-a3fa-7ddf****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// example:
	//
	// MyDbC****
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// example:
	//
	// ["tagkey1","tagkey2"]
	TagKeys *string `json:"TagKeys,omitempty" xml:"TagKeys,omitempty"`
}

func (UntagResourceRequest) GoString

func (s UntagResourceRequest) GoString() string

func (*UntagResourceRequest) SetCertificateId

func (s *UntagResourceRequest) SetCertificateId(v string) *UntagResourceRequest

func (*UntagResourceRequest) SetKeyId

func (*UntagResourceRequest) SetSecretName

func (s *UntagResourceRequest) SetSecretName(v string) *UntagResourceRequest

func (*UntagResourceRequest) SetTagKeys

func (UntagResourceRequest) String

func (s UntagResourceRequest) String() string

type UntagResourceResponse

type UntagResourceResponse struct {
	Headers    map[string]*string         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UntagResourceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UntagResourceResponse) GoString

func (s UntagResourceResponse) GoString() string

func (*UntagResourceResponse) SetBody

func (*UntagResourceResponse) SetHeaders

func (*UntagResourceResponse) SetStatusCode

func (s *UntagResourceResponse) SetStatusCode(v int32) *UntagResourceResponse

func (UntagResourceResponse) String

func (s UntagResourceResponse) String() string

type UntagResourceResponseBody

type UntagResourceResponseBody struct {
	// example:
	//
	// 4162a6af-bc99-40b3-a552-89dcc8aaf7c8
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UntagResourceResponseBody) GoString

func (s UntagResourceResponseBody) GoString() string

func (*UntagResourceResponseBody) SetRequestId

func (UntagResourceResponseBody) String

func (s UntagResourceResponseBody) String() string

type UntagResourcesRequest added in v3.0.2

type UntagResourcesRequest struct {
	// Specifies whether to remove all tags from resources. Valid values:
	//
	// 	- true
	//
	// 	- false (default)
	//
	// >  This parameter takes effect only when you specify an empty tag key.
	//
	// example:
	//
	// false
	All *bool `json:"All,omitempty" xml:"All,omitempty"`
	// The region ID of the resource.
	//
	// >  You can call the [DescribeRegions](~~601478~~) operation to query the most recent region list.
	//
	// example:
	//
	// cn-hangzhou
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
	// The IDs of the resources from which you want to remove tags. You can enter up to 50 resource IDs.
	//
	// Enter multiple resource IDs in the `["ResourceId.1","ResourceId.2",...]` format.
	ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"`
	// The type of the resource from which you want to remove tags. Valid values:
	//
	// 	- key
	//
	// 	- secret
	//
	// example:
	//
	// key
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The keys of the tags that you want to remove. You can enter up to 20 tag keys.
	//
	// Enter multiple tag keys in the `["key.1","key.2",...]` format.
	//
	// >  The tag key cannot start with aliyun or acs:.
	TagKey []*string `json:"TagKey,omitempty" xml:"TagKey,omitempty" type:"Repeated"`
}

func (UntagResourcesRequest) GoString added in v3.0.2

func (s UntagResourcesRequest) GoString() string

func (*UntagResourcesRequest) SetAll added in v3.0.2

func (*UntagResourcesRequest) SetRegionId added in v3.0.2

func (*UntagResourcesRequest) SetResourceId added in v3.0.2

func (s *UntagResourcesRequest) SetResourceId(v []*string) *UntagResourcesRequest

func (*UntagResourcesRequest) SetResourceType added in v3.0.2

func (s *UntagResourcesRequest) SetResourceType(v string) *UntagResourcesRequest

func (*UntagResourcesRequest) SetTagKey added in v3.0.2

func (UntagResourcesRequest) String added in v3.0.2

func (s UntagResourcesRequest) String() string

type UntagResourcesResponse added in v3.0.2

type UntagResourcesResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UntagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UntagResourcesResponse) GoString added in v3.0.2

func (s UntagResourcesResponse) GoString() string

func (*UntagResourcesResponse) SetBody added in v3.0.2

func (*UntagResourcesResponse) SetHeaders added in v3.0.2

func (*UntagResourcesResponse) SetStatusCode added in v3.0.2

func (UntagResourcesResponse) String added in v3.0.2

func (s UntagResourcesResponse) String() string

type UntagResourcesResponseBody added in v3.0.2

type UntagResourcesResponseBody struct {
	// The request ID.
	//
	// example:
	//
	// b1f210dc-e52c-4a86-b9dd-7492343d46c7
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UntagResourcesResponseBody) GoString added in v3.0.2

func (s UntagResourcesResponseBody) GoString() string

func (*UntagResourcesResponseBody) SetRequestId added in v3.0.2

func (UntagResourcesResponseBody) String added in v3.0.2

type UpdateAliasRequest

type UpdateAliasRequest struct {
	// The alias that you want to bind.
	//
	// The value must be 1 to 255 characters in length and must include the alias/ prefix.
	//
	// example:
	//
	// alias/example
	AliasName *string `json:"AliasName,omitempty" xml:"AliasName,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (UpdateAliasRequest) GoString

func (s UpdateAliasRequest) GoString() string

func (*UpdateAliasRequest) SetAliasName

func (s *UpdateAliasRequest) SetAliasName(v string) *UpdateAliasRequest

func (*UpdateAliasRequest) SetKeyId

func (UpdateAliasRequest) String

func (s UpdateAliasRequest) String() string

type UpdateAliasResponse

type UpdateAliasResponse struct {
	Headers    map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateAliasResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateAliasResponse) GoString

func (s UpdateAliasResponse) GoString() string

func (*UpdateAliasResponse) SetBody

func (*UpdateAliasResponse) SetHeaders

func (s *UpdateAliasResponse) SetHeaders(v map[string]*string) *UpdateAliasResponse

func (*UpdateAliasResponse) SetStatusCode

func (s *UpdateAliasResponse) SetStatusCode(v int32) *UpdateAliasResponse

func (UpdateAliasResponse) String

func (s UpdateAliasResponse) String() string

type UpdateAliasResponseBody

type UpdateAliasResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 1d2baaf3-d357-46c2-832e-13560c2bd9cd
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateAliasResponseBody) GoString

func (s UpdateAliasResponseBody) GoString() string

func (*UpdateAliasResponseBody) SetRequestId

func (UpdateAliasResponseBody) String

func (s UpdateAliasResponseBody) String() string

type UpdateApplicationAccessPointRequest added in v3.1.0

type UpdateApplicationAccessPointRequest struct {
	// The description.
	//
	// example:
	//
	// aap description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the AAP that you want to update.
	//
	// example:
	//
	// aap_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The permission policy that you want to update.
	//
	// > You can associate up to three permission policies with each AAP.
	//
	// example:
	//
	// ["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]
	Policies *string `json:"Policies,omitempty" xml:"Policies,omitempty"`
}

func (UpdateApplicationAccessPointRequest) GoString added in v3.1.0

func (*UpdateApplicationAccessPointRequest) SetDescription added in v3.1.0

func (*UpdateApplicationAccessPointRequest) SetName added in v3.1.0

func (*UpdateApplicationAccessPointRequest) SetPolicies added in v3.1.0

func (UpdateApplicationAccessPointRequest) String added in v3.1.0

type UpdateApplicationAccessPointResponse added in v3.1.0

type UpdateApplicationAccessPointResponse struct {
	Headers    map[string]*string                        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateApplicationAccessPointResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateApplicationAccessPointResponse) GoString added in v3.1.0

func (*UpdateApplicationAccessPointResponse) SetBody added in v3.1.0

func (*UpdateApplicationAccessPointResponse) SetHeaders added in v3.1.0

func (*UpdateApplicationAccessPointResponse) SetStatusCode added in v3.1.0

func (UpdateApplicationAccessPointResponse) String added in v3.1.0

type UpdateApplicationAccessPointResponseBody added in v3.1.0

type UpdateApplicationAccessPointResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// bcfefe15-46f0-44a3-bd96-3d422474b71a
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateApplicationAccessPointResponseBody) GoString added in v3.1.0

func (*UpdateApplicationAccessPointResponseBody) SetRequestId added in v3.1.0

func (UpdateApplicationAccessPointResponseBody) String added in v3.1.0

type UpdateCertificateStatusRequest

type UpdateCertificateStatusRequest struct {
	// The ID of the certificate. The ID must be globally unique in Certificates Manager.
	//
	// example:
	//
	// 9a28de48-8d8b-484d-a766-dec4****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
	// The status of the certificate. Valid values:
	//
	// 	- INACTIVE: The certificate is disabled.
	//
	// 	- ACTIVE: The certificate is enabled.
	//
	// 	- REVOKED: The certificate is revoked.
	//
	// > If the certificate is in the REVOKED state, you can use the certificate only to verify a signature, but not to generate a signature.
	//
	// example:
	//
	// INACTIVE
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
}

func (UpdateCertificateStatusRequest) GoString

func (*UpdateCertificateStatusRequest) SetCertificateId

func (*UpdateCertificateStatusRequest) SetStatus

func (UpdateCertificateStatusRequest) String

type UpdateCertificateStatusResponse

type UpdateCertificateStatusResponse struct {
	Headers    map[string]*string                   `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                               `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateCertificateStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateCertificateStatusResponse) GoString

func (*UpdateCertificateStatusResponse) SetHeaders

func (*UpdateCertificateStatusResponse) SetStatusCode

func (UpdateCertificateStatusResponse) String

type UpdateCertificateStatusResponseBody

type UpdateCertificateStatusResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// e3f57fe0-9ded-40b0-9caf-a3815f2148c1
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateCertificateStatusResponseBody) GoString

func (*UpdateCertificateStatusResponseBody) SetRequestId

func (UpdateCertificateStatusResponseBody) String

type UpdateKeyDescriptionRequest

type UpdateKeyDescriptionRequest struct {
	// The description of the CMK. This description includes the purpose of the CMK, such as the types of data that you want to protect and applications that can use the CMK.
	//
	// example:
	//
	// key description example
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The ID of the CMK. The ID must be globally unique.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
}

func (UpdateKeyDescriptionRequest) GoString

func (s UpdateKeyDescriptionRequest) GoString() string

func (*UpdateKeyDescriptionRequest) SetDescription

func (*UpdateKeyDescriptionRequest) SetKeyId

func (UpdateKeyDescriptionRequest) String

type UpdateKeyDescriptionResponse

type UpdateKeyDescriptionResponse struct {
	Headers    map[string]*string                `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                            `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateKeyDescriptionResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateKeyDescriptionResponse) GoString

func (s UpdateKeyDescriptionResponse) GoString() string

func (*UpdateKeyDescriptionResponse) SetBody

func (*UpdateKeyDescriptionResponse) SetHeaders

func (*UpdateKeyDescriptionResponse) SetStatusCode

func (UpdateKeyDescriptionResponse) String

type UpdateKeyDescriptionResponseBody

type UpdateKeyDescriptionResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3455b9b4-95c1-419d-b310-db6a53b09a39
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateKeyDescriptionResponseBody) GoString

func (*UpdateKeyDescriptionResponseBody) SetRequestId

func (UpdateKeyDescriptionResponseBody) String

type UpdateKmsInstanceBindVpcRequest added in v3.1.0

type UpdateKmsInstanceBindVpcRequest struct {
	// The VPC configuration. The configuration of each VPC contains the following content:
	//
	// 	- VpcId: the ID of the VPC.
	//
	// 	- VSwitchId: the vSwitch in the VPC.
	//
	// 	- RegionID: the ID of the region to which the VPC belongs.
	//
	// 	- VpcOwnerId: the Alibaba Cloud account to which the VPC belongs.
	//
	// Format: `[{"VpcId":"${VpcId}","VSwitchId":"${VSwitchId}","RegionId":"${RegionId}","VpcOwnerId":${VpcOwnerId}},..]`.
	//
	// example:
	//
	// [{"VpcId":"vpc-bp1go9qvmj78j4f4c****","VSwitchId":"vsw-bp16c5pvvcf0fp5b9****","RegionId":"cn-hangzhou","VpcOwnerId":120708975881****},{"VpcId":"vpc-bp14c07ucxg6h1xjm****","VSwitchId":"vsw-bp1wujtnspi1l3gvu****","RegionId":"cn-hangzhou","VpcOwnerId":119285303511****}]
	BindVpcs *string `json:"BindVpcs,omitempty" xml:"BindVpcs,omitempty"`
	// The ID of the KMS instance.
	//
	// example:
	//
	// kst-phzz64f722a1buamw0****
	KmsInstanceId *string `json:"KmsInstanceId,omitempty" xml:"KmsInstanceId,omitempty"`
}

func (UpdateKmsInstanceBindVpcRequest) GoString added in v3.1.0

func (*UpdateKmsInstanceBindVpcRequest) SetBindVpcs added in v3.1.0

func (*UpdateKmsInstanceBindVpcRequest) SetKmsInstanceId added in v3.1.0

func (UpdateKmsInstanceBindVpcRequest) String added in v3.1.0

type UpdateKmsInstanceBindVpcResponse added in v3.1.0

type UpdateKmsInstanceBindVpcResponse struct {
	Headers    map[string]*string                    `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateKmsInstanceBindVpcResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateKmsInstanceBindVpcResponse) GoString added in v3.1.0

func (*UpdateKmsInstanceBindVpcResponse) SetBody added in v3.1.0

func (*UpdateKmsInstanceBindVpcResponse) SetHeaders added in v3.1.0

func (*UpdateKmsInstanceBindVpcResponse) SetStatusCode added in v3.1.0

func (UpdateKmsInstanceBindVpcResponse) String added in v3.1.0

type UpdateKmsInstanceBindVpcResponseBody added in v3.1.0

type UpdateKmsInstanceBindVpcResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// d3eca5c8-a856-4347-8eb6-e1898c3fda2e
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateKmsInstanceBindVpcResponseBody) GoString added in v3.1.0

func (*UpdateKmsInstanceBindVpcResponseBody) SetRequestId added in v3.1.0

func (UpdateKmsInstanceBindVpcResponseBody) String added in v3.1.0

type UpdateNetworkRuleRequest added in v3.1.0

type UpdateNetworkRuleRequest struct {
	// The description after the update.
	//
	// example:
	//
	// Creat by kst-hzz62ee817bvyyr5****
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the access control rule that you want to update.
	//
	// example:
	//
	// networkrule_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The private IP address or CIDR block after the update. Separate multiple items with commas (,).
	//
	// example:
	//
	// ["192.10.XX.XX","192.168.XX.XX/24"]
	SourcePrivateIp *string `json:"SourcePrivateIp,omitempty" xml:"SourcePrivateIp,omitempty"`
}

func (UpdateNetworkRuleRequest) GoString added in v3.1.0

func (s UpdateNetworkRuleRequest) GoString() string

func (*UpdateNetworkRuleRequest) SetDescription added in v3.1.0

func (*UpdateNetworkRuleRequest) SetName added in v3.1.0

func (*UpdateNetworkRuleRequest) SetSourcePrivateIp added in v3.1.0

func (s *UpdateNetworkRuleRequest) SetSourcePrivateIp(v string) *UpdateNetworkRuleRequest

func (UpdateNetworkRuleRequest) String added in v3.1.0

func (s UpdateNetworkRuleRequest) String() string

type UpdateNetworkRuleResponse added in v3.1.0

type UpdateNetworkRuleResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateNetworkRuleResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateNetworkRuleResponse) GoString added in v3.1.0

func (s UpdateNetworkRuleResponse) GoString() string

func (*UpdateNetworkRuleResponse) SetBody added in v3.1.0

func (*UpdateNetworkRuleResponse) SetHeaders added in v3.1.0

func (*UpdateNetworkRuleResponse) SetStatusCode added in v3.1.0

func (UpdateNetworkRuleResponse) String added in v3.1.0

func (s UpdateNetworkRuleResponse) String() string

type UpdateNetworkRuleResponseBody added in v3.1.0

type UpdateNetworkRuleResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 3bf02f7a-015b-4f34-be0f-cc043fda2d85
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateNetworkRuleResponseBody) GoString added in v3.1.0

func (*UpdateNetworkRuleResponseBody) SetRequestId added in v3.1.0

func (UpdateNetworkRuleResponseBody) String added in v3.1.0

type UpdatePolicyRequest added in v3.1.0

type UpdatePolicyRequest struct {
	// The access control rule.
	//
	// > For more information about how to query created access control rules, see [ListNetworkRules](~~2539433~~).
	//
	// example:
	//
	// {"NetworkRules":["kst-hzz62ee817bvyyr5x****.efkd","kst-hzz62ee817bvyyr5x****.eyyp"]}
	AccessControlRules *string `json:"AccessControlRules,omitempty" xml:"AccessControlRules,omitempty"`
	// The description.
	//
	// example:
	//
	// policy  description
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the permission policy that you want to update.
	//
	// example:
	//
	// policy_test
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The operations that are supported by the updated policy. Valid values:
	//
	// 	- RbacPermission/Template/CryptoServiceKeyUser: allows you to perform cryptographic operations.
	//
	// 	- RbacPermission/Template/CryptoServiceSecretUser: allows you to perform secret-related operations.
	//
	// You can select both.
	//
	// example:
	//
	// ["RbacPermission/Template/CryptoServiceKeyUser", "RbacPermission/Template/CryptoServiceSecretUser"]
	Permissions *string `json:"Permissions,omitempty" xml:"Permissions,omitempty"`
	// The key and secret that are allowed to access after the update.
	//
	// 	- Key: Enter a key in the `key/${KeyId}` format. To allow access to all keys of a KMS instance, enter key/\*.
	//
	// 	- Secret: Enter a secret in the `secret/${SecretName}` format. To allow access to all secrets of a KMS instance, enter secret/\*.
	//
	// example:
	//
	// ["secret/acs/ram/user/ram-secret", "secret/acs/ram/user/acr-master", "key/key-hzz63d9c8d3dfv8cv****"]
	Resources *string `json:"Resources,omitempty" xml:"Resources,omitempty"`
}

func (UpdatePolicyRequest) GoString added in v3.1.0

func (s UpdatePolicyRequest) GoString() string

func (*UpdatePolicyRequest) SetAccessControlRules added in v3.1.0

func (s *UpdatePolicyRequest) SetAccessControlRules(v string) *UpdatePolicyRequest

func (*UpdatePolicyRequest) SetDescription added in v3.1.0

func (s *UpdatePolicyRequest) SetDescription(v string) *UpdatePolicyRequest

func (*UpdatePolicyRequest) SetName added in v3.1.0

func (*UpdatePolicyRequest) SetPermissions added in v3.1.0

func (s *UpdatePolicyRequest) SetPermissions(v string) *UpdatePolicyRequest

func (*UpdatePolicyRequest) SetResources added in v3.1.0

func (s *UpdatePolicyRequest) SetResources(v string) *UpdatePolicyRequest

func (UpdatePolicyRequest) String added in v3.1.0

func (s UpdatePolicyRequest) String() string

type UpdatePolicyResponse added in v3.1.0

type UpdatePolicyResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdatePolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdatePolicyResponse) GoString added in v3.1.0

func (s UpdatePolicyResponse) GoString() string

func (*UpdatePolicyResponse) SetBody added in v3.1.0

func (*UpdatePolicyResponse) SetHeaders added in v3.1.0

func (s *UpdatePolicyResponse) SetHeaders(v map[string]*string) *UpdatePolicyResponse

func (*UpdatePolicyResponse) SetStatusCode added in v3.1.0

func (s *UpdatePolicyResponse) SetStatusCode(v int32) *UpdatePolicyResponse

func (UpdatePolicyResponse) String added in v3.1.0

func (s UpdatePolicyResponse) String() string

type UpdatePolicyResponseBody added in v3.1.0

type UpdatePolicyResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// f455324b-e229-4066-9f58-9c1cf3fe83a8
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdatePolicyResponseBody) GoString added in v3.1.0

func (s UpdatePolicyResponseBody) GoString() string

func (*UpdatePolicyResponseBody) SetRequestId added in v3.1.0

func (UpdatePolicyResponseBody) String added in v3.1.0

func (s UpdatePolicyResponseBody) String() string

type UpdateRotationPolicyRequest

type UpdateRotationPolicyRequest struct {
	// Specifies whether to enable automatic key rotation. Valid values:
	//
	// 	- true: enables automatic key rotation.
	//
	// 	- false: disables automatic key rotation.
	//
	// example:
	//
	// true
	EnableAutomaticRotation *bool `json:"EnableAutomaticRotation,omitempty" xml:"EnableAutomaticRotation,omitempty"`
	// The ID of the customer master key (CMK). The ID must be globally unique.
	//
	// example:
	//
	// 1234abcd-12ab-34cd-56ef-12345678****
	KeyId *string `json:"KeyId,omitempty" xml:"KeyId,omitempty"`
	// The period of automatic key rotation. Specify the value in the integer\[unit] format. The following units are supported: d (day), h (hour), m (minute), and s (second). For example, you can use either 7d or 604800s to specify a seven-day period. The period can range from 7 days to 730 days.
	//
	// >  If you set the EnableAutomaticRotation parameter to true, you must also specify this parameter. If you set the EnableAutomaticRotation parameter to false, you can leave this parameter unspecified.
	//
	// example:
	//
	// 30d
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
}

func (UpdateRotationPolicyRequest) GoString

func (s UpdateRotationPolicyRequest) GoString() string

func (*UpdateRotationPolicyRequest) SetEnableAutomaticRotation

func (s *UpdateRotationPolicyRequest) SetEnableAutomaticRotation(v bool) *UpdateRotationPolicyRequest

func (*UpdateRotationPolicyRequest) SetKeyId

func (*UpdateRotationPolicyRequest) SetRotationInterval

func (UpdateRotationPolicyRequest) String

type UpdateRotationPolicyResponse

type UpdateRotationPolicyResponse struct {
	Headers    map[string]*string                `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                            `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateRotationPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateRotationPolicyResponse) GoString

func (s UpdateRotationPolicyResponse) GoString() string

func (*UpdateRotationPolicyResponse) SetBody

func (*UpdateRotationPolicyResponse) SetHeaders

func (*UpdateRotationPolicyResponse) SetStatusCode

func (UpdateRotationPolicyResponse) String

type UpdateRotationPolicyResponseBody

type UpdateRotationPolicyResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// efb1cbbd-a093-4278-bc03-639dd4fcc207
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateRotationPolicyResponseBody) GoString

func (*UpdateRotationPolicyResponseBody) SetRequestId

func (UpdateRotationPolicyResponseBody) String

type UpdateSecretRequest

type UpdateSecretRequest struct {
	ExtendedConfig *UpdateSecretRequestExtendedConfig `json:"ExtendedConfig,omitempty" xml:"ExtendedConfig,omitempty" type:"Struct"`
	// The description of the secret.
	//
	// example:
	//
	// datainfo
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (UpdateSecretRequest) GoString

func (s UpdateSecretRequest) GoString() string

func (*UpdateSecretRequest) SetDescription

func (s *UpdateSecretRequest) SetDescription(v string) *UpdateSecretRequest

func (*UpdateSecretRequest) SetExtendedConfig

func (*UpdateSecretRequest) SetSecretName

func (s *UpdateSecretRequest) SetSecretName(v string) *UpdateSecretRequest

func (UpdateSecretRequest) String

func (s UpdateSecretRequest) String() string

type UpdateSecretRequestExtendedConfig

type UpdateSecretRequestExtendedConfig struct {
	// The custom data in the extended configuration of the secret.
	//
	// > 	- If this parameter is specified, the existing extended configuration of the secret is updated.
	//
	// > 	- This parameter is unavailable for generic secrets.
	//
	// example:
	//
	// {"DBName":"app1","Port":"3306"}
	CustomData map[string]interface{} `json:"CustomData,omitempty" xml:"CustomData,omitempty"`
}

func (UpdateSecretRequestExtendedConfig) GoString

func (*UpdateSecretRequestExtendedConfig) SetCustomData

func (s *UpdateSecretRequestExtendedConfig) SetCustomData(v map[string]interface{}) *UpdateSecretRequestExtendedConfig

func (UpdateSecretRequestExtendedConfig) String

type UpdateSecretResponse

type UpdateSecretResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateSecretResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateSecretResponse) GoString

func (s UpdateSecretResponse) GoString() string

func (*UpdateSecretResponse) SetBody

func (*UpdateSecretResponse) SetHeaders

func (s *UpdateSecretResponse) SetHeaders(v map[string]*string) *UpdateSecretResponse

func (*UpdateSecretResponse) SetStatusCode

func (s *UpdateSecretResponse) SetStatusCode(v int32) *UpdateSecretResponse

func (UpdateSecretResponse) String

func (s UpdateSecretResponse) String() string

type UpdateSecretResponseBody

type UpdateSecretResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 5b75d8b1-5b6a-4ec0-8e0c-c08befdfad47
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (UpdateSecretResponseBody) GoString

func (s UpdateSecretResponseBody) GoString() string

func (*UpdateSecretResponseBody) SetRequestId

func (*UpdateSecretResponseBody) SetSecretName

func (UpdateSecretResponseBody) String

func (s UpdateSecretResponseBody) String() string

type UpdateSecretRotationPolicyRequest

type UpdateSecretRotationPolicyRequest struct {
	// Specifies whether to enable automatic rotation. Valid values:
	//
	// 	- true: enables automatic rotation.
	//
	// 	- false: does not enable automatic rotation. This is the default value.
	//
	// example:
	//
	// true
	EnableAutomaticRotation *bool `json:"EnableAutomaticRotation,omitempty" xml:"EnableAutomaticRotation,omitempty"`
	// The interval for automatic rotation. Valid values: 6 hours to 8,760 hours (365 days).
	//
	// The value is in the `integer[unit]` format.““
	//
	// The unit can be d (day), h (hour), m (minute), or s (second). For example, both 7d and 604800s indicate a seven-day interval.
	//
	// >  This parameter is required if you set the EnableAutomaticRotation parameter to true. This parameter is ignored if you set the EnableAutomaticRotation parameter to false or does not specify the EnableAutomaticRotation parameter.
	//
	// example:
	//
	// 30d
	RotationInterval *string `json:"RotationInterval,omitempty" xml:"RotationInterval,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// RdsSecret/Mysql5.4/MyCred
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (UpdateSecretRotationPolicyRequest) GoString

func (*UpdateSecretRotationPolicyRequest) SetEnableAutomaticRotation

func (*UpdateSecretRotationPolicyRequest) SetRotationInterval

func (*UpdateSecretRotationPolicyRequest) SetSecretName

func (UpdateSecretRotationPolicyRequest) String

type UpdateSecretRotationPolicyResponse

type UpdateSecretRotationPolicyResponse struct {
	Headers    map[string]*string                      `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                  `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateSecretRotationPolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateSecretRotationPolicyResponse) GoString

func (*UpdateSecretRotationPolicyResponse) SetHeaders

func (*UpdateSecretRotationPolicyResponse) SetStatusCode

func (UpdateSecretRotationPolicyResponse) String

type UpdateSecretRotationPolicyResponseBody

type UpdateSecretRotationPolicyResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 2c124f6f-4210-499f-b88a-69f54004d2d8
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// RdsSecret/Mysql5.4/MyCred
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (UpdateSecretRotationPolicyResponseBody) GoString

func (*UpdateSecretRotationPolicyResponseBody) SetRequestId

func (*UpdateSecretRotationPolicyResponseBody) SetSecretName

func (UpdateSecretRotationPolicyResponseBody) String

type UpdateSecretShrinkRequest

type UpdateSecretShrinkRequest struct {
	ExtendedConfig *UpdateSecretShrinkRequestExtendedConfig `json:"ExtendedConfig,omitempty" xml:"ExtendedConfig,omitempty" type:"Struct"`
	// The description of the secret.
	//
	// example:
	//
	// datainfo
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (UpdateSecretShrinkRequest) GoString

func (s UpdateSecretShrinkRequest) GoString() string

func (*UpdateSecretShrinkRequest) SetDescription

func (*UpdateSecretShrinkRequest) SetExtendedConfig

func (*UpdateSecretShrinkRequest) SetSecretName

func (UpdateSecretShrinkRequest) String

func (s UpdateSecretShrinkRequest) String() string

type UpdateSecretShrinkRequestExtendedConfig

type UpdateSecretShrinkRequestExtendedConfig struct {
	// The custom data in the extended configuration of the secret.
	//
	// > 	- If this parameter is specified, the existing extended configuration of the secret is updated.
	//
	// > 	- This parameter is unavailable for generic secrets.
	//
	// example:
	//
	// {"DBName":"app1","Port":"3306"}
	CustomData *string `json:"CustomData,omitempty" xml:"CustomData,omitempty"`
}

func (UpdateSecretShrinkRequestExtendedConfig) GoString

func (*UpdateSecretShrinkRequestExtendedConfig) SetCustomData

func (UpdateSecretShrinkRequestExtendedConfig) String

type UpdateSecretVersionStageRequest

type UpdateSecretVersionStageRequest struct {
	// The version from which you want to remove the specified stage label.
	//
	// >  You must specify at least one of the RemoveFromVersion and MoveToVersion parameters.
	//
	// example:
	//
	// 002
	MoveToVersion *string `json:"MoveToVersion,omitempty" xml:"MoveToVersion,omitempty"`
	// The specified stage label. Valid values:
	//
	// 	- ACSCurrent
	//
	// 	- ACSPrevious
	//
	// 	- Custom stage label
	//
	// example:
	//
	// 001
	RemoveFromVersion *string `json:"RemoveFromVersion,omitempty" xml:"RemoveFromVersion,omitempty"`
	// The operation that you want to perform. Set the value to **UpdateSecretVersionStage**.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
	// The name of the secret.
	//
	// example:
	//
	// ACSCurrent
	VersionStage *string `json:"VersionStage,omitempty" xml:"VersionStage,omitempty"`
}

func (UpdateSecretVersionStageRequest) GoString

func (*UpdateSecretVersionStageRequest) SetMoveToVersion

func (*UpdateSecretVersionStageRequest) SetRemoveFromVersion

func (*UpdateSecretVersionStageRequest) SetSecretName

func (*UpdateSecretVersionStageRequest) SetVersionStage

func (UpdateSecretVersionStageRequest) String

type UpdateSecretVersionStageResponse

type UpdateSecretVersionStageResponse struct {
	Headers    map[string]*string                    `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateSecretVersionStageResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateSecretVersionStageResponse) GoString

func (*UpdateSecretVersionStageResponse) SetHeaders

func (*UpdateSecretVersionStageResponse) SetStatusCode

func (UpdateSecretVersionStageResponse) String

type UpdateSecretVersionStageResponseBody

type UpdateSecretVersionStageResponseBody struct {
	// The name of the secret.
	//
	// example:
	//
	// 8cad259f-4d77-40ec-bbd7-b9c47a423bb9
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The version to which you want to apply the specified stage label.
	//
	// > 	- You must specify at least one of the RemoveFromVersion and MoveToVersion parameters.
	//
	// > 	- If the VersionStage parameter is set to ACSCurrent or ACSPrevious, this parameter is required.
	//
	// example:
	//
	// secret001
	SecretName *string `json:"SecretName,omitempty" xml:"SecretName,omitempty"`
}

func (UpdateSecretVersionStageResponseBody) GoString

func (*UpdateSecretVersionStageResponseBody) SetRequestId

func (*UpdateSecretVersionStageResponseBody) SetSecretName

func (UpdateSecretVersionStageResponseBody) String

type UploadCertificateRequest

type UploadCertificateRequest struct {
	// The certificate issued by the CA, which is in the Privacy Enhanced Mail (PEM) format.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----  (X.509 Certificate PEM Content)  -----END CERTIFICATE-----
	Certificate *string `json:"Certificate,omitempty" xml:"Certificate,omitempty"`
	// The certificate chain issued by the CA, which is in the PEM format.
	//
	// example:
	//
	// -----BEGIN CERTIFICATE-----  (Sub CA Certificate PEM Content)  -----END CERTIFICATE-----  -----BEGIN CERTIFICATE-----  (Sub CA Certificate PEM Content)  -----END CERTIFICATE-----  -----BEGIN CERTIFICATE-----  (Root CA Certificate PEM Content)  -----END CERTIFICATE-----
	CertificateChain *string `json:"CertificateChain,omitempty" xml:"CertificateChain,omitempty"`
	// The ID of the certificate. The ID must be globally unique in Certificates Manager.
	//
	// example:
	//
	// 12345678-1234-1234-1234-12345678****
	CertificateId *string `json:"CertificateId,omitempty" xml:"CertificateId,omitempty"`
}

func (UploadCertificateRequest) GoString

func (s UploadCertificateRequest) GoString() string

func (*UploadCertificateRequest) SetCertificate

func (*UploadCertificateRequest) SetCertificateChain

func (s *UploadCertificateRequest) SetCertificateChain(v string) *UploadCertificateRequest

func (*UploadCertificateRequest) SetCertificateId

func (UploadCertificateRequest) String

func (s UploadCertificateRequest) String() string

type UploadCertificateResponse

type UploadCertificateResponse struct {
	Headers    map[string]*string             `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                         `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UploadCertificateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UploadCertificateResponse) GoString

func (s UploadCertificateResponse) GoString() string

func (*UploadCertificateResponse) SetBody

func (*UploadCertificateResponse) SetHeaders

func (*UploadCertificateResponse) SetStatusCode

func (UploadCertificateResponse) String

func (s UploadCertificateResponse) String() string

type UploadCertificateResponseBody

type UploadCertificateResponseBody struct {
	// The ID of the request, which is used to locate and troubleshoot issues.
	//
	// example:
	//
	// 15a735a1-8fe6-45cc-a64c-3c4ff839334e
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UploadCertificateResponseBody) GoString

func (*UploadCertificateResponseBody) SetRequestId

func (UploadCertificateResponseBody) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL