Class KeyVersion
Provides a Alikms Key Version resource. For information about Alikms Key Version and how to use it, see What is Resource Alikms Key Version.
NOTE: Available in v1.85.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @this = new AliCloud.Kms.Key("this", new AliCloud.Kms.KeyArgs
{
});
var keyversion = new AliCloud.Kms.KeyVersion("keyversion", new AliCloud.Kms.KeyVersionArgs
{
KeyId = @this.Id,
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Kms
Assembly: Pulumi.AliCloud.dll
Syntax
public class KeyVersion : CustomResource
Constructors
View SourceKeyVersion(String, KeyVersionArgs, CustomResourceOptions)
Create a KeyVersion resource with the given unique name, arguments, and options.
Declaration
public KeyVersion(string name, KeyVersionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| KeyVersionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCreationDate
The date and time (UTC time) when the Alikms key version was created.
Declaration
public Output<string> CreationDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyId
The id of the master key (CMK).
Declaration
public Output<string> KeyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyVersionId
The id of the Alikms key version.
Declaration
public Output<string> KeyVersionId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, KeyVersionState, CustomResourceOptions)
Get an existing KeyVersion resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static KeyVersion Get(string name, Input<string> id, KeyVersionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| KeyVersionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| KeyVersion |