Ciphertext

Create a Ciphertext Resource

def Ciphertext(resource_name, opts=None, encryption_context=None, key_id=None, plaintext=None, __props__=None);
func NewCiphertext(ctx *Context, name string, args CiphertextArgs, opts ...ResourceOption) (*Ciphertext, error)
public Ciphertext(string name, CiphertextArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args CiphertextArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CiphertextArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CiphertextArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Ciphertext Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Ciphertext resource accepts the following input properties:

KeyId string

The globally unique ID of the CMK.

Plaintext string

The plaintext to be encrypted which must be encoded in Base64.

EncryptionContext Dictionary<string, string>

- (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

KeyId string

The globally unique ID of the CMK.

Plaintext string

The plaintext to be encrypted which must be encoded in Base64.

EncryptionContext map[string]string

- (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

keyId string

The globally unique ID of the CMK.

plaintext string

The plaintext to be encrypted which must be encoded in Base64.

encryptionContext {[key: string]: string}

- (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

key_id str

The globally unique ID of the CMK.

plaintext str

The plaintext to be encrypted which must be encoded in Base64.

encryption_context Dict[str, str]

- (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

Outputs

All input properties are implicitly available as output properties. Additionally, the Ciphertext resource produces the following output properties:

CiphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

Id string
The provider-assigned unique ID for this managed resource.
CiphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

Id string
The provider-assigned unique ID for this managed resource.
ciphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

id string
The provider-assigned unique ID for this managed resource.
ciphertext_blob str

The ciphertext of the data key encrypted with the primary CMK version.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Ciphertext Resource

Get an existing Ciphertext resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CiphertextState, opts?: CustomResourceOptions): Ciphertext
static get(resource_name, id, opts=None, ciphertext_blob=None, encryption_context=None, key_id=None, plaintext=None, __props__=None);
func GetCiphertext(ctx *Context, name string, id IDInput, state *CiphertextState, opts ...ResourceOption) (*Ciphertext, error)
public static Ciphertext Get(string name, Input<string> id, CiphertextState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CiphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

EncryptionContext Dictionary<string, string>

- (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

KeyId string

The globally unique ID of the CMK.

Plaintext string

The plaintext to be encrypted which must be encoded in Base64.

CiphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

EncryptionContext map[string]string

- (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

KeyId string

The globally unique ID of the CMK.

Plaintext string

The plaintext to be encrypted which must be encoded in Base64.

ciphertextBlob string

The ciphertext of the data key encrypted with the primary CMK version.

encryptionContext {[key: string]: string}

- (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

keyId string

The globally unique ID of the CMK.

plaintext string

The plaintext to be encrypted which must be encoded in Base64.

ciphertext_blob str

The ciphertext of the data key encrypted with the primary CMK version.

encryption_context Dict[str, str]

- (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see Encryption Context.

key_id str

The globally unique ID of the CMK.

plaintext str

The plaintext to be encrypted which must be encoded in Base64.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.