scaleway.SecretVersion
Explore with Pulumi AI
Import
The Secret Version can be imported using the {region}/{id}/{revision}
, e.g. ~> Important: Be aware if you import with revision latest
you will overwrite the version you used before. bash
$ pulumi import scaleway:index/secretVersion:SecretVersion main fr-par/11111111-1111-1111-1111-111111111111/2
Create SecretVersion Resource
new SecretVersion(name: string, args: SecretVersionArgs, opts?: CustomResourceOptions);
@overload
def SecretVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
data: Optional[str] = None,
description: Optional[str] = None,
region: Optional[str] = None,
secret_id: Optional[str] = None)
@overload
def SecretVersion(resource_name: str,
args: SecretVersionArgs,
opts: Optional[ResourceOptions] = None)
func NewSecretVersion(ctx *Context, name string, args SecretVersionArgs, opts ...ResourceOption) (*SecretVersion, error)
public SecretVersion(string name, SecretVersionArgs args, CustomResourceOptions? opts = null)
public SecretVersion(String name, SecretVersionArgs args)
public SecretVersion(String name, SecretVersionArgs args, CustomResourceOptions options)
type: scaleway:SecretVersion
properties: # The arguments to resource properties.
options: # 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.
- resource_name str
- The unique name of the resource.
- args SecretVersionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args SecretVersionArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The SecretVersion resource accepts the following input properties:
- Data string
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- Secret
Id string The Secret ID associated wit the secret version.
- Description string
Description of the secret version (e.g.
my-new-description
).- Region string
region
) The region in which the resource exists.
- Data string
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- Secret
Id string The Secret ID associated wit the secret version.
- Description string
Description of the secret version (e.g.
my-new-description
).- Region string
region
) The region in which the resource exists.
- data String
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- secret
Id String The Secret ID associated wit the secret version.
- description String
Description of the secret version (e.g.
my-new-description
).- region String
region
) The region in which the resource exists.
- data string
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- secret
Id string The Secret ID associated wit the secret version.
- description string
Description of the secret version (e.g.
my-new-description
).- region string
region
) The region in which the resource exists.
- data str
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- secret_
id str The Secret ID associated wit the secret version.
- description str
Description of the secret version (e.g.
my-new-description
).- region str
region
) The region in which the resource exists.
- data String
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- secret
Id String The Secret ID associated wit the secret version.
- description String
Description of the secret version (e.g.
my-new-description
).- region String
region
) The region in which the resource exists.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecretVersion resource produces the following output properties:
- Created
At string Date and time of secret version's creation (RFC 3339 format).
- Id string
The provider-assigned unique ID for this managed resource.
- Revision string
The revision for this Secret Version.
- Status string
The status of the Secret Version.
- Updated
At string Date and time of secret version's last update (RFC 3339 format).
- Created
At string Date and time of secret version's creation (RFC 3339 format).
- Id string
The provider-assigned unique ID for this managed resource.
- Revision string
The revision for this Secret Version.
- Status string
The status of the Secret Version.
- Updated
At string Date and time of secret version's last update (RFC 3339 format).
- created
At String Date and time of secret version's creation (RFC 3339 format).
- id String
The provider-assigned unique ID for this managed resource.
- revision String
The revision for this Secret Version.
- status String
The status of the Secret Version.
- updated
At String Date and time of secret version's last update (RFC 3339 format).
- created
At string Date and time of secret version's creation (RFC 3339 format).
- id string
The provider-assigned unique ID for this managed resource.
- revision string
The revision for this Secret Version.
- status string
The status of the Secret Version.
- updated
At string Date and time of secret version's last update (RFC 3339 format).
- created_
at str Date and time of secret version's creation (RFC 3339 format).
- id str
The provider-assigned unique ID for this managed resource.
- revision str
The revision for this Secret Version.
- status str
The status of the Secret Version.
- updated_
at str Date and time of secret version's last update (RFC 3339 format).
- created
At String Date and time of secret version's creation (RFC 3339 format).
- id String
The provider-assigned unique ID for this managed resource.
- revision String
The revision for this Secret Version.
- status String
The status of the Secret Version.
- updated
At String Date and time of secret version's last update (RFC 3339 format).
Look up 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
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
data: Optional[str] = None,
description: Optional[str] = None,
region: Optional[str] = None,
revision: Optional[str] = None,
secret_id: Optional[str] = None,
status: Optional[str] = None,
updated_at: Optional[str] = None) -> SecretVersion
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)
public static SecretVersion get(String name, Output<String> id, SecretVersionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Created
At string Date and time of secret version's creation (RFC 3339 format).
- Data string
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- Description string
Description of the secret version (e.g.
my-new-description
).- Region string
region
) The region in which the resource exists.- Revision string
The revision for this Secret Version.
- Secret
Id string The Secret ID associated wit the secret version.
- Status string
The status of the Secret Version.
- Updated
At string Date and time of secret version's last update (RFC 3339 format).
- Created
At string Date and time of secret version's creation (RFC 3339 format).
- Data string
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- Description string
Description of the secret version (e.g.
my-new-description
).- Region string
region
) The region in which the resource exists.- Revision string
The revision for this Secret Version.
- Secret
Id string The Secret ID associated wit the secret version.
- Status string
The status of the Secret Version.
- Updated
At string Date and time of secret version's last update (RFC 3339 format).
- created
At String Date and time of secret version's creation (RFC 3339 format).
- data String
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- description String
Description of the secret version (e.g.
my-new-description
).- region String
region
) The region in which the resource exists.- revision String
The revision for this Secret Version.
- secret
Id String The Secret ID associated wit the secret version.
- status String
The status of the Secret Version.
- updated
At String Date and time of secret version's last update (RFC 3339 format).
- created
At string Date and time of secret version's creation (RFC 3339 format).
- data string
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- description string
Description of the secret version (e.g.
my-new-description
).- region string
region
) The region in which the resource exists.- revision string
The revision for this Secret Version.
- secret
Id string The Secret ID associated wit the secret version.
- status string
The status of the Secret Version.
- updated
At string Date and time of secret version's last update (RFC 3339 format).
- created_
at str Date and time of secret version's creation (RFC 3339 format).
- data str
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- description str
Description of the secret version (e.g.
my-new-description
).- region str
region
) The region in which the resource exists.- revision str
The revision for this Secret Version.
- secret_
id str The Secret ID associated wit the secret version.
- status str
The status of the Secret Version.
- updated_
at str Date and time of secret version's last update (RFC 3339 format).
- created
At String Date and time of secret version's creation (RFC 3339 format).
- data String
The data payload of the secret version. Must be no larger than 64KiB. (e.g.
my-secret-version-payload
). more on the data section- description String
Description of the secret version (e.g.
my-new-description
).- region String
region
) The region in which the resource exists.- revision String
The revision for this Secret Version.
- secret
Id String The Secret ID associated wit the secret version.
- status String
The status of the Secret Version.
- updated
At String Date and time of secret version's last update (RFC 3339 format).
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.