SecretVersion

A secret version resource.

Warning: All arguments including payload.secret_data will be stored in the raw state as plain-text.

Create a SecretVersion Resource

def SecretVersion(resource_name, opts=None, enabled=None, secret=None, secret_data=None, __props__=None);
name string
The unique name of the resource.
args SecretVersionArgs
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 SecretVersionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SecretVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SecretVersion Resource Properties

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

Inputs

The SecretVersion resource accepts the following input properties:

Secret string

Secret Manager secret resource

Enabled bool

The current state of the SecretVersion.

SecretData string

The secret data. Must be no larger than 64KiB. Note: This property is sensitive and will not be displayed in the plan.

Secret string

Secret Manager secret resource

Enabled bool

The current state of the SecretVersion.

SecretData string

The secret data. Must be no larger than 64KiB. Note: This property is sensitive and will not be displayed in the plan.

secret string

Secret Manager secret resource

enabled boolean

The current state of the SecretVersion.

secretData string

The secret data. Must be no larger than 64KiB. Note: This property is sensitive and will not be displayed in the plan.

secret str

Secret Manager secret resource

enabled bool

The current state of the SecretVersion.

secret_data str

The secret data. Must be no larger than 64KiB. Note: This property is sensitive and will not be displayed in the plan.

Outputs

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

CreateTime string

The time at which the Secret was created.

DestroyTime string

The time at which the Secret was destroyed. Only present if state is DESTROYED.

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

The resource name of the SecretVersion. Format: ‘projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}’

CreateTime string

The time at which the Secret was created.

DestroyTime string

The time at which the Secret was destroyed. Only present if state is DESTROYED.

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

The resource name of the SecretVersion. Format: ‘projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}’

createTime string

The time at which the Secret was created.

destroyTime string

The time at which the Secret was destroyed. Only present if state is DESTROYED.

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

The resource name of the SecretVersion. Format: ‘projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}’

create_time str

The time at which the Secret was created.

destroy_time str

The time at which the Secret was destroyed. Only present if state is DESTROYED.

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

The resource name of the SecretVersion. Format: ‘projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}’

Look up an Existing SecretVersion Resource

Get an existing SecretVersion 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?: SecretVersionState, opts?: CustomResourceOptions): SecretVersion
static get(resource_name, id, opts=None, create_time=None, destroy_time=None, enabled=None, name=None, secret=None, secret_data=None, __props__=None);
func GetSecretVersion(ctx *Context, name string, id IDInput, state *SecretVersionState, opts ...ResourceOption) (*SecretVersion, error)
public static SecretVersion Get(string name, Input<string> id, SecretVersionState? 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:

CreateTime string

The time at which the Secret was created.

DestroyTime string

The time at which the Secret was destroyed. Only present if state is DESTROYED.

Enabled bool

The current state of the SecretVersion.

Name string

The resource name of the SecretVersion. Format: ‘projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}’

Secret string

Secret Manager secret resource

SecretData string

The secret data. Must be no larger than 64KiB. Note: This property is sensitive and will not be displayed in the plan.

CreateTime string

The time at which the Secret was created.

DestroyTime string

The time at which the Secret was destroyed. Only present if state is DESTROYED.

Enabled bool

The current state of the SecretVersion.

Name string

The resource name of the SecretVersion. Format: ‘projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}’

Secret string

Secret Manager secret resource

SecretData string

The secret data. Must be no larger than 64KiB. Note: This property is sensitive and will not be displayed in the plan.

createTime string

The time at which the Secret was created.

destroyTime string

The time at which the Secret was destroyed. Only present if state is DESTROYED.

enabled boolean

The current state of the SecretVersion.

name string

The resource name of the SecretVersion. Format: ‘projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}’

secret string

Secret Manager secret resource

secretData string

The secret data. Must be no larger than 64KiB. Note: This property is sensitive and will not be displayed in the plan.

create_time str

The time at which the Secret was created.

destroy_time str

The time at which the Secret was destroyed. Only present if state is DESTROYED.

enabled bool

The current state of the SecretVersion.

name str

The resource name of the SecretVersion. Format: ‘projects/{{project}}/secrets/{{secret_id}}/versions/{{version}}’

secret str

Secret Manager secret resource

secret_data str

The secret data. Must be no larger than 64KiB. Note: This property is sensitive and will not be displayed in the plan.

Package Details

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