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 ExternalKey
- type ExternalKeyArgs
- type ExternalKeyArray
- type ExternalKeyArrayInput
- type ExternalKeyArrayOutput
- func (ExternalKeyArrayOutput) ElementType() reflect.Type
- func (o ExternalKeyArrayOutput) Index(i pulumi.IntInput) ExternalKeyOutput
- func (o ExternalKeyArrayOutput) ToExternalKeyArrayOutput() ExternalKeyArrayOutput
- func (o ExternalKeyArrayOutput) ToExternalKeyArrayOutputWithContext(ctx context.Context) ExternalKeyArrayOutput
- type ExternalKeyInput
- type ExternalKeyMap
- type ExternalKeyMapInput
- type ExternalKeyMapOutput
- func (ExternalKeyMapOutput) ElementType() reflect.Type
- func (o ExternalKeyMapOutput) MapIndex(k pulumi.StringInput) ExternalKeyOutput
- func (o ExternalKeyMapOutput) ToExternalKeyMapOutput() ExternalKeyMapOutput
- func (o ExternalKeyMapOutput) ToExternalKeyMapOutputWithContext(ctx context.Context) ExternalKeyMapOutput
- type ExternalKeyOutput
- type ExternalKeyState
- type GetCipherTextArgs
- type GetCipherTextOutputArgs
- type GetCipherTextResult
- type GetCipherTextResultOutput
- func (o GetCipherTextResultOutput) CiphertextBlob() pulumi.StringOutput
- func (o GetCipherTextResultOutput) Context() pulumi.StringMapOutput
- func (GetCipherTextResultOutput) ElementType() reflect.Type
- func (o GetCipherTextResultOutput) Id() pulumi.StringOutput
- func (o GetCipherTextResultOutput) KeyId() pulumi.StringOutput
- func (o GetCipherTextResultOutput) Plaintext() pulumi.StringOutput
- func (o GetCipherTextResultOutput) ToGetCipherTextResultOutput() GetCipherTextResultOutput
- func (o GetCipherTextResultOutput) ToGetCipherTextResultOutputWithContext(ctx context.Context) GetCipherTextResultOutput
- type GetKeyMultiRegionConfiguration
- type GetKeyMultiRegionConfigurationArgs
- func (GetKeyMultiRegionConfigurationArgs) ElementType() reflect.Type
- func (i GetKeyMultiRegionConfigurationArgs) ToGetKeyMultiRegionConfigurationOutput() GetKeyMultiRegionConfigurationOutput
- func (i GetKeyMultiRegionConfigurationArgs) ToGetKeyMultiRegionConfigurationOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationOutput
- type GetKeyMultiRegionConfigurationArray
- func (GetKeyMultiRegionConfigurationArray) ElementType() reflect.Type
- func (i GetKeyMultiRegionConfigurationArray) ToGetKeyMultiRegionConfigurationArrayOutput() GetKeyMultiRegionConfigurationArrayOutput
- func (i GetKeyMultiRegionConfigurationArray) ToGetKeyMultiRegionConfigurationArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationArrayOutput
- type GetKeyMultiRegionConfigurationArrayInput
- type GetKeyMultiRegionConfigurationArrayOutput
- func (GetKeyMultiRegionConfigurationArrayOutput) ElementType() reflect.Type
- func (o GetKeyMultiRegionConfigurationArrayOutput) Index(i pulumi.IntInput) GetKeyMultiRegionConfigurationOutput
- func (o GetKeyMultiRegionConfigurationArrayOutput) ToGetKeyMultiRegionConfigurationArrayOutput() GetKeyMultiRegionConfigurationArrayOutput
- func (o GetKeyMultiRegionConfigurationArrayOutput) ToGetKeyMultiRegionConfigurationArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationArrayOutput
- type GetKeyMultiRegionConfigurationInput
- type GetKeyMultiRegionConfigurationOutput
- func (GetKeyMultiRegionConfigurationOutput) ElementType() reflect.Type
- func (o GetKeyMultiRegionConfigurationOutput) MultiRegionKeyType() pulumi.StringOutput
- func (o GetKeyMultiRegionConfigurationOutput) PrimaryKeys() GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
- func (o GetKeyMultiRegionConfigurationOutput) ReplicaKeys() GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
- func (o GetKeyMultiRegionConfigurationOutput) ToGetKeyMultiRegionConfigurationOutput() GetKeyMultiRegionConfigurationOutput
- func (o GetKeyMultiRegionConfigurationOutput) ToGetKeyMultiRegionConfigurationOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationOutput
- type GetKeyMultiRegionConfigurationPrimaryKey
- type GetKeyMultiRegionConfigurationPrimaryKeyArgs
- func (GetKeyMultiRegionConfigurationPrimaryKeyArgs) ElementType() reflect.Type
- func (i GetKeyMultiRegionConfigurationPrimaryKeyArgs) ToGetKeyMultiRegionConfigurationPrimaryKeyOutput() GetKeyMultiRegionConfigurationPrimaryKeyOutput
- func (i GetKeyMultiRegionConfigurationPrimaryKeyArgs) ToGetKeyMultiRegionConfigurationPrimaryKeyOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationPrimaryKeyOutput
- type GetKeyMultiRegionConfigurationPrimaryKeyArray
- func (GetKeyMultiRegionConfigurationPrimaryKeyArray) ElementType() reflect.Type
- func (i GetKeyMultiRegionConfigurationPrimaryKeyArray) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutput() GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
- func (i GetKeyMultiRegionConfigurationPrimaryKeyArray) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
- type GetKeyMultiRegionConfigurationPrimaryKeyArrayInput
- type GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
- func (GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ElementType() reflect.Type
- func (o GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) Index(i pulumi.IntInput) GetKeyMultiRegionConfigurationPrimaryKeyOutput
- func (o GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutput() GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
- func (o GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
- type GetKeyMultiRegionConfigurationPrimaryKeyInput
- type GetKeyMultiRegionConfigurationPrimaryKeyOutput
- func (o GetKeyMultiRegionConfigurationPrimaryKeyOutput) Arn() pulumi.StringOutput
- func (GetKeyMultiRegionConfigurationPrimaryKeyOutput) ElementType() reflect.Type
- func (o GetKeyMultiRegionConfigurationPrimaryKeyOutput) Region() pulumi.StringOutput
- func (o GetKeyMultiRegionConfigurationPrimaryKeyOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyOutput() GetKeyMultiRegionConfigurationPrimaryKeyOutput
- func (o GetKeyMultiRegionConfigurationPrimaryKeyOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationPrimaryKeyOutput
- type GetKeyMultiRegionConfigurationReplicaKey
- type GetKeyMultiRegionConfigurationReplicaKeyArgs
- func (GetKeyMultiRegionConfigurationReplicaKeyArgs) ElementType() reflect.Type
- func (i GetKeyMultiRegionConfigurationReplicaKeyArgs) ToGetKeyMultiRegionConfigurationReplicaKeyOutput() GetKeyMultiRegionConfigurationReplicaKeyOutput
- func (i GetKeyMultiRegionConfigurationReplicaKeyArgs) ToGetKeyMultiRegionConfigurationReplicaKeyOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationReplicaKeyOutput
- type GetKeyMultiRegionConfigurationReplicaKeyArray
- func (GetKeyMultiRegionConfigurationReplicaKeyArray) ElementType() reflect.Type
- func (i GetKeyMultiRegionConfigurationReplicaKeyArray) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutput() GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
- func (i GetKeyMultiRegionConfigurationReplicaKeyArray) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
- type GetKeyMultiRegionConfigurationReplicaKeyArrayInput
- type GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
- func (GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ElementType() reflect.Type
- func (o GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) Index(i pulumi.IntInput) GetKeyMultiRegionConfigurationReplicaKeyOutput
- func (o GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutput() GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
- func (o GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
- type GetKeyMultiRegionConfigurationReplicaKeyInput
- type GetKeyMultiRegionConfigurationReplicaKeyOutput
- func (o GetKeyMultiRegionConfigurationReplicaKeyOutput) Arn() pulumi.StringOutput
- func (GetKeyMultiRegionConfigurationReplicaKeyOutput) ElementType() reflect.Type
- func (o GetKeyMultiRegionConfigurationReplicaKeyOutput) Region() pulumi.StringOutput
- func (o GetKeyMultiRegionConfigurationReplicaKeyOutput) ToGetKeyMultiRegionConfigurationReplicaKeyOutput() GetKeyMultiRegionConfigurationReplicaKeyOutput
- func (o GetKeyMultiRegionConfigurationReplicaKeyOutput) ToGetKeyMultiRegionConfigurationReplicaKeyOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationReplicaKeyOutput
- type GetPublicKeyArgs
- type GetPublicKeyOutputArgs
- type GetPublicKeyResult
- type GetPublicKeyResultOutput
- func (o GetPublicKeyResultOutput) Arn() pulumi.StringOutput
- func (o GetPublicKeyResultOutput) CustomerMasterKeySpec() pulumi.StringOutput
- func (GetPublicKeyResultOutput) ElementType() reflect.Type
- func (o GetPublicKeyResultOutput) EncryptionAlgorithms() pulumi.StringArrayOutput
- func (o GetPublicKeyResultOutput) GrantTokens() pulumi.StringArrayOutput
- func (o GetPublicKeyResultOutput) Id() pulumi.StringOutput
- func (o GetPublicKeyResultOutput) KeyId() pulumi.StringOutput
- func (o GetPublicKeyResultOutput) KeyUsage() pulumi.StringOutput
- func (o GetPublicKeyResultOutput) PublicKey() pulumi.StringOutput
- func (o GetPublicKeyResultOutput) SigningAlgorithms() pulumi.StringArrayOutput
- func (o GetPublicKeyResultOutput) ToGetPublicKeyResultOutput() GetPublicKeyResultOutput
- func (o GetPublicKeyResultOutput) ToGetPublicKeyResultOutputWithContext(ctx context.Context) GetPublicKeyResultOutput
- type GetSecretArgs
- type GetSecretOutputArgs
- type GetSecretResult
- type GetSecretResultOutput
- func (GetSecretResultOutput) ElementType() reflect.Type
- func (o GetSecretResultOutput) Id() pulumi.StringOutput
- func (o GetSecretResultOutput) Secrets() GetSecretSecretArrayOutput
- func (o GetSecretResultOutput) ToGetSecretResultOutput() GetSecretResultOutput
- func (o GetSecretResultOutput) ToGetSecretResultOutputWithContext(ctx context.Context) GetSecretResultOutput
- type GetSecretSecret
- type GetSecretSecretArgs
- type GetSecretSecretArray
- type GetSecretSecretArrayInput
- type GetSecretSecretArrayOutput
- func (GetSecretSecretArrayOutput) ElementType() reflect.Type
- func (o GetSecretSecretArrayOutput) Index(i pulumi.IntInput) GetSecretSecretOutput
- func (o GetSecretSecretArrayOutput) ToGetSecretSecretArrayOutput() GetSecretSecretArrayOutput
- func (o GetSecretSecretArrayOutput) ToGetSecretSecretArrayOutputWithContext(ctx context.Context) GetSecretSecretArrayOutput
- type GetSecretSecretInput
- type GetSecretSecretOutput
- func (o GetSecretSecretOutput) Context() pulumi.StringMapOutput
- func (GetSecretSecretOutput) ElementType() reflect.Type
- func (o GetSecretSecretOutput) GrantTokens() pulumi.StringArrayOutput
- func (o GetSecretSecretOutput) Name() pulumi.StringOutput
- func (o GetSecretSecretOutput) Payload() pulumi.StringOutput
- func (o GetSecretSecretOutput) ToGetSecretSecretOutput() GetSecretSecretOutput
- func (o GetSecretSecretOutput) ToGetSecretSecretOutputWithContext(ctx context.Context) GetSecretSecretOutput
- type GetSecretsArgs
- type GetSecretsOutputArgs
- type GetSecretsResult
- type GetSecretsResultOutput
- func (GetSecretsResultOutput) ElementType() reflect.Type
- func (o GetSecretsResultOutput) Id() pulumi.StringOutput
- func (o GetSecretsResultOutput) Plaintext() pulumi.StringMapOutput
- func (o GetSecretsResultOutput) Secrets() GetSecretsSecretArrayOutput
- 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) Context() pulumi.StringMapOutput
- func (GetSecretsSecretOutput) ElementType() reflect.Type
- func (o GetSecretsSecretOutput) GrantTokens() pulumi.StringArrayOutput
- func (o GetSecretsSecretOutput) Name() pulumi.StringOutput
- func (o GetSecretsSecretOutput) Payload() pulumi.StringOutput
- func (o GetSecretsSecretOutput) ToGetSecretsSecretOutput() GetSecretsSecretOutput
- func (o GetSecretsSecretOutput) ToGetSecretsSecretOutputWithContext(ctx context.Context) GetSecretsSecretOutput
- type Grant
- type GrantArgs
- type GrantArray
- type GrantArrayInput
- type GrantArrayOutput
- type GrantConstraint
- type GrantConstraintArgs
- type GrantConstraintArray
- type GrantConstraintArrayInput
- type GrantConstraintArrayOutput
- func (GrantConstraintArrayOutput) ElementType() reflect.Type
- func (o GrantConstraintArrayOutput) Index(i pulumi.IntInput) GrantConstraintOutput
- func (o GrantConstraintArrayOutput) ToGrantConstraintArrayOutput() GrantConstraintArrayOutput
- func (o GrantConstraintArrayOutput) ToGrantConstraintArrayOutputWithContext(ctx context.Context) GrantConstraintArrayOutput
- type GrantConstraintInput
- type GrantConstraintOutput
- func (GrantConstraintOutput) ElementType() reflect.Type
- func (o GrantConstraintOutput) EncryptionContextEquals() pulumi.StringMapOutput
- func (o GrantConstraintOutput) EncryptionContextSubset() pulumi.StringMapOutput
- func (o GrantConstraintOutput) ToGrantConstraintOutput() GrantConstraintOutput
- func (o GrantConstraintOutput) ToGrantConstraintOutputWithContext(ctx context.Context) GrantConstraintOutput
- type GrantInput
- type GrantMap
- type GrantMapInput
- type GrantMapOutput
- type GrantOutput
- type GrantState
- type Key
- type KeyArgs
- type KeyArray
- type KeyArrayInput
- type KeyArrayOutput
- type KeyInput
- type KeyMap
- type KeyMapInput
- type KeyMapOutput
- type KeyOutput
- type KeyState
- type LookupAliasArgs
- type LookupAliasOutputArgs
- type LookupAliasResult
- type LookupAliasResultOutput
- func (o LookupAliasResultOutput) Arn() pulumi.StringOutput
- func (LookupAliasResultOutput) ElementType() reflect.Type
- func (o LookupAliasResultOutput) Id() pulumi.StringOutput
- func (o LookupAliasResultOutput) Name() pulumi.StringOutput
- func (o LookupAliasResultOutput) TargetKeyArn() pulumi.StringOutput
- func (o LookupAliasResultOutput) TargetKeyId() pulumi.StringOutput
- func (o LookupAliasResultOutput) ToLookupAliasResultOutput() LookupAliasResultOutput
- func (o LookupAliasResultOutput) ToLookupAliasResultOutputWithContext(ctx context.Context) LookupAliasResultOutput
- type LookupKeyArgs
- type LookupKeyOutputArgs
- type LookupKeyResult
- type LookupKeyResultOutput
- func (o LookupKeyResultOutput) Arn() pulumi.StringOutput
- func (o LookupKeyResultOutput) AwsAccountId() pulumi.StringOutput
- func (o LookupKeyResultOutput) CreationDate() pulumi.StringOutput
- func (o LookupKeyResultOutput) CustomerMasterKeySpec() pulumi.StringOutput
- func (o LookupKeyResultOutput) DeletionDate() pulumi.StringOutput
- func (o LookupKeyResultOutput) Description() pulumi.StringOutput
- func (LookupKeyResultOutput) ElementType() reflect.Type
- func (o LookupKeyResultOutput) Enabled() pulumi.BoolOutput
- func (o LookupKeyResultOutput) ExpirationModel() pulumi.StringOutput
- func (o LookupKeyResultOutput) GrantTokens() pulumi.StringArrayOutput
- func (o LookupKeyResultOutput) Id() pulumi.StringOutput
- func (o LookupKeyResultOutput) KeyId() pulumi.StringOutput
- func (o LookupKeyResultOutput) KeyManager() pulumi.StringOutput
- func (o LookupKeyResultOutput) KeyState() pulumi.StringOutput
- func (o LookupKeyResultOutput) KeyUsage() pulumi.StringOutput
- func (o LookupKeyResultOutput) MultiRegion() pulumi.BoolOutput
- func (o LookupKeyResultOutput) MultiRegionConfigurations() GetKeyMultiRegionConfigurationArrayOutput
- func (o LookupKeyResultOutput) Origin() pulumi.StringOutput
- func (o LookupKeyResultOutput) ToLookupKeyResultOutput() LookupKeyResultOutput
- func (o LookupKeyResultOutput) ToLookupKeyResultOutputWithContext(ctx context.Context) LookupKeyResultOutput
- func (o LookupKeyResultOutput) ValidTo() pulumi.StringOutput
- type ReplicaExternalKey
- type ReplicaExternalKeyArgs
- type ReplicaExternalKeyArray
- type ReplicaExternalKeyArrayInput
- type ReplicaExternalKeyArrayOutput
- func (ReplicaExternalKeyArrayOutput) ElementType() reflect.Type
- func (o ReplicaExternalKeyArrayOutput) Index(i pulumi.IntInput) ReplicaExternalKeyOutput
- func (o ReplicaExternalKeyArrayOutput) ToReplicaExternalKeyArrayOutput() ReplicaExternalKeyArrayOutput
- func (o ReplicaExternalKeyArrayOutput) ToReplicaExternalKeyArrayOutputWithContext(ctx context.Context) ReplicaExternalKeyArrayOutput
- type ReplicaExternalKeyInput
- type ReplicaExternalKeyMap
- type ReplicaExternalKeyMapInput
- type ReplicaExternalKeyMapOutput
- func (ReplicaExternalKeyMapOutput) ElementType() reflect.Type
- func (o ReplicaExternalKeyMapOutput) MapIndex(k pulumi.StringInput) ReplicaExternalKeyOutput
- func (o ReplicaExternalKeyMapOutput) ToReplicaExternalKeyMapOutput() ReplicaExternalKeyMapOutput
- func (o ReplicaExternalKeyMapOutput) ToReplicaExternalKeyMapOutputWithContext(ctx context.Context) ReplicaExternalKeyMapOutput
- type ReplicaExternalKeyOutput
- type ReplicaExternalKeyState
- type ReplicaKey
- type ReplicaKeyArgs
- type ReplicaKeyArray
- type ReplicaKeyArrayInput
- type ReplicaKeyArrayOutput
- func (ReplicaKeyArrayOutput) ElementType() reflect.Type
- func (o ReplicaKeyArrayOutput) Index(i pulumi.IntInput) ReplicaKeyOutput
- func (o ReplicaKeyArrayOutput) ToReplicaKeyArrayOutput() ReplicaKeyArrayOutput
- func (o ReplicaKeyArrayOutput) ToReplicaKeyArrayOutputWithContext(ctx context.Context) ReplicaKeyArrayOutput
- type ReplicaKeyInput
- type ReplicaKeyMap
- type ReplicaKeyMapInput
- type ReplicaKeyMapOutput
- func (ReplicaKeyMapOutput) ElementType() reflect.Type
- func (o ReplicaKeyMapOutput) MapIndex(k pulumi.StringInput) ReplicaKeyOutput
- func (o ReplicaKeyMapOutput) ToReplicaKeyMapOutput() ReplicaKeyMapOutput
- func (o ReplicaKeyMapOutput) ToReplicaKeyMapOutputWithContext(ctx context.Context) ReplicaKeyMapOutput
- type ReplicaKeyOutput
- type ReplicaKeyState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct { pulumi.CustomResourceState // The Amazon Resource Name (ARN) of the key alias. Arn pulumi.StringOutput `pulumi:"arn"` // The display name of the alias. The name must start with the word "alias" followed by a forward slash (alias/) Name pulumi.StringOutput `pulumi:"name"` // Creates an unique alias beginning with the specified prefix. // The name must start with the word "alias" followed by a forward slash (alias/). Conflicts with `name`. NamePrefix pulumi.StringOutput `pulumi:"namePrefix"` // The Amazon Resource Name (ARN) of the target key identifier. TargetKeyArn pulumi.StringOutput `pulumi:"targetKeyArn"` // Identifier for the key for which the alias is for, can be either an ARN or key_id. TargetKeyId pulumi.StringOutput `pulumi:"targetKeyId"` }
Provides an alias for a KMS customer master key. AWS Console enforces 1-to-1 mapping between aliases & keys, but API (hence this provider too) allows you to create as many aliases as the [account limits](http://docs.aws.amazon.com/kms/latest/developerguide/limits.html) allow you.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { key, err := kms.NewKey(ctx, "key", nil) if err != nil { return err } _, err = kms.NewAlias(ctx, "alias", &kms.AliasArgs{ TargetKeyId: key.KeyId, }) if err != nil { return err } return nil }) }
```
## Import
KMS aliases can be imported using the `name`, e.g.,
```sh
$ pulumi import aws:kms/alias:Alias a alias/my-key-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 display name of the alias. The name must start with the word "alias" followed by a forward slash (alias/) Name pulumi.StringPtrInput // Creates an unique alias beginning with the specified prefix. // The name must start with the word "alias" followed by a forward slash (alias/). Conflicts with `name`. NamePrefix pulumi.StringPtrInput // Identifier for the key for which the alias is for, can be either an ARN or key_id. TargetKeyId 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 Amazon Resource Name (ARN) of the key alias. Arn pulumi.StringPtrInput // The display name of the alias. The name must start with the word "alias" followed by a forward slash (alias/) Name pulumi.StringPtrInput // Creates an unique alias beginning with the specified prefix. // The name must start with the word "alias" followed by a forward slash (alias/). Conflicts with `name`. NamePrefix pulumi.StringPtrInput // The Amazon Resource Name (ARN) of the target key identifier. TargetKeyArn pulumi.StringPtrInput // Identifier for the key for which the alias is for, can be either an ARN or key_id. TargetKeyId pulumi.StringPtrInput }
func (AliasState) ElementType ¶
func (AliasState) ElementType() reflect.Type
type Ciphertext ¶
type Ciphertext struct { pulumi.CustomResourceState // Base64 encoded ciphertext CiphertextBlob pulumi.StringOutput `pulumi:"ciphertextBlob"` // An optional mapping that makes up the encryption context. Context pulumi.StringMapOutput `pulumi:"context"` // Globally unique key ID for the customer master key. KeyId pulumi.StringOutput `pulumi:"keyId"` // Data to be encrypted. Note that this may show up in logs, and it will be stored in the state file. Plaintext pulumi.StringOutput `pulumi:"plaintext"` }
The KMS ciphertext resource allows you to encrypt plaintext into ciphertext by using an AWS KMS customer master key. The value returned by this resource is stable across every apply. For a changing ciphertext value each apply, see the `kms.Ciphertext` data source.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { oauthConfig, err := kms.NewKey(ctx, "oauthConfig", &kms.KeyArgs{ Description: pulumi.String("oauth config"), IsEnabled: pulumi.Bool(true), }) if err != nil { return err } _, err = kms.NewCiphertext(ctx, "oauth", &kms.CiphertextArgs{ KeyId: oauthConfig.KeyId, Plaintext: pulumi.String(fmt.Sprintf("%v%v%v%v", "{\n", " \"client_id\": \"e587dbae22222f55da22\",\n", " \"client_secret\": \"8289575d00000ace55e1815ec13673955721b8a5\"\n", "}\n")), }) 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 { // An optional mapping that makes up the encryption context. Context pulumi.StringMapInput // Globally unique key ID for the customer master key. KeyId pulumi.StringInput // Data to be encrypted. Note that this may show up in logs, and it will be stored in the state file. 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 { // Base64 encoded ciphertext CiphertextBlob pulumi.StringPtrInput // An optional mapping that makes up the encryption context. Context pulumi.StringMapInput // Globally unique key ID for the customer master key. KeyId pulumi.StringPtrInput // Data to be encrypted. Note that this may show up in logs, and it will be stored in the state file. Plaintext pulumi.StringPtrInput }
func (CiphertextState) ElementType ¶
func (CiphertextState) ElementType() reflect.Type
type ExternalKey ¶
type ExternalKey struct { pulumi.CustomResourceState // The Amazon Resource Name (ARN) of the key. Arn pulumi.StringOutput `pulumi:"arn"` // Specifies whether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value to `true` increases the risk that the key becomes unmanageable. For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the AWS Key Management Service Developer Guide. Defaults to `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrOutput `pulumi:"bypassPolicyLockoutSafetyCheck"` // Duration in days after which the key is deleted after destruction of the resource. Must be between `7` and `30` days. Defaults to `30`. DeletionWindowInDays pulumi.IntPtrOutput `pulumi:"deletionWindowInDays"` // Description of the key. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies whether the key is enabled. Keys pending import can only be `false`. Imported keys default to `true` unless expired. Enabled pulumi.BoolOutput `pulumi:"enabled"` // Whether the key material expires. Empty when pending key material import, otherwise `KEY_MATERIAL_EXPIRES` or `KEY_MATERIAL_DOES_NOT_EXPIRE`. ExpirationModel pulumi.StringOutput `pulumi:"expirationModel"` // Base64 encoded 256-bit symmetric encryption key material to import. The CMK is permanently associated with this key material. The same key material can be reimported, but you cannot import different key material. KeyMaterialBase64 pulumi.StringPtrOutput `pulumi:"keyMaterialBase64"` // The state of the CMK. KeyState pulumi.StringOutput `pulumi:"keyState"` // The cryptographic operations for which you can use the CMK. KeyUsage pulumi.StringOutput `pulumi:"keyUsage"` // Indicates whether the KMS key is a multi-Region (`true`) or regional (`false`) key. Defaults to `false`. MultiRegion pulumi.BoolOutput `pulumi:"multiRegion"` // A key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK. Policy pulumi.StringOutput `pulumi:"policy"` // A key-value map of tags to assign to the key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. If not specified, key material does not expire. Valid values: [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) (`YYYY-MM-DDTHH:MM:SSZ`) ValidTo pulumi.StringPtrOutput `pulumi:"validTo"` }
Manages a KMS Customer Master Key that uses external key material. To instead manage a KMS Customer Master Key where AWS automatically generates and potentially rotates key material, see the `kms.Key` resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := kms.NewExternalKey(ctx, "example", &kms.ExternalKeyArgs{ Description: pulumi.String("KMS EXTERNAL for AMI encryption"), }) if err != nil { return err } return nil }) }
```
## Import
KMS External Keys can be imported using the `id`, e.g.,
```sh
$ pulumi import aws:kms/externalKey:ExternalKey a arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
```
func GetExternalKey ¶
func GetExternalKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ExternalKeyState, opts ...pulumi.ResourceOption) (*ExternalKey, error)
GetExternalKey gets an existing ExternalKey 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 NewExternalKey ¶
func NewExternalKey(ctx *pulumi.Context, name string, args *ExternalKeyArgs, opts ...pulumi.ResourceOption) (*ExternalKey, error)
NewExternalKey registers a new resource with the given unique name, arguments, and options.
func (*ExternalKey) ElementType ¶
func (*ExternalKey) ElementType() reflect.Type
func (*ExternalKey) ToExternalKeyOutput ¶
func (i *ExternalKey) ToExternalKeyOutput() ExternalKeyOutput
func (*ExternalKey) ToExternalKeyOutputWithContext ¶
func (i *ExternalKey) ToExternalKeyOutputWithContext(ctx context.Context) ExternalKeyOutput
type ExternalKeyArgs ¶
type ExternalKeyArgs struct { // Specifies whether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value to `true` increases the risk that the key becomes unmanageable. For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the AWS Key Management Service Developer Guide. Defaults to `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrInput // Duration in days after which the key is deleted after destruction of the resource. Must be between `7` and `30` days. Defaults to `30`. DeletionWindowInDays pulumi.IntPtrInput // Description of the key. Description pulumi.StringPtrInput // Specifies whether the key is enabled. Keys pending import can only be `false`. Imported keys default to `true` unless expired. Enabled pulumi.BoolPtrInput // Base64 encoded 256-bit symmetric encryption key material to import. The CMK is permanently associated with this key material. The same key material can be reimported, but you cannot import different key material. KeyMaterialBase64 pulumi.StringPtrInput // Indicates whether the KMS key is a multi-Region (`true`) or regional (`false`) key. Defaults to `false`. MultiRegion pulumi.BoolPtrInput // A key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK. Policy pulumi.StringPtrInput // A key-value map of tags to assign to the key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. If not specified, key material does not expire. Valid values: [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) (`YYYY-MM-DDTHH:MM:SSZ`) ValidTo pulumi.StringPtrInput }
The set of arguments for constructing a ExternalKey resource.
func (ExternalKeyArgs) ElementType ¶
func (ExternalKeyArgs) ElementType() reflect.Type
type ExternalKeyArray ¶
type ExternalKeyArray []ExternalKeyInput
func (ExternalKeyArray) ElementType ¶
func (ExternalKeyArray) ElementType() reflect.Type
func (ExternalKeyArray) ToExternalKeyArrayOutput ¶
func (i ExternalKeyArray) ToExternalKeyArrayOutput() ExternalKeyArrayOutput
func (ExternalKeyArray) ToExternalKeyArrayOutputWithContext ¶
func (i ExternalKeyArray) ToExternalKeyArrayOutputWithContext(ctx context.Context) ExternalKeyArrayOutput
type ExternalKeyArrayInput ¶
type ExternalKeyArrayInput interface { pulumi.Input ToExternalKeyArrayOutput() ExternalKeyArrayOutput ToExternalKeyArrayOutputWithContext(context.Context) ExternalKeyArrayOutput }
ExternalKeyArrayInput is an input type that accepts ExternalKeyArray and ExternalKeyArrayOutput values. You can construct a concrete instance of `ExternalKeyArrayInput` via:
ExternalKeyArray{ ExternalKeyArgs{...} }
type ExternalKeyArrayOutput ¶
type ExternalKeyArrayOutput struct{ *pulumi.OutputState }
func (ExternalKeyArrayOutput) ElementType ¶
func (ExternalKeyArrayOutput) ElementType() reflect.Type
func (ExternalKeyArrayOutput) Index ¶
func (o ExternalKeyArrayOutput) Index(i pulumi.IntInput) ExternalKeyOutput
func (ExternalKeyArrayOutput) ToExternalKeyArrayOutput ¶
func (o ExternalKeyArrayOutput) ToExternalKeyArrayOutput() ExternalKeyArrayOutput
func (ExternalKeyArrayOutput) ToExternalKeyArrayOutputWithContext ¶
func (o ExternalKeyArrayOutput) ToExternalKeyArrayOutputWithContext(ctx context.Context) ExternalKeyArrayOutput
type ExternalKeyInput ¶
type ExternalKeyInput interface { pulumi.Input ToExternalKeyOutput() ExternalKeyOutput ToExternalKeyOutputWithContext(ctx context.Context) ExternalKeyOutput }
type ExternalKeyMap ¶
type ExternalKeyMap map[string]ExternalKeyInput
func (ExternalKeyMap) ElementType ¶
func (ExternalKeyMap) ElementType() reflect.Type
func (ExternalKeyMap) ToExternalKeyMapOutput ¶
func (i ExternalKeyMap) ToExternalKeyMapOutput() ExternalKeyMapOutput
func (ExternalKeyMap) ToExternalKeyMapOutputWithContext ¶
func (i ExternalKeyMap) ToExternalKeyMapOutputWithContext(ctx context.Context) ExternalKeyMapOutput
type ExternalKeyMapInput ¶
type ExternalKeyMapInput interface { pulumi.Input ToExternalKeyMapOutput() ExternalKeyMapOutput ToExternalKeyMapOutputWithContext(context.Context) ExternalKeyMapOutput }
ExternalKeyMapInput is an input type that accepts ExternalKeyMap and ExternalKeyMapOutput values. You can construct a concrete instance of `ExternalKeyMapInput` via:
ExternalKeyMap{ "key": ExternalKeyArgs{...} }
type ExternalKeyMapOutput ¶
type ExternalKeyMapOutput struct{ *pulumi.OutputState }
func (ExternalKeyMapOutput) ElementType ¶
func (ExternalKeyMapOutput) ElementType() reflect.Type
func (ExternalKeyMapOutput) MapIndex ¶
func (o ExternalKeyMapOutput) MapIndex(k pulumi.StringInput) ExternalKeyOutput
func (ExternalKeyMapOutput) ToExternalKeyMapOutput ¶
func (o ExternalKeyMapOutput) ToExternalKeyMapOutput() ExternalKeyMapOutput
func (ExternalKeyMapOutput) ToExternalKeyMapOutputWithContext ¶
func (o ExternalKeyMapOutput) ToExternalKeyMapOutputWithContext(ctx context.Context) ExternalKeyMapOutput
type ExternalKeyOutput ¶
type ExternalKeyOutput struct{ *pulumi.OutputState }
func (ExternalKeyOutput) ElementType ¶
func (ExternalKeyOutput) ElementType() reflect.Type
func (ExternalKeyOutput) ToExternalKeyOutput ¶
func (o ExternalKeyOutput) ToExternalKeyOutput() ExternalKeyOutput
func (ExternalKeyOutput) ToExternalKeyOutputWithContext ¶
func (o ExternalKeyOutput) ToExternalKeyOutputWithContext(ctx context.Context) ExternalKeyOutput
type ExternalKeyState ¶
type ExternalKeyState struct { // The Amazon Resource Name (ARN) of the key. Arn pulumi.StringPtrInput // Specifies whether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value to `true` increases the risk that the key becomes unmanageable. For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the AWS Key Management Service Developer Guide. Defaults to `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrInput // Duration in days after which the key is deleted after destruction of the resource. Must be between `7` and `30` days. Defaults to `30`. DeletionWindowInDays pulumi.IntPtrInput // Description of the key. Description pulumi.StringPtrInput // Specifies whether the key is enabled. Keys pending import can only be `false`. Imported keys default to `true` unless expired. Enabled pulumi.BoolPtrInput // Whether the key material expires. Empty when pending key material import, otherwise `KEY_MATERIAL_EXPIRES` or `KEY_MATERIAL_DOES_NOT_EXPIRE`. ExpirationModel pulumi.StringPtrInput // Base64 encoded 256-bit symmetric encryption key material to import. The CMK is permanently associated with this key material. The same key material can be reimported, but you cannot import different key material. KeyMaterialBase64 pulumi.StringPtrInput // The state of the CMK. KeyState pulumi.StringPtrInput // The cryptographic operations for which you can use the CMK. KeyUsage pulumi.StringPtrInput // Indicates whether the KMS key is a multi-Region (`true`) or regional (`false`) key. Defaults to `false`. MultiRegion pulumi.BoolPtrInput // A key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK. Policy pulumi.StringPtrInput // A key-value map of tags to assign to the key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapInput // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. If not specified, key material does not expire. Valid values: [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) (`YYYY-MM-DDTHH:MM:SSZ`) ValidTo pulumi.StringPtrInput }
func (ExternalKeyState) ElementType ¶
func (ExternalKeyState) ElementType() reflect.Type
type GetCipherTextArgs ¶
type GetCipherTextArgs struct { // An optional mapping that makes up the encryption context. Context map[string]string `pulumi:"context"` // Globally unique key ID for the customer master key. KeyId string `pulumi:"keyId"` // Data to be encrypted. Note that this may show up in logs, and it will be stored in the state file. Plaintext string `pulumi:"plaintext"` }
A collection of arguments for invoking getCipherText.
type GetCipherTextOutputArgs ¶ added in v4.21.0
type GetCipherTextOutputArgs struct { // An optional mapping that makes up the encryption context. Context pulumi.StringMapInput `pulumi:"context"` // Globally unique key ID for the customer master key. KeyId pulumi.StringInput `pulumi:"keyId"` // Data to be encrypted. Note that this may show up in logs, and it will be stored in the state file. Plaintext pulumi.StringInput `pulumi:"plaintext"` }
A collection of arguments for invoking getCipherText.
func (GetCipherTextOutputArgs) ElementType ¶ added in v4.21.0
func (GetCipherTextOutputArgs) ElementType() reflect.Type
type GetCipherTextResult ¶
type GetCipherTextResult struct { // Base64 encoded ciphertext CiphertextBlob string `pulumi:"ciphertextBlob"` Context map[string]string `pulumi:"context"` // 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 GetCipherText ¶
func GetCipherText(ctx *pulumi.Context, args *GetCipherTextArgs, opts ...pulumi.InvokeOption) (*GetCipherTextResult, error)
The KMS ciphertext data source allows you to encrypt plaintext into ciphertext by using an AWS KMS customer master key. The value returned by this data source changes every apply. For a stable ciphertext value, see the `kms.Ciphertext` resource.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { oauthConfig, err := kms.NewKey(ctx, "oauthConfig", &kms.KeyArgs{ Description: pulumi.String("oauth config"), IsEnabled: pulumi.Bool(true), }) if err != nil { return err } _ = kms.GetCipherTextOutput(ctx, kms.GetCipherTextOutputArgs{ KeyId: oauthConfig.KeyId, Plaintext: pulumi.String(fmt.Sprintf("%v%v%v%v", "{\n", " \"client_id\": \"e587dbae22222f55da22\",\n", " \"client_secret\": \"8289575d00000ace55e1815ec13673955721b8a5\"\n", "}\n")), }, nil) return nil }) }
```
type GetCipherTextResultOutput ¶ added in v4.21.0
type GetCipherTextResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getCipherText.
func GetCipherTextOutput ¶ added in v4.21.0
func GetCipherTextOutput(ctx *pulumi.Context, args GetCipherTextOutputArgs, opts ...pulumi.InvokeOption) GetCipherTextResultOutput
func (GetCipherTextResultOutput) CiphertextBlob ¶ added in v4.21.0
func (o GetCipherTextResultOutput) CiphertextBlob() pulumi.StringOutput
Base64 encoded ciphertext
func (GetCipherTextResultOutput) Context ¶ added in v4.21.0
func (o GetCipherTextResultOutput) Context() pulumi.StringMapOutput
func (GetCipherTextResultOutput) ElementType ¶ added in v4.21.0
func (GetCipherTextResultOutput) ElementType() reflect.Type
func (GetCipherTextResultOutput) Id ¶ added in v4.21.0
func (o GetCipherTextResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetCipherTextResultOutput) KeyId ¶ added in v4.21.0
func (o GetCipherTextResultOutput) KeyId() pulumi.StringOutput
func (GetCipherTextResultOutput) Plaintext ¶ added in v4.21.0
func (o GetCipherTextResultOutput) Plaintext() pulumi.StringOutput
func (GetCipherTextResultOutput) ToGetCipherTextResultOutput ¶ added in v4.21.0
func (o GetCipherTextResultOutput) ToGetCipherTextResultOutput() GetCipherTextResultOutput
func (GetCipherTextResultOutput) ToGetCipherTextResultOutputWithContext ¶ added in v4.21.0
func (o GetCipherTextResultOutput) ToGetCipherTextResultOutputWithContext(ctx context.Context) GetCipherTextResultOutput
type GetKeyMultiRegionConfiguration ¶ added in v4.27.0
type GetKeyMultiRegionConfiguration struct { MultiRegionKeyType string `pulumi:"multiRegionKeyType"` PrimaryKeys []GetKeyMultiRegionConfigurationPrimaryKey `pulumi:"primaryKeys"` ReplicaKeys []GetKeyMultiRegionConfigurationReplicaKey `pulumi:"replicaKeys"` }
type GetKeyMultiRegionConfigurationArgs ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationArgs struct { MultiRegionKeyType pulumi.StringInput `pulumi:"multiRegionKeyType"` PrimaryKeys GetKeyMultiRegionConfigurationPrimaryKeyArrayInput `pulumi:"primaryKeys"` ReplicaKeys GetKeyMultiRegionConfigurationReplicaKeyArrayInput `pulumi:"replicaKeys"` }
func (GetKeyMultiRegionConfigurationArgs) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationArgs) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationArgs) ToGetKeyMultiRegionConfigurationOutput ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationArgs) ToGetKeyMultiRegionConfigurationOutput() GetKeyMultiRegionConfigurationOutput
func (GetKeyMultiRegionConfigurationArgs) ToGetKeyMultiRegionConfigurationOutputWithContext ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationArgs) ToGetKeyMultiRegionConfigurationOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationOutput
type GetKeyMultiRegionConfigurationArray ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationArray []GetKeyMultiRegionConfigurationInput
func (GetKeyMultiRegionConfigurationArray) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationArray) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationArray) ToGetKeyMultiRegionConfigurationArrayOutput ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationArray) ToGetKeyMultiRegionConfigurationArrayOutput() GetKeyMultiRegionConfigurationArrayOutput
func (GetKeyMultiRegionConfigurationArray) ToGetKeyMultiRegionConfigurationArrayOutputWithContext ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationArray) ToGetKeyMultiRegionConfigurationArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationArrayOutput
type GetKeyMultiRegionConfigurationArrayInput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationArrayInput interface { pulumi.Input ToGetKeyMultiRegionConfigurationArrayOutput() GetKeyMultiRegionConfigurationArrayOutput ToGetKeyMultiRegionConfigurationArrayOutputWithContext(context.Context) GetKeyMultiRegionConfigurationArrayOutput }
GetKeyMultiRegionConfigurationArrayInput is an input type that accepts GetKeyMultiRegionConfigurationArray and GetKeyMultiRegionConfigurationArrayOutput values. You can construct a concrete instance of `GetKeyMultiRegionConfigurationArrayInput` via:
GetKeyMultiRegionConfigurationArray{ GetKeyMultiRegionConfigurationArgs{...} }
type GetKeyMultiRegionConfigurationArrayOutput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationArrayOutput struct{ *pulumi.OutputState }
func (GetKeyMultiRegionConfigurationArrayOutput) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationArrayOutput) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationArrayOutput) ToGetKeyMultiRegionConfigurationArrayOutput ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationArrayOutput) ToGetKeyMultiRegionConfigurationArrayOutput() GetKeyMultiRegionConfigurationArrayOutput
func (GetKeyMultiRegionConfigurationArrayOutput) ToGetKeyMultiRegionConfigurationArrayOutputWithContext ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationArrayOutput) ToGetKeyMultiRegionConfigurationArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationArrayOutput
type GetKeyMultiRegionConfigurationInput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationInput interface { pulumi.Input ToGetKeyMultiRegionConfigurationOutput() GetKeyMultiRegionConfigurationOutput ToGetKeyMultiRegionConfigurationOutputWithContext(context.Context) GetKeyMultiRegionConfigurationOutput }
GetKeyMultiRegionConfigurationInput is an input type that accepts GetKeyMultiRegionConfigurationArgs and GetKeyMultiRegionConfigurationOutput values. You can construct a concrete instance of `GetKeyMultiRegionConfigurationInput` via:
GetKeyMultiRegionConfigurationArgs{...}
type GetKeyMultiRegionConfigurationOutput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationOutput struct{ *pulumi.OutputState }
func (GetKeyMultiRegionConfigurationOutput) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationOutput) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationOutput) MultiRegionKeyType ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationOutput) MultiRegionKeyType() pulumi.StringOutput
func (GetKeyMultiRegionConfigurationOutput) PrimaryKeys ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationOutput) PrimaryKeys() GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
func (GetKeyMultiRegionConfigurationOutput) ReplicaKeys ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationOutput) ReplicaKeys() GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
func (GetKeyMultiRegionConfigurationOutput) ToGetKeyMultiRegionConfigurationOutput ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationOutput) ToGetKeyMultiRegionConfigurationOutput() GetKeyMultiRegionConfigurationOutput
func (GetKeyMultiRegionConfigurationOutput) ToGetKeyMultiRegionConfigurationOutputWithContext ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationOutput) ToGetKeyMultiRegionConfigurationOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationOutput
type GetKeyMultiRegionConfigurationPrimaryKey ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationPrimaryKeyArgs ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationPrimaryKeyArgs struct { Arn pulumi.StringInput `pulumi:"arn"` Region pulumi.StringInput `pulumi:"region"` }
func (GetKeyMultiRegionConfigurationPrimaryKeyArgs) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationPrimaryKeyArgs) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationPrimaryKeyArgs) ToGetKeyMultiRegionConfigurationPrimaryKeyOutput ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationPrimaryKeyArgs) ToGetKeyMultiRegionConfigurationPrimaryKeyOutput() GetKeyMultiRegionConfigurationPrimaryKeyOutput
func (GetKeyMultiRegionConfigurationPrimaryKeyArgs) ToGetKeyMultiRegionConfigurationPrimaryKeyOutputWithContext ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationPrimaryKeyArgs) ToGetKeyMultiRegionConfigurationPrimaryKeyOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationPrimaryKeyOutput
type GetKeyMultiRegionConfigurationPrimaryKeyArray ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationPrimaryKeyArray []GetKeyMultiRegionConfigurationPrimaryKeyInput
func (GetKeyMultiRegionConfigurationPrimaryKeyArray) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationPrimaryKeyArray) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationPrimaryKeyArray) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutput ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationPrimaryKeyArray) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutput() GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
func (GetKeyMultiRegionConfigurationPrimaryKeyArray) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutputWithContext ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationPrimaryKeyArray) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
type GetKeyMultiRegionConfigurationPrimaryKeyArrayInput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationPrimaryKeyArrayInput interface { pulumi.Input ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutput() GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutputWithContext(context.Context) GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput }
GetKeyMultiRegionConfigurationPrimaryKeyArrayInput is an input type that accepts GetKeyMultiRegionConfigurationPrimaryKeyArray and GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput values. You can construct a concrete instance of `GetKeyMultiRegionConfigurationPrimaryKeyArrayInput` via:
GetKeyMultiRegionConfigurationPrimaryKeyArray{ GetKeyMultiRegionConfigurationPrimaryKeyArgs{...} }
type GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput struct{ *pulumi.OutputState }
func (GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutput ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutput() GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
func (GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutputWithContext ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationPrimaryKeyArrayOutput
type GetKeyMultiRegionConfigurationPrimaryKeyInput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationPrimaryKeyInput interface { pulumi.Input ToGetKeyMultiRegionConfigurationPrimaryKeyOutput() GetKeyMultiRegionConfigurationPrimaryKeyOutput ToGetKeyMultiRegionConfigurationPrimaryKeyOutputWithContext(context.Context) GetKeyMultiRegionConfigurationPrimaryKeyOutput }
GetKeyMultiRegionConfigurationPrimaryKeyInput is an input type that accepts GetKeyMultiRegionConfigurationPrimaryKeyArgs and GetKeyMultiRegionConfigurationPrimaryKeyOutput values. You can construct a concrete instance of `GetKeyMultiRegionConfigurationPrimaryKeyInput` via:
GetKeyMultiRegionConfigurationPrimaryKeyArgs{...}
type GetKeyMultiRegionConfigurationPrimaryKeyOutput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationPrimaryKeyOutput struct{ *pulumi.OutputState }
func (GetKeyMultiRegionConfigurationPrimaryKeyOutput) Arn ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationPrimaryKeyOutput) Arn() pulumi.StringOutput
func (GetKeyMultiRegionConfigurationPrimaryKeyOutput) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationPrimaryKeyOutput) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationPrimaryKeyOutput) Region ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationPrimaryKeyOutput) Region() pulumi.StringOutput
func (GetKeyMultiRegionConfigurationPrimaryKeyOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyOutput ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationPrimaryKeyOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyOutput() GetKeyMultiRegionConfigurationPrimaryKeyOutput
func (GetKeyMultiRegionConfigurationPrimaryKeyOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyOutputWithContext ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationPrimaryKeyOutput) ToGetKeyMultiRegionConfigurationPrimaryKeyOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationPrimaryKeyOutput
type GetKeyMultiRegionConfigurationReplicaKey ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationReplicaKeyArgs ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationReplicaKeyArgs struct { Arn pulumi.StringInput `pulumi:"arn"` Region pulumi.StringInput `pulumi:"region"` }
func (GetKeyMultiRegionConfigurationReplicaKeyArgs) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationReplicaKeyArgs) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationReplicaKeyArgs) ToGetKeyMultiRegionConfigurationReplicaKeyOutput ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationReplicaKeyArgs) ToGetKeyMultiRegionConfigurationReplicaKeyOutput() GetKeyMultiRegionConfigurationReplicaKeyOutput
func (GetKeyMultiRegionConfigurationReplicaKeyArgs) ToGetKeyMultiRegionConfigurationReplicaKeyOutputWithContext ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationReplicaKeyArgs) ToGetKeyMultiRegionConfigurationReplicaKeyOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationReplicaKeyOutput
type GetKeyMultiRegionConfigurationReplicaKeyArray ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationReplicaKeyArray []GetKeyMultiRegionConfigurationReplicaKeyInput
func (GetKeyMultiRegionConfigurationReplicaKeyArray) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationReplicaKeyArray) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationReplicaKeyArray) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutput ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationReplicaKeyArray) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutput() GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
func (GetKeyMultiRegionConfigurationReplicaKeyArray) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutputWithContext ¶ added in v4.27.0
func (i GetKeyMultiRegionConfigurationReplicaKeyArray) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
type GetKeyMultiRegionConfigurationReplicaKeyArrayInput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationReplicaKeyArrayInput interface { pulumi.Input ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutput() GetKeyMultiRegionConfigurationReplicaKeyArrayOutput ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutputWithContext(context.Context) GetKeyMultiRegionConfigurationReplicaKeyArrayOutput }
GetKeyMultiRegionConfigurationReplicaKeyArrayInput is an input type that accepts GetKeyMultiRegionConfigurationReplicaKeyArray and GetKeyMultiRegionConfigurationReplicaKeyArrayOutput values. You can construct a concrete instance of `GetKeyMultiRegionConfigurationReplicaKeyArrayInput` via:
GetKeyMultiRegionConfigurationReplicaKeyArray{ GetKeyMultiRegionConfigurationReplicaKeyArgs{...} }
type GetKeyMultiRegionConfigurationReplicaKeyArrayOutput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationReplicaKeyArrayOutput struct{ *pulumi.OutputState }
func (GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutput ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutput() GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
func (GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutputWithContext ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationReplicaKeyArrayOutput) ToGetKeyMultiRegionConfigurationReplicaKeyArrayOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationReplicaKeyArrayOutput
type GetKeyMultiRegionConfigurationReplicaKeyInput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationReplicaKeyInput interface { pulumi.Input ToGetKeyMultiRegionConfigurationReplicaKeyOutput() GetKeyMultiRegionConfigurationReplicaKeyOutput ToGetKeyMultiRegionConfigurationReplicaKeyOutputWithContext(context.Context) GetKeyMultiRegionConfigurationReplicaKeyOutput }
GetKeyMultiRegionConfigurationReplicaKeyInput is an input type that accepts GetKeyMultiRegionConfigurationReplicaKeyArgs and GetKeyMultiRegionConfigurationReplicaKeyOutput values. You can construct a concrete instance of `GetKeyMultiRegionConfigurationReplicaKeyInput` via:
GetKeyMultiRegionConfigurationReplicaKeyArgs{...}
type GetKeyMultiRegionConfigurationReplicaKeyOutput ¶ added in v4.27.0
type GetKeyMultiRegionConfigurationReplicaKeyOutput struct{ *pulumi.OutputState }
func (GetKeyMultiRegionConfigurationReplicaKeyOutput) Arn ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationReplicaKeyOutput) Arn() pulumi.StringOutput
func (GetKeyMultiRegionConfigurationReplicaKeyOutput) ElementType ¶ added in v4.27.0
func (GetKeyMultiRegionConfigurationReplicaKeyOutput) ElementType() reflect.Type
func (GetKeyMultiRegionConfigurationReplicaKeyOutput) Region ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationReplicaKeyOutput) Region() pulumi.StringOutput
func (GetKeyMultiRegionConfigurationReplicaKeyOutput) ToGetKeyMultiRegionConfigurationReplicaKeyOutput ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationReplicaKeyOutput) ToGetKeyMultiRegionConfigurationReplicaKeyOutput() GetKeyMultiRegionConfigurationReplicaKeyOutput
func (GetKeyMultiRegionConfigurationReplicaKeyOutput) ToGetKeyMultiRegionConfigurationReplicaKeyOutputWithContext ¶ added in v4.27.0
func (o GetKeyMultiRegionConfigurationReplicaKeyOutput) ToGetKeyMultiRegionConfigurationReplicaKeyOutputWithContext(ctx context.Context) GetKeyMultiRegionConfigurationReplicaKeyOutput
type GetPublicKeyArgs ¶ added in v4.2.0
type GetPublicKeyArgs struct { // List of grant tokens GrantTokens []string `pulumi:"grantTokens"` // Key identifier which can be one of the following format: // * Key ID. E.g - `1234abcd-12ab-34cd-56ef-1234567890ab` // * Key ARN. E.g. - `arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` // * Alias name. E.g. - `alias/my-key` // * Alias ARN - E.g. - `arn:aws:kms:us-east-1:111122223333:alias/my-key` KeyId string `pulumi:"keyId"` }
A collection of arguments for invoking getPublicKey.
type GetPublicKeyOutputArgs ¶ added in v4.21.0
type GetPublicKeyOutputArgs struct { // List of grant tokens GrantTokens pulumi.StringArrayInput `pulumi:"grantTokens"` // Key identifier which can be one of the following format: // * Key ID. E.g - `1234abcd-12ab-34cd-56ef-1234567890ab` // * Key ARN. E.g. - `arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` // * Alias name. E.g. - `alias/my-key` // * Alias ARN - E.g. - `arn:aws:kms:us-east-1:111122223333:alias/my-key` KeyId pulumi.StringInput `pulumi:"keyId"` }
A collection of arguments for invoking getPublicKey.
func (GetPublicKeyOutputArgs) ElementType ¶ added in v4.21.0
func (GetPublicKeyOutputArgs) ElementType() reflect.Type
type GetPublicKeyResult ¶ added in v4.2.0
type GetPublicKeyResult struct { // Key ARN of the asymmetric CMK from which the public key was downloaded. Arn string `pulumi:"arn"` // Type of the public key that was downloaded. CustomerMasterKeySpec string `pulumi:"customerMasterKeySpec"` // Encryption algorithms that AWS KMS supports for this key. Only set when the `keyUsage` of the public key is `ENCRYPT_DECRYPT`. EncryptionAlgorithms []string `pulumi:"encryptionAlgorithms"` GrantTokens []string `pulumi:"grantTokens"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` KeyId string `pulumi:"keyId"` // Permitted use of the public key. Valid values are `ENCRYPT_DECRYPT` or `SIGN_VERIFY` KeyUsage string `pulumi:"keyUsage"` // Exported public key. The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI), as defined in [RFC 5280](https://tools.ietf.org/html/rfc5280). The value is Base64-encoded. PublicKey string `pulumi:"publicKey"` // Signing algorithms that AWS KMS supports for this key. Only set when the `keyUsage` of the public key is `SIGN_VERIFY`. SigningAlgorithms []string `pulumi:"signingAlgorithms"` }
A collection of values returned by getPublicKey.
func GetPublicKey ¶ added in v4.2.0
func GetPublicKey(ctx *pulumi.Context, args *GetPublicKeyArgs, opts ...pulumi.InvokeOption) (*GetPublicKeyResult, error)
Use this data source to get the public key about the specified KMS Key with flexible key id input. This can be useful to reference key alias without having to hard code the ARN as input.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := kms.GetPublicKey(ctx, &kms.GetPublicKeyArgs{ KeyId: "alias/my-key", }, nil) if err != nil { return err } _, err = kms.GetPublicKey(ctx, &kms.GetPublicKeyArgs{ KeyId: "1234abcd-12ab-34cd-56ef-1234567890ab", }, nil) if err != nil { return err } _, err = kms.GetPublicKey(ctx, &kms.GetPublicKeyArgs{ KeyId: "arn:aws:kms:us-east-1:111122223333:alias/my-key", }, nil) if err != nil { return err } _, err = kms.GetPublicKey(ctx, &kms.GetPublicKeyArgs{ KeyId: "arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", }, nil) if err != nil { return err } return nil }) }
```
type GetPublicKeyResultOutput ¶ added in v4.21.0
type GetPublicKeyResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getPublicKey.
func GetPublicKeyOutput ¶ added in v4.21.0
func GetPublicKeyOutput(ctx *pulumi.Context, args GetPublicKeyOutputArgs, opts ...pulumi.InvokeOption) GetPublicKeyResultOutput
func (GetPublicKeyResultOutput) Arn ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) Arn() pulumi.StringOutput
Key ARN of the asymmetric CMK from which the public key was downloaded.
func (GetPublicKeyResultOutput) CustomerMasterKeySpec ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) CustomerMasterKeySpec() pulumi.StringOutput
Type of the public key that was downloaded.
func (GetPublicKeyResultOutput) ElementType ¶ added in v4.21.0
func (GetPublicKeyResultOutput) ElementType() reflect.Type
func (GetPublicKeyResultOutput) EncryptionAlgorithms ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) EncryptionAlgorithms() pulumi.StringArrayOutput
Encryption algorithms that AWS KMS supports for this key. Only set when the `keyUsage` of the public key is `ENCRYPT_DECRYPT`.
func (GetPublicKeyResultOutput) GrantTokens ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) GrantTokens() pulumi.StringArrayOutput
func (GetPublicKeyResultOutput) Id ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetPublicKeyResultOutput) KeyId ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) KeyId() pulumi.StringOutput
func (GetPublicKeyResultOutput) KeyUsage ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) KeyUsage() pulumi.StringOutput
Permitted use of the public key. Valid values are `ENCRYPT_DECRYPT` or `SIGN_VERIFY`
func (GetPublicKeyResultOutput) PublicKey ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) PublicKey() pulumi.StringOutput
Exported public key. The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI), as defined in [RFC 5280](https://tools.ietf.org/html/rfc5280). The value is Base64-encoded.
func (GetPublicKeyResultOutput) SigningAlgorithms ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) SigningAlgorithms() pulumi.StringArrayOutput
Signing algorithms that AWS KMS supports for this key. Only set when the `keyUsage` of the public key is `SIGN_VERIFY`.
func (GetPublicKeyResultOutput) ToGetPublicKeyResultOutput ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) ToGetPublicKeyResultOutput() GetPublicKeyResultOutput
func (GetPublicKeyResultOutput) ToGetPublicKeyResultOutputWithContext ¶ added in v4.21.0
func (o GetPublicKeyResultOutput) ToGetPublicKeyResultOutputWithContext(ctx context.Context) GetPublicKeyResultOutput
type GetSecretArgs ¶
type GetSecretArgs struct {
Secrets []GetSecretSecret `pulumi:"secrets"`
}
A collection of arguments for invoking getSecret.
type GetSecretOutputArgs ¶ added in v4.21.0
type GetSecretOutputArgs struct {
Secrets GetSecretSecretArrayInput `pulumi:"secrets"`
}
A collection of arguments for invoking getSecret.
func (GetSecretOutputArgs) ElementType ¶ added in v4.21.0
func (GetSecretOutputArgs) ElementType() reflect.Type
type GetSecretResult ¶
type GetSecretResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Secrets []GetSecretSecret `pulumi:"secrets"` }
A collection of values returned by getSecret.
func GetSecret ¶
func GetSecret(ctx *pulumi.Context, args *GetSecretArgs, opts ...pulumi.InvokeOption) (*GetSecretResult, error)
type GetSecretResultOutput ¶ added in v4.21.0
type GetSecretResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSecret.
func GetSecretOutput ¶ added in v4.21.0
func GetSecretOutput(ctx *pulumi.Context, args GetSecretOutputArgs, opts ...pulumi.InvokeOption) GetSecretResultOutput
func (GetSecretResultOutput) ElementType ¶ added in v4.21.0
func (GetSecretResultOutput) ElementType() reflect.Type
func (GetSecretResultOutput) Id ¶ added in v4.21.0
func (o GetSecretResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSecretResultOutput) Secrets ¶ added in v4.21.0
func (o GetSecretResultOutput) Secrets() GetSecretSecretArrayOutput
func (GetSecretResultOutput) ToGetSecretResultOutput ¶ added in v4.21.0
func (o GetSecretResultOutput) ToGetSecretResultOutput() GetSecretResultOutput
func (GetSecretResultOutput) ToGetSecretResultOutputWithContext ¶ added in v4.21.0
func (o GetSecretResultOutput) ToGetSecretResultOutputWithContext(ctx context.Context) GetSecretResultOutput
type GetSecretSecret ¶
type GetSecretSecretArgs ¶
type GetSecretSecretArgs struct { Context pulumi.StringMapInput `pulumi:"context"` GrantTokens pulumi.StringArrayInput `pulumi:"grantTokens"` Name pulumi.StringInput `pulumi:"name"` Payload pulumi.StringInput `pulumi:"payload"` }
func (GetSecretSecretArgs) ElementType ¶
func (GetSecretSecretArgs) ElementType() reflect.Type
func (GetSecretSecretArgs) ToGetSecretSecretOutput ¶
func (i GetSecretSecretArgs) ToGetSecretSecretOutput() GetSecretSecretOutput
func (GetSecretSecretArgs) ToGetSecretSecretOutputWithContext ¶
func (i GetSecretSecretArgs) ToGetSecretSecretOutputWithContext(ctx context.Context) GetSecretSecretOutput
type GetSecretSecretArray ¶
type GetSecretSecretArray []GetSecretSecretInput
func (GetSecretSecretArray) ElementType ¶
func (GetSecretSecretArray) ElementType() reflect.Type
func (GetSecretSecretArray) ToGetSecretSecretArrayOutput ¶
func (i GetSecretSecretArray) ToGetSecretSecretArrayOutput() GetSecretSecretArrayOutput
func (GetSecretSecretArray) ToGetSecretSecretArrayOutputWithContext ¶
func (i GetSecretSecretArray) ToGetSecretSecretArrayOutputWithContext(ctx context.Context) GetSecretSecretArrayOutput
type GetSecretSecretArrayInput ¶
type GetSecretSecretArrayInput interface { pulumi.Input ToGetSecretSecretArrayOutput() GetSecretSecretArrayOutput ToGetSecretSecretArrayOutputWithContext(context.Context) GetSecretSecretArrayOutput }
GetSecretSecretArrayInput is an input type that accepts GetSecretSecretArray and GetSecretSecretArrayOutput values. You can construct a concrete instance of `GetSecretSecretArrayInput` via:
GetSecretSecretArray{ GetSecretSecretArgs{...} }
type GetSecretSecretArrayOutput ¶
type GetSecretSecretArrayOutput struct{ *pulumi.OutputState }
func (GetSecretSecretArrayOutput) ElementType ¶
func (GetSecretSecretArrayOutput) ElementType() reflect.Type
func (GetSecretSecretArrayOutput) Index ¶
func (o GetSecretSecretArrayOutput) Index(i pulumi.IntInput) GetSecretSecretOutput
func (GetSecretSecretArrayOutput) ToGetSecretSecretArrayOutput ¶
func (o GetSecretSecretArrayOutput) ToGetSecretSecretArrayOutput() GetSecretSecretArrayOutput
func (GetSecretSecretArrayOutput) ToGetSecretSecretArrayOutputWithContext ¶
func (o GetSecretSecretArrayOutput) ToGetSecretSecretArrayOutputWithContext(ctx context.Context) GetSecretSecretArrayOutput
type GetSecretSecretInput ¶
type GetSecretSecretInput interface { pulumi.Input ToGetSecretSecretOutput() GetSecretSecretOutput ToGetSecretSecretOutputWithContext(context.Context) GetSecretSecretOutput }
GetSecretSecretInput is an input type that accepts GetSecretSecretArgs and GetSecretSecretOutput values. You can construct a concrete instance of `GetSecretSecretInput` via:
GetSecretSecretArgs{...}
type GetSecretSecretOutput ¶
type GetSecretSecretOutput struct{ *pulumi.OutputState }
func (GetSecretSecretOutput) Context ¶
func (o GetSecretSecretOutput) Context() pulumi.StringMapOutput
func (GetSecretSecretOutput) ElementType ¶
func (GetSecretSecretOutput) ElementType() reflect.Type
func (GetSecretSecretOutput) GrantTokens ¶
func (o GetSecretSecretOutput) GrantTokens() pulumi.StringArrayOutput
func (GetSecretSecretOutput) Name ¶
func (o GetSecretSecretOutput) Name() pulumi.StringOutput
func (GetSecretSecretOutput) Payload ¶
func (o GetSecretSecretOutput) Payload() pulumi.StringOutput
func (GetSecretSecretOutput) ToGetSecretSecretOutput ¶
func (o GetSecretSecretOutput) ToGetSecretSecretOutput() GetSecretSecretOutput
func (GetSecretSecretOutput) ToGetSecretSecretOutputWithContext ¶
func (o GetSecretSecretOutput) ToGetSecretSecretOutputWithContext(ctx context.Context) GetSecretSecretOutput
type GetSecretsArgs ¶
type GetSecretsArgs struct { // One or more encrypted payload definitions from the KMS service. See the Secret Definitions below. Secrets []GetSecretsSecret `pulumi:"secrets"` }
A collection of arguments for invoking getSecrets.
type GetSecretsOutputArgs ¶ added in v4.21.0
type GetSecretsOutputArgs struct { // One or more encrypted payload definitions from the KMS service. See the Secret Definitions below. Secrets GetSecretsSecretArrayInput `pulumi:"secrets"` }
A collection of arguments for invoking getSecrets.
func (GetSecretsOutputArgs) ElementType ¶ added in v4.21.0
func (GetSecretsOutputArgs) ElementType() reflect.Type
type GetSecretsResult ¶
type GetSecretsResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Map containing each `secret` `name` as the key with its decrypted plaintext value Plaintext map[string]string `pulumi:"plaintext"` Secrets []GetSecretsSecret `pulumi:"secrets"` }
A collection of values returned by getSecrets.
func GetSecrets ¶
func GetSecrets(ctx *pulumi.Context, args *GetSecretsArgs, opts ...pulumi.InvokeOption) (*GetSecretsResult, error)
Decrypt multiple secrets from data encrypted with the AWS KMS service.
type GetSecretsResultOutput ¶ added in v4.21.0
type GetSecretsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSecrets.
func GetSecretsOutput ¶ added in v4.21.0
func GetSecretsOutput(ctx *pulumi.Context, args GetSecretsOutputArgs, opts ...pulumi.InvokeOption) GetSecretsResultOutput
func (GetSecretsResultOutput) ElementType ¶ added in v4.21.0
func (GetSecretsResultOutput) ElementType() reflect.Type
func (GetSecretsResultOutput) Id ¶ added in v4.21.0
func (o GetSecretsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSecretsResultOutput) Plaintext ¶ added in v4.21.0
func (o GetSecretsResultOutput) Plaintext() pulumi.StringMapOutput
Map containing each `secret` `name` as the key with its decrypted plaintext value
func (GetSecretsResultOutput) Secrets ¶ added in v4.21.0
func (o GetSecretsResultOutput) Secrets() GetSecretsSecretArrayOutput
func (GetSecretsResultOutput) ToGetSecretsResultOutput ¶ added in v4.21.0
func (o GetSecretsResultOutput) ToGetSecretsResultOutput() GetSecretsResultOutput
func (GetSecretsResultOutput) ToGetSecretsResultOutputWithContext ¶ added in v4.21.0
func (o GetSecretsResultOutput) ToGetSecretsResultOutputWithContext(ctx context.Context) GetSecretsResultOutput
type GetSecretsSecret ¶
type GetSecretsSecret struct { // An optional mapping that makes up the Encryption Context for the secret. Context map[string]string `pulumi:"context"` // An optional list of Grant Tokens for the secret. GrantTokens []string `pulumi:"grantTokens"` // The name to export this secret under in the attributes. Name string `pulumi:"name"` // Base64 encoded payload, as returned from a KMS encrypt operation. Payload string `pulumi:"payload"` }
type GetSecretsSecretArgs ¶
type GetSecretsSecretArgs struct { // An optional mapping that makes up the Encryption Context for the secret. Context pulumi.StringMapInput `pulumi:"context"` // An optional list of Grant Tokens for the secret. GrantTokens pulumi.StringArrayInput `pulumi:"grantTokens"` // The name to export this secret under in the attributes. Name pulumi.StringInput `pulumi:"name"` // Base64 encoded payload, as returned from a KMS encrypt operation. Payload pulumi.StringInput `pulumi:"payload"` }
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) Context ¶
func (o GetSecretsSecretOutput) Context() pulumi.StringMapOutput
An optional mapping that makes up the Encryption Context for the secret.
func (GetSecretsSecretOutput) ElementType ¶
func (GetSecretsSecretOutput) ElementType() reflect.Type
func (GetSecretsSecretOutput) GrantTokens ¶
func (o GetSecretsSecretOutput) GrantTokens() pulumi.StringArrayOutput
An optional list of Grant Tokens for the secret.
func (GetSecretsSecretOutput) Name ¶
func (o GetSecretsSecretOutput) Name() pulumi.StringOutput
The name to export this secret under in the attributes.
func (GetSecretsSecretOutput) Payload ¶
func (o GetSecretsSecretOutput) Payload() pulumi.StringOutput
Base64 encoded payload, as returned from a KMS encrypt operation.
func (GetSecretsSecretOutput) ToGetSecretsSecretOutput ¶
func (o GetSecretsSecretOutput) ToGetSecretsSecretOutput() GetSecretsSecretOutput
func (GetSecretsSecretOutput) ToGetSecretsSecretOutputWithContext ¶
func (o GetSecretsSecretOutput) ToGetSecretsSecretOutputWithContext(ctx context.Context) GetSecretsSecretOutput
type Grant ¶
type Grant struct { pulumi.CustomResourceState // A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see [Encryption Context](http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html). Constraints GrantConstraintArrayOutput `pulumi:"constraints"` // A list of grant tokens to be used when creating the grant. See [Grant Tokens](http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) for more information about grant tokens. GrantCreationTokens pulumi.StringArrayOutput `pulumi:"grantCreationTokens"` // The unique identifier for the grant. GrantId pulumi.StringOutput `pulumi:"grantId"` // The grant token for the created grant. For more information, see [Grant Tokens](http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). GrantToken pulumi.StringOutput `pulumi:"grantToken"` // The principal that is given permission to perform the operations that the grant permits in ARN format. Note that due to eventual consistency issues around IAM principals, the providers's state may not always be refreshed to reflect what is true in AWS. GranteePrincipal pulumi.StringOutput `pulumi:"granteePrincipal"` // The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN. KeyId pulumi.StringOutput `pulumi:"keyId"` // A friendly name for identifying the grant. Name pulumi.StringOutput `pulumi:"name"` // A list of operations that the grant permits. The permitted values are: `Decrypt`, `Encrypt`, `GenerateDataKey`, `GenerateDataKeyWithoutPlaintext`, `ReEncryptFrom`, `ReEncryptTo`, `Sign`, `Verify`, `GetPublicKey`, `CreateGrant`, `RetireGrant`, `DescribeKey`, `GenerateDataKeyPair`, or `GenerateDataKeyPairWithoutPlaintext`. Operations pulumi.StringArrayOutput `pulumi:"operations"` // -(Defaults to false, Forces new resources) If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. // See [RetireGrant](https://docs.aws.amazon.com/kms/latest/APIReference/API_RetireGrant.html) for more information. RetireOnDelete pulumi.BoolPtrOutput `pulumi:"retireOnDelete"` // The principal that is given permission to retire the grant by using RetireGrant operation in ARN format. Note that due to eventual consistency issues around IAM principals, the providers's state may not always be refreshed to reflect what is true in AWS. RetiringPrincipal pulumi.StringPtrOutput `pulumi:"retiringPrincipal"` }
Provides a resource-based access control mechanism for a KMS customer master key.
## Example Usage
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/iam" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { key, err := kms.NewKey(ctx, "key", nil) if err != nil { return err } role, err := iam.NewRole(ctx, "role", &iam.RoleArgs{ AssumeRolePolicy: pulumi.Any(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", " \"Version\": \"2012-10-17\",\n", " \"Statement\": [\n", " {\n", " \"Action\": \"sts:AssumeRole\",\n", " \"Principal\": {\n", " \"Service\": \"lambda.amazonaws.com\"\n", " },\n", " \"Effect\": \"Allow\",\n", " \"Sid\": \"\"\n", " }\n", " ]\n", "}\n")), }) if err != nil { return err } _, err = kms.NewGrant(ctx, "grant", &kms.GrantArgs{ KeyId: key.KeyId, GranteePrincipal: role.Arn, Operations: pulumi.StringArray{ pulumi.String("Encrypt"), pulumi.String("Decrypt"), pulumi.String("GenerateDataKey"), }, Constraints: kms.GrantConstraintArray{ &kms.GrantConstraintArgs{ EncryptionContextEquals: pulumi.StringMap{ "Department": pulumi.String("Finance"), }, }, }, }) if err != nil { return err } return nil }) }
```
## Import
KMS Grants can be imported using the Key ID and Grant ID separated by a colon (`:`), e.g.,
```sh
$ pulumi import aws:kms/grant:Grant test 1234abcd-12ab-34cd-56ef-1234567890ababcde1237f76e4ba7987489ac329fbfba6ad343d6f7075dbd1ef191f0120514
```
func GetGrant ¶
func GetGrant(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GrantState, opts ...pulumi.ResourceOption) (*Grant, error)
GetGrant gets an existing Grant 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 NewGrant ¶
func NewGrant(ctx *pulumi.Context, name string, args *GrantArgs, opts ...pulumi.ResourceOption) (*Grant, error)
NewGrant registers a new resource with the given unique name, arguments, and options.
func (*Grant) ElementType ¶
func (*Grant) ToGrantOutput ¶
func (i *Grant) ToGrantOutput() GrantOutput
func (*Grant) ToGrantOutputWithContext ¶
func (i *Grant) ToGrantOutputWithContext(ctx context.Context) GrantOutput
type GrantArgs ¶
type GrantArgs struct { // A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see [Encryption Context](http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html). Constraints GrantConstraintArrayInput // A list of grant tokens to be used when creating the grant. See [Grant Tokens](http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) for more information about grant tokens. GrantCreationTokens pulumi.StringArrayInput // The principal that is given permission to perform the operations that the grant permits in ARN format. Note that due to eventual consistency issues around IAM principals, the providers's state may not always be refreshed to reflect what is true in AWS. GranteePrincipal pulumi.StringInput // The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN. KeyId pulumi.StringInput // A friendly name for identifying the grant. Name pulumi.StringPtrInput // A list of operations that the grant permits. The permitted values are: `Decrypt`, `Encrypt`, `GenerateDataKey`, `GenerateDataKeyWithoutPlaintext`, `ReEncryptFrom`, `ReEncryptTo`, `Sign`, `Verify`, `GetPublicKey`, `CreateGrant`, `RetireGrant`, `DescribeKey`, `GenerateDataKeyPair`, or `GenerateDataKeyPairWithoutPlaintext`. Operations pulumi.StringArrayInput // -(Defaults to false, Forces new resources) If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. // See [RetireGrant](https://docs.aws.amazon.com/kms/latest/APIReference/API_RetireGrant.html) for more information. RetireOnDelete pulumi.BoolPtrInput // The principal that is given permission to retire the grant by using RetireGrant operation in ARN format. Note that due to eventual consistency issues around IAM principals, the providers's state may not always be refreshed to reflect what is true in AWS. RetiringPrincipal pulumi.StringPtrInput }
The set of arguments for constructing a Grant resource.
func (GrantArgs) ElementType ¶
type GrantArray ¶
type GrantArray []GrantInput
func (GrantArray) ElementType ¶
func (GrantArray) ElementType() reflect.Type
func (GrantArray) ToGrantArrayOutput ¶
func (i GrantArray) ToGrantArrayOutput() GrantArrayOutput
func (GrantArray) ToGrantArrayOutputWithContext ¶
func (i GrantArray) ToGrantArrayOutputWithContext(ctx context.Context) GrantArrayOutput
type GrantArrayInput ¶
type GrantArrayInput interface { pulumi.Input ToGrantArrayOutput() GrantArrayOutput ToGrantArrayOutputWithContext(context.Context) GrantArrayOutput }
GrantArrayInput is an input type that accepts GrantArray and GrantArrayOutput values. You can construct a concrete instance of `GrantArrayInput` via:
GrantArray{ GrantArgs{...} }
type GrantArrayOutput ¶
type GrantArrayOutput struct{ *pulumi.OutputState }
func (GrantArrayOutput) ElementType ¶
func (GrantArrayOutput) ElementType() reflect.Type
func (GrantArrayOutput) Index ¶
func (o GrantArrayOutput) Index(i pulumi.IntInput) GrantOutput
func (GrantArrayOutput) ToGrantArrayOutput ¶
func (o GrantArrayOutput) ToGrantArrayOutput() GrantArrayOutput
func (GrantArrayOutput) ToGrantArrayOutputWithContext ¶
func (o GrantArrayOutput) ToGrantArrayOutputWithContext(ctx context.Context) GrantArrayOutput
type GrantConstraint ¶
type GrantConstraint struct { // A list of key-value pairs that must match the encryption context in subsequent cryptographic operation requests. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint. Conflicts with `encryptionContextSubset`. EncryptionContextEquals map[string]string `pulumi:"encryptionContextEquals"` // A list of key-value pairs that must be included in the encryption context of subsequent cryptographic operation requests. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs. Conflicts with `encryptionContextEquals`. EncryptionContextSubset map[string]string `pulumi:"encryptionContextSubset"` }
type GrantConstraintArgs ¶
type GrantConstraintArgs struct { // A list of key-value pairs that must match the encryption context in subsequent cryptographic operation requests. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint. Conflicts with `encryptionContextSubset`. EncryptionContextEquals pulumi.StringMapInput `pulumi:"encryptionContextEquals"` // A list of key-value pairs that must be included in the encryption context of subsequent cryptographic operation requests. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs. Conflicts with `encryptionContextEquals`. EncryptionContextSubset pulumi.StringMapInput `pulumi:"encryptionContextSubset"` }
func (GrantConstraintArgs) ElementType ¶
func (GrantConstraintArgs) ElementType() reflect.Type
func (GrantConstraintArgs) ToGrantConstraintOutput ¶
func (i GrantConstraintArgs) ToGrantConstraintOutput() GrantConstraintOutput
func (GrantConstraintArgs) ToGrantConstraintOutputWithContext ¶
func (i GrantConstraintArgs) ToGrantConstraintOutputWithContext(ctx context.Context) GrantConstraintOutput
type GrantConstraintArray ¶
type GrantConstraintArray []GrantConstraintInput
func (GrantConstraintArray) ElementType ¶
func (GrantConstraintArray) ElementType() reflect.Type
func (GrantConstraintArray) ToGrantConstraintArrayOutput ¶
func (i GrantConstraintArray) ToGrantConstraintArrayOutput() GrantConstraintArrayOutput
func (GrantConstraintArray) ToGrantConstraintArrayOutputWithContext ¶
func (i GrantConstraintArray) ToGrantConstraintArrayOutputWithContext(ctx context.Context) GrantConstraintArrayOutput
type GrantConstraintArrayInput ¶
type GrantConstraintArrayInput interface { pulumi.Input ToGrantConstraintArrayOutput() GrantConstraintArrayOutput ToGrantConstraintArrayOutputWithContext(context.Context) GrantConstraintArrayOutput }
GrantConstraintArrayInput is an input type that accepts GrantConstraintArray and GrantConstraintArrayOutput values. You can construct a concrete instance of `GrantConstraintArrayInput` via:
GrantConstraintArray{ GrantConstraintArgs{...} }
type GrantConstraintArrayOutput ¶
type GrantConstraintArrayOutput struct{ *pulumi.OutputState }
func (GrantConstraintArrayOutput) ElementType ¶
func (GrantConstraintArrayOutput) ElementType() reflect.Type
func (GrantConstraintArrayOutput) Index ¶
func (o GrantConstraintArrayOutput) Index(i pulumi.IntInput) GrantConstraintOutput
func (GrantConstraintArrayOutput) ToGrantConstraintArrayOutput ¶
func (o GrantConstraintArrayOutput) ToGrantConstraintArrayOutput() GrantConstraintArrayOutput
func (GrantConstraintArrayOutput) ToGrantConstraintArrayOutputWithContext ¶
func (o GrantConstraintArrayOutput) ToGrantConstraintArrayOutputWithContext(ctx context.Context) GrantConstraintArrayOutput
type GrantConstraintInput ¶
type GrantConstraintInput interface { pulumi.Input ToGrantConstraintOutput() GrantConstraintOutput ToGrantConstraintOutputWithContext(context.Context) GrantConstraintOutput }
GrantConstraintInput is an input type that accepts GrantConstraintArgs and GrantConstraintOutput values. You can construct a concrete instance of `GrantConstraintInput` via:
GrantConstraintArgs{...}
type GrantConstraintOutput ¶
type GrantConstraintOutput struct{ *pulumi.OutputState }
func (GrantConstraintOutput) ElementType ¶
func (GrantConstraintOutput) ElementType() reflect.Type
func (GrantConstraintOutput) EncryptionContextEquals ¶
func (o GrantConstraintOutput) EncryptionContextEquals() pulumi.StringMapOutput
A list of key-value pairs that must match the encryption context in subsequent cryptographic operation requests. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint. Conflicts with `encryptionContextSubset`.
func (GrantConstraintOutput) EncryptionContextSubset ¶
func (o GrantConstraintOutput) EncryptionContextSubset() pulumi.StringMapOutput
A list of key-value pairs that must be included in the encryption context of subsequent cryptographic operation requests. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs. Conflicts with `encryptionContextEquals`.
func (GrantConstraintOutput) ToGrantConstraintOutput ¶
func (o GrantConstraintOutput) ToGrantConstraintOutput() GrantConstraintOutput
func (GrantConstraintOutput) ToGrantConstraintOutputWithContext ¶
func (o GrantConstraintOutput) ToGrantConstraintOutputWithContext(ctx context.Context) GrantConstraintOutput
type GrantInput ¶
type GrantInput interface { pulumi.Input ToGrantOutput() GrantOutput ToGrantOutputWithContext(ctx context.Context) GrantOutput }
type GrantMap ¶
type GrantMap map[string]GrantInput
func (GrantMap) ElementType ¶
func (GrantMap) ToGrantMapOutput ¶
func (i GrantMap) ToGrantMapOutput() GrantMapOutput
func (GrantMap) ToGrantMapOutputWithContext ¶
func (i GrantMap) ToGrantMapOutputWithContext(ctx context.Context) GrantMapOutput
type GrantMapInput ¶
type GrantMapInput interface { pulumi.Input ToGrantMapOutput() GrantMapOutput ToGrantMapOutputWithContext(context.Context) GrantMapOutput }
GrantMapInput is an input type that accepts GrantMap and GrantMapOutput values. You can construct a concrete instance of `GrantMapInput` via:
GrantMap{ "key": GrantArgs{...} }
type GrantMapOutput ¶
type GrantMapOutput struct{ *pulumi.OutputState }
func (GrantMapOutput) ElementType ¶
func (GrantMapOutput) ElementType() reflect.Type
func (GrantMapOutput) MapIndex ¶
func (o GrantMapOutput) MapIndex(k pulumi.StringInput) GrantOutput
func (GrantMapOutput) ToGrantMapOutput ¶
func (o GrantMapOutput) ToGrantMapOutput() GrantMapOutput
func (GrantMapOutput) ToGrantMapOutputWithContext ¶
func (o GrantMapOutput) ToGrantMapOutputWithContext(ctx context.Context) GrantMapOutput
type GrantOutput ¶
type GrantOutput struct{ *pulumi.OutputState }
func (GrantOutput) ElementType ¶
func (GrantOutput) ElementType() reflect.Type
func (GrantOutput) ToGrantOutput ¶
func (o GrantOutput) ToGrantOutput() GrantOutput
func (GrantOutput) ToGrantOutputWithContext ¶
func (o GrantOutput) ToGrantOutputWithContext(ctx context.Context) GrantOutput
type GrantState ¶
type GrantState struct { // A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see [Encryption Context](http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html). Constraints GrantConstraintArrayInput // A list of grant tokens to be used when creating the grant. See [Grant Tokens](http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token) for more information about grant tokens. GrantCreationTokens pulumi.StringArrayInput // The unique identifier for the grant. GrantId pulumi.StringPtrInput // The grant token for the created grant. For more information, see [Grant Tokens](http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token). GrantToken pulumi.StringPtrInput // The principal that is given permission to perform the operations that the grant permits in ARN format. Note that due to eventual consistency issues around IAM principals, the providers's state may not always be refreshed to reflect what is true in AWS. GranteePrincipal pulumi.StringPtrInput // The unique identifier for the customer master key (CMK) that the grant applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN. KeyId pulumi.StringPtrInput // A friendly name for identifying the grant. Name pulumi.StringPtrInput // A list of operations that the grant permits. The permitted values are: `Decrypt`, `Encrypt`, `GenerateDataKey`, `GenerateDataKeyWithoutPlaintext`, `ReEncryptFrom`, `ReEncryptTo`, `Sign`, `Verify`, `GetPublicKey`, `CreateGrant`, `RetireGrant`, `DescribeKey`, `GenerateDataKeyPair`, or `GenerateDataKeyPairWithoutPlaintext`. Operations pulumi.StringArrayInput // -(Defaults to false, Forces new resources) If set to false (the default) the grants will be revoked upon deletion, and if set to true the grants will try to be retired upon deletion. Note that retiring grants requires special permissions, hence why we default to revoking grants. // See [RetireGrant](https://docs.aws.amazon.com/kms/latest/APIReference/API_RetireGrant.html) for more information. RetireOnDelete pulumi.BoolPtrInput // The principal that is given permission to retire the grant by using RetireGrant operation in ARN format. Note that due to eventual consistency issues around IAM principals, the providers's state may not always be refreshed to reflect what is true in AWS. RetiringPrincipal pulumi.StringPtrInput }
func (GrantState) ElementType ¶
func (GrantState) ElementType() reflect.Type
type Key ¶
type Key struct { pulumi.CustomResourceState // The Amazon Resource Name (ARN) of the key. Arn pulumi.StringOutput `pulumi:"arn"` // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrOutput `pulumi:"bypassPolicyLockoutSafetyCheck"` // Specifies whether the key contains a symmetric key or an asymmetric key pair and the encryption algorithms or signing algorithms that the key supports. // Valid values: `SYMMETRIC_DEFAULT`, `RSA_2048`, `RSA_3072`, `RSA_4096`, `ECC_NIST_P256`, `ECC_NIST_P384`, `ECC_NIST_P521`, or `ECC_SECG_P256K1`. Defaults to `SYMMETRIC_DEFAULT`. For help with choosing a key spec, see the [AWS KMS Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose.html). CustomerMasterKeySpec pulumi.StringPtrOutput `pulumi:"customerMasterKeySpec"` // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. // If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately. DeletionWindowInDays pulumi.IntPtrOutput `pulumi:"deletionWindowInDays"` // The description of the key as viewed in AWS console. Description pulumi.StringOutput `pulumi:"description"` // Specifies whether [key rotation](http://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html) is enabled. Defaults to false. EnableKeyRotation pulumi.BoolPtrOutput `pulumi:"enableKeyRotation"` // Specifies whether the key is enabled. Defaults to `true`. IsEnabled pulumi.BoolPtrOutput `pulumi:"isEnabled"` // The globally unique identifier for the key. KeyId pulumi.StringOutput `pulumi:"keyId"` // Specifies the intended use of the key. Valid values: `ENCRYPT_DECRYPT` or `SIGN_VERIFY`. // Defaults to `ENCRYPT_DECRYPT`. KeyUsage pulumi.StringPtrOutput `pulumi:"keyUsage"` // Indicates whether the KMS key is a multi-Region (`true`) or regional (`false`) key. Defaults to `false`. MultiRegion pulumi.BoolOutput `pulumi:"multiRegion"` // A valid policy JSON document. Although this is a key policy, not an IAM policy, an `iam.getPolicyDocument`, in the form that designates a principal, can be used. Policy pulumi.StringOutput `pulumi:"policy"` // A map of tags to assign to the object. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` }
Manages a single-Region or multi-Region primary KMS key.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/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{ DeletionWindowInDays: pulumi.Int(10), Description: pulumi.String("KMS key 1"), }) if err != nil { return err } return nil }) }
```
## Import
KMS Keys can be imported using the `id`, e.g.,
```sh
$ pulumi import aws:kms/key:Key a 1234abcd-12ab-34cd-56ef-1234567890ab
```
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 { // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrInput // Specifies whether the key contains a symmetric key or an asymmetric key pair and the encryption algorithms or signing algorithms that the key supports. // Valid values: `SYMMETRIC_DEFAULT`, `RSA_2048`, `RSA_3072`, `RSA_4096`, `ECC_NIST_P256`, `ECC_NIST_P384`, `ECC_NIST_P521`, or `ECC_SECG_P256K1`. Defaults to `SYMMETRIC_DEFAULT`. For help with choosing a key spec, see the [AWS KMS Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose.html). CustomerMasterKeySpec pulumi.StringPtrInput // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. // If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately. DeletionWindowInDays pulumi.IntPtrInput // The description of the key as viewed in AWS console. Description pulumi.StringPtrInput // Specifies whether [key rotation](http://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html) is enabled. Defaults to false. EnableKeyRotation pulumi.BoolPtrInput // Specifies whether the key is enabled. Defaults to `true`. IsEnabled pulumi.BoolPtrInput // Specifies the intended use of the key. Valid values: `ENCRYPT_DECRYPT` or `SIGN_VERIFY`. // Defaults to `ENCRYPT_DECRYPT`. KeyUsage pulumi.StringPtrInput // Indicates whether the KMS key is a multi-Region (`true`) or regional (`false`) key. Defaults to `false`. MultiRegion pulumi.BoolPtrInput // A valid policy JSON document. Although this is a key policy, not an IAM policy, an `iam.getPolicyDocument`, in the form that designates a principal, can be used. Policy pulumi.StringPtrInput // A map of tags to assign to the object. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput }
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 Amazon Resource Name (ARN) of the key. Arn pulumi.StringPtrInput // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrInput // Specifies whether the key contains a symmetric key or an asymmetric key pair and the encryption algorithms or signing algorithms that the key supports. // Valid values: `SYMMETRIC_DEFAULT`, `RSA_2048`, `RSA_3072`, `RSA_4096`, `ECC_NIST_P256`, `ECC_NIST_P384`, `ECC_NIST_P521`, or `ECC_SECG_P256K1`. Defaults to `SYMMETRIC_DEFAULT`. For help with choosing a key spec, see the [AWS KMS Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose.html). CustomerMasterKeySpec pulumi.StringPtrInput // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. // If the KMS key is a multi-Region primary key with replicas, the waiting period begins when the last of its replica keys is deleted. Otherwise, the waiting period begins immediately. DeletionWindowInDays pulumi.IntPtrInput // The description of the key as viewed in AWS console. Description pulumi.StringPtrInput // Specifies whether [key rotation](http://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html) is enabled. Defaults to false. EnableKeyRotation pulumi.BoolPtrInput // Specifies whether the key is enabled. Defaults to `true`. IsEnabled pulumi.BoolPtrInput // The globally unique identifier for the key. KeyId pulumi.StringPtrInput // Specifies the intended use of the key. Valid values: `ENCRYPT_DECRYPT` or `SIGN_VERIFY`. // Defaults to `ENCRYPT_DECRYPT`. KeyUsage pulumi.StringPtrInput // Indicates whether the KMS key is a multi-Region (`true`) or regional (`false`) key. Defaults to `false`. MultiRegion pulumi.BoolPtrInput // A valid policy JSON document. Although this is a key policy, not an IAM policy, an `iam.getPolicyDocument`, in the form that designates a principal, can be used. Policy pulumi.StringPtrInput // A map of tags to assign to the object. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapInput }
func (KeyState) ElementType ¶
type LookupAliasArgs ¶
type LookupAliasArgs struct { // The display name of the alias. The name must start with the word "alias" followed by a forward slash (alias/) Name string `pulumi:"name"` }
A collection of arguments for invoking getAlias.
type LookupAliasOutputArgs ¶ added in v4.21.0
type LookupAliasOutputArgs struct { // The display name of the alias. The name must start with the word "alias" followed by a forward slash (alias/) Name pulumi.StringInput `pulumi:"name"` }
A collection of arguments for invoking getAlias.
func (LookupAliasOutputArgs) ElementType ¶ added in v4.21.0
func (LookupAliasOutputArgs) ElementType() reflect.Type
type LookupAliasResult ¶
type LookupAliasResult struct { // The Amazon Resource Name(ARN) of the key alias. Arn string `pulumi:"arn"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` // ARN pointed to by the alias. TargetKeyArn string `pulumi:"targetKeyArn"` // Key identifier pointed to by the alias. TargetKeyId string `pulumi:"targetKeyId"` }
A collection of values returned by getAlias.
func LookupAlias ¶
func LookupAlias(ctx *pulumi.Context, args *LookupAliasArgs, opts ...pulumi.InvokeOption) (*LookupAliasResult, error)
Use this data source to get the ARN of a KMS key alias. By using this data source, you can reference key alias without having to hard code the ARN as input.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := kms.LookupAlias(ctx, &kms.LookupAliasArgs{ Name: "alias/aws/s3", }, nil) if err != nil { return err } return nil }) }
```
type LookupAliasResultOutput ¶ added in v4.21.0
type LookupAliasResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getAlias.
func LookupAliasOutput ¶ added in v4.21.0
func LookupAliasOutput(ctx *pulumi.Context, args LookupAliasOutputArgs, opts ...pulumi.InvokeOption) LookupAliasResultOutput
func (LookupAliasResultOutput) Arn ¶ added in v4.21.0
func (o LookupAliasResultOutput) Arn() pulumi.StringOutput
The Amazon Resource Name(ARN) of the key alias.
func (LookupAliasResultOutput) ElementType ¶ added in v4.21.0
func (LookupAliasResultOutput) ElementType() reflect.Type
func (LookupAliasResultOutput) Id ¶ added in v4.21.0
func (o LookupAliasResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupAliasResultOutput) Name ¶ added in v4.21.0
func (o LookupAliasResultOutput) Name() pulumi.StringOutput
func (LookupAliasResultOutput) TargetKeyArn ¶ added in v4.21.0
func (o LookupAliasResultOutput) TargetKeyArn() pulumi.StringOutput
ARN pointed to by the alias.
func (LookupAliasResultOutput) TargetKeyId ¶ added in v4.21.0
func (o LookupAliasResultOutput) TargetKeyId() pulumi.StringOutput
Key identifier pointed to by the alias.
func (LookupAliasResultOutput) ToLookupAliasResultOutput ¶ added in v4.21.0
func (o LookupAliasResultOutput) ToLookupAliasResultOutput() LookupAliasResultOutput
func (LookupAliasResultOutput) ToLookupAliasResultOutputWithContext ¶ added in v4.21.0
func (o LookupAliasResultOutput) ToLookupAliasResultOutputWithContext(ctx context.Context) LookupAliasResultOutput
type LookupKeyArgs ¶
type LookupKeyArgs struct { // List of grant tokens GrantTokens []string `pulumi:"grantTokens"` // Key identifier which can be one of the following format: // * Key ID. E.g: `1234abcd-12ab-34cd-56ef-1234567890ab` // * Key ARN. E.g.: `arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` // * Alias name. E.g.: `alias/my-key` // * Alias ARN: E.g.: `arn:aws:kms:us-east-1:111122223333:alias/my-key` KeyId string `pulumi:"keyId"` }
A collection of arguments for invoking getKey.
type LookupKeyOutputArgs ¶ added in v4.21.0
type LookupKeyOutputArgs struct { // List of grant tokens GrantTokens pulumi.StringArrayInput `pulumi:"grantTokens"` // Key identifier which can be one of the following format: // * Key ID. E.g: `1234abcd-12ab-34cd-56ef-1234567890ab` // * Key ARN. E.g.: `arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` // * Alias name. E.g.: `alias/my-key` // * Alias ARN: E.g.: `arn:aws:kms:us-east-1:111122223333:alias/my-key` KeyId pulumi.StringInput `pulumi:"keyId"` }
A collection of arguments for invoking getKey.
func (LookupKeyOutputArgs) ElementType ¶ added in v4.21.0
func (LookupKeyOutputArgs) ElementType() reflect.Type
type LookupKeyResult ¶
type LookupKeyResult struct { Arn string `pulumi:"arn"` AwsAccountId string `pulumi:"awsAccountId"` CreationDate string `pulumi:"creationDate"` CustomerMasterKeySpec string `pulumi:"customerMasterKeySpec"` DeletionDate string `pulumi:"deletionDate"` Description string `pulumi:"description"` Enabled bool `pulumi:"enabled"` ExpirationModel string `pulumi:"expirationModel"` GrantTokens []string `pulumi:"grantTokens"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` KeyId string `pulumi:"keyId"` KeyManager string `pulumi:"keyManager"` KeyState string `pulumi:"keyState"` KeyUsage string `pulumi:"keyUsage"` MultiRegion bool `pulumi:"multiRegion"` MultiRegionConfigurations []GetKeyMultiRegionConfiguration `pulumi:"multiRegionConfigurations"` Origin string `pulumi:"origin"` ValidTo string `pulumi:"validTo"` }
A collection of values returned by getKey.
func LookupKey ¶
func LookupKey(ctx *pulumi.Context, args *LookupKeyArgs, opts ...pulumi.InvokeOption) (*LookupKeyResult, error)
Use this data source to get detailed information about the specified KMS Key with flexible key id input. This can be useful to reference key alias without having to hard code the ARN as input.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := kms.LookupKey(ctx, &kms.LookupKeyArgs{ KeyId: "alias/my-key", }, nil) if err != nil { return err } _, err = kms.LookupKey(ctx, &kms.LookupKeyArgs{ KeyId: "1234abcd-12ab-34cd-56ef-1234567890ab", }, nil) if err != nil { return err } _, err = kms.LookupKey(ctx, &kms.LookupKeyArgs{ KeyId: "arn:aws:kms:us-east-1:111122223333:alias/my-key", }, nil) if err != nil { return err } _, err = kms.LookupKey(ctx, &kms.LookupKeyArgs{ KeyId: "arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", }, nil) if err != nil { return err } return nil }) }
```
type LookupKeyResultOutput ¶ added in v4.21.0
type LookupKeyResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getKey.
func LookupKeyOutput ¶ added in v4.21.0
func LookupKeyOutput(ctx *pulumi.Context, args LookupKeyOutputArgs, opts ...pulumi.InvokeOption) LookupKeyResultOutput
func (LookupKeyResultOutput) Arn ¶ added in v4.21.0
func (o LookupKeyResultOutput) Arn() pulumi.StringOutput
func (LookupKeyResultOutput) AwsAccountId ¶ added in v4.21.0
func (o LookupKeyResultOutput) AwsAccountId() pulumi.StringOutput
func (LookupKeyResultOutput) CreationDate ¶ added in v4.21.0
func (o LookupKeyResultOutput) CreationDate() pulumi.StringOutput
func (LookupKeyResultOutput) CustomerMasterKeySpec ¶ added in v4.21.0
func (o LookupKeyResultOutput) CustomerMasterKeySpec() pulumi.StringOutput
func (LookupKeyResultOutput) DeletionDate ¶ added in v4.21.0
func (o LookupKeyResultOutput) DeletionDate() pulumi.StringOutput
func (LookupKeyResultOutput) Description ¶ added in v4.21.0
func (o LookupKeyResultOutput) Description() pulumi.StringOutput
func (LookupKeyResultOutput) ElementType ¶ added in v4.21.0
func (LookupKeyResultOutput) ElementType() reflect.Type
func (LookupKeyResultOutput) Enabled ¶ added in v4.21.0
func (o LookupKeyResultOutput) Enabled() pulumi.BoolOutput
func (LookupKeyResultOutput) ExpirationModel ¶ added in v4.21.0
func (o LookupKeyResultOutput) ExpirationModel() pulumi.StringOutput
func (LookupKeyResultOutput) GrantTokens ¶ added in v4.21.0
func (o LookupKeyResultOutput) GrantTokens() pulumi.StringArrayOutput
func (LookupKeyResultOutput) Id ¶ added in v4.21.0
func (o LookupKeyResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupKeyResultOutput) KeyId ¶ added in v4.21.0
func (o LookupKeyResultOutput) KeyId() pulumi.StringOutput
func (LookupKeyResultOutput) KeyManager ¶ added in v4.21.0
func (o LookupKeyResultOutput) KeyManager() pulumi.StringOutput
func (LookupKeyResultOutput) KeyState ¶ added in v4.21.0
func (o LookupKeyResultOutput) KeyState() pulumi.StringOutput
func (LookupKeyResultOutput) KeyUsage ¶ added in v4.21.0
func (o LookupKeyResultOutput) KeyUsage() pulumi.StringOutput
func (LookupKeyResultOutput) MultiRegion ¶ added in v4.27.0
func (o LookupKeyResultOutput) MultiRegion() pulumi.BoolOutput
func (LookupKeyResultOutput) MultiRegionConfigurations ¶ added in v4.27.0
func (o LookupKeyResultOutput) MultiRegionConfigurations() GetKeyMultiRegionConfigurationArrayOutput
func (LookupKeyResultOutput) Origin ¶ added in v4.21.0
func (o LookupKeyResultOutput) Origin() pulumi.StringOutput
func (LookupKeyResultOutput) ToLookupKeyResultOutput ¶ added in v4.21.0
func (o LookupKeyResultOutput) ToLookupKeyResultOutput() LookupKeyResultOutput
func (LookupKeyResultOutput) ToLookupKeyResultOutputWithContext ¶ added in v4.21.0
func (o LookupKeyResultOutput) ToLookupKeyResultOutputWithContext(ctx context.Context) LookupKeyResultOutput
func (LookupKeyResultOutput) ValidTo ¶ added in v4.21.0
func (o LookupKeyResultOutput) ValidTo() pulumi.StringOutput
type ReplicaExternalKey ¶ added in v4.27.0
type ReplicaExternalKey struct { pulumi.CustomResourceState // The Amazon Resource Name (ARN) of the replica key. The key ARNs of related multi-Region keys differ only in the Region value. Arn pulumi.StringOutput `pulumi:"arn"` // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrOutput `pulumi:"bypassPolicyLockoutSafetyCheck"` // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. DeletionWindowInDays pulumi.IntPtrOutput `pulumi:"deletionWindowInDays"` // A description of the KMS key. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. Keys pending import can only be `false`. Imported keys default to `true` unless expired. Enabled pulumi.BoolOutput `pulumi:"enabled"` // Whether the key material expires. Empty when pending key material import, otherwise `KEY_MATERIAL_EXPIRES` or `KEY_MATERIAL_DOES_NOT_EXPIRE`. ExpirationModel pulumi.StringOutput `pulumi:"expirationModel"` // The key ID of the replica key. Related multi-Region keys have the same key ID. KeyId pulumi.StringOutput `pulumi:"keyId"` // Base64 encoded 256-bit symmetric encryption key material to import. The KMS key is permanently associated with this key material. The same key material can be [reimported](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material), but you cannot import different key material. KeyMaterialBase64 pulumi.StringPtrOutput `pulumi:"keyMaterialBase64"` // The state of the replica key. KeyState pulumi.StringOutput `pulumi:"keyState"` // The [cryptographic operations](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) for which you can use the KMS key. This is a shared property of multi-Region keys. KeyUsage pulumi.StringOutput `pulumi:"keyUsage"` Policy pulumi.StringOutput `pulumi:"policy"` // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. PrimaryKeyArn pulumi.StringOutput `pulumi:"primaryKeyArn"` // A map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the key becomes unusable. If not specified, key material does not expire. Valid values: [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) (`YYYY-MM-DDTHH:MM:SSZ`) ValidTo pulumi.StringPtrOutput `pulumi:"validTo"` }
Manages a KMS multi-Region replica key that uses external key material. See the [AWS KMS Developer Guide](https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-import.html) for more information on importing key material into multi-Region keys.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/providers" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := providers.Newaws(ctx, "primary", &providers.awsArgs{ Region: "us-east-1", }) if err != nil { return err } _, err = kms.NewExternalKey(ctx, "primaryExternalKey", &kms.ExternalKeyArgs{ Description: pulumi.String("Multi-Region primary key"), DeletionWindowInDays: pulumi.Int(30), MultiRegion: pulumi.Bool(true), Enabled: pulumi.Bool(true), KeyMaterialBase64: pulumi.String("..."), }, pulumi.Provider(aws.Primary)) if err != nil { return err } _, err = kms.NewReplicaExternalKey(ctx, "replica", &kms.ReplicaExternalKeyArgs{ Description: pulumi.String("Multi-Region replica key"), DeletionWindowInDays: pulumi.Int(7), PrimaryKeyArn: pulumi.Any(aws_kms_external.Primary.Arn), KeyMaterialBase64: pulumi.String("..."), }) if err != nil { return err } return nil }) }
```
## Import
KMS multi-Region replica keys can be imported using the `id`, e.g.,
```sh
$ pulumi import aws:kms/replicaExternalKey:ReplicaExternalKey example 1234abcd-12ab-34cd-56ef-1234567890ab
```
func GetReplicaExternalKey ¶ added in v4.27.0
func GetReplicaExternalKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ReplicaExternalKeyState, opts ...pulumi.ResourceOption) (*ReplicaExternalKey, error)
GetReplicaExternalKey gets an existing ReplicaExternalKey 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 NewReplicaExternalKey ¶ added in v4.27.0
func NewReplicaExternalKey(ctx *pulumi.Context, name string, args *ReplicaExternalKeyArgs, opts ...pulumi.ResourceOption) (*ReplicaExternalKey, error)
NewReplicaExternalKey registers a new resource with the given unique name, arguments, and options.
func (*ReplicaExternalKey) ElementType ¶ added in v4.27.0
func (*ReplicaExternalKey) ElementType() reflect.Type
func (*ReplicaExternalKey) ToReplicaExternalKeyOutput ¶ added in v4.27.0
func (i *ReplicaExternalKey) ToReplicaExternalKeyOutput() ReplicaExternalKeyOutput
func (*ReplicaExternalKey) ToReplicaExternalKeyOutputWithContext ¶ added in v4.27.0
func (i *ReplicaExternalKey) ToReplicaExternalKeyOutputWithContext(ctx context.Context) ReplicaExternalKeyOutput
type ReplicaExternalKeyArgs ¶ added in v4.27.0
type ReplicaExternalKeyArgs struct { // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrInput // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. DeletionWindowInDays pulumi.IntPtrInput // A description of the KMS key. Description pulumi.StringPtrInput // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. Keys pending import can only be `false`. Imported keys default to `true` unless expired. Enabled pulumi.BoolPtrInput // Base64 encoded 256-bit symmetric encryption key material to import. The KMS key is permanently associated with this key material. The same key material can be [reimported](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material), but you cannot import different key material. KeyMaterialBase64 pulumi.StringPtrInput Policy pulumi.StringPtrInput // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. PrimaryKeyArn pulumi.StringInput // A map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the key becomes unusable. If not specified, key material does not expire. Valid values: [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) (`YYYY-MM-DDTHH:MM:SSZ`) ValidTo pulumi.StringPtrInput }
The set of arguments for constructing a ReplicaExternalKey resource.
func (ReplicaExternalKeyArgs) ElementType ¶ added in v4.27.0
func (ReplicaExternalKeyArgs) ElementType() reflect.Type
type ReplicaExternalKeyArray ¶ added in v4.27.0
type ReplicaExternalKeyArray []ReplicaExternalKeyInput
func (ReplicaExternalKeyArray) ElementType ¶ added in v4.27.0
func (ReplicaExternalKeyArray) ElementType() reflect.Type
func (ReplicaExternalKeyArray) ToReplicaExternalKeyArrayOutput ¶ added in v4.27.0
func (i ReplicaExternalKeyArray) ToReplicaExternalKeyArrayOutput() ReplicaExternalKeyArrayOutput
func (ReplicaExternalKeyArray) ToReplicaExternalKeyArrayOutputWithContext ¶ added in v4.27.0
func (i ReplicaExternalKeyArray) ToReplicaExternalKeyArrayOutputWithContext(ctx context.Context) ReplicaExternalKeyArrayOutput
type ReplicaExternalKeyArrayInput ¶ added in v4.27.0
type ReplicaExternalKeyArrayInput interface { pulumi.Input ToReplicaExternalKeyArrayOutput() ReplicaExternalKeyArrayOutput ToReplicaExternalKeyArrayOutputWithContext(context.Context) ReplicaExternalKeyArrayOutput }
ReplicaExternalKeyArrayInput is an input type that accepts ReplicaExternalKeyArray and ReplicaExternalKeyArrayOutput values. You can construct a concrete instance of `ReplicaExternalKeyArrayInput` via:
ReplicaExternalKeyArray{ ReplicaExternalKeyArgs{...} }
type ReplicaExternalKeyArrayOutput ¶ added in v4.27.0
type ReplicaExternalKeyArrayOutput struct{ *pulumi.OutputState }
func (ReplicaExternalKeyArrayOutput) ElementType ¶ added in v4.27.0
func (ReplicaExternalKeyArrayOutput) ElementType() reflect.Type
func (ReplicaExternalKeyArrayOutput) Index ¶ added in v4.27.0
func (o ReplicaExternalKeyArrayOutput) Index(i pulumi.IntInput) ReplicaExternalKeyOutput
func (ReplicaExternalKeyArrayOutput) ToReplicaExternalKeyArrayOutput ¶ added in v4.27.0
func (o ReplicaExternalKeyArrayOutput) ToReplicaExternalKeyArrayOutput() ReplicaExternalKeyArrayOutput
func (ReplicaExternalKeyArrayOutput) ToReplicaExternalKeyArrayOutputWithContext ¶ added in v4.27.0
func (o ReplicaExternalKeyArrayOutput) ToReplicaExternalKeyArrayOutputWithContext(ctx context.Context) ReplicaExternalKeyArrayOutput
type ReplicaExternalKeyInput ¶ added in v4.27.0
type ReplicaExternalKeyInput interface { pulumi.Input ToReplicaExternalKeyOutput() ReplicaExternalKeyOutput ToReplicaExternalKeyOutputWithContext(ctx context.Context) ReplicaExternalKeyOutput }
type ReplicaExternalKeyMap ¶ added in v4.27.0
type ReplicaExternalKeyMap map[string]ReplicaExternalKeyInput
func (ReplicaExternalKeyMap) ElementType ¶ added in v4.27.0
func (ReplicaExternalKeyMap) ElementType() reflect.Type
func (ReplicaExternalKeyMap) ToReplicaExternalKeyMapOutput ¶ added in v4.27.0
func (i ReplicaExternalKeyMap) ToReplicaExternalKeyMapOutput() ReplicaExternalKeyMapOutput
func (ReplicaExternalKeyMap) ToReplicaExternalKeyMapOutputWithContext ¶ added in v4.27.0
func (i ReplicaExternalKeyMap) ToReplicaExternalKeyMapOutputWithContext(ctx context.Context) ReplicaExternalKeyMapOutput
type ReplicaExternalKeyMapInput ¶ added in v4.27.0
type ReplicaExternalKeyMapInput interface { pulumi.Input ToReplicaExternalKeyMapOutput() ReplicaExternalKeyMapOutput ToReplicaExternalKeyMapOutputWithContext(context.Context) ReplicaExternalKeyMapOutput }
ReplicaExternalKeyMapInput is an input type that accepts ReplicaExternalKeyMap and ReplicaExternalKeyMapOutput values. You can construct a concrete instance of `ReplicaExternalKeyMapInput` via:
ReplicaExternalKeyMap{ "key": ReplicaExternalKeyArgs{...} }
type ReplicaExternalKeyMapOutput ¶ added in v4.27.0
type ReplicaExternalKeyMapOutput struct{ *pulumi.OutputState }
func (ReplicaExternalKeyMapOutput) ElementType ¶ added in v4.27.0
func (ReplicaExternalKeyMapOutput) ElementType() reflect.Type
func (ReplicaExternalKeyMapOutput) MapIndex ¶ added in v4.27.0
func (o ReplicaExternalKeyMapOutput) MapIndex(k pulumi.StringInput) ReplicaExternalKeyOutput
func (ReplicaExternalKeyMapOutput) ToReplicaExternalKeyMapOutput ¶ added in v4.27.0
func (o ReplicaExternalKeyMapOutput) ToReplicaExternalKeyMapOutput() ReplicaExternalKeyMapOutput
func (ReplicaExternalKeyMapOutput) ToReplicaExternalKeyMapOutputWithContext ¶ added in v4.27.0
func (o ReplicaExternalKeyMapOutput) ToReplicaExternalKeyMapOutputWithContext(ctx context.Context) ReplicaExternalKeyMapOutput
type ReplicaExternalKeyOutput ¶ added in v4.27.0
type ReplicaExternalKeyOutput struct{ *pulumi.OutputState }
func (ReplicaExternalKeyOutput) ElementType ¶ added in v4.27.0
func (ReplicaExternalKeyOutput) ElementType() reflect.Type
func (ReplicaExternalKeyOutput) ToReplicaExternalKeyOutput ¶ added in v4.27.0
func (o ReplicaExternalKeyOutput) ToReplicaExternalKeyOutput() ReplicaExternalKeyOutput
func (ReplicaExternalKeyOutput) ToReplicaExternalKeyOutputWithContext ¶ added in v4.27.0
func (o ReplicaExternalKeyOutput) ToReplicaExternalKeyOutputWithContext(ctx context.Context) ReplicaExternalKeyOutput
type ReplicaExternalKeyState ¶ added in v4.27.0
type ReplicaExternalKeyState struct { // The Amazon Resource Name (ARN) of the replica key. The key ARNs of related multi-Region keys differ only in the Region value. Arn pulumi.StringPtrInput // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrInput // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. DeletionWindowInDays pulumi.IntPtrInput // A description of the KMS key. Description pulumi.StringPtrInput // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. Keys pending import can only be `false`. Imported keys default to `true` unless expired. Enabled pulumi.BoolPtrInput // Whether the key material expires. Empty when pending key material import, otherwise `KEY_MATERIAL_EXPIRES` or `KEY_MATERIAL_DOES_NOT_EXPIRE`. ExpirationModel pulumi.StringPtrInput // The key ID of the replica key. Related multi-Region keys have the same key ID. KeyId pulumi.StringPtrInput // Base64 encoded 256-bit symmetric encryption key material to import. The KMS key is permanently associated with this key material. The same key material can be [reimported](https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material), but you cannot import different key material. KeyMaterialBase64 pulumi.StringPtrInput // The state of the replica key. KeyState pulumi.StringPtrInput // The [cryptographic operations](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) for which you can use the KMS key. This is a shared property of multi-Region keys. KeyUsage pulumi.StringPtrInput Policy pulumi.StringPtrInput // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. PrimaryKeyArn pulumi.StringPtrInput // A map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapInput // Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the key becomes unusable. If not specified, key material does not expire. Valid values: [RFC3339 time string](https://tools.ietf.org/html/rfc3339#section-5.8) (`YYYY-MM-DDTHH:MM:SSZ`) ValidTo pulumi.StringPtrInput }
func (ReplicaExternalKeyState) ElementType ¶ added in v4.27.0
func (ReplicaExternalKeyState) ElementType() reflect.Type
type ReplicaKey ¶ added in v4.27.0
type ReplicaKey struct { pulumi.CustomResourceState // The Amazon Resource Name (ARN) of the replica key. The key ARNs of related multi-Region keys differ only in the Region value. Arn pulumi.StringOutput `pulumi:"arn"` // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrOutput `pulumi:"bypassPolicyLockoutSafetyCheck"` // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. DeletionWindowInDays pulumi.IntPtrOutput `pulumi:"deletionWindowInDays"` // A description of the KMS key. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The key ID of the replica key. Related multi-Region keys have the same key ID. KeyId pulumi.StringOutput `pulumi:"keyId"` // A Boolean value that specifies whether key rotation is enabled. This is a shared property of multi-Region keys. KeyRotationEnabled pulumi.BoolOutput `pulumi:"keyRotationEnabled"` // The type of key material in the KMS key. This is a shared property of multi-Region keys. KeySpec pulumi.StringOutput `pulumi:"keySpec"` // The [cryptographic operations](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) for which you can use the KMS key. This is a shared property of multi-Region keys. KeyUsage pulumi.StringOutput `pulumi:"keyUsage"` Policy pulumi.StringOutput `pulumi:"policy"` // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. PrimaryKeyArn pulumi.StringOutput `pulumi:"primaryKeyArn"` // A map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` }
Manages a KMS multi-Region replica key.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/providers" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := providers.Newaws(ctx, "primary", &providers.awsArgs{ Region: "us-east-1", }) if err != nil { return err } primaryKey, err := kms.NewKey(ctx, "primaryKey", &kms.KeyArgs{ Description: pulumi.String("Multi-Region primary key"), DeletionWindowInDays: pulumi.Int(30), MultiRegion: pulumi.Bool(true), }, pulumi.Provider(aws.Primary)) if err != nil { return err } _, err = kms.NewReplicaKey(ctx, "replica", &kms.ReplicaKeyArgs{ Description: pulumi.String("Multi-Region replica key"), DeletionWindowInDays: pulumi.Int(7), PrimaryKeyArn: primaryKey.Arn, }) if err != nil { return err } return nil }) }
```
## Import
KMS multi-Region replica keys can be imported using the `id`, e.g.,
```sh
$ pulumi import aws:kms/replicaKey:ReplicaKey example 1234abcd-12ab-34cd-56ef-1234567890ab
```
func GetReplicaKey ¶ added in v4.27.0
func GetReplicaKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ReplicaKeyState, opts ...pulumi.ResourceOption) (*ReplicaKey, error)
GetReplicaKey gets an existing ReplicaKey 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 NewReplicaKey ¶ added in v4.27.0
func NewReplicaKey(ctx *pulumi.Context, name string, args *ReplicaKeyArgs, opts ...pulumi.ResourceOption) (*ReplicaKey, error)
NewReplicaKey registers a new resource with the given unique name, arguments, and options.
func (*ReplicaKey) ElementType ¶ added in v4.27.0
func (*ReplicaKey) ElementType() reflect.Type
func (*ReplicaKey) ToReplicaKeyOutput ¶ added in v4.27.0
func (i *ReplicaKey) ToReplicaKeyOutput() ReplicaKeyOutput
func (*ReplicaKey) ToReplicaKeyOutputWithContext ¶ added in v4.27.0
func (i *ReplicaKey) ToReplicaKeyOutputWithContext(ctx context.Context) ReplicaKeyOutput
type ReplicaKeyArgs ¶ added in v4.27.0
type ReplicaKeyArgs struct { // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrInput // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. DeletionWindowInDays pulumi.IntPtrInput // A description of the KMS key. Description pulumi.StringPtrInput // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is `true`. Enabled pulumi.BoolPtrInput Policy pulumi.StringPtrInput // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. PrimaryKeyArn pulumi.StringInput // A map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput }
The set of arguments for constructing a ReplicaKey resource.
func (ReplicaKeyArgs) ElementType ¶ added in v4.27.0
func (ReplicaKeyArgs) ElementType() reflect.Type
type ReplicaKeyArray ¶ added in v4.27.0
type ReplicaKeyArray []ReplicaKeyInput
func (ReplicaKeyArray) ElementType ¶ added in v4.27.0
func (ReplicaKeyArray) ElementType() reflect.Type
func (ReplicaKeyArray) ToReplicaKeyArrayOutput ¶ added in v4.27.0
func (i ReplicaKeyArray) ToReplicaKeyArrayOutput() ReplicaKeyArrayOutput
func (ReplicaKeyArray) ToReplicaKeyArrayOutputWithContext ¶ added in v4.27.0
func (i ReplicaKeyArray) ToReplicaKeyArrayOutputWithContext(ctx context.Context) ReplicaKeyArrayOutput
type ReplicaKeyArrayInput ¶ added in v4.27.0
type ReplicaKeyArrayInput interface { pulumi.Input ToReplicaKeyArrayOutput() ReplicaKeyArrayOutput ToReplicaKeyArrayOutputWithContext(context.Context) ReplicaKeyArrayOutput }
ReplicaKeyArrayInput is an input type that accepts ReplicaKeyArray and ReplicaKeyArrayOutput values. You can construct a concrete instance of `ReplicaKeyArrayInput` via:
ReplicaKeyArray{ ReplicaKeyArgs{...} }
type ReplicaKeyArrayOutput ¶ added in v4.27.0
type ReplicaKeyArrayOutput struct{ *pulumi.OutputState }
func (ReplicaKeyArrayOutput) ElementType ¶ added in v4.27.0
func (ReplicaKeyArrayOutput) ElementType() reflect.Type
func (ReplicaKeyArrayOutput) Index ¶ added in v4.27.0
func (o ReplicaKeyArrayOutput) Index(i pulumi.IntInput) ReplicaKeyOutput
func (ReplicaKeyArrayOutput) ToReplicaKeyArrayOutput ¶ added in v4.27.0
func (o ReplicaKeyArrayOutput) ToReplicaKeyArrayOutput() ReplicaKeyArrayOutput
func (ReplicaKeyArrayOutput) ToReplicaKeyArrayOutputWithContext ¶ added in v4.27.0
func (o ReplicaKeyArrayOutput) ToReplicaKeyArrayOutputWithContext(ctx context.Context) ReplicaKeyArrayOutput
type ReplicaKeyInput ¶ added in v4.27.0
type ReplicaKeyInput interface { pulumi.Input ToReplicaKeyOutput() ReplicaKeyOutput ToReplicaKeyOutputWithContext(ctx context.Context) ReplicaKeyOutput }
type ReplicaKeyMap ¶ added in v4.27.0
type ReplicaKeyMap map[string]ReplicaKeyInput
func (ReplicaKeyMap) ElementType ¶ added in v4.27.0
func (ReplicaKeyMap) ElementType() reflect.Type
func (ReplicaKeyMap) ToReplicaKeyMapOutput ¶ added in v4.27.0
func (i ReplicaKeyMap) ToReplicaKeyMapOutput() ReplicaKeyMapOutput
func (ReplicaKeyMap) ToReplicaKeyMapOutputWithContext ¶ added in v4.27.0
func (i ReplicaKeyMap) ToReplicaKeyMapOutputWithContext(ctx context.Context) ReplicaKeyMapOutput
type ReplicaKeyMapInput ¶ added in v4.27.0
type ReplicaKeyMapInput interface { pulumi.Input ToReplicaKeyMapOutput() ReplicaKeyMapOutput ToReplicaKeyMapOutputWithContext(context.Context) ReplicaKeyMapOutput }
ReplicaKeyMapInput is an input type that accepts ReplicaKeyMap and ReplicaKeyMapOutput values. You can construct a concrete instance of `ReplicaKeyMapInput` via:
ReplicaKeyMap{ "key": ReplicaKeyArgs{...} }
type ReplicaKeyMapOutput ¶ added in v4.27.0
type ReplicaKeyMapOutput struct{ *pulumi.OutputState }
func (ReplicaKeyMapOutput) ElementType ¶ added in v4.27.0
func (ReplicaKeyMapOutput) ElementType() reflect.Type
func (ReplicaKeyMapOutput) MapIndex ¶ added in v4.27.0
func (o ReplicaKeyMapOutput) MapIndex(k pulumi.StringInput) ReplicaKeyOutput
func (ReplicaKeyMapOutput) ToReplicaKeyMapOutput ¶ added in v4.27.0
func (o ReplicaKeyMapOutput) ToReplicaKeyMapOutput() ReplicaKeyMapOutput
func (ReplicaKeyMapOutput) ToReplicaKeyMapOutputWithContext ¶ added in v4.27.0
func (o ReplicaKeyMapOutput) ToReplicaKeyMapOutputWithContext(ctx context.Context) ReplicaKeyMapOutput
type ReplicaKeyOutput ¶ added in v4.27.0
type ReplicaKeyOutput struct{ *pulumi.OutputState }
func (ReplicaKeyOutput) ElementType ¶ added in v4.27.0
func (ReplicaKeyOutput) ElementType() reflect.Type
func (ReplicaKeyOutput) ToReplicaKeyOutput ¶ added in v4.27.0
func (o ReplicaKeyOutput) ToReplicaKeyOutput() ReplicaKeyOutput
func (ReplicaKeyOutput) ToReplicaKeyOutputWithContext ¶ added in v4.27.0
func (o ReplicaKeyOutput) ToReplicaKeyOutputWithContext(ctx context.Context) ReplicaKeyOutput
type ReplicaKeyState ¶ added in v4.27.0
type ReplicaKeyState struct { // The Amazon Resource Name (ARN) of the replica key. The key ARNs of related multi-Region keys differ only in the Region value. Arn pulumi.StringPtrInput // A flag to indicate whether to bypass the key policy lockout safety check. // Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. // For more information, refer to the scenario in the [Default Key Policy](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) section in the _AWS Key Management Service Developer Guide_. // The default value is `false`. BypassPolicyLockoutSafetyCheck pulumi.BoolPtrInput // The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the KMS key. // If you specify a value, it must be between `7` and `30`, inclusive. If you do not specify a value, it defaults to `30`. DeletionWindowInDays pulumi.IntPtrInput // A description of the KMS key. Description pulumi.StringPtrInput // Specifies whether the replica key is enabled. Disabled KMS keys cannot be used in cryptographic operations. The default value is `true`. Enabled pulumi.BoolPtrInput // The key ID of the replica key. Related multi-Region keys have the same key ID. KeyId pulumi.StringPtrInput // A Boolean value that specifies whether key rotation is enabled. This is a shared property of multi-Region keys. KeyRotationEnabled pulumi.BoolPtrInput // The type of key material in the KMS key. This is a shared property of multi-Region keys. KeySpec pulumi.StringPtrInput // The [cryptographic operations](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) for which you can use the KMS key. This is a shared property of multi-Region keys. KeyUsage pulumi.StringPtrInput Policy pulumi.StringPtrInput // The ARN of the multi-Region primary key to replicate. The primary key must be in a different AWS Region of the same AWS Partition. You can create only one replica of a given primary key in each AWS Region. PrimaryKeyArn pulumi.StringPtrInput // A map of tags to assign to the replica key. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapInput }
func (ReplicaKeyState) ElementType ¶ added in v4.27.0
func (ReplicaKeyState) ElementType() reflect.Type