Class Alias
Create an alias for the master key (CMK).
NOTE: Available in v1.77.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var thisKey = new AliCloud.Kms.Key("thisKey", new AliCloud.Kms.KeyArgs
{
});
var thisAlias = new AliCloud.Kms.Alias("thisAlias", new AliCloud.Kms.AliasArgs
{
AliasName = "alias/test_kms_alias",
KeyId = thisKey.Id,
});
}
}
Inherited Members
Namespace: Pulumi.AliCloud.Kms
Assembly: Pulumi.AliCloud.dll
Syntax
public class Alias : CustomResource
Constructors
View SourceAlias(String, AliasArgs, CustomResourceOptions)
Create a Alias resource with the given unique name, arguments, and options.
Declaration
public Alias(string name, AliasArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AliasArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAliasName
The alias of CMK. Encrypt、GenerateDataKey、DescribeKey can be called using aliases. Length of characters other than prefixes: minimum length of 1 character and maximum length of 255 characters. Must contain prefix alias/.
Declaration
public Output<string> AliasName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyId
The id of the key.
Declaration
public Output<string> KeyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AliasState, CustomResourceOptions)
Get an existing Alias resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Alias Get(string name, Input<string> id, AliasState 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. |
| AliasState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Alias |