kms

package
v0.0.0-...-9153d0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalKey

type ExternalKey struct {
	pulumi.CustomResourceState

	// Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be
	// a letter or number.
	Alias pulumi.StringOutput `pulumi:"alias"`
	// Description of CMK. The maximum is 1024 bytes.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsArchived pulumi.BoolPtrOutput `pulumi:"isArchived"`
	// Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsEnabled pulumi.BoolPtrOutput `pulumi:"isEnabled"`
	// The base64-encoded key material encrypted with the public_key. For regions using the national secret version, the length
	// of the imported key material is required to be 128 bits, and for regions using the FIPS version, the length of the
	// imported key material is required to be 256 bits.
	KeyMaterialBase64 pulumi.StringPtrOutput `pulumi:"keyMaterialBase64"`
	// State of CMK.
	KeyState pulumi.StringOutput `pulumi:"keyState"`
	// Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days.
	// Defaults to 7 days.
	PendingDeleteWindowInDays pulumi.IntPtrOutput `pulumi:"pendingDeleteWindowInDays"`
	// Tags of CMK.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// This value means the effective timestamp of the key material, 0 means it does not expire. Need to be greater than the
	// current timestamp, the maximum support is 2147443200.
	ValidTo pulumi.IntPtrOutput `pulumi:"validTo"`
	// The algorithm for encrypting key material. Available values include `RSAES_PKCS1_V1_5`, `RSAES_OAEP_SHA_1` and
	// `RSAES_OAEP_SHA_256`. Default value is `RSAES_PKCS1_V1_5`.
	WrappingAlgorithm pulumi.StringPtrOutput `pulumi:"wrappingAlgorithm"`
}

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 {
	// Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be
	// a letter or number.
	Alias pulumi.StringInput
	// Description of CMK. The maximum is 1024 bytes.
	Description pulumi.StringPtrInput
	// Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsArchived pulumi.BoolPtrInput
	// Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsEnabled pulumi.BoolPtrInput
	// The base64-encoded key material encrypted with the public_key. For regions using the national secret version, the length
	// of the imported key material is required to be 128 bits, and for regions using the FIPS version, the length of the
	// imported key material is required to be 256 bits.
	KeyMaterialBase64 pulumi.StringPtrInput
	// Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days.
	// Defaults to 7 days.
	PendingDeleteWindowInDays pulumi.IntPtrInput
	// Tags of CMK.
	Tags pulumi.MapInput
	// This value means the effective timestamp of the key material, 0 means it does not expire. Need to be greater than the
	// current timestamp, the maximum support is 2147443200.
	ValidTo pulumi.IntPtrInput
	// The algorithm for encrypting key material. Available values include `RSAES_PKCS1_V1_5`, `RSAES_OAEP_SHA_1` and
	// `RSAES_OAEP_SHA_256`. Default value is `RSAES_PKCS1_V1_5`.
	WrappingAlgorithm 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 (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 (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) Alias

Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number.

func (ExternalKeyOutput) Description

func (o ExternalKeyOutput) Description() pulumi.StringPtrOutput

Description of CMK. The maximum is 1024 bytes.

func (ExternalKeyOutput) ElementType

func (ExternalKeyOutput) ElementType() reflect.Type

func (ExternalKeyOutput) IsArchived

func (o ExternalKeyOutput) IsArchived() pulumi.BoolPtrOutput

Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state is `Enabled`, `Disabled`, `Archived`.

func (ExternalKeyOutput) IsEnabled

func (o ExternalKeyOutput) IsEnabled() pulumi.BoolPtrOutput

Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state is `Enabled`, `Disabled`, `Archived`.

func (ExternalKeyOutput) KeyMaterialBase64

func (o ExternalKeyOutput) KeyMaterialBase64() pulumi.StringPtrOutput

The base64-encoded key material encrypted with the public_key. For regions using the national secret version, the length of the imported key material is required to be 128 bits, and for regions using the FIPS version, the length of the imported key material is required to be 256 bits.

func (ExternalKeyOutput) KeyState

func (o ExternalKeyOutput) KeyState() pulumi.StringOutput

State of CMK.

func (ExternalKeyOutput) PendingDeleteWindowInDays

func (o ExternalKeyOutput) PendingDeleteWindowInDays() pulumi.IntPtrOutput

Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days. Defaults to 7 days.

func (ExternalKeyOutput) Tags

Tags of CMK.

func (ExternalKeyOutput) ToExternalKeyOutput

func (o ExternalKeyOutput) ToExternalKeyOutput() ExternalKeyOutput

func (ExternalKeyOutput) ToExternalKeyOutputWithContext

func (o ExternalKeyOutput) ToExternalKeyOutputWithContext(ctx context.Context) ExternalKeyOutput

func (ExternalKeyOutput) ValidTo

This value means the effective timestamp of the key material, 0 means it does not expire. Need to be greater than the current timestamp, the maximum support is 2147443200.

func (ExternalKeyOutput) WrappingAlgorithm

func (o ExternalKeyOutput) WrappingAlgorithm() pulumi.StringPtrOutput

The algorithm for encrypting key material. Available values include `RSAES_PKCS1_V1_5`, `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256`. Default value is `RSAES_PKCS1_V1_5`.

type ExternalKeyState

type ExternalKeyState struct {
	// Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be
	// a letter or number.
	Alias pulumi.StringPtrInput
	// Description of CMK. The maximum is 1024 bytes.
	Description pulumi.StringPtrInput
	// Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsArchived pulumi.BoolPtrInput
	// Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsEnabled pulumi.BoolPtrInput
	// The base64-encoded key material encrypted with the public_key. For regions using the national secret version, the length
	// of the imported key material is required to be 128 bits, and for regions using the FIPS version, the length of the
	// imported key material is required to be 256 bits.
	KeyMaterialBase64 pulumi.StringPtrInput
	// State of CMK.
	KeyState pulumi.StringPtrInput
	// Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days.
	// Defaults to 7 days.
	PendingDeleteWindowInDays pulumi.IntPtrInput
	// Tags of CMK.
	Tags pulumi.MapInput
	// This value means the effective timestamp of the key material, 0 means it does not expire. Need to be greater than the
	// current timestamp, the maximum support is 2147443200.
	ValidTo pulumi.IntPtrInput
	// The algorithm for encrypting key material. Available values include `RSAES_PKCS1_V1_5`, `RSAES_OAEP_SHA_1` and
	// `RSAES_OAEP_SHA_256`. Default value is `RSAES_PKCS1_V1_5`.
	WrappingAlgorithm pulumi.StringPtrInput
}

func (ExternalKeyState) ElementType

func (ExternalKeyState) ElementType() reflect.Type

type GetGetParametersForImportArgs

type GetGetParametersForImportArgs struct {
	KeyId             string  `pulumi:"keyId"`
	ResultOutputFile  *string `pulumi:"resultOutputFile"`
	WrappingAlgorithm string  `pulumi:"wrappingAlgorithm"`
	WrappingKeySpec   string  `pulumi:"wrappingKeySpec"`
}

A collection of arguments for invoking getGetParametersForImport.

type GetGetParametersForImportOutputArgs

type GetGetParametersForImportOutputArgs struct {
	KeyId             pulumi.StringInput    `pulumi:"keyId"`
	ResultOutputFile  pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	WrappingAlgorithm pulumi.StringInput    `pulumi:"wrappingAlgorithm"`
	WrappingKeySpec   pulumi.StringInput    `pulumi:"wrappingKeySpec"`
}

A collection of arguments for invoking getGetParametersForImport.

func (GetGetParametersForImportOutputArgs) ElementType

type GetGetParametersForImportResult

type GetGetParametersForImportResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id                string  `pulumi:"id"`
	ImportToken       string  `pulumi:"importToken"`
	KeyId             string  `pulumi:"keyId"`
	ParametersValidTo int     `pulumi:"parametersValidTo"`
	PublicKey         string  `pulumi:"publicKey"`
	ResultOutputFile  *string `pulumi:"resultOutputFile"`
	WrappingAlgorithm string  `pulumi:"wrappingAlgorithm"`
	WrappingKeySpec   string  `pulumi:"wrappingKeySpec"`
}

A collection of values returned by getGetParametersForImport.

type GetGetParametersForImportResultOutput

type GetGetParametersForImportResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGetParametersForImport.

func (GetGetParametersForImportResultOutput) ElementType

func (GetGetParametersForImportResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetGetParametersForImportResultOutput) ImportToken

func (GetGetParametersForImportResultOutput) KeyId

func (GetGetParametersForImportResultOutput) ParametersValidTo

func (GetGetParametersForImportResultOutput) PublicKey

func (GetGetParametersForImportResultOutput) ResultOutputFile

func (GetGetParametersForImportResultOutput) ToGetGetParametersForImportResultOutput

func (o GetGetParametersForImportResultOutput) ToGetGetParametersForImportResultOutput() GetGetParametersForImportResultOutput

func (GetGetParametersForImportResultOutput) ToGetGetParametersForImportResultOutputWithContext

func (o GetGetParametersForImportResultOutput) ToGetGetParametersForImportResultOutputWithContext(ctx context.Context) GetGetParametersForImportResultOutput

func (GetGetParametersForImportResultOutput) WrappingAlgorithm

func (GetGetParametersForImportResultOutput) WrappingKeySpec

type GetKeysArgs

type GetKeysArgs struct {
	KeyState         *int                   `pulumi:"keyState"`
	KeyUsage         *string                `pulumi:"keyUsage"`
	OrderType        *int                   `pulumi:"orderType"`
	Origin           *string                `pulumi:"origin"`
	ResultOutputFile *string                `pulumi:"resultOutputFile"`
	Role             *int                   `pulumi:"role"`
	SearchKeyAlias   *string                `pulumi:"searchKeyAlias"`
	Tags             map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getKeys.

type GetKeysKeyList

type GetKeysKeyList struct {
	Alias              string `pulumi:"alias"`
	CreateTime         int    `pulumi:"createTime"`
	CreatorUin         int    `pulumi:"creatorUin"`
	DeletionDate       int    `pulumi:"deletionDate"`
	Description        string `pulumi:"description"`
	KeyId              string `pulumi:"keyId"`
	KeyRotationEnabled bool   `pulumi:"keyRotationEnabled"`
	KeyState           string `pulumi:"keyState"`
	KeyUsage           string `pulumi:"keyUsage"`
	NextRotateTime     int    `pulumi:"nextRotateTime"`
	Origin             string `pulumi:"origin"`
	Owner              string `pulumi:"owner"`
	ValidTo            int    `pulumi:"validTo"`
}

type GetKeysKeyListArgs

type GetKeysKeyListArgs struct {
	Alias              pulumi.StringInput `pulumi:"alias"`
	CreateTime         pulumi.IntInput    `pulumi:"createTime"`
	CreatorUin         pulumi.IntInput    `pulumi:"creatorUin"`
	DeletionDate       pulumi.IntInput    `pulumi:"deletionDate"`
	Description        pulumi.StringInput `pulumi:"description"`
	KeyId              pulumi.StringInput `pulumi:"keyId"`
	KeyRotationEnabled pulumi.BoolInput   `pulumi:"keyRotationEnabled"`
	KeyState           pulumi.StringInput `pulumi:"keyState"`
	KeyUsage           pulumi.StringInput `pulumi:"keyUsage"`
	NextRotateTime     pulumi.IntInput    `pulumi:"nextRotateTime"`
	Origin             pulumi.StringInput `pulumi:"origin"`
	Owner              pulumi.StringInput `pulumi:"owner"`
	ValidTo            pulumi.IntInput    `pulumi:"validTo"`
}

func (GetKeysKeyListArgs) ElementType

func (GetKeysKeyListArgs) ElementType() reflect.Type

func (GetKeysKeyListArgs) ToGetKeysKeyListOutput

func (i GetKeysKeyListArgs) ToGetKeysKeyListOutput() GetKeysKeyListOutput

func (GetKeysKeyListArgs) ToGetKeysKeyListOutputWithContext

func (i GetKeysKeyListArgs) ToGetKeysKeyListOutputWithContext(ctx context.Context) GetKeysKeyListOutput

type GetKeysKeyListArray

type GetKeysKeyListArray []GetKeysKeyListInput

func (GetKeysKeyListArray) ElementType

func (GetKeysKeyListArray) ElementType() reflect.Type

func (GetKeysKeyListArray) ToGetKeysKeyListArrayOutput

func (i GetKeysKeyListArray) ToGetKeysKeyListArrayOutput() GetKeysKeyListArrayOutput

func (GetKeysKeyListArray) ToGetKeysKeyListArrayOutputWithContext

func (i GetKeysKeyListArray) ToGetKeysKeyListArrayOutputWithContext(ctx context.Context) GetKeysKeyListArrayOutput

type GetKeysKeyListArrayInput

type GetKeysKeyListArrayInput interface {
	pulumi.Input

	ToGetKeysKeyListArrayOutput() GetKeysKeyListArrayOutput
	ToGetKeysKeyListArrayOutputWithContext(context.Context) GetKeysKeyListArrayOutput
}

GetKeysKeyListArrayInput is an input type that accepts GetKeysKeyListArray and GetKeysKeyListArrayOutput values. You can construct a concrete instance of `GetKeysKeyListArrayInput` via:

GetKeysKeyListArray{ GetKeysKeyListArgs{...} }

type GetKeysKeyListArrayOutput

type GetKeysKeyListArrayOutput struct{ *pulumi.OutputState }

func (GetKeysKeyListArrayOutput) ElementType

func (GetKeysKeyListArrayOutput) ElementType() reflect.Type

func (GetKeysKeyListArrayOutput) Index

func (GetKeysKeyListArrayOutput) ToGetKeysKeyListArrayOutput

func (o GetKeysKeyListArrayOutput) ToGetKeysKeyListArrayOutput() GetKeysKeyListArrayOutput

func (GetKeysKeyListArrayOutput) ToGetKeysKeyListArrayOutputWithContext

func (o GetKeysKeyListArrayOutput) ToGetKeysKeyListArrayOutputWithContext(ctx context.Context) GetKeysKeyListArrayOutput

type GetKeysKeyListInput

type GetKeysKeyListInput interface {
	pulumi.Input

	ToGetKeysKeyListOutput() GetKeysKeyListOutput
	ToGetKeysKeyListOutputWithContext(context.Context) GetKeysKeyListOutput
}

GetKeysKeyListInput is an input type that accepts GetKeysKeyListArgs and GetKeysKeyListOutput values. You can construct a concrete instance of `GetKeysKeyListInput` via:

GetKeysKeyListArgs{...}

type GetKeysKeyListOutput

type GetKeysKeyListOutput struct{ *pulumi.OutputState }

func (GetKeysKeyListOutput) Alias

func (GetKeysKeyListOutput) CreateTime

func (o GetKeysKeyListOutput) CreateTime() pulumi.IntOutput

func (GetKeysKeyListOutput) CreatorUin

func (o GetKeysKeyListOutput) CreatorUin() pulumi.IntOutput

func (GetKeysKeyListOutput) DeletionDate

func (o GetKeysKeyListOutput) DeletionDate() pulumi.IntOutput

func (GetKeysKeyListOutput) Description

func (o GetKeysKeyListOutput) Description() pulumi.StringOutput

func (GetKeysKeyListOutput) ElementType

func (GetKeysKeyListOutput) ElementType() reflect.Type

func (GetKeysKeyListOutput) KeyId

func (GetKeysKeyListOutput) KeyRotationEnabled

func (o GetKeysKeyListOutput) KeyRotationEnabled() pulumi.BoolOutput

func (GetKeysKeyListOutput) KeyState

func (GetKeysKeyListOutput) KeyUsage

func (GetKeysKeyListOutput) NextRotateTime

func (o GetKeysKeyListOutput) NextRotateTime() pulumi.IntOutput

func (GetKeysKeyListOutput) Origin

func (GetKeysKeyListOutput) Owner

func (GetKeysKeyListOutput) ToGetKeysKeyListOutput

func (o GetKeysKeyListOutput) ToGetKeysKeyListOutput() GetKeysKeyListOutput

func (GetKeysKeyListOutput) ToGetKeysKeyListOutputWithContext

func (o GetKeysKeyListOutput) ToGetKeysKeyListOutputWithContext(ctx context.Context) GetKeysKeyListOutput

func (GetKeysKeyListOutput) ValidTo

type GetKeysOutputArgs

type GetKeysOutputArgs struct {
	KeyState         pulumi.IntPtrInput    `pulumi:"keyState"`
	KeyUsage         pulumi.StringPtrInput `pulumi:"keyUsage"`
	OrderType        pulumi.IntPtrInput    `pulumi:"orderType"`
	Origin           pulumi.StringPtrInput `pulumi:"origin"`
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	Role             pulumi.IntPtrInput    `pulumi:"role"`
	SearchKeyAlias   pulumi.StringPtrInput `pulumi:"searchKeyAlias"`
	Tags             pulumi.MapInput       `pulumi:"tags"`
}

A collection of arguments for invoking getKeys.

func (GetKeysOutputArgs) ElementType

func (GetKeysOutputArgs) ElementType() reflect.Type

type GetKeysResult

type GetKeysResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id               string                 `pulumi:"id"`
	KeyLists         []GetKeysKeyList       `pulumi:"keyLists"`
	KeyState         *int                   `pulumi:"keyState"`
	KeyUsage         *string                `pulumi:"keyUsage"`
	OrderType        *int                   `pulumi:"orderType"`
	Origin           *string                `pulumi:"origin"`
	ResultOutputFile *string                `pulumi:"resultOutputFile"`
	Role             *int                   `pulumi:"role"`
	SearchKeyAlias   *string                `pulumi:"searchKeyAlias"`
	Tags             map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getKeys.

func GetKeys

func GetKeys(ctx *pulumi.Context, args *GetKeysArgs, opts ...pulumi.InvokeOption) (*GetKeysResult, error)

type GetKeysResultOutput

type GetKeysResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getKeys.

func (GetKeysResultOutput) ElementType

func (GetKeysResultOutput) ElementType() reflect.Type

func (GetKeysResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetKeysResultOutput) KeyLists

func (GetKeysResultOutput) KeyState

func (GetKeysResultOutput) KeyUsage

func (GetKeysResultOutput) OrderType

func (o GetKeysResultOutput) OrderType() pulumi.IntPtrOutput

func (GetKeysResultOutput) Origin

func (GetKeysResultOutput) ResultOutputFile

func (o GetKeysResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetKeysResultOutput) Role

func (GetKeysResultOutput) SearchKeyAlias

func (o GetKeysResultOutput) SearchKeyAlias() pulumi.StringPtrOutput

func (GetKeysResultOutput) Tags

func (GetKeysResultOutput) ToGetKeysResultOutput

func (o GetKeysResultOutput) ToGetKeysResultOutput() GetKeysResultOutput

func (GetKeysResultOutput) ToGetKeysResultOutputWithContext

func (o GetKeysResultOutput) ToGetKeysResultOutputWithContext(ctx context.Context) GetKeysResultOutput

type GetPublicKeyArgs

type GetPublicKeyArgs struct {
	KeyId            string  `pulumi:"keyId"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getPublicKey.

type GetPublicKeyOutputArgs

type GetPublicKeyOutputArgs struct {
	KeyId            pulumi.StringInput    `pulumi:"keyId"`
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getPublicKey.

func (GetPublicKeyOutputArgs) ElementType

func (GetPublicKeyOutputArgs) ElementType() reflect.Type

type GetPublicKeyResult

type GetPublicKeyResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id               string  `pulumi:"id"`
	KeyId            string  `pulumi:"keyId"`
	PublicKey        string  `pulumi:"publicKey"`
	PublicKeyPem     string  `pulumi:"publicKeyPem"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getPublicKey.

func GetPublicKey

func GetPublicKey(ctx *pulumi.Context, args *GetPublicKeyArgs, opts ...pulumi.InvokeOption) (*GetPublicKeyResult, error)

type GetPublicKeyResultOutput

type GetPublicKeyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPublicKey.

func (GetPublicKeyResultOutput) ElementType

func (GetPublicKeyResultOutput) ElementType() reflect.Type

func (GetPublicKeyResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetPublicKeyResultOutput) KeyId

func (GetPublicKeyResultOutput) PublicKey

func (GetPublicKeyResultOutput) PublicKeyPem

func (o GetPublicKeyResultOutput) PublicKeyPem() pulumi.StringOutput

func (GetPublicKeyResultOutput) ResultOutputFile

func (o GetPublicKeyResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetPublicKeyResultOutput) ToGetPublicKeyResultOutput

func (o GetPublicKeyResultOutput) ToGetPublicKeyResultOutput() GetPublicKeyResultOutput

func (GetPublicKeyResultOutput) ToGetPublicKeyResultOutputWithContext

func (o GetPublicKeyResultOutput) ToGetPublicKeyResultOutputWithContext(ctx context.Context) GetPublicKeyResultOutput

type Key

type Key struct {
	pulumi.CustomResourceState

	// Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be
	// a letter or number.
	Alias pulumi.StringOutput `pulumi:"alias"`
	// Description of CMK. The maximum is 1024 bytes.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsArchived pulumi.BoolPtrOutput `pulumi:"isArchived"`
	// Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsEnabled pulumi.BoolPtrOutput `pulumi:"isEnabled"`
	// Specify whether to enable key rotation, valid when key_usage is `ENCRYPT_DECRYPT`. Default value is `false`.
	KeyRotationEnabled pulumi.BoolPtrOutput `pulumi:"keyRotationEnabled"`
	// State of CMK.
	KeyState pulumi.StringOutput `pulumi:"keyState"`
	// Usage of CMK. Available values include `ENCRYPT_DECRYPT`, `ASYMMETRIC_DECRYPT_RSA_2048`, `ASYMMETRIC_DECRYPT_SM2`,
	// `ASYMMETRIC_SIGN_VERIFY_SM2`, `ASYMMETRIC_SIGN_VERIFY_RSA_2048`, `ASYMMETRIC_SIGN_VERIFY_ECC`. Default value is
	// `ENCRYPT_DECRYPT`.
	KeyUsage pulumi.StringPtrOutput `pulumi:"keyUsage"`
	// Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days.
	// Defaults to 7 days.
	PendingDeleteWindowInDays pulumi.IntPtrOutput `pulumi:"pendingDeleteWindowInDays"`
	// Tags of CMK.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

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) ElementType() reflect.Type

func (*Key) ToKeyOutput

func (i *Key) ToKeyOutput() KeyOutput

func (*Key) ToKeyOutputWithContext

func (i *Key) ToKeyOutputWithContext(ctx context.Context) KeyOutput

type KeyArgs

type KeyArgs struct {
	// Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be
	// a letter or number.
	Alias pulumi.StringInput
	// Description of CMK. The maximum is 1024 bytes.
	Description pulumi.StringPtrInput
	// Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsArchived pulumi.BoolPtrInput
	// Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsEnabled pulumi.BoolPtrInput
	// Specify whether to enable key rotation, valid when key_usage is `ENCRYPT_DECRYPT`. Default value is `false`.
	KeyRotationEnabled pulumi.BoolPtrInput
	// Usage of CMK. Available values include `ENCRYPT_DECRYPT`, `ASYMMETRIC_DECRYPT_RSA_2048`, `ASYMMETRIC_DECRYPT_SM2`,
	// `ASYMMETRIC_SIGN_VERIFY_SM2`, `ASYMMETRIC_SIGN_VERIFY_RSA_2048`, `ASYMMETRIC_SIGN_VERIFY_ECC`. Default value is
	// `ENCRYPT_DECRYPT`.
	KeyUsage pulumi.StringPtrInput
	// Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days.
	// Defaults to 7 days.
	PendingDeleteWindowInDays pulumi.IntPtrInput
	// Tags of CMK.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Key resource.

func (KeyArgs) ElementType

func (KeyArgs) ElementType() reflect.Type

type KeyArray

type KeyArray []KeyInput

func (KeyArray) ElementType

func (KeyArray) ElementType() reflect.Type

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) Index

func (KeyArrayOutput) ToKeyArrayOutput

func (o KeyArrayOutput) ToKeyArrayOutput() KeyArrayOutput

func (KeyArrayOutput) ToKeyArrayOutputWithContext

func (o KeyArrayOutput) ToKeyArrayOutputWithContext(ctx context.Context) KeyArrayOutput

type KeyInput

type KeyInput interface {
	pulumi.Input

	ToKeyOutput() KeyOutput
	ToKeyOutputWithContext(ctx context.Context) KeyOutput
}

type KeyMap

type KeyMap map[string]KeyInput

func (KeyMap) ElementType

func (KeyMap) ElementType() reflect.Type

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) Alias

func (o KeyOutput) Alias() pulumi.StringOutput

Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be a letter or number.

func (KeyOutput) Description

func (o KeyOutput) Description() pulumi.StringPtrOutput

Description of CMK. The maximum is 1024 bytes.

func (KeyOutput) ElementType

func (KeyOutput) ElementType() reflect.Type

func (KeyOutput) IsArchived

func (o KeyOutput) IsArchived() pulumi.BoolPtrOutput

Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state is `Enabled`, `Disabled`, `Archived`.

func (KeyOutput) IsEnabled

func (o KeyOutput) IsEnabled() pulumi.BoolPtrOutput

Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state is `Enabled`, `Disabled`, `Archived`.

func (KeyOutput) KeyRotationEnabled

func (o KeyOutput) KeyRotationEnabled() pulumi.BoolPtrOutput

Specify whether to enable key rotation, valid when key_usage is `ENCRYPT_DECRYPT`. Default value is `false`.

func (KeyOutput) KeyState

func (o KeyOutput) KeyState() pulumi.StringOutput

State of CMK.

func (KeyOutput) KeyUsage

func (o KeyOutput) KeyUsage() pulumi.StringPtrOutput

Usage of CMK. Available values include `ENCRYPT_DECRYPT`, `ASYMMETRIC_DECRYPT_RSA_2048`, `ASYMMETRIC_DECRYPT_SM2`, `ASYMMETRIC_SIGN_VERIFY_SM2`, `ASYMMETRIC_SIGN_VERIFY_RSA_2048`, `ASYMMETRIC_SIGN_VERIFY_ECC`. Default value is `ENCRYPT_DECRYPT`.

func (KeyOutput) PendingDeleteWindowInDays

func (o KeyOutput) PendingDeleteWindowInDays() pulumi.IntPtrOutput

Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days. Defaults to 7 days.

func (KeyOutput) Tags

func (o KeyOutput) Tags() pulumi.MapOutput

Tags of CMK.

func (KeyOutput) ToKeyOutput

func (o KeyOutput) ToKeyOutput() KeyOutput

func (KeyOutput) ToKeyOutputWithContext

func (o KeyOutput) ToKeyOutputWithContext(ctx context.Context) KeyOutput

type KeyState

type KeyState struct {
	// Name of CMK. The name can only contain English letters, numbers, underscore and hyphen '-'. The first character must be
	// a letter or number.
	Alias pulumi.StringPtrInput
	// Description of CMK. The maximum is 1024 bytes.
	Description pulumi.StringPtrInput
	// Specify whether to archive key. Default value is `false`. This field is conflict with `is_enabled`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsArchived pulumi.BoolPtrInput
	// Specify whether to enable key. Default value is `false`. This field is conflict with `is_archived`, valid when key_state
	// is `Enabled`, `Disabled`, `Archived`.
	IsEnabled pulumi.BoolPtrInput
	// Specify whether to enable key rotation, valid when key_usage is `ENCRYPT_DECRYPT`. Default value is `false`.
	KeyRotationEnabled pulumi.BoolPtrInput
	// State of CMK.
	KeyState pulumi.StringPtrInput
	// Usage of CMK. Available values include `ENCRYPT_DECRYPT`, `ASYMMETRIC_DECRYPT_RSA_2048`, `ASYMMETRIC_DECRYPT_SM2`,
	// `ASYMMETRIC_SIGN_VERIFY_SM2`, `ASYMMETRIC_SIGN_VERIFY_RSA_2048`, `ASYMMETRIC_SIGN_VERIFY_ECC`. Default value is
	// `ENCRYPT_DECRYPT`.
	KeyUsage pulumi.StringPtrInput
	// Duration in days after which the key is deleted after destruction of the resource, must be between 7 and 30 days.
	// Defaults to 7 days.
	PendingDeleteWindowInDays pulumi.IntPtrInput
	// Tags of CMK.
	Tags pulumi.MapInput
}

func (KeyState) ElementType

func (KeyState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL