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,
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

this = alicloud.kms.Key("this")
keyversion = alicloud.kms.KeyVersion("keyversion", key_id=this.id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _this = new alicloud.kms.Key("this", {});
const keyversion = new alicloud.kms.KeyVersion("keyversion", {keyId: _this.id});

Create a KeyVersion Resource

def KeyVersion(resource_name, opts=None, key_id=None, __props__=None);
func NewKeyVersion(ctx *Context, name string, args KeyVersionArgs, opts ...ResourceOption) (*KeyVersion, error)
public KeyVersion(string name, KeyVersionArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args KeyVersionArgs
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 KeyVersionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args KeyVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

KeyVersion Resource Properties

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

Inputs

The KeyVersion resource accepts the following input properties:

KeyId string

The id of the master key (CMK).

KeyId string

The id of the master key (CMK).

keyId string

The id of the master key (CMK).

key_id str

The id of the master key (CMK).

Outputs

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

CreationDate string

The date and time (UTC time) when the Alikms key version was created.

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

The id of the Alikms key version.

CreationDate string

The date and time (UTC time) when the Alikms key version was created.

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

The id of the Alikms key version.

creationDate string

The date and time (UTC time) when the Alikms key version was created.

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

The id of the Alikms key version.

creation_date str

The date and time (UTC time) when the Alikms key version was created.

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

The id of the Alikms key version.

Look up an Existing KeyVersion Resource

Get an existing KeyVersion 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?: KeyVersionState, opts?: CustomResourceOptions): KeyVersion
static get(resource_name, id, opts=None, creation_date=None, key_id=None, key_version_id=None, __props__=None);
func GetKeyVersion(ctx *Context, name string, id IDInput, state *KeyVersionState, opts ...ResourceOption) (*KeyVersion, error)
public static KeyVersion Get(string name, Input<string> id, KeyVersionState? 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:

CreationDate string

The date and time (UTC time) when the Alikms key version was created.

KeyId string

The id of the master key (CMK).

KeyVersionId string

The id of the Alikms key version.

CreationDate string

The date and time (UTC time) when the Alikms key version was created.

KeyId string

The id of the master key (CMK).

KeyVersionId string

The id of the Alikms key version.

creationDate string

The date and time (UTC time) when the Alikms key version was created.

keyId string

The id of the master key (CMK).

keyVersionId string

The id of the Alikms key version.

creation_date str

The date and time (UTC time) when the Alikms key version was created.

key_id str

The id of the master key (CMK).

key_version_id str

The id of the Alikms key version.

Package Details

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