public class CreateSecretRequest extends AbstractModel
Constructor and Description |
---|
CreateSecretRequest() |
CreateSecretRequest(CreateSecretRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get Description information, such as the detailed use cases.
|
String |
getKmsKeyId()
Get KMS CMK used for Secret encryption.
|
String |
getSecretBinary()
Get Base64-encoded plaintext of a binary Secret.
|
String |
getSecretName()
Get Secret name, which must be unique within a region.
|
String |
getSecretString()
Get Plaintext of a Secret, in text format.
|
Tag[] |
getTags()
Get List of tags.
|
String |
getVersionId()
Get Secret version.
|
void |
setDescription(String Description)
Set Description information, such as the detailed use cases.
|
void |
setKmsKeyId(String KmsKeyId)
Set KMS CMK used for Secret encryption.
|
void |
setSecretBinary(String SecretBinary)
Set Base64-encoded plaintext of a binary Secret.
|
void |
setSecretName(String SecretName)
Set Secret name, which must be unique within a region.
|
void |
setSecretString(String SecretString)
Set Plaintext of a Secret, in text format.
|
void |
setTags(Tag[] Tags)
Set List of tags.
|
void |
setVersionId(String VersionId)
Set Secret version.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateSecretRequest()
public CreateSecretRequest(CreateSecretRequest source)
public String getSecretName()
public void setSecretName(String SecretName)
SecretName
- Secret name, which must be unique within a region. The name can be up to 128 bytes, contain letters, digits, hyphens (-), and underscores (_), and must begin with a letter or digit.public String getVersionId()
public void setVersionId(String VersionId)
VersionId
- Secret version. It can be up to 64 bytes, contain letters, digits, hyphens (-), and underscores (_), and must begin with a letter or digit. `SecretName` and `VersionId` are used to query the Secret information.public String getDescription()
public void setDescription(String Description)
Description
- Description information, such as the detailed use cases. It can be up to 2048 bytes.public String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId
- KMS CMK used for Secret encryption. If this parameter is left empty, SecretsManager will create a CMK by default. You can also specify a KMS CMK that is created in the same region.public String getSecretBinary()
public void setSecretBinary(String SecretBinary)
SecretBinary
- Base64-encoded plaintext of a binary Secret. Either `SecretBinary` or `SecretString` must be set. A maximum of 4096 bytes is supported.public String getSecretString()
public void setSecretString(String SecretString)
SecretString
- Plaintext of a Secret, in text format. Base64 encoding is not required. Either `SecretBinary` or `SecretString` must be set. A maximum of 4096 bytes is supported.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- List of tags.Copyright © 2023. All rights reserved.