Documentation
¶
Index ¶
- type Alias
- type AliasArgs
- type AliasArray
- type AliasArrayInput
- type AliasArrayOutput
- type AliasInput
- type AliasMap
- type AliasMapInput
- type AliasMapOutput
- type AliasOutput
- type AliasState
- type Ciphertext
- type CiphertextArgs
- type CiphertextArray
- type CiphertextArrayInput
- type CiphertextArrayOutput
- func (CiphertextArrayOutput) ElementType() reflect.Type
- func (o CiphertextArrayOutput) Index(i pulumi.IntInput) CiphertextOutput
- func (o CiphertextArrayOutput) ToCiphertextArrayOutput() CiphertextArrayOutput
- func (o CiphertextArrayOutput) ToCiphertextArrayOutputWithContext(ctx context.Context) CiphertextArrayOutput
- type CiphertextInput
- type CiphertextMap
- type CiphertextMapInput
- type CiphertextMapOutput
- func (CiphertextMapOutput) ElementType() reflect.Type
- func (o CiphertextMapOutput) MapIndex(k pulumi.StringInput) CiphertextOutput
- func (o CiphertextMapOutput) ToCiphertextMapOutput() CiphertextMapOutput
- func (o CiphertextMapOutput) ToCiphertextMapOutputWithContext(ctx context.Context) CiphertextMapOutput
- type CiphertextOutput
- type CiphertextState
- type GetAliasesAlias
- type GetAliasesAliasArgs
- type GetAliasesAliasArray
- type GetAliasesAliasArrayInput
- type GetAliasesAliasArrayOutput
- func (GetAliasesAliasArrayOutput) ElementType() reflect.Type
- func (o GetAliasesAliasArrayOutput) Index(i pulumi.IntInput) GetAliasesAliasOutput
- func (o GetAliasesAliasArrayOutput) ToGetAliasesAliasArrayOutput() GetAliasesAliasArrayOutput
- func (o GetAliasesAliasArrayOutput) ToGetAliasesAliasArrayOutputWithContext(ctx context.Context) GetAliasesAliasArrayOutput
- type GetAliasesAliasInput
- type GetAliasesAliasOutput
- func (o GetAliasesAliasOutput) AliasName() pulumi.StringOutput
- func (GetAliasesAliasOutput) ElementType() reflect.Type
- func (o GetAliasesAliasOutput) Id() pulumi.StringOutput
- func (o GetAliasesAliasOutput) KeyId() pulumi.StringOutput
- func (o GetAliasesAliasOutput) ToGetAliasesAliasOutput() GetAliasesAliasOutput
- func (o GetAliasesAliasOutput) ToGetAliasesAliasOutputWithContext(ctx context.Context) GetAliasesAliasOutput
- type GetAliasesArgs
- type GetAliasesOutputArgs
- type GetAliasesResult
- type GetAliasesResultOutput
- func (o GetAliasesResultOutput) Aliases() GetAliasesAliasArrayOutput
- func (GetAliasesResultOutput) ElementType() reflect.Type
- func (o GetAliasesResultOutput) Id() pulumi.StringOutput
- func (o GetAliasesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetAliasesResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetAliasesResultOutput) Names() pulumi.StringArrayOutput
- func (o GetAliasesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetAliasesResultOutput) ToGetAliasesResultOutput() GetAliasesResultOutput
- func (o GetAliasesResultOutput) ToGetAliasesResultOutputWithContext(ctx context.Context) GetAliasesResultOutput
- type GetKeyVersionsArgs
- type GetKeyVersionsOutputArgs
- type GetKeyVersionsResult
- type GetKeyVersionsResultOutput
- func (GetKeyVersionsResultOutput) ElementType() reflect.Type
- func (o GetKeyVersionsResultOutput) Id() pulumi.StringOutput
- func (o GetKeyVersionsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetKeyVersionsResultOutput) KeyId() pulumi.StringOutput
- func (o GetKeyVersionsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetKeyVersionsResultOutput) ToGetKeyVersionsResultOutput() GetKeyVersionsResultOutput
- func (o GetKeyVersionsResultOutput) ToGetKeyVersionsResultOutputWithContext(ctx context.Context) GetKeyVersionsResultOutput
- func (o GetKeyVersionsResultOutput) Versions() GetKeyVersionsVersionArrayOutput
- type GetKeyVersionsVersion
- type GetKeyVersionsVersionArgs
- type GetKeyVersionsVersionArray
- func (GetKeyVersionsVersionArray) ElementType() reflect.Type
- func (i GetKeyVersionsVersionArray) ToGetKeyVersionsVersionArrayOutput() GetKeyVersionsVersionArrayOutput
- func (i GetKeyVersionsVersionArray) ToGetKeyVersionsVersionArrayOutputWithContext(ctx context.Context) GetKeyVersionsVersionArrayOutput
- type GetKeyVersionsVersionArrayInput
- type GetKeyVersionsVersionArrayOutput
- func (GetKeyVersionsVersionArrayOutput) ElementType() reflect.Type
- func (o GetKeyVersionsVersionArrayOutput) Index(i pulumi.IntInput) GetKeyVersionsVersionOutput
- func (o GetKeyVersionsVersionArrayOutput) ToGetKeyVersionsVersionArrayOutput() GetKeyVersionsVersionArrayOutput
- func (o GetKeyVersionsVersionArrayOutput) ToGetKeyVersionsVersionArrayOutputWithContext(ctx context.Context) GetKeyVersionsVersionArrayOutput
- type GetKeyVersionsVersionInput
- type GetKeyVersionsVersionOutput
- func (o GetKeyVersionsVersionOutput) CreateTime() pulumi.StringOutput
- func (o GetKeyVersionsVersionOutput) CreationDate() pulumi.StringOutput
- func (GetKeyVersionsVersionOutput) ElementType() reflect.Type
- func (o GetKeyVersionsVersionOutput) Id() pulumi.StringOutput
- func (o GetKeyVersionsVersionOutput) KeyId() pulumi.StringOutput
- func (o GetKeyVersionsVersionOutput) KeyVersionId() pulumi.StringOutput
- func (o GetKeyVersionsVersionOutput) ToGetKeyVersionsVersionOutput() GetKeyVersionsVersionOutput
- func (o GetKeyVersionsVersionOutput) ToGetKeyVersionsVersionOutputWithContext(ctx context.Context) GetKeyVersionsVersionOutput
- type GetKeysArgs
- type GetKeysKey
- type GetKeysKeyArgs
- type GetKeysKeyArray
- type GetKeysKeyArrayInput
- type GetKeysKeyArrayOutput
- func (GetKeysKeyArrayOutput) ElementType() reflect.Type
- func (o GetKeysKeyArrayOutput) Index(i pulumi.IntInput) GetKeysKeyOutput
- func (o GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutput() GetKeysKeyArrayOutput
- func (o GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutputWithContext(ctx context.Context) GetKeysKeyArrayOutput
- type GetKeysKeyInput
- type GetKeysKeyOutput
- func (o GetKeysKeyOutput) Arn() pulumi.StringOutput
- func (o GetKeysKeyOutput) AutomaticRotation() pulumi.StringOutput
- func (o GetKeysKeyOutput) CreationDate() pulumi.StringOutput
- func (o GetKeysKeyOutput) Creator() pulumi.StringOutput
- func (o GetKeysKeyOutput) DeleteDate() pulumi.StringOutput
- func (o GetKeysKeyOutput) Description() pulumi.StringOutput
- func (GetKeysKeyOutput) ElementType() reflect.Type
- func (o GetKeysKeyOutput) Id() pulumi.StringOutput
- func (o GetKeysKeyOutput) KeyId() pulumi.StringOutput
- func (o GetKeysKeyOutput) KeySpec() pulumi.StringOutput
- func (o GetKeysKeyOutput) KeyUsage() pulumi.StringOutput
- func (o GetKeysKeyOutput) LastRotationDate() pulumi.StringOutput
- func (o GetKeysKeyOutput) MaterialExpireTime() pulumi.StringOutput
- func (o GetKeysKeyOutput) NextRotationDate() pulumi.StringOutput
- func (o GetKeysKeyOutput) Origin() pulumi.StringOutput
- func (o GetKeysKeyOutput) PrimaryKeyVersion() pulumi.StringOutput
- func (o GetKeysKeyOutput) ProtectionLevel() pulumi.StringOutput
- func (o GetKeysKeyOutput) RotationInterval() pulumi.StringOutput
- func (o GetKeysKeyOutput) Status() pulumi.StringOutput
- func (o GetKeysKeyOutput) ToGetKeysKeyOutput() GetKeysKeyOutput
- func (o GetKeysKeyOutput) ToGetKeysKeyOutputWithContext(ctx context.Context) GetKeysKeyOutput
- type GetKeysOutputArgs
- type GetKeysResult
- type GetKeysResultOutput
- func (o GetKeysResultOutput) DescriptionRegex() pulumi.StringPtrOutput
- func (GetKeysResultOutput) ElementType() reflect.Type
- func (o GetKeysResultOutput) EnableDetails() pulumi.BoolPtrOutput
- func (o GetKeysResultOutput) Filters() pulumi.StringPtrOutput
- func (o GetKeysResultOutput) Id() pulumi.StringOutput
- func (o GetKeysResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetKeysResultOutput) Keys() GetKeysKeyArrayOutput
- func (o GetKeysResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetKeysResultOutput) Status() pulumi.StringPtrOutput
- func (o GetKeysResultOutput) ToGetKeysResultOutput() GetKeysResultOutput
- func (o GetKeysResultOutput) ToGetKeysResultOutputWithContext(ctx context.Context) GetKeysResultOutput
- type GetPlaintextArgs
- type GetPlaintextOutputArgs
- type GetPlaintextResult
- type GetPlaintextResultOutput
- func (o GetPlaintextResultOutput) CiphertextBlob() pulumi.StringOutput
- func (GetPlaintextResultOutput) ElementType() reflect.Type
- func (o GetPlaintextResultOutput) EncryptionContext() pulumi.StringMapOutput
- func (o GetPlaintextResultOutput) Id() pulumi.StringOutput
- func (o GetPlaintextResultOutput) KeyId() pulumi.StringOutput
- func (o GetPlaintextResultOutput) Plaintext() pulumi.StringOutput
- func (o GetPlaintextResultOutput) ToGetPlaintextResultOutput() GetPlaintextResultOutput
- func (o GetPlaintextResultOutput) ToGetPlaintextResultOutputWithContext(ctx context.Context) GetPlaintextResultOutput
- type GetSecretVersionsArgs
- type GetSecretVersionsOutputArgs
- type GetSecretVersionsResult
- type GetSecretVersionsResultOutput
- func (GetSecretVersionsResultOutput) ElementType() reflect.Type
- func (o GetSecretVersionsResultOutput) EnableDetails() pulumi.BoolPtrOutput
- func (o GetSecretVersionsResultOutput) Id() pulumi.StringOutput
- func (o GetSecretVersionsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetSecretVersionsResultOutput) IncludeDeprecated() pulumi.StringPtrOutput
- func (o GetSecretVersionsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetSecretVersionsResultOutput) SecretName() pulumi.StringOutput
- func (o GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutput() GetSecretVersionsResultOutput
- func (o GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutputWithContext(ctx context.Context) GetSecretVersionsResultOutput
- func (o GetSecretVersionsResultOutput) VersionStage() pulumi.StringPtrOutput
- func (o GetSecretVersionsResultOutput) Versions() GetSecretVersionsVersionArrayOutput
- type GetSecretVersionsVersion
- type GetSecretVersionsVersionArgs
- func (GetSecretVersionsVersionArgs) ElementType() reflect.Type
- func (i GetSecretVersionsVersionArgs) ToGetSecretVersionsVersionOutput() GetSecretVersionsVersionOutput
- func (i GetSecretVersionsVersionArgs) ToGetSecretVersionsVersionOutputWithContext(ctx context.Context) GetSecretVersionsVersionOutput
- type GetSecretVersionsVersionArray
- func (GetSecretVersionsVersionArray) ElementType() reflect.Type
- func (i GetSecretVersionsVersionArray) ToGetSecretVersionsVersionArrayOutput() GetSecretVersionsVersionArrayOutput
- func (i GetSecretVersionsVersionArray) ToGetSecretVersionsVersionArrayOutputWithContext(ctx context.Context) GetSecretVersionsVersionArrayOutput
- type GetSecretVersionsVersionArrayInput
- type GetSecretVersionsVersionArrayOutput
- func (GetSecretVersionsVersionArrayOutput) ElementType() reflect.Type
- func (o GetSecretVersionsVersionArrayOutput) Index(i pulumi.IntInput) GetSecretVersionsVersionOutput
- func (o GetSecretVersionsVersionArrayOutput) ToGetSecretVersionsVersionArrayOutput() GetSecretVersionsVersionArrayOutput
- func (o GetSecretVersionsVersionArrayOutput) ToGetSecretVersionsVersionArrayOutputWithContext(ctx context.Context) GetSecretVersionsVersionArrayOutput
- type GetSecretVersionsVersionInput
- type GetSecretVersionsVersionOutput
- func (GetSecretVersionsVersionOutput) ElementType() reflect.Type
- func (o GetSecretVersionsVersionOutput) SecretData() pulumi.StringOutput
- func (o GetSecretVersionsVersionOutput) SecretDataType() pulumi.StringOutput
- func (o GetSecretVersionsVersionOutput) SecretName() pulumi.StringOutput
- func (o GetSecretVersionsVersionOutput) ToGetSecretVersionsVersionOutput() GetSecretVersionsVersionOutput
- func (o GetSecretVersionsVersionOutput) ToGetSecretVersionsVersionOutputWithContext(ctx context.Context) GetSecretVersionsVersionOutput
- func (o GetSecretVersionsVersionOutput) VersionId() pulumi.StringOutput
- func (o GetSecretVersionsVersionOutput) VersionStages() pulumi.StringArrayOutput
- type GetSecretsArgs
- type GetSecretsOutputArgs
- type GetSecretsResult
- type GetSecretsResultOutput
- func (GetSecretsResultOutput) ElementType() reflect.Type
- func (o GetSecretsResultOutput) EnableDetails() pulumi.BoolPtrOutput
- func (o GetSecretsResultOutput) FetchTags() pulumi.BoolPtrOutput
- func (o GetSecretsResultOutput) Filters() pulumi.StringPtrOutput
- func (o GetSecretsResultOutput) Id() pulumi.StringOutput
- func (o GetSecretsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetSecretsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetSecretsResultOutput) Names() pulumi.StringArrayOutput
- func (o GetSecretsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetSecretsResultOutput) Secrets() GetSecretsSecretArrayOutput
- func (o GetSecretsResultOutput) Tags() pulumi.MapOutput
- func (o GetSecretsResultOutput) ToGetSecretsResultOutput() GetSecretsResultOutput
- func (o GetSecretsResultOutput) ToGetSecretsResultOutputWithContext(ctx context.Context) GetSecretsResultOutput
- type GetSecretsSecret
- type GetSecretsSecretArgs
- type GetSecretsSecretArray
- type GetSecretsSecretArrayInput
- type GetSecretsSecretArrayOutput
- func (GetSecretsSecretArrayOutput) ElementType() reflect.Type
- func (o GetSecretsSecretArrayOutput) Index(i pulumi.IntInput) GetSecretsSecretOutput
- func (o GetSecretsSecretArrayOutput) ToGetSecretsSecretArrayOutput() GetSecretsSecretArrayOutput
- func (o GetSecretsSecretArrayOutput) ToGetSecretsSecretArrayOutputWithContext(ctx context.Context) GetSecretsSecretArrayOutput
- type GetSecretsSecretInput
- type GetSecretsSecretOutput
- func (o GetSecretsSecretOutput) Arn() pulumi.StringOutput
- func (o GetSecretsSecretOutput) Description() pulumi.StringOutput
- func (GetSecretsSecretOutput) ElementType() reflect.Type
- func (o GetSecretsSecretOutput) EncryptionKeyId() pulumi.StringOutput
- func (o GetSecretsSecretOutput) Id() pulumi.StringOutput
- func (o GetSecretsSecretOutput) PlannedDeleteTime() pulumi.StringOutput
- func (o GetSecretsSecretOutput) SecretData() pulumi.StringOutput
- func (o GetSecretsSecretOutput) SecretDataType() pulumi.StringOutput
- func (o GetSecretsSecretOutput) SecretName() pulumi.StringOutput
- func (o GetSecretsSecretOutput) SecretType() pulumi.StringOutput
- func (o GetSecretsSecretOutput) Tags() pulumi.MapOutput
- func (o GetSecretsSecretOutput) ToGetSecretsSecretOutput() GetSecretsSecretOutput
- func (o GetSecretsSecretOutput) ToGetSecretsSecretOutputWithContext(ctx context.Context) GetSecretsSecretOutput
- func (o GetSecretsSecretOutput) VersionId() pulumi.StringOutput
- func (o GetSecretsSecretOutput) VersionStages() pulumi.StringArrayOutput
- type GetServiceArgs
- type GetServiceOutputArgs
- type GetServiceResult
- type GetServiceResultOutput
- func (GetServiceResultOutput) ElementType() reflect.Type
- func (o GetServiceResultOutput) Enable() pulumi.StringPtrOutput
- func (o GetServiceResultOutput) Id() pulumi.StringOutput
- func (o GetServiceResultOutput) Status() pulumi.StringOutput
- func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput
- func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput
- type Key
- type KeyArgs
- type KeyArray
- type KeyArrayInput
- type KeyArrayOutput
- type KeyInput
- type KeyMap
- type KeyMapInput
- type KeyMapOutput
- type KeyOutput
- type KeyState
- type KeyVersion
- type KeyVersionArgs
- type KeyVersionArray
- type KeyVersionArrayInput
- type KeyVersionArrayOutput
- func (KeyVersionArrayOutput) ElementType() reflect.Type
- func (o KeyVersionArrayOutput) Index(i pulumi.IntInput) KeyVersionOutput
- func (o KeyVersionArrayOutput) ToKeyVersionArrayOutput() KeyVersionArrayOutput
- func (o KeyVersionArrayOutput) ToKeyVersionArrayOutputWithContext(ctx context.Context) KeyVersionArrayOutput
- type KeyVersionInput
- type KeyVersionMap
- type KeyVersionMapInput
- type KeyVersionMapOutput
- func (KeyVersionMapOutput) ElementType() reflect.Type
- func (o KeyVersionMapOutput) MapIndex(k pulumi.StringInput) KeyVersionOutput
- func (o KeyVersionMapOutput) ToKeyVersionMapOutput() KeyVersionMapOutput
- func (o KeyVersionMapOutput) ToKeyVersionMapOutputWithContext(ctx context.Context) KeyVersionMapOutput
- type KeyVersionOutput
- type KeyVersionState
- type LookupCiphertextArgs
- type LookupCiphertextOutputArgs
- type LookupCiphertextResult
- type LookupCiphertextResultOutput
- func (o LookupCiphertextResultOutput) CiphertextBlob() pulumi.StringOutput
- func (LookupCiphertextResultOutput) ElementType() reflect.Type
- func (o LookupCiphertextResultOutput) EncryptionContext() pulumi.StringMapOutput
- func (o LookupCiphertextResultOutput) Id() pulumi.StringOutput
- func (o LookupCiphertextResultOutput) KeyId() pulumi.StringOutput
- func (o LookupCiphertextResultOutput) Plaintext() pulumi.StringOutput
- func (o LookupCiphertextResultOutput) ToLookupCiphertextResultOutput() LookupCiphertextResultOutput
- func (o LookupCiphertextResultOutput) ToLookupCiphertextResultOutputWithContext(ctx context.Context) LookupCiphertextResultOutput
- type Secret
- type SecretArgs
- type SecretArray
- type SecretArrayInput
- type SecretArrayOutput
- type SecretInput
- type SecretMap
- type SecretMapInput
- type SecretMapOutput
- type SecretOutput
- type SecretState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct { pulumi.CustomResourceState // 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/`. AliasName pulumi.StringOutput `pulumi:"aliasName"` // The id of the key. KeyId pulumi.StringOutput `pulumi:"keyId"` }
Create an alias for the master key (CMK).
> **NOTE:** Available in v1.77.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { thisKey, err := kms.NewKey(ctx, "thisKey", nil) if err != nil { return err } _, err = kms.NewAlias(ctx, "thisAlias", &kms.AliasArgs{ AliasName: pulumi.String("alias/test_kms_alias"), KeyId: thisKey.ID(), }) if err != nil { return err } return nil }) }
```
## Import
KMS alias can be imported using the id, e.g.
```sh
$ pulumi import alicloud:kms/alias:Alias example alias/test_kms_alias
```
func GetAlias ¶
func GetAlias(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AliasState, opts ...pulumi.ResourceOption) (*Alias, error)
GetAlias gets an existing Alias resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAlias ¶
func NewAlias(ctx *pulumi.Context, name string, args *AliasArgs, opts ...pulumi.ResourceOption) (*Alias, error)
NewAlias registers a new resource with the given unique name, arguments, and options.
func (*Alias) ElementType ¶
func (*Alias) ToAliasOutput ¶
func (i *Alias) ToAliasOutput() AliasOutput
func (*Alias) ToAliasOutputWithContext ¶
func (i *Alias) ToAliasOutputWithContext(ctx context.Context) AliasOutput
type AliasArgs ¶
type AliasArgs struct { // 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/`. AliasName pulumi.StringInput // The id of the key. KeyId pulumi.StringInput }
The set of arguments for constructing a Alias resource.
func (AliasArgs) ElementType ¶
type AliasArray ¶
type AliasArray []AliasInput
func (AliasArray) ElementType ¶
func (AliasArray) ElementType() reflect.Type
func (AliasArray) ToAliasArrayOutput ¶
func (i AliasArray) ToAliasArrayOutput() AliasArrayOutput
func (AliasArray) ToAliasArrayOutputWithContext ¶
func (i AliasArray) ToAliasArrayOutputWithContext(ctx context.Context) AliasArrayOutput
type AliasArrayInput ¶
type AliasArrayInput interface { pulumi.Input ToAliasArrayOutput() AliasArrayOutput ToAliasArrayOutputWithContext(context.Context) AliasArrayOutput }
AliasArrayInput is an input type that accepts AliasArray and AliasArrayOutput values. You can construct a concrete instance of `AliasArrayInput` via:
AliasArray{ AliasArgs{...} }
type AliasArrayOutput ¶
type AliasArrayOutput struct{ *pulumi.OutputState }
func (AliasArrayOutput) ElementType ¶
func (AliasArrayOutput) ElementType() reflect.Type
func (AliasArrayOutput) Index ¶
func (o AliasArrayOutput) Index(i pulumi.IntInput) AliasOutput
func (AliasArrayOutput) ToAliasArrayOutput ¶
func (o AliasArrayOutput) ToAliasArrayOutput() AliasArrayOutput
func (AliasArrayOutput) ToAliasArrayOutputWithContext ¶
func (o AliasArrayOutput) ToAliasArrayOutputWithContext(ctx context.Context) AliasArrayOutput
type AliasInput ¶
type AliasInput interface { pulumi.Input ToAliasOutput() AliasOutput ToAliasOutputWithContext(ctx context.Context) AliasOutput }
type AliasMap ¶
type AliasMap map[string]AliasInput
func (AliasMap) ElementType ¶
func (AliasMap) ToAliasMapOutput ¶
func (i AliasMap) ToAliasMapOutput() AliasMapOutput
func (AliasMap) ToAliasMapOutputWithContext ¶
func (i AliasMap) ToAliasMapOutputWithContext(ctx context.Context) AliasMapOutput
type AliasMapInput ¶
type AliasMapInput interface { pulumi.Input ToAliasMapOutput() AliasMapOutput ToAliasMapOutputWithContext(context.Context) AliasMapOutput }
AliasMapInput is an input type that accepts AliasMap and AliasMapOutput values. You can construct a concrete instance of `AliasMapInput` via:
AliasMap{ "key": AliasArgs{...} }
type AliasMapOutput ¶
type AliasMapOutput struct{ *pulumi.OutputState }
func (AliasMapOutput) ElementType ¶
func (AliasMapOutput) ElementType() reflect.Type
func (AliasMapOutput) MapIndex ¶
func (o AliasMapOutput) MapIndex(k pulumi.StringInput) AliasOutput
func (AliasMapOutput) ToAliasMapOutput ¶
func (o AliasMapOutput) ToAliasMapOutput() AliasMapOutput
func (AliasMapOutput) ToAliasMapOutputWithContext ¶
func (o AliasMapOutput) ToAliasMapOutputWithContext(ctx context.Context) AliasMapOutput
type AliasOutput ¶
type AliasOutput struct{ *pulumi.OutputState }
func (AliasOutput) ElementType ¶
func (AliasOutput) ElementType() reflect.Type
func (AliasOutput) ToAliasOutput ¶
func (o AliasOutput) ToAliasOutput() AliasOutput
func (AliasOutput) ToAliasOutputWithContext ¶
func (o AliasOutput) ToAliasOutputWithContext(ctx context.Context) AliasOutput
type AliasState ¶
type AliasState struct { // 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/`. AliasName pulumi.StringPtrInput // The id of the key. KeyId pulumi.StringPtrInput }
func (AliasState) ElementType ¶
func (AliasState) ElementType() reflect.Type
type Ciphertext ¶
type Ciphertext struct { pulumi.CustomResourceState // The ciphertext of the data key encrypted with the primary CMK version. CiphertextBlob pulumi.StringOutput `pulumi:"ciphertextBlob"` // - // (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). EncryptionContext pulumi.StringMapOutput `pulumi:"encryptionContext"` // The globally unique ID of the CMK. KeyId pulumi.StringOutput `pulumi:"keyId"` // The plaintext to be encrypted which must be encoded in Base64. Plaintext pulumi.StringOutput `pulumi:"plaintext"` }
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { key, err := kms.NewKey(ctx, "key", &kms.KeyArgs{ Description: pulumi.String("example key"), IsEnabled: pulumi.Bool(true), }) if err != nil { return err } _, err = kms.NewCiphertext(ctx, "encrypted", &kms.CiphertextArgs{ KeyId: key.ID(), Plaintext: pulumi.String("example"), }) if err != nil { return err } return nil }) }
```
func GetCiphertext ¶
func GetCiphertext(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CiphertextState, opts ...pulumi.ResourceOption) (*Ciphertext, error)
GetCiphertext gets an existing Ciphertext resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewCiphertext ¶
func NewCiphertext(ctx *pulumi.Context, name string, args *CiphertextArgs, opts ...pulumi.ResourceOption) (*Ciphertext, error)
NewCiphertext registers a new resource with the given unique name, arguments, and options.
func (*Ciphertext) ElementType ¶
func (*Ciphertext) ElementType() reflect.Type
func (*Ciphertext) ToCiphertextOutput ¶
func (i *Ciphertext) ToCiphertextOutput() CiphertextOutput
func (*Ciphertext) ToCiphertextOutputWithContext ¶
func (i *Ciphertext) ToCiphertextOutputWithContext(ctx context.Context) CiphertextOutput
type CiphertextArgs ¶
type CiphertextArgs struct { // - // (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). EncryptionContext pulumi.StringMapInput // The globally unique ID of the CMK. KeyId pulumi.StringInput // The plaintext to be encrypted which must be encoded in Base64. Plaintext pulumi.StringInput }
The set of arguments for constructing a Ciphertext resource.
func (CiphertextArgs) ElementType ¶
func (CiphertextArgs) ElementType() reflect.Type
type CiphertextArray ¶
type CiphertextArray []CiphertextInput
func (CiphertextArray) ElementType ¶
func (CiphertextArray) ElementType() reflect.Type
func (CiphertextArray) ToCiphertextArrayOutput ¶
func (i CiphertextArray) ToCiphertextArrayOutput() CiphertextArrayOutput
func (CiphertextArray) ToCiphertextArrayOutputWithContext ¶
func (i CiphertextArray) ToCiphertextArrayOutputWithContext(ctx context.Context) CiphertextArrayOutput
type CiphertextArrayInput ¶
type CiphertextArrayInput interface { pulumi.Input ToCiphertextArrayOutput() CiphertextArrayOutput ToCiphertextArrayOutputWithContext(context.Context) CiphertextArrayOutput }
CiphertextArrayInput is an input type that accepts CiphertextArray and CiphertextArrayOutput values. You can construct a concrete instance of `CiphertextArrayInput` via:
CiphertextArray{ CiphertextArgs{...} }
type CiphertextArrayOutput ¶
type CiphertextArrayOutput struct{ *pulumi.OutputState }
func (CiphertextArrayOutput) ElementType ¶
func (CiphertextArrayOutput) ElementType() reflect.Type
func (CiphertextArrayOutput) Index ¶
func (o CiphertextArrayOutput) Index(i pulumi.IntInput) CiphertextOutput
func (CiphertextArrayOutput) ToCiphertextArrayOutput ¶
func (o CiphertextArrayOutput) ToCiphertextArrayOutput() CiphertextArrayOutput
func (CiphertextArrayOutput) ToCiphertextArrayOutputWithContext ¶
func (o CiphertextArrayOutput) ToCiphertextArrayOutputWithContext(ctx context.Context) CiphertextArrayOutput
type CiphertextInput ¶
type CiphertextInput interface { pulumi.Input ToCiphertextOutput() CiphertextOutput ToCiphertextOutputWithContext(ctx context.Context) CiphertextOutput }
type CiphertextMap ¶
type CiphertextMap map[string]CiphertextInput
func (CiphertextMap) ElementType ¶
func (CiphertextMap) ElementType() reflect.Type
func (CiphertextMap) ToCiphertextMapOutput ¶
func (i CiphertextMap) ToCiphertextMapOutput() CiphertextMapOutput
func (CiphertextMap) ToCiphertextMapOutputWithContext ¶
func (i CiphertextMap) ToCiphertextMapOutputWithContext(ctx context.Context) CiphertextMapOutput
type CiphertextMapInput ¶
type CiphertextMapInput interface { pulumi.Input ToCiphertextMapOutput() CiphertextMapOutput ToCiphertextMapOutputWithContext(context.Context) CiphertextMapOutput }
CiphertextMapInput is an input type that accepts CiphertextMap and CiphertextMapOutput values. You can construct a concrete instance of `CiphertextMapInput` via:
CiphertextMap{ "key": CiphertextArgs{...} }
type CiphertextMapOutput ¶
type CiphertextMapOutput struct{ *pulumi.OutputState }
func (CiphertextMapOutput) ElementType ¶
func (CiphertextMapOutput) ElementType() reflect.Type
func (CiphertextMapOutput) MapIndex ¶
func (o CiphertextMapOutput) MapIndex(k pulumi.StringInput) CiphertextOutput
func (CiphertextMapOutput) ToCiphertextMapOutput ¶
func (o CiphertextMapOutput) ToCiphertextMapOutput() CiphertextMapOutput
func (CiphertextMapOutput) ToCiphertextMapOutputWithContext ¶
func (o CiphertextMapOutput) ToCiphertextMapOutputWithContext(ctx context.Context) CiphertextMapOutput
type CiphertextOutput ¶
type CiphertextOutput struct{ *pulumi.OutputState }
func (CiphertextOutput) ElementType ¶
func (CiphertextOutput) ElementType() reflect.Type
func (CiphertextOutput) ToCiphertextOutput ¶
func (o CiphertextOutput) ToCiphertextOutput() CiphertextOutput
func (CiphertextOutput) ToCiphertextOutputWithContext ¶
func (o CiphertextOutput) ToCiphertextOutputWithContext(ctx context.Context) CiphertextOutput
type CiphertextState ¶
type CiphertextState struct { // The ciphertext of the data key encrypted with the primary CMK version. CiphertextBlob pulumi.StringPtrInput // - // (Optional, ForceNew) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). EncryptionContext pulumi.StringMapInput // The globally unique ID of the CMK. KeyId pulumi.StringPtrInput // The plaintext to be encrypted which must be encoded in Base64. Plaintext pulumi.StringPtrInput }
func (CiphertextState) ElementType ¶
func (CiphertextState) ElementType() reflect.Type
type GetAliasesAlias ¶
type GetAliasesAliasArgs ¶
type GetAliasesAliasArgs struct { // The unique identifier of the alias. AliasName pulumi.StringInput `pulumi:"aliasName"` // ID of the alias. The value is same as KMS alias_name. Id pulumi.StringInput `pulumi:"id"` // ID of the key. KeyId pulumi.StringInput `pulumi:"keyId"` }
func (GetAliasesAliasArgs) ElementType ¶
func (GetAliasesAliasArgs) ElementType() reflect.Type
func (GetAliasesAliasArgs) ToGetAliasesAliasOutput ¶
func (i GetAliasesAliasArgs) ToGetAliasesAliasOutput() GetAliasesAliasOutput
func (GetAliasesAliasArgs) ToGetAliasesAliasOutputWithContext ¶
func (i GetAliasesAliasArgs) ToGetAliasesAliasOutputWithContext(ctx context.Context) GetAliasesAliasOutput
type GetAliasesAliasArray ¶
type GetAliasesAliasArray []GetAliasesAliasInput
func (GetAliasesAliasArray) ElementType ¶
func (GetAliasesAliasArray) ElementType() reflect.Type
func (GetAliasesAliasArray) ToGetAliasesAliasArrayOutput ¶
func (i GetAliasesAliasArray) ToGetAliasesAliasArrayOutput() GetAliasesAliasArrayOutput
func (GetAliasesAliasArray) ToGetAliasesAliasArrayOutputWithContext ¶
func (i GetAliasesAliasArray) ToGetAliasesAliasArrayOutputWithContext(ctx context.Context) GetAliasesAliasArrayOutput
type GetAliasesAliasArrayInput ¶
type GetAliasesAliasArrayInput interface { pulumi.Input ToGetAliasesAliasArrayOutput() GetAliasesAliasArrayOutput ToGetAliasesAliasArrayOutputWithContext(context.Context) GetAliasesAliasArrayOutput }
GetAliasesAliasArrayInput is an input type that accepts GetAliasesAliasArray and GetAliasesAliasArrayOutput values. You can construct a concrete instance of `GetAliasesAliasArrayInput` via:
GetAliasesAliasArray{ GetAliasesAliasArgs{...} }
type GetAliasesAliasArrayOutput ¶
type GetAliasesAliasArrayOutput struct{ *pulumi.OutputState }
func (GetAliasesAliasArrayOutput) ElementType ¶
func (GetAliasesAliasArrayOutput) ElementType() reflect.Type
func (GetAliasesAliasArrayOutput) Index ¶
func (o GetAliasesAliasArrayOutput) Index(i pulumi.IntInput) GetAliasesAliasOutput
func (GetAliasesAliasArrayOutput) ToGetAliasesAliasArrayOutput ¶
func (o GetAliasesAliasArrayOutput) ToGetAliasesAliasArrayOutput() GetAliasesAliasArrayOutput
func (GetAliasesAliasArrayOutput) ToGetAliasesAliasArrayOutputWithContext ¶
func (o GetAliasesAliasArrayOutput) ToGetAliasesAliasArrayOutputWithContext(ctx context.Context) GetAliasesAliasArrayOutput
type GetAliasesAliasInput ¶
type GetAliasesAliasInput interface { pulumi.Input ToGetAliasesAliasOutput() GetAliasesAliasOutput ToGetAliasesAliasOutputWithContext(context.Context) GetAliasesAliasOutput }
GetAliasesAliasInput is an input type that accepts GetAliasesAliasArgs and GetAliasesAliasOutput values. You can construct a concrete instance of `GetAliasesAliasInput` via:
GetAliasesAliasArgs{...}
type GetAliasesAliasOutput ¶
type GetAliasesAliasOutput struct{ *pulumi.OutputState }
func (GetAliasesAliasOutput) AliasName ¶
func (o GetAliasesAliasOutput) AliasName() pulumi.StringOutput
The unique identifier of the alias.
func (GetAliasesAliasOutput) ElementType ¶
func (GetAliasesAliasOutput) ElementType() reflect.Type
func (GetAliasesAliasOutput) Id ¶
func (o GetAliasesAliasOutput) Id() pulumi.StringOutput
ID of the alias. The value is same as KMS alias_name.
func (GetAliasesAliasOutput) KeyId ¶
func (o GetAliasesAliasOutput) KeyId() pulumi.StringOutput
ID of the key.
func (GetAliasesAliasOutput) ToGetAliasesAliasOutput ¶
func (o GetAliasesAliasOutput) ToGetAliasesAliasOutput() GetAliasesAliasOutput
func (GetAliasesAliasOutput) ToGetAliasesAliasOutputWithContext ¶
func (o GetAliasesAliasOutput) ToGetAliasesAliasOutputWithContext(ctx context.Context) GetAliasesAliasOutput
type GetAliasesArgs ¶
type GetAliasesArgs struct { // A list of KMS aliases IDs. The value is same as KMS alias_name. Ids []string `pulumi:"ids"` // A regex string to filter the results by the KMS alias name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getAliases.
type GetAliasesOutputArgs ¶ added in v3.9.0
type GetAliasesOutputArgs struct { // A list of KMS aliases IDs. The value is same as KMS alias_name. Ids pulumi.StringArrayInput `pulumi:"ids"` // A regex string to filter the results by the KMS alias name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getAliases.
func (GetAliasesOutputArgs) ElementType ¶ added in v3.9.0
func (GetAliasesOutputArgs) ElementType() reflect.Type
type GetAliasesResult ¶
type GetAliasesResult struct { // A list of KMS User alias. Each element contains the following attributes: Aliases []GetAliasesAlias `pulumi:"aliases"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of kms aliases IDs. The value is same as KMS alias_name. Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` // A list of KMS alias name. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getAliases.
func GetAliases ¶
func GetAliases(ctx *pulumi.Context, args *GetAliasesArgs, opts ...pulumi.InvokeOption) (*GetAliasesResult, error)
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+.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := kms.GetAliases(ctx, &kms.GetAliasesArgs{ Ids: []string{ "d89e8a53-b708-41aa-8c67-6873axxx", }, NameRegex: pulumi.StringRef("alias/tf-testKmsAlias_123"), }, nil) if err != nil { return err } ctx.Export("firstKeyId", data.Alicloud_kms_keys.Kms_keys_ds.Keys[0].Id) return nil }) }
```
type GetAliasesResultOutput ¶ added in v3.9.0
type GetAliasesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getAliases.
func GetAliasesOutput ¶ added in v3.9.0
func GetAliasesOutput(ctx *pulumi.Context, args GetAliasesOutputArgs, opts ...pulumi.InvokeOption) GetAliasesResultOutput
func (GetAliasesResultOutput) Aliases ¶ added in v3.9.0
func (o GetAliasesResultOutput) Aliases() GetAliasesAliasArrayOutput
A list of KMS User alias. Each element contains the following attributes:
func (GetAliasesResultOutput) ElementType ¶ added in v3.9.0
func (GetAliasesResultOutput) ElementType() reflect.Type
func (GetAliasesResultOutput) Id ¶ added in v3.9.0
func (o GetAliasesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetAliasesResultOutput) Ids ¶ added in v3.9.0
func (o GetAliasesResultOutput) Ids() pulumi.StringArrayOutput
A list of kms aliases IDs. The value is same as KMS alias_name.
func (GetAliasesResultOutput) NameRegex ¶ added in v3.9.0
func (o GetAliasesResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetAliasesResultOutput) Names ¶ added in v3.9.0
func (o GetAliasesResultOutput) Names() pulumi.StringArrayOutput
A list of KMS alias name.
func (GetAliasesResultOutput) OutputFile ¶ added in v3.9.0
func (o GetAliasesResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetAliasesResultOutput) ToGetAliasesResultOutput ¶ added in v3.9.0
func (o GetAliasesResultOutput) ToGetAliasesResultOutput() GetAliasesResultOutput
func (GetAliasesResultOutput) ToGetAliasesResultOutputWithContext ¶ added in v3.9.0
func (o GetAliasesResultOutput) ToGetAliasesResultOutputWithContext(ctx context.Context) GetAliasesResultOutput
type GetKeyVersionsArgs ¶
type GetKeyVersionsArgs struct { // A list of KMS KeyVersion IDs. Ids []string `pulumi:"ids"` // The id of kms key. KeyId string `pulumi:"keyId"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getKeyVersions.
type GetKeyVersionsOutputArgs ¶ added in v3.9.0
type GetKeyVersionsOutputArgs struct { // A list of KMS KeyVersion IDs. Ids pulumi.StringArrayInput `pulumi:"ids"` // The id of kms key. KeyId pulumi.StringInput `pulumi:"keyId"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getKeyVersions.
func (GetKeyVersionsOutputArgs) ElementType ¶ added in v3.9.0
func (GetKeyVersionsOutputArgs) ElementType() reflect.Type
type GetKeyVersionsResult ¶
type GetKeyVersionsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of KMS KeyVersion IDs. Ids []string `pulumi:"ids"` // ID of the key. KeyId string `pulumi:"keyId"` OutputFile *string `pulumi:"outputFile"` // A list of KMS KeyVersions. Each element contains the following attributes: Versions []GetKeyVersionsVersion `pulumi:"versions"` }
A collection of values returned by getKeyVersions.
func GetKeyVersions ¶
func GetKeyVersions(ctx *pulumi.Context, args *GetKeyVersionsArgs, opts ...pulumi.InvokeOption) (*GetKeyVersionsResult, error)
This data source provides a list of KMS KeyVersions in an Alibaba Cloud account according to the specified filters.
> NOTE: Available in v1.85.0+
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { alicloudKmsKeyVersionsDs, err := kms.GetKeyVersions(ctx, &kms.GetKeyVersionsArgs{ Ids: []string{ "d89e8a53-b708-41aa-8c67-6873axxx", }, KeyId: "08438c-b4d5-4d05-928c-07b7xxxx", }, nil) if err != nil { return err } ctx.Export("allVersions", alicloudKmsKeyVersionsDs.Versions) return nil }) }
```
type GetKeyVersionsResultOutput ¶ added in v3.9.0
type GetKeyVersionsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getKeyVersions.
func GetKeyVersionsOutput ¶ added in v3.9.0
func GetKeyVersionsOutput(ctx *pulumi.Context, args GetKeyVersionsOutputArgs, opts ...pulumi.InvokeOption) GetKeyVersionsResultOutput
func (GetKeyVersionsResultOutput) ElementType ¶ added in v3.9.0
func (GetKeyVersionsResultOutput) ElementType() reflect.Type
func (GetKeyVersionsResultOutput) Id ¶ added in v3.9.0
func (o GetKeyVersionsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetKeyVersionsResultOutput) Ids ¶ added in v3.9.0
func (o GetKeyVersionsResultOutput) Ids() pulumi.StringArrayOutput
A list of KMS KeyVersion IDs.
func (GetKeyVersionsResultOutput) KeyId ¶ added in v3.9.0
func (o GetKeyVersionsResultOutput) KeyId() pulumi.StringOutput
ID of the key.
func (GetKeyVersionsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetKeyVersionsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetKeyVersionsResultOutput) ToGetKeyVersionsResultOutput ¶ added in v3.9.0
func (o GetKeyVersionsResultOutput) ToGetKeyVersionsResultOutput() GetKeyVersionsResultOutput
func (GetKeyVersionsResultOutput) ToGetKeyVersionsResultOutputWithContext ¶ added in v3.9.0
func (o GetKeyVersionsResultOutput) ToGetKeyVersionsResultOutputWithContext(ctx context.Context) GetKeyVersionsResultOutput
func (GetKeyVersionsResultOutput) Versions ¶ added in v3.9.0
func (o GetKeyVersionsResultOutput) Versions() GetKeyVersionsVersionArrayOutput
A list of KMS KeyVersions. Each element contains the following attributes:
type GetKeyVersionsVersion ¶
type GetKeyVersionsVersion struct { // Date and time when the key version was created (UTC time). CreateTime string `pulumi:"createTime"` // (Removed from v1.124.4) It has been removed and using `createTime` instead. CreationDate string `pulumi:"creationDate"` // ID of the KMS KeyVersion resource. Id string `pulumi:"id"` // The id of kms key. KeyId string `pulumi:"keyId"` // ID of the key version. KeyVersionId string `pulumi:"keyVersionId"` }
type GetKeyVersionsVersionArgs ¶
type GetKeyVersionsVersionArgs struct { // Date and time when the key version was created (UTC time). CreateTime pulumi.StringInput `pulumi:"createTime"` // (Removed from v1.124.4) It has been removed and using `createTime` instead. CreationDate pulumi.StringInput `pulumi:"creationDate"` // ID of the KMS KeyVersion resource. Id pulumi.StringInput `pulumi:"id"` // The id of kms key. KeyId pulumi.StringInput `pulumi:"keyId"` // ID of the key version. KeyVersionId pulumi.StringInput `pulumi:"keyVersionId"` }
func (GetKeyVersionsVersionArgs) ElementType ¶
func (GetKeyVersionsVersionArgs) ElementType() reflect.Type
func (GetKeyVersionsVersionArgs) ToGetKeyVersionsVersionOutput ¶
func (i GetKeyVersionsVersionArgs) ToGetKeyVersionsVersionOutput() GetKeyVersionsVersionOutput
func (GetKeyVersionsVersionArgs) ToGetKeyVersionsVersionOutputWithContext ¶
func (i GetKeyVersionsVersionArgs) ToGetKeyVersionsVersionOutputWithContext(ctx context.Context) GetKeyVersionsVersionOutput
type GetKeyVersionsVersionArray ¶
type GetKeyVersionsVersionArray []GetKeyVersionsVersionInput
func (GetKeyVersionsVersionArray) ElementType ¶
func (GetKeyVersionsVersionArray) ElementType() reflect.Type
func (GetKeyVersionsVersionArray) ToGetKeyVersionsVersionArrayOutput ¶
func (i GetKeyVersionsVersionArray) ToGetKeyVersionsVersionArrayOutput() GetKeyVersionsVersionArrayOutput
func (GetKeyVersionsVersionArray) ToGetKeyVersionsVersionArrayOutputWithContext ¶
func (i GetKeyVersionsVersionArray) ToGetKeyVersionsVersionArrayOutputWithContext(ctx context.Context) GetKeyVersionsVersionArrayOutput
type GetKeyVersionsVersionArrayInput ¶
type GetKeyVersionsVersionArrayInput interface { pulumi.Input ToGetKeyVersionsVersionArrayOutput() GetKeyVersionsVersionArrayOutput ToGetKeyVersionsVersionArrayOutputWithContext(context.Context) GetKeyVersionsVersionArrayOutput }
GetKeyVersionsVersionArrayInput is an input type that accepts GetKeyVersionsVersionArray and GetKeyVersionsVersionArrayOutput values. You can construct a concrete instance of `GetKeyVersionsVersionArrayInput` via:
GetKeyVersionsVersionArray{ GetKeyVersionsVersionArgs{...} }
type GetKeyVersionsVersionArrayOutput ¶
type GetKeyVersionsVersionArrayOutput struct{ *pulumi.OutputState }
func (GetKeyVersionsVersionArrayOutput) ElementType ¶
func (GetKeyVersionsVersionArrayOutput) ElementType() reflect.Type
func (GetKeyVersionsVersionArrayOutput) Index ¶
func (o GetKeyVersionsVersionArrayOutput) Index(i pulumi.IntInput) GetKeyVersionsVersionOutput
func (GetKeyVersionsVersionArrayOutput) ToGetKeyVersionsVersionArrayOutput ¶
func (o GetKeyVersionsVersionArrayOutput) ToGetKeyVersionsVersionArrayOutput() GetKeyVersionsVersionArrayOutput
func (GetKeyVersionsVersionArrayOutput) ToGetKeyVersionsVersionArrayOutputWithContext ¶
func (o GetKeyVersionsVersionArrayOutput) ToGetKeyVersionsVersionArrayOutputWithContext(ctx context.Context) GetKeyVersionsVersionArrayOutput
type GetKeyVersionsVersionInput ¶
type GetKeyVersionsVersionInput interface { pulumi.Input ToGetKeyVersionsVersionOutput() GetKeyVersionsVersionOutput ToGetKeyVersionsVersionOutputWithContext(context.Context) GetKeyVersionsVersionOutput }
GetKeyVersionsVersionInput is an input type that accepts GetKeyVersionsVersionArgs and GetKeyVersionsVersionOutput values. You can construct a concrete instance of `GetKeyVersionsVersionInput` via:
GetKeyVersionsVersionArgs{...}
type GetKeyVersionsVersionOutput ¶
type GetKeyVersionsVersionOutput struct{ *pulumi.OutputState }
func (GetKeyVersionsVersionOutput) CreateTime ¶ added in v3.3.0
func (o GetKeyVersionsVersionOutput) CreateTime() pulumi.StringOutput
Date and time when the key version was created (UTC time).
func (GetKeyVersionsVersionOutput) CreationDate ¶
func (o GetKeyVersionsVersionOutput) CreationDate() pulumi.StringOutput
(Removed from v1.124.4) It has been removed and using `createTime` instead.
func (GetKeyVersionsVersionOutput) ElementType ¶
func (GetKeyVersionsVersionOutput) ElementType() reflect.Type
func (GetKeyVersionsVersionOutput) Id ¶
func (o GetKeyVersionsVersionOutput) Id() pulumi.StringOutput
ID of the KMS KeyVersion resource.
func (GetKeyVersionsVersionOutput) KeyId ¶
func (o GetKeyVersionsVersionOutput) KeyId() pulumi.StringOutput
The id of kms key.
func (GetKeyVersionsVersionOutput) KeyVersionId ¶
func (o GetKeyVersionsVersionOutput) KeyVersionId() pulumi.StringOutput
ID of the key version.
func (GetKeyVersionsVersionOutput) ToGetKeyVersionsVersionOutput ¶
func (o GetKeyVersionsVersionOutput) ToGetKeyVersionsVersionOutput() GetKeyVersionsVersionOutput
func (GetKeyVersionsVersionOutput) ToGetKeyVersionsVersionOutputWithContext ¶
func (o GetKeyVersionsVersionOutput) ToGetKeyVersionsVersionOutputWithContext(ctx context.Context) GetKeyVersionsVersionOutput
type GetKeysArgs ¶
type GetKeysArgs struct { // A regex string to filter the results by the KMS key description. DescriptionRegex *string `pulumi:"descriptionRegex"` EnableDetails *bool `pulumi:"enableDetails"` Filters *string `pulumi:"filters"` // A list of KMS key IDs. Ids []string `pulumi:"ids"` OutputFile *string `pulumi:"outputFile"` // Filter the results by status of the KMS keys. Valid values: `Enabled`, `Disabled`, `PendingDeletion`. Status *string `pulumi:"status"` }
A collection of arguments for invoking getKeys.
type GetKeysKey ¶
type GetKeysKey struct { // The Alibaba Cloud Resource Name (ARN) of the key. Arn string `pulumi:"arn"` AutomaticRotation string `pulumi:"automaticRotation"` // Creation date of key. CreationDate string `pulumi:"creationDate"` // The owner of the key. // * `automaticRotation` -(Available in 1.123.1+) Specifies whether to enable automatic key rotation. // * `keyId` -(Available in 1.123.1+) ID of the key. // * `keySpec` -(Available in 1.123.1+) The type of the CMK. // * `keyUsage` -(Available in 1.123.1+) The usage of CMK. // * `lastRotationDate` -(Available in 1.123.1+) The date and time the last rotation was performed. // * `materialExpireTime` -(Available in 1.123.1+) The time and date the key material for the CMK expires. // * `nextRotationDate` -(Available in 1.123.1+) The time the next rotation is scheduled for execution. // * `origin` -(Available in 1.123.1+) The source of the key material for the CMK. // * `protectionLevel` -(Available in 1.123.1+) The protection level of the CMK. // * `rotationInterval` -(Available in 1.123.1+) The period of automatic key rotation. // * `primaryKeyVersion` -(Available in 1.123.1+) The ID of the current primary key version of the symmetric CMK. Creator string `pulumi:"creator"` // Deletion date of key. DeleteDate string `pulumi:"deleteDate"` // Description of the key. Description string `pulumi:"description"` // ID of the key. Id string `pulumi:"id"` KeyId string `pulumi:"keyId"` KeySpec string `pulumi:"keySpec"` KeyUsage string `pulumi:"keyUsage"` LastRotationDate string `pulumi:"lastRotationDate"` MaterialExpireTime string `pulumi:"materialExpireTime"` NextRotationDate string `pulumi:"nextRotationDate"` Origin string `pulumi:"origin"` PrimaryKeyVersion string `pulumi:"primaryKeyVersion"` ProtectionLevel string `pulumi:"protectionLevel"` RotationInterval string `pulumi:"rotationInterval"` // Filter the results by status of the KMS keys. Valid values: `Enabled`, `Disabled`, `PendingDeletion`. Status string `pulumi:"status"` }
type GetKeysKeyArgs ¶
type GetKeysKeyArgs struct { // The Alibaba Cloud Resource Name (ARN) of the key. Arn pulumi.StringInput `pulumi:"arn"` AutomaticRotation pulumi.StringInput `pulumi:"automaticRotation"` // Creation date of key. CreationDate pulumi.StringInput `pulumi:"creationDate"` // The owner of the key. // * `automaticRotation` -(Available in 1.123.1+) Specifies whether to enable automatic key rotation. // * `keyId` -(Available in 1.123.1+) ID of the key. // * `keySpec` -(Available in 1.123.1+) The type of the CMK. // * `keyUsage` -(Available in 1.123.1+) The usage of CMK. // * `lastRotationDate` -(Available in 1.123.1+) The date and time the last rotation was performed. // * `materialExpireTime` -(Available in 1.123.1+) The time and date the key material for the CMK expires. // * `nextRotationDate` -(Available in 1.123.1+) The time the next rotation is scheduled for execution. // * `origin` -(Available in 1.123.1+) The source of the key material for the CMK. // * `protectionLevel` -(Available in 1.123.1+) The protection level of the CMK. // * `rotationInterval` -(Available in 1.123.1+) The period of automatic key rotation. // * `primaryKeyVersion` -(Available in 1.123.1+) The ID of the current primary key version of the symmetric CMK. Creator pulumi.StringInput `pulumi:"creator"` // Deletion date of key. DeleteDate pulumi.StringInput `pulumi:"deleteDate"` // Description of the key. Description pulumi.StringInput `pulumi:"description"` // ID of the key. Id pulumi.StringInput `pulumi:"id"` KeyId pulumi.StringInput `pulumi:"keyId"` KeySpec pulumi.StringInput `pulumi:"keySpec"` KeyUsage pulumi.StringInput `pulumi:"keyUsage"` LastRotationDate pulumi.StringInput `pulumi:"lastRotationDate"` MaterialExpireTime pulumi.StringInput `pulumi:"materialExpireTime"` NextRotationDate pulumi.StringInput `pulumi:"nextRotationDate"` Origin pulumi.StringInput `pulumi:"origin"` PrimaryKeyVersion pulumi.StringInput `pulumi:"primaryKeyVersion"` ProtectionLevel pulumi.StringInput `pulumi:"protectionLevel"` RotationInterval pulumi.StringInput `pulumi:"rotationInterval"` // Filter the results by status of the KMS keys. Valid values: `Enabled`, `Disabled`, `PendingDeletion`. Status pulumi.StringInput `pulumi:"status"` }
func (GetKeysKeyArgs) ElementType ¶
func (GetKeysKeyArgs) ElementType() reflect.Type
func (GetKeysKeyArgs) ToGetKeysKeyOutput ¶
func (i GetKeysKeyArgs) ToGetKeysKeyOutput() GetKeysKeyOutput
func (GetKeysKeyArgs) ToGetKeysKeyOutputWithContext ¶
func (i GetKeysKeyArgs) ToGetKeysKeyOutputWithContext(ctx context.Context) GetKeysKeyOutput
type GetKeysKeyArray ¶
type GetKeysKeyArray []GetKeysKeyInput
func (GetKeysKeyArray) ElementType ¶
func (GetKeysKeyArray) ElementType() reflect.Type
func (GetKeysKeyArray) ToGetKeysKeyArrayOutput ¶
func (i GetKeysKeyArray) ToGetKeysKeyArrayOutput() GetKeysKeyArrayOutput
func (GetKeysKeyArray) ToGetKeysKeyArrayOutputWithContext ¶
func (i GetKeysKeyArray) ToGetKeysKeyArrayOutputWithContext(ctx context.Context) GetKeysKeyArrayOutput
type GetKeysKeyArrayInput ¶
type GetKeysKeyArrayInput interface { pulumi.Input ToGetKeysKeyArrayOutput() GetKeysKeyArrayOutput ToGetKeysKeyArrayOutputWithContext(context.Context) GetKeysKeyArrayOutput }
GetKeysKeyArrayInput is an input type that accepts GetKeysKeyArray and GetKeysKeyArrayOutput values. You can construct a concrete instance of `GetKeysKeyArrayInput` via:
GetKeysKeyArray{ GetKeysKeyArgs{...} }
type GetKeysKeyArrayOutput ¶
type GetKeysKeyArrayOutput struct{ *pulumi.OutputState }
func (GetKeysKeyArrayOutput) ElementType ¶
func (GetKeysKeyArrayOutput) ElementType() reflect.Type
func (GetKeysKeyArrayOutput) Index ¶
func (o GetKeysKeyArrayOutput) Index(i pulumi.IntInput) GetKeysKeyOutput
func (GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutput ¶
func (o GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutput() GetKeysKeyArrayOutput
func (GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutputWithContext ¶
func (o GetKeysKeyArrayOutput) ToGetKeysKeyArrayOutputWithContext(ctx context.Context) GetKeysKeyArrayOutput
type GetKeysKeyInput ¶
type GetKeysKeyInput interface { pulumi.Input ToGetKeysKeyOutput() GetKeysKeyOutput ToGetKeysKeyOutputWithContext(context.Context) GetKeysKeyOutput }
GetKeysKeyInput is an input type that accepts GetKeysKeyArgs and GetKeysKeyOutput values. You can construct a concrete instance of `GetKeysKeyInput` via:
GetKeysKeyArgs{...}
type GetKeysKeyOutput ¶
type GetKeysKeyOutput struct{ *pulumi.OutputState }
func (GetKeysKeyOutput) Arn ¶
func (o GetKeysKeyOutput) Arn() pulumi.StringOutput
The Alibaba Cloud Resource Name (ARN) of the key.
func (GetKeysKeyOutput) AutomaticRotation ¶ added in v3.3.0
func (o GetKeysKeyOutput) AutomaticRotation() pulumi.StringOutput
func (GetKeysKeyOutput) CreationDate ¶
func (o GetKeysKeyOutput) CreationDate() pulumi.StringOutput
Creation date of key.
func (GetKeysKeyOutput) Creator ¶
func (o GetKeysKeyOutput) Creator() pulumi.StringOutput
The owner of the key. * `automaticRotation` -(Available in 1.123.1+) Specifies whether to enable automatic key rotation. * `keyId` -(Available in 1.123.1+) ID of the key. * `keySpec` -(Available in 1.123.1+) The type of the CMK. * `keyUsage` -(Available in 1.123.1+) The usage of CMK. * `lastRotationDate` -(Available in 1.123.1+) The date and time the last rotation was performed. * `materialExpireTime` -(Available in 1.123.1+) The time and date the key material for the CMK expires. * `nextRotationDate` -(Available in 1.123.1+) The time the next rotation is scheduled for execution. * `origin` -(Available in 1.123.1+) The source of the key material for the CMK. * `protectionLevel` -(Available in 1.123.1+) The protection level of the CMK. * `rotationInterval` -(Available in 1.123.1+) The period of automatic key rotation. * `primaryKeyVersion` -(Available in 1.123.1+) The ID of the current primary key version of the symmetric CMK.
func (GetKeysKeyOutput) DeleteDate ¶
func (o GetKeysKeyOutput) DeleteDate() pulumi.StringOutput
Deletion date of key.
func (GetKeysKeyOutput) Description ¶
func (o GetKeysKeyOutput) Description() pulumi.StringOutput
Description of the key.
func (GetKeysKeyOutput) ElementType ¶
func (GetKeysKeyOutput) ElementType() reflect.Type
func (GetKeysKeyOutput) KeyId ¶ added in v3.3.0
func (o GetKeysKeyOutput) KeyId() pulumi.StringOutput
func (GetKeysKeyOutput) KeySpec ¶ added in v3.3.0
func (o GetKeysKeyOutput) KeySpec() pulumi.StringOutput
func (GetKeysKeyOutput) KeyUsage ¶ added in v3.3.0
func (o GetKeysKeyOutput) KeyUsage() pulumi.StringOutput
func (GetKeysKeyOutput) LastRotationDate ¶ added in v3.3.0
func (o GetKeysKeyOutput) LastRotationDate() pulumi.StringOutput
func (GetKeysKeyOutput) MaterialExpireTime ¶ added in v3.3.0
func (o GetKeysKeyOutput) MaterialExpireTime() pulumi.StringOutput
func (GetKeysKeyOutput) NextRotationDate ¶ added in v3.3.0
func (o GetKeysKeyOutput) NextRotationDate() pulumi.StringOutput
func (GetKeysKeyOutput) Origin ¶ added in v3.3.0
func (o GetKeysKeyOutput) Origin() pulumi.StringOutput
func (GetKeysKeyOutput) PrimaryKeyVersion ¶ added in v3.3.0
func (o GetKeysKeyOutput) PrimaryKeyVersion() pulumi.StringOutput
func (GetKeysKeyOutput) ProtectionLevel ¶ added in v3.3.0
func (o GetKeysKeyOutput) ProtectionLevel() pulumi.StringOutput
func (GetKeysKeyOutput) RotationInterval ¶ added in v3.3.0
func (o GetKeysKeyOutput) RotationInterval() pulumi.StringOutput
func (GetKeysKeyOutput) Status ¶
func (o GetKeysKeyOutput) Status() pulumi.StringOutput
Filter the results by status of the KMS keys. Valid values: `Enabled`, `Disabled`, `PendingDeletion`.
func (GetKeysKeyOutput) ToGetKeysKeyOutput ¶
func (o GetKeysKeyOutput) ToGetKeysKeyOutput() GetKeysKeyOutput
func (GetKeysKeyOutput) ToGetKeysKeyOutputWithContext ¶
func (o GetKeysKeyOutput) ToGetKeysKeyOutputWithContext(ctx context.Context) GetKeysKeyOutput
type GetKeysOutputArgs ¶ added in v3.9.0
type GetKeysOutputArgs struct { // A regex string to filter the results by the KMS key description. DescriptionRegex pulumi.StringPtrInput `pulumi:"descriptionRegex"` EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"` Filters pulumi.StringPtrInput `pulumi:"filters"` // A list of KMS key IDs. Ids pulumi.StringArrayInput `pulumi:"ids"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // Filter the results by status of the KMS keys. Valid values: `Enabled`, `Disabled`, `PendingDeletion`. Status pulumi.StringPtrInput `pulumi:"status"` }
A collection of arguments for invoking getKeys.
func (GetKeysOutputArgs) ElementType ¶ added in v3.9.0
func (GetKeysOutputArgs) ElementType() reflect.Type
type GetKeysResult ¶
type GetKeysResult struct { DescriptionRegex *string `pulumi:"descriptionRegex"` EnableDetails *bool `pulumi:"enableDetails"` Filters *string `pulumi:"filters"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of KMS key IDs. Ids []string `pulumi:"ids"` // A list of KMS keys. Each element contains the following attributes: Keys []GetKeysKey `pulumi:"keys"` OutputFile *string `pulumi:"outputFile"` // Status of the key. Possible values: `Enabled`, `Disabled` and `PendingDeletion`. Status *string `pulumi:"status"` }
A collection of values returned by getKeys.
func GetKeys ¶
func GetKeys(ctx *pulumi.Context, args *GetKeysArgs, opts ...pulumi.InvokeOption) (*GetKeysResult, error)
This data source provides a list of KMS keys in an Alibaba Cloud account according to the specified filters.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { kmsKeysDs, err := kms.GetKeys(ctx, &kms.GetKeysArgs{ DescriptionRegex: pulumi.StringRef("Hello KMS"), OutputFile: pulumi.StringRef("kms_keys.json"), }, nil) if err != nil { return err } ctx.Export("firstKeyId", kmsKeysDs.Keys[0].Id) return nil }) }
```
type GetKeysResultOutput ¶ added in v3.9.0
type GetKeysResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getKeys.
func GetKeysOutput ¶ added in v3.9.0
func GetKeysOutput(ctx *pulumi.Context, args GetKeysOutputArgs, opts ...pulumi.InvokeOption) GetKeysResultOutput
func (GetKeysResultOutput) DescriptionRegex ¶ added in v3.9.0
func (o GetKeysResultOutput) DescriptionRegex() pulumi.StringPtrOutput
func (GetKeysResultOutput) ElementType ¶ added in v3.9.0
func (GetKeysResultOutput) ElementType() reflect.Type
func (GetKeysResultOutput) EnableDetails ¶ added in v3.9.0
func (o GetKeysResultOutput) EnableDetails() pulumi.BoolPtrOutput
func (GetKeysResultOutput) Filters ¶ added in v3.9.0
func (o GetKeysResultOutput) Filters() pulumi.StringPtrOutput
func (GetKeysResultOutput) Id ¶ added in v3.9.0
func (o GetKeysResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetKeysResultOutput) Ids ¶ added in v3.9.0
func (o GetKeysResultOutput) Ids() pulumi.StringArrayOutput
A list of KMS key IDs.
func (GetKeysResultOutput) Keys ¶ added in v3.9.0
func (o GetKeysResultOutput) Keys() GetKeysKeyArrayOutput
A list of KMS keys. Each element contains the following attributes:
func (GetKeysResultOutput) OutputFile ¶ added in v3.9.0
func (o GetKeysResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetKeysResultOutput) Status ¶ added in v3.9.0
func (o GetKeysResultOutput) Status() pulumi.StringPtrOutput
Status of the key. Possible values: `Enabled`, `Disabled` and `PendingDeletion`.
func (GetKeysResultOutput) ToGetKeysResultOutput ¶ added in v3.9.0
func (o GetKeysResultOutput) ToGetKeysResultOutput() GetKeysResultOutput
func (GetKeysResultOutput) ToGetKeysResultOutputWithContext ¶ added in v3.9.0
func (o GetKeysResultOutput) ToGetKeysResultOutputWithContext(ctx context.Context) GetKeysResultOutput
type GetPlaintextArgs ¶
type GetPlaintextArgs struct { // The ciphertext to be decrypted. CiphertextBlob string `pulumi:"ciphertextBlob"` // - // (Optional) The Encryption context. If you specify this parameter in the Encrypt or GenerateDataKey API operation, it is also required when you call the Decrypt API operation. For more information, see [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). EncryptionContext map[string]string `pulumi:"encryptionContext"` }
A collection of arguments for invoking getPlaintext.
type GetPlaintextOutputArgs ¶ added in v3.9.0
type GetPlaintextOutputArgs struct { // The ciphertext to be decrypted. CiphertextBlob pulumi.StringInput `pulumi:"ciphertextBlob"` // - // (Optional) The Encryption context. If you specify this parameter in the Encrypt or GenerateDataKey API operation, it is also required when you call the Decrypt API operation. For more information, see [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). EncryptionContext pulumi.StringMapInput `pulumi:"encryptionContext"` }
A collection of arguments for invoking getPlaintext.
func (GetPlaintextOutputArgs) ElementType ¶ added in v3.9.0
func (GetPlaintextOutputArgs) ElementType() reflect.Type
type GetPlaintextResult ¶
type GetPlaintextResult struct { CiphertextBlob string `pulumi:"ciphertextBlob"` EncryptionContext map[string]string `pulumi:"encryptionContext"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The globally unique ID of the CMK. It is the ID of the CMK used to decrypt ciphertext. KeyId string `pulumi:"keyId"` // The decrypted plaintext. Plaintext string `pulumi:"plaintext"` }
A collection of values returned by getPlaintext.
func GetPlaintext ¶
func GetPlaintext(ctx *pulumi.Context, args *GetPlaintextArgs, opts ...pulumi.InvokeOption) (*GetPlaintextResult, error)
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { key, err := kms.NewKey(ctx, "key", &kms.KeyArgs{ Description: pulumi.String("example key"), IsEnabled: pulumi.Bool(true), }) if err != nil { return err } encrypted, err := kms.NewCiphertext(ctx, "encrypted", &kms.CiphertextArgs{ KeyId: key.ID(), Plaintext: pulumi.String("example"), }) if err != nil { return err } plaintext := kms.GetPlaintextOutput(ctx, kms.GetPlaintextOutputArgs{ CiphertextBlob: encrypted.CiphertextBlob, }, nil) ctx.Export("decrypted", plaintext.ApplyT(func(plaintext kms.GetPlaintextResult) (string, error) { return plaintext.Plaintext, nil }).(pulumi.StringOutput)) return nil }) }
```
type GetPlaintextResultOutput ¶ added in v3.9.0
type GetPlaintextResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPlaintext.
func GetPlaintextOutput ¶ added in v3.9.0
func GetPlaintextOutput(ctx *pulumi.Context, args GetPlaintextOutputArgs, opts ...pulumi.InvokeOption) GetPlaintextResultOutput
func (GetPlaintextResultOutput) CiphertextBlob ¶ added in v3.9.0
func (o GetPlaintextResultOutput) CiphertextBlob() pulumi.StringOutput
func (GetPlaintextResultOutput) ElementType ¶ added in v3.9.0
func (GetPlaintextResultOutput) ElementType() reflect.Type
func (GetPlaintextResultOutput) EncryptionContext ¶ added in v3.9.0
func (o GetPlaintextResultOutput) EncryptionContext() pulumi.StringMapOutput
func (GetPlaintextResultOutput) Id ¶ added in v3.9.0
func (o GetPlaintextResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPlaintextResultOutput) KeyId ¶ added in v3.9.0
func (o GetPlaintextResultOutput) KeyId() pulumi.StringOutput
The globally unique ID of the CMK. It is the ID of the CMK used to decrypt ciphertext.
func (GetPlaintextResultOutput) Plaintext ¶ added in v3.9.0
func (o GetPlaintextResultOutput) Plaintext() pulumi.StringOutput
The decrypted plaintext.
func (GetPlaintextResultOutput) ToGetPlaintextResultOutput ¶ added in v3.9.0
func (o GetPlaintextResultOutput) ToGetPlaintextResultOutput() GetPlaintextResultOutput
func (GetPlaintextResultOutput) ToGetPlaintextResultOutputWithContext ¶ added in v3.9.0
func (o GetPlaintextResultOutput) ToGetPlaintextResultOutputWithContext(ctx context.Context) GetPlaintextResultOutput
type GetSecretVersionsArgs ¶
type GetSecretVersionsArgs struct { // Default to false and only output `secretName`, `versionId`, `versionStages`. Set it to true can output more details. EnableDetails *bool `pulumi:"enableDetails"` // A list of KMS Secret Version ids. Ids []string `pulumi:"ids"` // Specifies whether to return deprecated secret versions. Default to `false`. IncludeDeprecated *string `pulumi:"includeDeprecated"` OutputFile *string `pulumi:"outputFile"` // The name of the secret. SecretName string `pulumi:"secretName"` // The stage of the secret version. VersionStage *string `pulumi:"versionStage"` }
A collection of arguments for invoking getSecretVersions.
type GetSecretVersionsOutputArgs ¶ added in v3.9.0
type GetSecretVersionsOutputArgs struct { // Default to false and only output `secretName`, `versionId`, `versionStages`. Set it to true can output more details. EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"` // A list of KMS Secret Version ids. Ids pulumi.StringArrayInput `pulumi:"ids"` // Specifies whether to return deprecated secret versions. Default to `false`. IncludeDeprecated pulumi.StringPtrInput `pulumi:"includeDeprecated"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // The name of the secret. SecretName pulumi.StringInput `pulumi:"secretName"` // The stage of the secret version. VersionStage pulumi.StringPtrInput `pulumi:"versionStage"` }
A collection of arguments for invoking getSecretVersions.
func (GetSecretVersionsOutputArgs) ElementType ¶ added in v3.9.0
func (GetSecretVersionsOutputArgs) ElementType() reflect.Type
type GetSecretVersionsResult ¶
type GetSecretVersionsResult struct { EnableDetails *bool `pulumi:"enableDetails"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of Kms Secret Version ids. Ids []string `pulumi:"ids"` IncludeDeprecated *string `pulumi:"includeDeprecated"` OutputFile *string `pulumi:"outputFile"` // The name of the secret. SecretName string `pulumi:"secretName"` VersionStage *string `pulumi:"versionStage"` // A list of KMS Secret Versions. Each element contains the following attributes: Versions []GetSecretVersionsVersion `pulumi:"versions"` }
A collection of values returned by getSecretVersions.
func GetSecretVersions ¶
func GetSecretVersions(ctx *pulumi.Context, args *GetSecretVersionsArgs, opts ...pulumi.InvokeOption) (*GetSecretVersionsResult, error)
This data source provides a list of KMS Secret Versions in an Alibaba Cloud account according to the specified filters.
> **NOTE:** Available in v1.88.0+.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { kmsSecretVersionsDs, err := kms.GetSecretVersions(ctx, &kms.GetSecretVersionsArgs{ EnableDetails: pulumi.BoolRef(true), SecretName: "secret_name", }, nil) if err != nil { return err } ctx.Export("firstSecretData", kmsSecretVersionsDs.Versions[0].SecretData) return nil }) }
```
type GetSecretVersionsResultOutput ¶ added in v3.9.0
type GetSecretVersionsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSecretVersions.
func GetSecretVersionsOutput ¶ added in v3.9.0
func GetSecretVersionsOutput(ctx *pulumi.Context, args GetSecretVersionsOutputArgs, opts ...pulumi.InvokeOption) GetSecretVersionsResultOutput
func (GetSecretVersionsResultOutput) ElementType ¶ added in v3.9.0
func (GetSecretVersionsResultOutput) ElementType() reflect.Type
func (GetSecretVersionsResultOutput) EnableDetails ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) EnableDetails() pulumi.BoolPtrOutput
func (GetSecretVersionsResultOutput) Id ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSecretVersionsResultOutput) Ids ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) Ids() pulumi.StringArrayOutput
A list of Kms Secret Version ids.
func (GetSecretVersionsResultOutput) IncludeDeprecated ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) IncludeDeprecated() pulumi.StringPtrOutput
func (GetSecretVersionsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetSecretVersionsResultOutput) SecretName ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) SecretName() pulumi.StringOutput
The name of the secret.
func (GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutput ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutput() GetSecretVersionsResultOutput
func (GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutputWithContext ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) ToGetSecretVersionsResultOutputWithContext(ctx context.Context) GetSecretVersionsResultOutput
func (GetSecretVersionsResultOutput) VersionStage ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) VersionStage() pulumi.StringPtrOutput
func (GetSecretVersionsResultOutput) Versions ¶ added in v3.9.0
func (o GetSecretVersionsResultOutput) Versions() GetSecretVersionsVersionArrayOutput
A list of KMS Secret Versions. Each element contains the following attributes:
type GetSecretVersionsVersion ¶
type GetSecretVersionsVersion struct { // The secret value. Secrets Manager decrypts the stored secret value in ciphertext and returns it. (Returned when `enableDetails` is true). SecretData string `pulumi:"secretData"` // The type of the secret value. (Returned when `enableDetails` is true). SecretDataType string `pulumi:"secretDataType"` // The name of the secret. SecretName string `pulumi:"secretName"` // The version number of the secret value. VersionId string `pulumi:"versionId"` // Stage labels that mark the secret version. VersionStages []string `pulumi:"versionStages"` }
type GetSecretVersionsVersionArgs ¶
type GetSecretVersionsVersionArgs struct { // The secret value. Secrets Manager decrypts the stored secret value in ciphertext and returns it. (Returned when `enableDetails` is true). SecretData pulumi.StringInput `pulumi:"secretData"` // The type of the secret value. (Returned when `enableDetails` is true). SecretDataType pulumi.StringInput `pulumi:"secretDataType"` // The name of the secret. SecretName pulumi.StringInput `pulumi:"secretName"` // The version number of the secret value. VersionId pulumi.StringInput `pulumi:"versionId"` // Stage labels that mark the secret version. VersionStages pulumi.StringArrayInput `pulumi:"versionStages"` }
func (GetSecretVersionsVersionArgs) ElementType ¶
func (GetSecretVersionsVersionArgs) ElementType() reflect.Type
func (GetSecretVersionsVersionArgs) ToGetSecretVersionsVersionOutput ¶
func (i GetSecretVersionsVersionArgs) ToGetSecretVersionsVersionOutput() GetSecretVersionsVersionOutput
func (GetSecretVersionsVersionArgs) ToGetSecretVersionsVersionOutputWithContext ¶
func (i GetSecretVersionsVersionArgs) ToGetSecretVersionsVersionOutputWithContext(ctx context.Context) GetSecretVersionsVersionOutput
type GetSecretVersionsVersionArray ¶
type GetSecretVersionsVersionArray []GetSecretVersionsVersionInput
func (GetSecretVersionsVersionArray) ElementType ¶
func (GetSecretVersionsVersionArray) ElementType() reflect.Type
func (GetSecretVersionsVersionArray) ToGetSecretVersionsVersionArrayOutput ¶
func (i GetSecretVersionsVersionArray) ToGetSecretVersionsVersionArrayOutput() GetSecretVersionsVersionArrayOutput
func (GetSecretVersionsVersionArray) ToGetSecretVersionsVersionArrayOutputWithContext ¶
func (i GetSecretVersionsVersionArray) ToGetSecretVersionsVersionArrayOutputWithContext(ctx context.Context) GetSecretVersionsVersionArrayOutput
type GetSecretVersionsVersionArrayInput ¶
type GetSecretVersionsVersionArrayInput interface { pulumi.Input ToGetSecretVersionsVersionArrayOutput() GetSecretVersionsVersionArrayOutput ToGetSecretVersionsVersionArrayOutputWithContext(context.Context) GetSecretVersionsVersionArrayOutput }
GetSecretVersionsVersionArrayInput is an input type that accepts GetSecretVersionsVersionArray and GetSecretVersionsVersionArrayOutput values. You can construct a concrete instance of `GetSecretVersionsVersionArrayInput` via:
GetSecretVersionsVersionArray{ GetSecretVersionsVersionArgs{...} }
type GetSecretVersionsVersionArrayOutput ¶
type GetSecretVersionsVersionArrayOutput struct{ *pulumi.OutputState }
func (GetSecretVersionsVersionArrayOutput) ElementType ¶
func (GetSecretVersionsVersionArrayOutput) ElementType() reflect.Type
func (GetSecretVersionsVersionArrayOutput) Index ¶
func (o GetSecretVersionsVersionArrayOutput) Index(i pulumi.IntInput) GetSecretVersionsVersionOutput
func (GetSecretVersionsVersionArrayOutput) ToGetSecretVersionsVersionArrayOutput ¶
func (o GetSecretVersionsVersionArrayOutput) ToGetSecretVersionsVersionArrayOutput() GetSecretVersionsVersionArrayOutput
func (GetSecretVersionsVersionArrayOutput) ToGetSecretVersionsVersionArrayOutputWithContext ¶
func (o GetSecretVersionsVersionArrayOutput) ToGetSecretVersionsVersionArrayOutputWithContext(ctx context.Context) GetSecretVersionsVersionArrayOutput
type GetSecretVersionsVersionInput ¶
type GetSecretVersionsVersionInput interface { pulumi.Input ToGetSecretVersionsVersionOutput() GetSecretVersionsVersionOutput ToGetSecretVersionsVersionOutputWithContext(context.Context) GetSecretVersionsVersionOutput }
GetSecretVersionsVersionInput is an input type that accepts GetSecretVersionsVersionArgs and GetSecretVersionsVersionOutput values. You can construct a concrete instance of `GetSecretVersionsVersionInput` via:
GetSecretVersionsVersionArgs{...}
type GetSecretVersionsVersionOutput ¶
type GetSecretVersionsVersionOutput struct{ *pulumi.OutputState }
func (GetSecretVersionsVersionOutput) ElementType ¶
func (GetSecretVersionsVersionOutput) ElementType() reflect.Type
func (GetSecretVersionsVersionOutput) SecretData ¶
func (o GetSecretVersionsVersionOutput) SecretData() pulumi.StringOutput
The secret value. Secrets Manager decrypts the stored secret value in ciphertext and returns it. (Returned when `enableDetails` is true).
func (GetSecretVersionsVersionOutput) SecretDataType ¶
func (o GetSecretVersionsVersionOutput) SecretDataType() pulumi.StringOutput
The type of the secret value. (Returned when `enableDetails` is true).
func (GetSecretVersionsVersionOutput) SecretName ¶
func (o GetSecretVersionsVersionOutput) SecretName() pulumi.StringOutput
The name of the secret.
func (GetSecretVersionsVersionOutput) ToGetSecretVersionsVersionOutput ¶
func (o GetSecretVersionsVersionOutput) ToGetSecretVersionsVersionOutput() GetSecretVersionsVersionOutput
func (GetSecretVersionsVersionOutput) ToGetSecretVersionsVersionOutputWithContext ¶
func (o GetSecretVersionsVersionOutput) ToGetSecretVersionsVersionOutputWithContext(ctx context.Context) GetSecretVersionsVersionOutput
func (GetSecretVersionsVersionOutput) VersionId ¶
func (o GetSecretVersionsVersionOutput) VersionId() pulumi.StringOutput
The version number of the secret value.
func (GetSecretVersionsVersionOutput) VersionStages ¶
func (o GetSecretVersionsVersionOutput) VersionStages() pulumi.StringArrayOutput
Stage labels that mark the secret version.
type GetSecretsArgs ¶
type GetSecretsArgs struct { // Default to `false`. Set it to true can output more details. EnableDetails *bool `pulumi:"enableDetails"` // Whether to include the predetermined resource tag in the return value. Default to `false`. FetchTags *bool `pulumi:"fetchTags"` // Credential filter. It is composed of Key-Values key-value pairs, the length is 0~1. When using a tag key to filter resources, the number of resources queried cannot exceed 4000. Filters *string `pulumi:"filters"` // A list of KMS Secret ids. The value is same as KMS secret_name. Ids []string `pulumi:"ids"` // A regex string to filter the results by the KMS secret_name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // A mapping of tags to assign to the resource. Tags map[string]interface{} `pulumi:"tags"` }
A collection of arguments for invoking getSecrets.
type GetSecretsOutputArgs ¶ added in v3.9.0
type GetSecretsOutputArgs struct { // Default to `false`. Set it to true can output more details. EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"` // Whether to include the predetermined resource tag in the return value. Default to `false`. FetchTags pulumi.BoolPtrInput `pulumi:"fetchTags"` // Credential filter. It is composed of Key-Values key-value pairs, the length is 0~1. When using a tag key to filter resources, the number of resources queried cannot exceed 4000. Filters pulumi.StringPtrInput `pulumi:"filters"` // A list of KMS Secret ids. The value is same as KMS secret_name. Ids pulumi.StringArrayInput `pulumi:"ids"` // A regex string to filter the results by the KMS secret_name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // A mapping of tags to assign to the resource. Tags pulumi.MapInput `pulumi:"tags"` }
A collection of arguments for invoking getSecrets.
func (GetSecretsOutputArgs) ElementType ¶ added in v3.9.0
func (GetSecretsOutputArgs) ElementType() reflect.Type
type GetSecretsResult ¶
type GetSecretsResult struct { EnableDetails *bool `pulumi:"enableDetails"` FetchTags *bool `pulumi:"fetchTags"` Filters *string `pulumi:"filters"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of Kms Secret ids. The value is same as KMS secret_name. Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` // A list of KMS Secret names. Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` // A list of KMS Secrets. Each element contains the following attributes: Secrets []GetSecretsSecret `pulumi:"secrets"` // (Optional) A mapping of tags to assign to the resource. Tags map[string]interface{} `pulumi:"tags"` }
A collection of values returned by getSecrets.
func GetSecrets ¶
func GetSecrets(ctx *pulumi.Context, args *GetSecretsArgs, opts ...pulumi.InvokeOption) (*GetSecretsResult, error)
This data source provides a list of KMS Secrets in an Alibaba Cloud account according to the specified filters.
> **NOTE:** Available in v1.86.0+.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { kmsSecretsDs, err := kms.GetSecrets(ctx, &kms.GetSecretsArgs{ FetchTags: pulumi.BoolRef(true), NameRegex: pulumi.StringRef("name_regex"), Tags: map[string]interface{}{ "k-aa": "v-aa", "k-bb": "v-bb", }, }, nil) if err != nil { return err } ctx.Export("firstSecretId", kmsSecretsDs.Secrets[0].Id) return nil }) }
```
type GetSecretsResultOutput ¶ added in v3.9.0
type GetSecretsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSecrets.
func GetSecretsOutput ¶ added in v3.9.0
func GetSecretsOutput(ctx *pulumi.Context, args GetSecretsOutputArgs, opts ...pulumi.InvokeOption) GetSecretsResultOutput
func (GetSecretsResultOutput) ElementType ¶ added in v3.9.0
func (GetSecretsResultOutput) ElementType() reflect.Type
func (GetSecretsResultOutput) EnableDetails ¶ added in v3.9.0
func (o GetSecretsResultOutput) EnableDetails() pulumi.BoolPtrOutput
func (GetSecretsResultOutput) FetchTags ¶ added in v3.9.0
func (o GetSecretsResultOutput) FetchTags() pulumi.BoolPtrOutput
func (GetSecretsResultOutput) Filters ¶ added in v3.9.0
func (o GetSecretsResultOutput) Filters() pulumi.StringPtrOutput
func (GetSecretsResultOutput) Id ¶ added in v3.9.0
func (o GetSecretsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSecretsResultOutput) Ids ¶ added in v3.9.0
func (o GetSecretsResultOutput) Ids() pulumi.StringArrayOutput
A list of Kms Secret ids. The value is same as KMS secret_name.
func (GetSecretsResultOutput) NameRegex ¶ added in v3.9.0
func (o GetSecretsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetSecretsResultOutput) Names ¶ added in v3.9.0
func (o GetSecretsResultOutput) Names() pulumi.StringArrayOutput
A list of KMS Secret names.
func (GetSecretsResultOutput) OutputFile ¶ added in v3.9.0
func (o GetSecretsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetSecretsResultOutput) Secrets ¶ added in v3.9.0
func (o GetSecretsResultOutput) Secrets() GetSecretsSecretArrayOutput
A list of KMS Secrets. Each element contains the following attributes:
func (GetSecretsResultOutput) Tags ¶ added in v3.9.0
func (o GetSecretsResultOutput) Tags() pulumi.MapOutput
(Optional) A mapping of tags to assign to the resource.
func (GetSecretsResultOutput) ToGetSecretsResultOutput ¶ added in v3.9.0
func (o GetSecretsResultOutput) ToGetSecretsResultOutput() GetSecretsResultOutput
func (GetSecretsResultOutput) ToGetSecretsResultOutputWithContext ¶ added in v3.9.0
func (o GetSecretsResultOutput) ToGetSecretsResultOutputWithContext(ctx context.Context) GetSecretsResultOutput
type GetSecretsSecret ¶
type GetSecretsSecret struct { // (Available in 1.124.0+) A mapping of tags to assign to the resource. Arn string `pulumi:"arn"` // (Available in 1.124.0+) The description of the secret. Description string `pulumi:"description"` // (Available in 1.124.0+) The ID of the KMS CMK that is used to encrypt the secret value. EncryptionKeyId string `pulumi:"encryptionKeyId"` // ID of the Kms Secret. The value is same as KMS secret_name. Id string `pulumi:"id"` // Schedule deletion time. PlannedDeleteTime string `pulumi:"plannedDeleteTime"` // (Available in 1.124.0+) The value of the secret that you want to create. SecretData string `pulumi:"secretData"` // (Available in 1.124.0+) The type of the secret data value. SecretDataType string `pulumi:"secretDataType"` // Name of the KMS Secret. SecretName string `pulumi:"secretName"` // (Available in 1.124.0+) The type of the secret. SecretType string `pulumi:"secretType"` // A mapping of tags to assign to the resource. Tags map[string]interface{} `pulumi:"tags"` // (Available in 1.124.0+) The version number of the initial version. VersionId string `pulumi:"versionId"` // (Available in 1.124.0+) The stage labels that mark the new secret version. VersionStages []string `pulumi:"versionStages"` }
type GetSecretsSecretArgs ¶
type GetSecretsSecretArgs struct { // (Available in 1.124.0+) A mapping of tags to assign to the resource. Arn pulumi.StringInput `pulumi:"arn"` // (Available in 1.124.0+) The description of the secret. Description pulumi.StringInput `pulumi:"description"` // (Available in 1.124.0+) The ID of the KMS CMK that is used to encrypt the secret value. EncryptionKeyId pulumi.StringInput `pulumi:"encryptionKeyId"` // ID of the Kms Secret. The value is same as KMS secret_name. Id pulumi.StringInput `pulumi:"id"` // Schedule deletion time. PlannedDeleteTime pulumi.StringInput `pulumi:"plannedDeleteTime"` // (Available in 1.124.0+) The value of the secret that you want to create. SecretData pulumi.StringInput `pulumi:"secretData"` // (Available in 1.124.0+) The type of the secret data value. SecretDataType pulumi.StringInput `pulumi:"secretDataType"` // Name of the KMS Secret. SecretName pulumi.StringInput `pulumi:"secretName"` // (Available in 1.124.0+) The type of the secret. SecretType pulumi.StringInput `pulumi:"secretType"` // A mapping of tags to assign to the resource. Tags pulumi.MapInput `pulumi:"tags"` // (Available in 1.124.0+) The version number of the initial version. VersionId pulumi.StringInput `pulumi:"versionId"` // (Available in 1.124.0+) The stage labels that mark the new secret version. VersionStages pulumi.StringArrayInput `pulumi:"versionStages"` }
func (GetSecretsSecretArgs) ElementType ¶
func (GetSecretsSecretArgs) ElementType() reflect.Type
func (GetSecretsSecretArgs) ToGetSecretsSecretOutput ¶
func (i GetSecretsSecretArgs) ToGetSecretsSecretOutput() GetSecretsSecretOutput
func (GetSecretsSecretArgs) ToGetSecretsSecretOutputWithContext ¶
func (i GetSecretsSecretArgs) ToGetSecretsSecretOutputWithContext(ctx context.Context) GetSecretsSecretOutput
type GetSecretsSecretArray ¶
type GetSecretsSecretArray []GetSecretsSecretInput
func (GetSecretsSecretArray) ElementType ¶
func (GetSecretsSecretArray) ElementType() reflect.Type
func (GetSecretsSecretArray) ToGetSecretsSecretArrayOutput ¶
func (i GetSecretsSecretArray) ToGetSecretsSecretArrayOutput() GetSecretsSecretArrayOutput
func (GetSecretsSecretArray) ToGetSecretsSecretArrayOutputWithContext ¶
func (i GetSecretsSecretArray) ToGetSecretsSecretArrayOutputWithContext(ctx context.Context) GetSecretsSecretArrayOutput
type GetSecretsSecretArrayInput ¶
type GetSecretsSecretArrayInput interface { pulumi.Input ToGetSecretsSecretArrayOutput() GetSecretsSecretArrayOutput ToGetSecretsSecretArrayOutputWithContext(context.Context) GetSecretsSecretArrayOutput }
GetSecretsSecretArrayInput is an input type that accepts GetSecretsSecretArray and GetSecretsSecretArrayOutput values. You can construct a concrete instance of `GetSecretsSecretArrayInput` via:
GetSecretsSecretArray{ GetSecretsSecretArgs{...} }
type GetSecretsSecretArrayOutput ¶
type GetSecretsSecretArrayOutput struct{ *pulumi.OutputState }
func (GetSecretsSecretArrayOutput) ElementType ¶
func (GetSecretsSecretArrayOutput) ElementType() reflect.Type
func (GetSecretsSecretArrayOutput) Index ¶
func (o GetSecretsSecretArrayOutput) Index(i pulumi.IntInput) GetSecretsSecretOutput
func (GetSecretsSecretArrayOutput) ToGetSecretsSecretArrayOutput ¶
func (o GetSecretsSecretArrayOutput) ToGetSecretsSecretArrayOutput() GetSecretsSecretArrayOutput
func (GetSecretsSecretArrayOutput) ToGetSecretsSecretArrayOutputWithContext ¶
func (o GetSecretsSecretArrayOutput) ToGetSecretsSecretArrayOutputWithContext(ctx context.Context) GetSecretsSecretArrayOutput
type GetSecretsSecretInput ¶
type GetSecretsSecretInput interface { pulumi.Input ToGetSecretsSecretOutput() GetSecretsSecretOutput ToGetSecretsSecretOutputWithContext(context.Context) GetSecretsSecretOutput }
GetSecretsSecretInput is an input type that accepts GetSecretsSecretArgs and GetSecretsSecretOutput values. You can construct a concrete instance of `GetSecretsSecretInput` via:
GetSecretsSecretArgs{...}
type GetSecretsSecretOutput ¶
type GetSecretsSecretOutput struct{ *pulumi.OutputState }
func (GetSecretsSecretOutput) Arn ¶ added in v3.3.0
func (o GetSecretsSecretOutput) Arn() pulumi.StringOutput
(Available in 1.124.0+) A mapping of tags to assign to the resource.
func (GetSecretsSecretOutput) Description ¶ added in v3.3.0
func (o GetSecretsSecretOutput) Description() pulumi.StringOutput
(Available in 1.124.0+) The description of the secret.
func (GetSecretsSecretOutput) ElementType ¶
func (GetSecretsSecretOutput) ElementType() reflect.Type
func (GetSecretsSecretOutput) EncryptionKeyId ¶ added in v3.3.0
func (o GetSecretsSecretOutput) EncryptionKeyId() pulumi.StringOutput
(Available in 1.124.0+) The ID of the KMS CMK that is used to encrypt the secret value.
func (GetSecretsSecretOutput) Id ¶
func (o GetSecretsSecretOutput) Id() pulumi.StringOutput
ID of the Kms Secret. The value is same as KMS secret_name.
func (GetSecretsSecretOutput) PlannedDeleteTime ¶
func (o GetSecretsSecretOutput) PlannedDeleteTime() pulumi.StringOutput
Schedule deletion time.
func (GetSecretsSecretOutput) SecretData ¶ added in v3.3.0
func (o GetSecretsSecretOutput) SecretData() pulumi.StringOutput
(Available in 1.124.0+) The value of the secret that you want to create.
func (GetSecretsSecretOutput) SecretDataType ¶ added in v3.3.0
func (o GetSecretsSecretOutput) SecretDataType() pulumi.StringOutput
(Available in 1.124.0+) The type of the secret data value.
func (GetSecretsSecretOutput) SecretName ¶
func (o GetSecretsSecretOutput) SecretName() pulumi.StringOutput
Name of the KMS Secret.
func (GetSecretsSecretOutput) SecretType ¶ added in v3.3.0
func (o GetSecretsSecretOutput) SecretType() pulumi.StringOutput
(Available in 1.124.0+) The type of the secret.
func (GetSecretsSecretOutput) Tags ¶
func (o GetSecretsSecretOutput) Tags() pulumi.MapOutput
A mapping of tags to assign to the resource.
func (GetSecretsSecretOutput) ToGetSecretsSecretOutput ¶
func (o GetSecretsSecretOutput) ToGetSecretsSecretOutput() GetSecretsSecretOutput
func (GetSecretsSecretOutput) ToGetSecretsSecretOutputWithContext ¶
func (o GetSecretsSecretOutput) ToGetSecretsSecretOutputWithContext(ctx context.Context) GetSecretsSecretOutput
func (GetSecretsSecretOutput) VersionId ¶ added in v3.3.0
func (o GetSecretsSecretOutput) VersionId() pulumi.StringOutput
(Available in 1.124.0+) The version number of the initial version.
func (GetSecretsSecretOutput) VersionStages ¶ added in v3.3.0
func (o GetSecretsSecretOutput) VersionStages() pulumi.StringArrayOutput
(Available in 1.124.0+) The stage labels that mark the new secret version.
type GetServiceArgs ¶
type GetServiceArgs struct { // Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off". Enable *string `pulumi:"enable"` }
A collection of arguments for invoking getService.
type GetServiceOutputArgs ¶ added in v3.9.0
type GetServiceOutputArgs struct { // Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off". Enable pulumi.StringPtrInput `pulumi:"enable"` }
A collection of arguments for invoking getService.
func (GetServiceOutputArgs) ElementType ¶ added in v3.9.0
func (GetServiceOutputArgs) ElementType() reflect.Type
type GetServiceResult ¶
type GetServiceResult struct { Enable *string `pulumi:"enable"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The current service enable status. Status string `pulumi:"status"` }
A collection of values returned by getService.
func GetService ¶
func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)
Using this data source can open KMS service automatically. If the service has been opened, it will return opened.
For information about KMS and how to use it, see [What is KMS](https://help.aliyun.com/document_detail/186020.html).
> **NOTE:** Available in v1.108.0+
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := kms.GetService(ctx, &kms.GetServiceArgs{ Enable: pulumi.StringRef("On"), }, nil) if err != nil { return err } return nil }) }
```
type GetServiceResultOutput ¶ added in v3.9.0
type GetServiceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getService.
func GetServiceOutput ¶ added in v3.9.0
func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput
func (GetServiceResultOutput) ElementType ¶ added in v3.9.0
func (GetServiceResultOutput) ElementType() reflect.Type
func (GetServiceResultOutput) Enable ¶ added in v3.9.0
func (o GetServiceResultOutput) Enable() pulumi.StringPtrOutput
func (GetServiceResultOutput) Id ¶ added in v3.9.0
func (o GetServiceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetServiceResultOutput) Status ¶ added in v3.9.0
func (o GetServiceResultOutput) Status() pulumi.StringOutput
The current service enable status.
func (GetServiceResultOutput) ToGetServiceResultOutput ¶ added in v3.9.0
func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput
func (GetServiceResultOutput) ToGetServiceResultOutputWithContext ¶ added in v3.9.0
func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput
type Key ¶
type Key struct { pulumi.CustomResourceState // The Alicloud Resource Name (ARN) of the key. // * `creationDate` -The date and time when the CMK was created. The time is displayed in UTC. // * `creator` -The creator of the CMK. // * `deleteDate` -The scheduled date to delete CMK. The time is displayed in UTC. This value is returned only when the KeyState value is PendingDeletion. Arn pulumi.StringOutput `pulumi:"arn"` // Specifies whether to enable automatic key rotation. Valid values: // - Enabled // - Disabled (default value) // **NOTE**: If you set the origin parameter to EXTERNAL or the keySpec parameter to an asymmetric CMK type, automatic key rotation is unavailable. AutomaticRotation pulumi.StringPtrOutput `pulumi:"automaticRotation"` CreationDate pulumi.StringOutput `pulumi:"creationDate"` Creator pulumi.StringOutput `pulumi:"creator"` DeleteDate pulumi.StringOutput `pulumi:"deleteDate"` // Field `deletionWindowInDays` has been deprecated from provider version 1.85.0. New field `pendingWindowInDays` instead. // // Deprecated: Field 'deletion_window_in_days' has been deprecated from provider version 1.85.0. New field 'pending_window_in_days' instead. DeletionWindowInDays pulumi.IntOutput `pulumi:"deletionWindowInDays"` // The description of the CMK. The description can be 0 to 8,192 characters in length. Description pulumi.StringPtrOutput `pulumi:"description"` // Field `isEnabled` has been deprecated from provider version 1.85.0. New field `keyState` instead. // // Deprecated: Field 'is_enabled' has been deprecated from provider version 1.85.0. New field 'key_state' instead. IsEnabled pulumi.BoolPtrOutput `pulumi:"isEnabled"` // The type of the CMK. Valid values: // "Aliyun_AES_256", "Aliyun_AES_128", "Aliyun_AES_192", "Aliyun_SM4", "RSA_2048", "RSA_3072", "EC_P256", "EC_P256K", "EC_SM2". // Note: The default type of the CMK is Aliyun_AES_256. Only Dedicated KMS supports Aliyun_AES_128 and Aliyun_AES_192. KeySpec pulumi.StringOutput `pulumi:"keySpec"` // Field `keyState` has been deprecated from provider version 1.123.1. New field `status` instead. // // Deprecated: Field 'key_state' has been deprecated from provider version 1.123.1. New field 'status' instead. KeyState pulumi.StringOutput `pulumi:"keyState"` // The usage of the CMK. Valid values: // - ENCRYPT/DECRYPT(default value): encrypts or decrypts data. // - SIGN/VERIFY: generates or verifies a digital signature. KeyUsage pulumi.StringPtrOutput `pulumi:"keyUsage"` // The date and time the last rotation was performed. The time is displayed in UTC. LastRotationDate pulumi.StringOutput `pulumi:"lastRotationDate"` // The time and date the key material for the CMK expires. The time is displayed in UTC. If the value is empty, the key material for the CMK does not expire. MaterialExpireTime pulumi.StringOutput `pulumi:"materialExpireTime"` // The time the next rotation is scheduled for execution. NextRotationDate pulumi.StringOutput `pulumi:"nextRotationDate"` // The source of key material. Valid values: // - Aliyun_KMS (default value) // - EXTERNAL // **NOTE**: The value of this parameter is case-sensitive. If you set the `keySpec` to an asymmetric CMK type, // you are not allowed to set the `origin` to EXTERNAL. If you set the `origin` to EXTERNAL, you must import key material. // For more information, see [import key material](https://www.alibabacloud.com/help/en/doc-detail/68523.htm). Origin pulumi.StringPtrOutput `pulumi:"origin"` // The number of days before the CMK is deleted. // During this period, the CMK is in the PendingDeletion state. // After this period ends, you cannot cancel the deletion. Valid values: 7 to 30. Unit: days. PendingWindowInDays pulumi.IntOutput `pulumi:"pendingWindowInDays"` // The ID of the current primary key version of the symmetric CMK. PrimaryKeyVersion pulumi.StringOutput `pulumi:"primaryKeyVersion"` // The protection level of the CMK. Valid values: // - SOFTWARE (default value) // - HSM // **NOTE**: The value of this parameter is case-sensitive. Assume that you set this parameter to HSM. // If you set the origin parameter to Aliyun_KMS, the CMK is created in a managed hardware security module (HSM). // If you set the origin parameter to EXTERNA, you can import an external key to the managed HSM. ProtectionLevel pulumi.StringPtrOutput `pulumi:"protectionLevel"` // The interval for automatic key rotation. Specify the value in the integer[unit] format. // The following units are supported: d (day), h (hour), m (minute), and s (second). // For example, you can use either 7d or 604800s to specify a seven-day interval. // The interval can range from 7 days to 730 days. // **NOTE**: It is Required when `automaticRotation = "Enabled"` RotationInterval pulumi.StringPtrOutput `pulumi:"rotationInterval"` // The status of CMK. Valid Values: // - Disabled // - Enabled (default value) // - PendingDeletion Status pulumi.StringOutput `pulumi:"status"` }
A kms key can help user to protect data security in the transmission process. For information about Alikms Key and how to use it, see [What is Resource Alikms Key](https://www.alibabacloud.com/help/doc-detail/28947.htm).
> **NOTE:** Available in v1.85.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := kms.NewKey(ctx, "key", &kms.KeyArgs{ Description: pulumi.String("Hello KMS"), PendingWindowInDays: pulumi.Int(7), Status: pulumi.String("Enabled"), }) if err != nil { return err } return nil }) }
```
## Import
Alikms key can be imported using the id, e.g.
```sh
$ pulumi import alicloud:kms/key:Key example abc123456
```
func GetKey ¶
func GetKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *KeyState, opts ...pulumi.ResourceOption) (*Key, error)
GetKey gets an existing Key resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewKey ¶
func NewKey(ctx *pulumi.Context, name string, args *KeyArgs, opts ...pulumi.ResourceOption) (*Key, error)
NewKey registers a new resource with the given unique name, arguments, and options.
func (*Key) ElementType ¶
func (*Key) ToKeyOutput ¶
type KeyArgs ¶
type KeyArgs struct { // Specifies whether to enable automatic key rotation. Valid values: // - Enabled // - Disabled (default value) // **NOTE**: If you set the origin parameter to EXTERNAL or the keySpec parameter to an asymmetric CMK type, automatic key rotation is unavailable. AutomaticRotation pulumi.StringPtrInput // Field `deletionWindowInDays` has been deprecated from provider version 1.85.0. New field `pendingWindowInDays` instead. // // Deprecated: Field 'deletion_window_in_days' has been deprecated from provider version 1.85.0. New field 'pending_window_in_days' instead. DeletionWindowInDays pulumi.IntPtrInput // The description of the CMK. The description can be 0 to 8,192 characters in length. Description pulumi.StringPtrInput // Field `isEnabled` has been deprecated from provider version 1.85.0. New field `keyState` instead. // // Deprecated: Field 'is_enabled' has been deprecated from provider version 1.85.0. New field 'key_state' instead. IsEnabled pulumi.BoolPtrInput // The type of the CMK. Valid values: // "Aliyun_AES_256", "Aliyun_AES_128", "Aliyun_AES_192", "Aliyun_SM4", "RSA_2048", "RSA_3072", "EC_P256", "EC_P256K", "EC_SM2". // Note: The default type of the CMK is Aliyun_AES_256. Only Dedicated KMS supports Aliyun_AES_128 and Aliyun_AES_192. KeySpec pulumi.StringPtrInput // Field `keyState` has been deprecated from provider version 1.123.1. New field `status` instead. // // Deprecated: Field 'key_state' has been deprecated from provider version 1.123.1. New field 'status' instead. KeyState pulumi.StringPtrInput // The usage of the CMK. Valid values: // - ENCRYPT/DECRYPT(default value): encrypts or decrypts data. // - SIGN/VERIFY: generates or verifies a digital signature. KeyUsage pulumi.StringPtrInput // The source of key material. Valid values: // - Aliyun_KMS (default value) // - EXTERNAL // **NOTE**: The value of this parameter is case-sensitive. If you set the `keySpec` to an asymmetric CMK type, // you are not allowed to set the `origin` to EXTERNAL. If you set the `origin` to EXTERNAL, you must import key material. // For more information, see [import key material](https://www.alibabacloud.com/help/en/doc-detail/68523.htm). Origin pulumi.StringPtrInput // The number of days before the CMK is deleted. // During this period, the CMK is in the PendingDeletion state. // After this period ends, you cannot cancel the deletion. Valid values: 7 to 30. Unit: days. PendingWindowInDays pulumi.IntPtrInput // The protection level of the CMK. Valid values: // - SOFTWARE (default value) // - HSM // **NOTE**: The value of this parameter is case-sensitive. Assume that you set this parameter to HSM. // If you set the origin parameter to Aliyun_KMS, the CMK is created in a managed hardware security module (HSM). // If you set the origin parameter to EXTERNA, you can import an external key to the managed HSM. ProtectionLevel pulumi.StringPtrInput // The interval for automatic key rotation. Specify the value in the integer[unit] format. // The following units are supported: d (day), h (hour), m (minute), and s (second). // For example, you can use either 7d or 604800s to specify a seven-day interval. // The interval can range from 7 days to 730 days. // **NOTE**: It is Required when `automaticRotation = "Enabled"` RotationInterval pulumi.StringPtrInput // The status of CMK. Valid Values: // - Disabled // - Enabled (default value) // - PendingDeletion Status pulumi.StringPtrInput }
The set of arguments for constructing a Key resource.
func (KeyArgs) ElementType ¶
type KeyArray ¶
type KeyArray []KeyInput
func (KeyArray) ElementType ¶
func (KeyArray) ToKeyArrayOutput ¶
func (i KeyArray) ToKeyArrayOutput() KeyArrayOutput
func (KeyArray) ToKeyArrayOutputWithContext ¶
func (i KeyArray) ToKeyArrayOutputWithContext(ctx context.Context) KeyArrayOutput
type KeyArrayInput ¶
type KeyArrayInput interface { pulumi.Input ToKeyArrayOutput() KeyArrayOutput ToKeyArrayOutputWithContext(context.Context) KeyArrayOutput }
KeyArrayInput is an input type that accepts KeyArray and KeyArrayOutput values. You can construct a concrete instance of `KeyArrayInput` via:
KeyArray{ KeyArgs{...} }
type KeyArrayOutput ¶
type KeyArrayOutput struct{ *pulumi.OutputState }
func (KeyArrayOutput) ElementType ¶
func (KeyArrayOutput) ElementType() reflect.Type
func (KeyArrayOutput) ToKeyArrayOutput ¶
func (o KeyArrayOutput) ToKeyArrayOutput() KeyArrayOutput
func (KeyArrayOutput) ToKeyArrayOutputWithContext ¶
func (o KeyArrayOutput) ToKeyArrayOutputWithContext(ctx context.Context) KeyArrayOutput
type KeyMap ¶
func (KeyMap) ElementType ¶
func (KeyMap) ToKeyMapOutput ¶
func (i KeyMap) ToKeyMapOutput() KeyMapOutput
func (KeyMap) ToKeyMapOutputWithContext ¶
func (i KeyMap) ToKeyMapOutputWithContext(ctx context.Context) KeyMapOutput
type KeyMapInput ¶
type KeyMapInput interface { pulumi.Input ToKeyMapOutput() KeyMapOutput ToKeyMapOutputWithContext(context.Context) KeyMapOutput }
KeyMapInput is an input type that accepts KeyMap and KeyMapOutput values. You can construct a concrete instance of `KeyMapInput` via:
KeyMap{ "key": KeyArgs{...} }
type KeyMapOutput ¶
type KeyMapOutput struct{ *pulumi.OutputState }
func (KeyMapOutput) ElementType ¶
func (KeyMapOutput) ElementType() reflect.Type
func (KeyMapOutput) MapIndex ¶
func (o KeyMapOutput) MapIndex(k pulumi.StringInput) KeyOutput
func (KeyMapOutput) ToKeyMapOutput ¶
func (o KeyMapOutput) ToKeyMapOutput() KeyMapOutput
func (KeyMapOutput) ToKeyMapOutputWithContext ¶
func (o KeyMapOutput) ToKeyMapOutputWithContext(ctx context.Context) KeyMapOutput
type KeyOutput ¶
type KeyOutput struct{ *pulumi.OutputState }
func (KeyOutput) ElementType ¶
func (KeyOutput) ToKeyOutput ¶
type KeyState ¶
type KeyState struct { // The Alicloud Resource Name (ARN) of the key. // * `creationDate` -The date and time when the CMK was created. The time is displayed in UTC. // * `creator` -The creator of the CMK. // * `deleteDate` -The scheduled date to delete CMK. The time is displayed in UTC. This value is returned only when the KeyState value is PendingDeletion. Arn pulumi.StringPtrInput // Specifies whether to enable automatic key rotation. Valid values: // - Enabled // - Disabled (default value) // **NOTE**: If you set the origin parameter to EXTERNAL or the keySpec parameter to an asymmetric CMK type, automatic key rotation is unavailable. AutomaticRotation pulumi.StringPtrInput CreationDate pulumi.StringPtrInput Creator pulumi.StringPtrInput DeleteDate pulumi.StringPtrInput // Field `deletionWindowInDays` has been deprecated from provider version 1.85.0. New field `pendingWindowInDays` instead. // // Deprecated: Field 'deletion_window_in_days' has been deprecated from provider version 1.85.0. New field 'pending_window_in_days' instead. DeletionWindowInDays pulumi.IntPtrInput // The description of the CMK. The description can be 0 to 8,192 characters in length. Description pulumi.StringPtrInput // Field `isEnabled` has been deprecated from provider version 1.85.0. New field `keyState` instead. // // Deprecated: Field 'is_enabled' has been deprecated from provider version 1.85.0. New field 'key_state' instead. IsEnabled pulumi.BoolPtrInput // The type of the CMK. Valid values: // "Aliyun_AES_256", "Aliyun_AES_128", "Aliyun_AES_192", "Aliyun_SM4", "RSA_2048", "RSA_3072", "EC_P256", "EC_P256K", "EC_SM2". // Note: The default type of the CMK is Aliyun_AES_256. Only Dedicated KMS supports Aliyun_AES_128 and Aliyun_AES_192. KeySpec pulumi.StringPtrInput // Field `keyState` has been deprecated from provider version 1.123.1. New field `status` instead. // // Deprecated: Field 'key_state' has been deprecated from provider version 1.123.1. New field 'status' instead. KeyState pulumi.StringPtrInput // The usage of the CMK. Valid values: // - ENCRYPT/DECRYPT(default value): encrypts or decrypts data. // - SIGN/VERIFY: generates or verifies a digital signature. KeyUsage pulumi.StringPtrInput // The date and time the last rotation was performed. The time is displayed in UTC. LastRotationDate pulumi.StringPtrInput // The time and date the key material for the CMK expires. The time is displayed in UTC. If the value is empty, the key material for the CMK does not expire. MaterialExpireTime pulumi.StringPtrInput // The time the next rotation is scheduled for execution. NextRotationDate pulumi.StringPtrInput // The source of key material. Valid values: // - Aliyun_KMS (default value) // - EXTERNAL // **NOTE**: The value of this parameter is case-sensitive. If you set the `keySpec` to an asymmetric CMK type, // you are not allowed to set the `origin` to EXTERNAL. If you set the `origin` to EXTERNAL, you must import key material. // For more information, see [import key material](https://www.alibabacloud.com/help/en/doc-detail/68523.htm). Origin pulumi.StringPtrInput // The number of days before the CMK is deleted. // During this period, the CMK is in the PendingDeletion state. // After this period ends, you cannot cancel the deletion. Valid values: 7 to 30. Unit: days. PendingWindowInDays pulumi.IntPtrInput // The ID of the current primary key version of the symmetric CMK. PrimaryKeyVersion pulumi.StringPtrInput // The protection level of the CMK. Valid values: // - SOFTWARE (default value) // - HSM // **NOTE**: The value of this parameter is case-sensitive. Assume that you set this parameter to HSM. // If you set the origin parameter to Aliyun_KMS, the CMK is created in a managed hardware security module (HSM). // If you set the origin parameter to EXTERNA, you can import an external key to the managed HSM. ProtectionLevel pulumi.StringPtrInput // The interval for automatic key rotation. Specify the value in the integer[unit] format. // The following units are supported: d (day), h (hour), m (minute), and s (second). // For example, you can use either 7d or 604800s to specify a seven-day interval. // The interval can range from 7 days to 730 days. // **NOTE**: It is Required when `automaticRotation = "Enabled"` RotationInterval pulumi.StringPtrInput // The status of CMK. Valid Values: // - Disabled // - Enabled (default value) // - PendingDeletion Status pulumi.StringPtrInput }
func (KeyState) ElementType ¶
type KeyVersion ¶
type KeyVersion struct { pulumi.CustomResourceState // The id of the master key (CMK). KeyId pulumi.StringOutput `pulumi:"keyId"` // The id of the Alikms key version. KeyVersionId pulumi.StringOutput `pulumi:"keyVersionId"` }
Provides a Alikms Key Version resource. For information about Alikms Key Version and how to use it, see [What is Resource Alikms Key Version](https://www.alibabacloud.com/help/doc-detail/133838.htm).
> **NOTE:** Available in v1.85.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { this, err := kms.NewKey(ctx, "this", nil) if err != nil { return err } _, err = kms.NewKeyVersion(ctx, "keyversion", &kms.KeyVersionArgs{ KeyId: this.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Alikms key version can be imported using the id, e.g.
```sh
$ pulumi import alicloud:kms/keyVersion:KeyVersion example 72da539a-2fa8-4f2d-b854-*****
```
func GetKeyVersion ¶
func GetKeyVersion(ctx *pulumi.Context, name string, id pulumi.IDInput, state *KeyVersionState, opts ...pulumi.ResourceOption) (*KeyVersion, error)
GetKeyVersion gets an existing KeyVersion resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewKeyVersion ¶
func NewKeyVersion(ctx *pulumi.Context, name string, args *KeyVersionArgs, opts ...pulumi.ResourceOption) (*KeyVersion, error)
NewKeyVersion registers a new resource with the given unique name, arguments, and options.
func (*KeyVersion) ElementType ¶
func (*KeyVersion) ElementType() reflect.Type
func (*KeyVersion) ToKeyVersionOutput ¶
func (i *KeyVersion) ToKeyVersionOutput() KeyVersionOutput
func (*KeyVersion) ToKeyVersionOutputWithContext ¶
func (i *KeyVersion) ToKeyVersionOutputWithContext(ctx context.Context) KeyVersionOutput
type KeyVersionArgs ¶
type KeyVersionArgs struct { // The id of the master key (CMK). KeyId pulumi.StringInput }
The set of arguments for constructing a KeyVersion resource.
func (KeyVersionArgs) ElementType ¶
func (KeyVersionArgs) ElementType() reflect.Type
type KeyVersionArray ¶
type KeyVersionArray []KeyVersionInput
func (KeyVersionArray) ElementType ¶
func (KeyVersionArray) ElementType() reflect.Type
func (KeyVersionArray) ToKeyVersionArrayOutput ¶
func (i KeyVersionArray) ToKeyVersionArrayOutput() KeyVersionArrayOutput
func (KeyVersionArray) ToKeyVersionArrayOutputWithContext ¶
func (i KeyVersionArray) ToKeyVersionArrayOutputWithContext(ctx context.Context) KeyVersionArrayOutput
type KeyVersionArrayInput ¶
type KeyVersionArrayInput interface { pulumi.Input ToKeyVersionArrayOutput() KeyVersionArrayOutput ToKeyVersionArrayOutputWithContext(context.Context) KeyVersionArrayOutput }
KeyVersionArrayInput is an input type that accepts KeyVersionArray and KeyVersionArrayOutput values. You can construct a concrete instance of `KeyVersionArrayInput` via:
KeyVersionArray{ KeyVersionArgs{...} }
type KeyVersionArrayOutput ¶
type KeyVersionArrayOutput struct{ *pulumi.OutputState }
func (KeyVersionArrayOutput) ElementType ¶
func (KeyVersionArrayOutput) ElementType() reflect.Type
func (KeyVersionArrayOutput) Index ¶
func (o KeyVersionArrayOutput) Index(i pulumi.IntInput) KeyVersionOutput
func (KeyVersionArrayOutput) ToKeyVersionArrayOutput ¶
func (o KeyVersionArrayOutput) ToKeyVersionArrayOutput() KeyVersionArrayOutput
func (KeyVersionArrayOutput) ToKeyVersionArrayOutputWithContext ¶
func (o KeyVersionArrayOutput) ToKeyVersionArrayOutputWithContext(ctx context.Context) KeyVersionArrayOutput
type KeyVersionInput ¶
type KeyVersionInput interface { pulumi.Input ToKeyVersionOutput() KeyVersionOutput ToKeyVersionOutputWithContext(ctx context.Context) KeyVersionOutput }
type KeyVersionMap ¶
type KeyVersionMap map[string]KeyVersionInput
func (KeyVersionMap) ElementType ¶
func (KeyVersionMap) ElementType() reflect.Type
func (KeyVersionMap) ToKeyVersionMapOutput ¶
func (i KeyVersionMap) ToKeyVersionMapOutput() KeyVersionMapOutput
func (KeyVersionMap) ToKeyVersionMapOutputWithContext ¶
func (i KeyVersionMap) ToKeyVersionMapOutputWithContext(ctx context.Context) KeyVersionMapOutput
type KeyVersionMapInput ¶
type KeyVersionMapInput interface { pulumi.Input ToKeyVersionMapOutput() KeyVersionMapOutput ToKeyVersionMapOutputWithContext(context.Context) KeyVersionMapOutput }
KeyVersionMapInput is an input type that accepts KeyVersionMap and KeyVersionMapOutput values. You can construct a concrete instance of `KeyVersionMapInput` via:
KeyVersionMap{ "key": KeyVersionArgs{...} }
type KeyVersionMapOutput ¶
type KeyVersionMapOutput struct{ *pulumi.OutputState }
func (KeyVersionMapOutput) ElementType ¶
func (KeyVersionMapOutput) ElementType() reflect.Type
func (KeyVersionMapOutput) MapIndex ¶
func (o KeyVersionMapOutput) MapIndex(k pulumi.StringInput) KeyVersionOutput
func (KeyVersionMapOutput) ToKeyVersionMapOutput ¶
func (o KeyVersionMapOutput) ToKeyVersionMapOutput() KeyVersionMapOutput
func (KeyVersionMapOutput) ToKeyVersionMapOutputWithContext ¶
func (o KeyVersionMapOutput) ToKeyVersionMapOutputWithContext(ctx context.Context) KeyVersionMapOutput
type KeyVersionOutput ¶
type KeyVersionOutput struct{ *pulumi.OutputState }
func (KeyVersionOutput) ElementType ¶
func (KeyVersionOutput) ElementType() reflect.Type
func (KeyVersionOutput) ToKeyVersionOutput ¶
func (o KeyVersionOutput) ToKeyVersionOutput() KeyVersionOutput
func (KeyVersionOutput) ToKeyVersionOutputWithContext ¶
func (o KeyVersionOutput) ToKeyVersionOutputWithContext(ctx context.Context) KeyVersionOutput
type KeyVersionState ¶
type KeyVersionState struct { // The id of the master key (CMK). KeyId pulumi.StringPtrInput // The id of the Alikms key version. KeyVersionId pulumi.StringPtrInput }
func (KeyVersionState) ElementType ¶
func (KeyVersionState) ElementType() reflect.Type
type LookupCiphertextArgs ¶
type LookupCiphertextArgs struct { // - // (Optional) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). EncryptionContext map[string]string `pulumi:"encryptionContext"` // The globally unique ID of the CMK. KeyId string `pulumi:"keyId"` // The plaintext to be encrypted which must be encoded in Base64. Plaintext string `pulumi:"plaintext"` }
A collection of arguments for invoking getCiphertext.
type LookupCiphertextOutputArgs ¶ added in v3.9.0
type LookupCiphertextOutputArgs struct { // - // (Optional) The Encryption context. If you specify this parameter here, it is also required when you call the Decrypt API operation. For more information, see [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). EncryptionContext pulumi.StringMapInput `pulumi:"encryptionContext"` // The globally unique ID of the CMK. KeyId pulumi.StringInput `pulumi:"keyId"` // The plaintext to be encrypted which must be encoded in Base64. Plaintext pulumi.StringInput `pulumi:"plaintext"` }
A collection of arguments for invoking getCiphertext.
func (LookupCiphertextOutputArgs) ElementType ¶ added in v3.9.0
func (LookupCiphertextOutputArgs) ElementType() reflect.Type
type LookupCiphertextResult ¶
type LookupCiphertextResult struct { // The ciphertext of the data key encrypted with the primary CMK version. CiphertextBlob string `pulumi:"ciphertextBlob"` EncryptionContext map[string]string `pulumi:"encryptionContext"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` KeyId string `pulumi:"keyId"` Plaintext string `pulumi:"plaintext"` }
A collection of values returned by getCiphertext.
func LookupCiphertext ¶
func LookupCiphertext(ctx *pulumi.Context, args *LookupCiphertextArgs, opts ...pulumi.InvokeOption) (*LookupCiphertextResult, error)
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { key, err := kms.NewKey(ctx, "key", &kms.KeyArgs{ Description: pulumi.String("example key"), IsEnabled: pulumi.Bool(true), }) if err != nil { return err } _ = kms.LookupCiphertextOutput(ctx, kms.GetCiphertextOutputArgs{ KeyId: key.ID(), Plaintext: pulumi.String("example"), }, nil) return nil }) }
```
type LookupCiphertextResultOutput ¶ added in v3.9.0
type LookupCiphertextResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getCiphertext.
func LookupCiphertextOutput ¶ added in v3.9.0
func LookupCiphertextOutput(ctx *pulumi.Context, args LookupCiphertextOutputArgs, opts ...pulumi.InvokeOption) LookupCiphertextResultOutput
func (LookupCiphertextResultOutput) CiphertextBlob ¶ added in v3.9.0
func (o LookupCiphertextResultOutput) CiphertextBlob() pulumi.StringOutput
The ciphertext of the data key encrypted with the primary CMK version.
func (LookupCiphertextResultOutput) ElementType ¶ added in v3.9.0
func (LookupCiphertextResultOutput) ElementType() reflect.Type
func (LookupCiphertextResultOutput) EncryptionContext ¶ added in v3.9.0
func (o LookupCiphertextResultOutput) EncryptionContext() pulumi.StringMapOutput
func (LookupCiphertextResultOutput) Id ¶ added in v3.9.0
func (o LookupCiphertextResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupCiphertextResultOutput) KeyId ¶ added in v3.9.0
func (o LookupCiphertextResultOutput) KeyId() pulumi.StringOutput
func (LookupCiphertextResultOutput) Plaintext ¶ added in v3.9.0
func (o LookupCiphertextResultOutput) Plaintext() pulumi.StringOutput
func (LookupCiphertextResultOutput) ToLookupCiphertextResultOutput ¶ added in v3.9.0
func (o LookupCiphertextResultOutput) ToLookupCiphertextResultOutput() LookupCiphertextResultOutput
func (LookupCiphertextResultOutput) ToLookupCiphertextResultOutputWithContext ¶ added in v3.9.0
func (o LookupCiphertextResultOutput) ToLookupCiphertextResultOutputWithContext(ctx context.Context) LookupCiphertextResultOutput
type Secret ¶
type Secret struct { pulumi.CustomResourceState // The Alicloud Resource Name (ARN) of the secret. Arn pulumi.StringOutput `pulumi:"arn"` // The description of the secret. Description pulumi.StringPtrOutput `pulumi:"description"` // Whether to enable automatic key rotation. EnableAutomaticRotation pulumi.BoolPtrOutput `pulumi:"enableAutomaticRotation"` // The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret. EncryptionKeyId pulumi.StringPtrOutput `pulumi:"encryptionKeyId"` // Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false. ForceDeleteWithoutRecovery pulumi.BoolPtrOutput `pulumi:"forceDeleteWithoutRecovery"` // The time when the secret is scheduled to be deleted. PlannedDeleteTime pulumi.StringOutput `pulumi:"plannedDeleteTime"` // Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when `forceDeleteWithoutRecovery` is true. RecoveryWindowInDays pulumi.IntPtrOutput `pulumi:"recoveryWindowInDays"` // The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle. RotationInterval pulumi.StringPtrOutput `pulumi:"rotationInterval"` // The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. SecretData pulumi.StringOutput `pulumi:"secretData"` // The type of the secret value. Valid values: text, binary. Default to "text". SecretDataType pulumi.StringPtrOutput `pulumi:"secretDataType"` // The name of the secret. SecretName pulumi.StringOutput `pulumi:"secretName"` // A mapping of tags to assign to the resource. Tags pulumi.MapOutput `pulumi:"tags"` // The version number of the initial version. Version numbers are unique in each secret object. VersionId pulumi.StringOutput `pulumi:"versionId"` // ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent". VersionStages pulumi.StringArrayOutput `pulumi:"versionStages"` }
This resouce used to create a secret and store its initial version.
> **NOTE:** Available in 1.76.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := kms.NewSecret(ctx, "default", &kms.SecretArgs{ Description: pulumi.String("from terraform"), ForceDeleteWithoutRecovery: pulumi.Bool(true), SecretData: pulumi.String("Secret data."), SecretName: pulumi.String("secret-foo"), VersionId: pulumi.String("000000000001"), }) if err != nil { return err } return nil }) }
```
## Import
KMS secret can be imported using the id, e.g.
```sh
$ pulumi import alicloud:kms/secret:Secret default secret-foo
```
func GetSecret ¶
func GetSecret(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SecretState, opts ...pulumi.ResourceOption) (*Secret, error)
GetSecret gets an existing Secret resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSecret ¶
func NewSecret(ctx *pulumi.Context, name string, args *SecretArgs, opts ...pulumi.ResourceOption) (*Secret, error)
NewSecret registers a new resource with the given unique name, arguments, and options.
func (*Secret) ElementType ¶
func (*Secret) ToSecretOutput ¶
func (i *Secret) ToSecretOutput() SecretOutput
func (*Secret) ToSecretOutputWithContext ¶
func (i *Secret) ToSecretOutputWithContext(ctx context.Context) SecretOutput
type SecretArgs ¶
type SecretArgs struct { // The description of the secret. Description pulumi.StringPtrInput // Whether to enable automatic key rotation. EnableAutomaticRotation pulumi.BoolPtrInput // The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret. EncryptionKeyId pulumi.StringPtrInput // Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false. ForceDeleteWithoutRecovery pulumi.BoolPtrInput // Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when `forceDeleteWithoutRecovery` is true. RecoveryWindowInDays pulumi.IntPtrInput // The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle. RotationInterval pulumi.StringPtrInput // The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. SecretData pulumi.StringInput // The type of the secret value. Valid values: text, binary. Default to "text". SecretDataType pulumi.StringPtrInput // The name of the secret. SecretName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.MapInput // The version number of the initial version. Version numbers are unique in each secret object. VersionId pulumi.StringInput // ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent". VersionStages pulumi.StringArrayInput }
The set of arguments for constructing a Secret resource.
func (SecretArgs) ElementType ¶
func (SecretArgs) ElementType() reflect.Type
type SecretArray ¶
type SecretArray []SecretInput
func (SecretArray) ElementType ¶
func (SecretArray) ElementType() reflect.Type
func (SecretArray) ToSecretArrayOutput ¶
func (i SecretArray) ToSecretArrayOutput() SecretArrayOutput
func (SecretArray) ToSecretArrayOutputWithContext ¶
func (i SecretArray) ToSecretArrayOutputWithContext(ctx context.Context) SecretArrayOutput
type SecretArrayInput ¶
type SecretArrayInput interface { pulumi.Input ToSecretArrayOutput() SecretArrayOutput ToSecretArrayOutputWithContext(context.Context) SecretArrayOutput }
SecretArrayInput is an input type that accepts SecretArray and SecretArrayOutput values. You can construct a concrete instance of `SecretArrayInput` via:
SecretArray{ SecretArgs{...} }
type SecretArrayOutput ¶
type SecretArrayOutput struct{ *pulumi.OutputState }
func (SecretArrayOutput) ElementType ¶
func (SecretArrayOutput) ElementType() reflect.Type
func (SecretArrayOutput) Index ¶
func (o SecretArrayOutput) Index(i pulumi.IntInput) SecretOutput
func (SecretArrayOutput) ToSecretArrayOutput ¶
func (o SecretArrayOutput) ToSecretArrayOutput() SecretArrayOutput
func (SecretArrayOutput) ToSecretArrayOutputWithContext ¶
func (o SecretArrayOutput) ToSecretArrayOutputWithContext(ctx context.Context) SecretArrayOutput
type SecretInput ¶
type SecretInput interface { pulumi.Input ToSecretOutput() SecretOutput ToSecretOutputWithContext(ctx context.Context) SecretOutput }
type SecretMap ¶
type SecretMap map[string]SecretInput
func (SecretMap) ElementType ¶
func (SecretMap) ToSecretMapOutput ¶
func (i SecretMap) ToSecretMapOutput() SecretMapOutput
func (SecretMap) ToSecretMapOutputWithContext ¶
func (i SecretMap) ToSecretMapOutputWithContext(ctx context.Context) SecretMapOutput
type SecretMapInput ¶
type SecretMapInput interface { pulumi.Input ToSecretMapOutput() SecretMapOutput ToSecretMapOutputWithContext(context.Context) SecretMapOutput }
SecretMapInput is an input type that accepts SecretMap and SecretMapOutput values. You can construct a concrete instance of `SecretMapInput` via:
SecretMap{ "key": SecretArgs{...} }
type SecretMapOutput ¶
type SecretMapOutput struct{ *pulumi.OutputState }
func (SecretMapOutput) ElementType ¶
func (SecretMapOutput) ElementType() reflect.Type
func (SecretMapOutput) MapIndex ¶
func (o SecretMapOutput) MapIndex(k pulumi.StringInput) SecretOutput
func (SecretMapOutput) ToSecretMapOutput ¶
func (o SecretMapOutput) ToSecretMapOutput() SecretMapOutput
func (SecretMapOutput) ToSecretMapOutputWithContext ¶
func (o SecretMapOutput) ToSecretMapOutputWithContext(ctx context.Context) SecretMapOutput
type SecretOutput ¶
type SecretOutput struct{ *pulumi.OutputState }
func (SecretOutput) ElementType ¶
func (SecretOutput) ElementType() reflect.Type
func (SecretOutput) ToSecretOutput ¶
func (o SecretOutput) ToSecretOutput() SecretOutput
func (SecretOutput) ToSecretOutputWithContext ¶
func (o SecretOutput) ToSecretOutputWithContext(ctx context.Context) SecretOutput
type SecretState ¶
type SecretState struct { // The Alicloud Resource Name (ARN) of the secret. Arn pulumi.StringPtrInput // The description of the secret. Description pulumi.StringPtrInput // Whether to enable automatic key rotation. EnableAutomaticRotation pulumi.BoolPtrInput // The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret. EncryptionKeyId pulumi.StringPtrInput // Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true, false. Default to: false. ForceDeleteWithoutRecovery pulumi.BoolPtrInput // The time when the secret is scheduled to be deleted. PlannedDeleteTime pulumi.StringPtrInput // Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30. It will be ignored when `forceDeleteWithoutRecovery` is true. RecoveryWindowInDays pulumi.IntPtrInput // The time period of automatic rotation. The format is integer[unit], where integer represents the length of time, and unit represents the unit of time. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both indicate a 7-day cycle. RotationInterval pulumi.StringPtrInput // The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version. SecretData pulumi.StringPtrInput // The type of the secret value. Valid values: text, binary. Default to "text". SecretDataType pulumi.StringPtrInput // The name of the secret. SecretName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.MapInput // The version number of the initial version. Version numbers are unique in each secret object. VersionId pulumi.StringPtrInput // ) The stage labels that mark the new secret version. If you do not specify this parameter, Secrets Manager marks it with "ACSCurrent". VersionStages pulumi.StringArrayInput }
func (SecretState) ElementType ¶
func (SecretState) ElementType() reflect.Type