Ciphertext
Create a Ciphertext Resource
new Ciphertext(name: string, args: CiphertextArgs, opts?: CustomResourceOptions);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:
- Key
Id string The globally unique ID of the CMK.
- Plaintext string
The plaintext to be encrypted which must be encoded in Base64.
- Encryption
Context 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.
- Key
Id string The globally unique ID of the CMK.
- Plaintext string
The plaintext to be encrypted which must be encoded in Base64.
- Encryption
Context 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.
- key
Id string The globally unique ID of the CMK.
- plaintext string
The plaintext to be encrypted which must be encoded in Base64.
- encryption
Context {[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:
- Ciphertext
Blob 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 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 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): Ciphertextstatic 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:
- Ciphertext
Blob string The ciphertext of the data key encrypted with the primary CMK version.
- Encryption
Context 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.
- Key
Id string The globally unique ID of the CMK.
- Plaintext string
The plaintext to be encrypted which must be encoded in Base64.
- Ciphertext
Blob string The ciphertext of the data key encrypted with the primary CMK version.
- Encryption
Context 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.
- Key
Id string The globally unique ID of the CMK.
- Plaintext string
The plaintext to be encrypted which must be encoded in Base64.
- ciphertext
Blob string The ciphertext of the data key encrypted with the primary CMK version.
- encryption
Context {[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 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
alicloudTerraform Provider.