Show / Hide Table of Contents

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

}
Inheritance
System.Object
Resource
CustomResource
KeyVersion
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Kms
Assembly: Pulumi.AliCloud.dll
Syntax
public class KeyVersion : CustomResource

Constructors

View Source

KeyVersion(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 Source

CreationDate

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>
View Source

KeyId

The id of the master key (CMK).

Declaration
public Output<string> KeyId { get; }
Property Value
Type Description
Output<System.String>
View Source

KeyVersionId

The id of the Alikms key version.

Declaration
public Output<string> KeyVersionId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.