gcp.kms.getKMSSecretCiphertext
Explore with Pulumi AI
!> Warning: This data source is deprecated. Use the gcp.kms.SecretCiphertext
resource instead.
This data source allows you to encrypt data with Google Cloud KMS and use the ciphertext within your resource definitions.
For more information see the official documentation.
NOTE: Using this data source will allow you to conceal secret data within your resource definitions, but it does not take care of protecting that data in the logging output, plan output, or state output. Please take care to secure your secret data outside of resource definitions.
Using getKMSSecretCiphertext
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getKMSSecretCiphertext(args: GetKMSSecretCiphertextArgs, opts?: InvokeOptions): Promise<GetKMSSecretCiphertextResult>
function getKMSSecretCiphertextOutput(args: GetKMSSecretCiphertextOutputArgs, opts?: InvokeOptions): Output<GetKMSSecretCiphertextResult>
def get_kms_secret_ciphertext(crypto_key: Optional[str] = None,
plaintext: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKMSSecretCiphertextResult
def get_kms_secret_ciphertext_output(crypto_key: Optional[pulumi.Input[str]] = None,
plaintext: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKMSSecretCiphertextResult]
func GetKMSSecretCiphertext(ctx *Context, args *GetKMSSecretCiphertextArgs, opts ...InvokeOption) (*GetKMSSecretCiphertextResult, error)
func GetKMSSecretCiphertextOutput(ctx *Context, args *GetKMSSecretCiphertextOutputArgs, opts ...InvokeOption) GetKMSSecretCiphertextResultOutput
> Note: This function is named GetKMSSecretCiphertext
in the Go SDK.
public static class GetKMSSecretCiphertext
{
public static Task<GetKMSSecretCiphertextResult> InvokeAsync(GetKMSSecretCiphertextArgs args, InvokeOptions? opts = null)
public static Output<GetKMSSecretCiphertextResult> Invoke(GetKMSSecretCiphertextInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKMSSecretCiphertextResult> getKMSSecretCiphertext(GetKMSSecretCiphertextArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext
arguments:
# arguments dictionary
The following arguments are supported:
- crypto_
key str The id of the CryptoKey that will be used to encrypt the provided plaintext. This is represented by the format
{projectId}/{location}/{keyRingName}/{cryptoKeyName}
.- plaintext str
The plaintext to be encrypted
getKMSSecretCiphertext Result
The following output properties are available:
- Ciphertext string
Contains the result of encrypting the provided plaintext, encoded in base64.
- Crypto
Key string - Id string
The provider-assigned unique ID for this managed resource.
- Plaintext string
- Ciphertext string
Contains the result of encrypting the provided plaintext, encoded in base64.
- Crypto
Key string - Id string
The provider-assigned unique ID for this managed resource.
- Plaintext string
- ciphertext String
Contains the result of encrypting the provided plaintext, encoded in base64.
- crypto
Key String - id String
The provider-assigned unique ID for this managed resource.
- plaintext String
- ciphertext string
Contains the result of encrypting the provided plaintext, encoded in base64.
- crypto
Key string - id string
The provider-assigned unique ID for this managed resource.
- plaintext string
- ciphertext str
Contains the result of encrypting the provided plaintext, encoded in base64.
- crypto_
key str - id str
The provider-assigned unique ID for this managed resource.
- plaintext str
- ciphertext String
Contains the result of encrypting the provided plaintext, encoded in base64.
- crypto
Key String - id String
The provider-assigned unique ID for this managed resource.
- plaintext String
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.