Class GetAliases
Inheritance
System.Object
GetAliases
Inherited Members
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 static class GetAliases
Methods
View SourceInvokeAsync(GetAliasesArgs, InvokeOptions)
This data source provides a list of KMS aliases in an Alibaba Cloud account according to the specified filters.
NOTE: Available in v1.79.0+.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var kmsAliases = Output.Create(AliCloud.Kms.GetAliases.InvokeAsync(new AliCloud.Kms.GetAliasesArgs
{
Ids =
{
"d89e8a53-b708-41aa-8c67-6873axxx",
},
NameRegex = "alias/tf-testKmsAlias_123",
}));
this.FirstKeyId = data.Alicloud_kms_keys.Kms_keys_ds.Keys[0].Id;
}
[Output("firstKeyId")]
public Output<string> FirstKeyId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetAliasesResult> InvokeAsync(GetAliasesArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAliasesArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetAliasesResult> |