kms

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MPL-2.0 Imports: 31 Imported by: 0

README

Terraform AWS Provider KMS Package

This area is primarily for AWS provider contributors and maintainers. For information on using Terraform and the AWS provider, see the links below.

Documentation

Overview

Code generated by internal/generate/tags/main.go; DO NOT EDIT.

Index

Constants

View Source
const (
	ARNSeparator = "/"
	ARNService   = "kms"
)
View Source
const (
	// Maximum amount of time to wait for StatusKeyState to return PendingDeletion
	KeyStatePendingDeletionTimeout = 20 * time.Minute

	KeyDeletedTimeout                = 20 * time.Minute
	KeyDescriptionPropagationTimeout = 10 * time.Minute
	KeyMaterialImportedTimeout       = 10 * time.Minute
	KeyPolicyPropagationTimeout      = 5 * time.Minute
	KeyRotationUpdatedTimeout        = 10 * time.Minute
	KeyStatePropagationTimeout       = 20 * time.Minute
	KeyTagsPropagationTimeout        = 10 * time.Minute
	KeyValidToPropagationTimeout     = 5 * time.Minute

	PropagationTimeout = 2 * time.Minute

	ReplicaExternalKeyCreatedTimeout = 2 * time.Minute
	ReplicaKeyCreatedTimeout         = 2 * time.Minute
)
View Source
const (
	AliasNamePrefix = "alias/"
)
View Source
const (
	PolicyNameDefault = "default"
)
View Source
const SecretRemovedMessage = "" /* 212-byte string literal not displayed */

Variables

This section is empty.

Functions

func AliasARNToKeyARN

func AliasARNToKeyARN(inputARN, keyID string) (string, error)

AliasARNToKeyARN converts an alias ARN to a CMK ARN.

func DataSourceAlias

func DataSourceAlias() *schema.Resource

func DataSourceCiphertext

func DataSourceCiphertext() *schema.Resource

func DataSourceKey

func DataSourceKey() *schema.Resource

func DataSourcePublicKey

func DataSourcePublicKey() *schema.Resource

func DataSourceSecret

func DataSourceSecret() *schema.Resource

func DataSourceSecrets

func DataSourceSecrets() *schema.Resource

func FindAliasByName

func FindAliasByName(conn *kms.KMS, name string) (*kms.AliasListEntry, error)

func FindKeyByID

func FindKeyByID(conn *kms.KMS, id string) (*kms.KeyMetadata, error)

func FindKeyPolicyByKeyIDAndPolicyName

func FindKeyPolicyByKeyIDAndPolicyName(conn *kms.KMS, keyID, policyName string) (*string, error)

func FindKeyRotationEnabledByKeyID

func FindKeyRotationEnabledByKeyID(conn *kms.KMS, keyID string) (*bool, error)

func KeyARNOrIDEqual

func KeyARNOrIDEqual(arnOrID1, arnOrID2 string) bool

KeyARNOrIDEqual returns whether two CMK ARNs or IDs are equal.

func KeyValueTags

func KeyValueTags(tags []*kms.Tag) tftags.KeyValueTags

KeyValueTags creates tftags.KeyValueTags from kms service tags.

func ListTags

func ListTags(conn kmsiface.KMSAPI, identifier string) (tftags.KeyValueTags, error)

ListTags lists kms service tags. The identifier is typically the Amazon Resource Name (ARN), although it may also be a different identifier depending on the service.

func ListTagsWithContext

func ListTagsWithContext(ctx context.Context, conn kmsiface.KMSAPI, identifier string) (tftags.KeyValueTags, error)

func ResourceAlias

func ResourceAlias() *schema.Resource

func ResourceCiphertext

func ResourceCiphertext() *schema.Resource

func ResourceExternalKey

func ResourceExternalKey() *schema.Resource

func ResourceGrant

func ResourceGrant() *schema.Resource

func ResourceKey

func ResourceKey() *schema.Resource

func ResourceReplicaExternalKey

func ResourceReplicaExternalKey() *schema.Resource

func ResourceReplicaKey

func ResourceReplicaKey() *schema.Resource

func StatusKeyState

func StatusKeyState(conn *kms.KMS, id string) resource.StateRefreshFunc

func Tags

func Tags(tags tftags.KeyValueTags) []*kms.Tag

Tags returns kms service tags.

func UpdateTags

func UpdateTags(conn kmsiface.KMSAPI, identifier string, oldTags interface{}, newTags interface{}) error

UpdateTags updates kms service tags. The identifier is typically the Amazon Resource Name (ARN), although it may also be a different identifier depending on the service.

func UpdateTagsWithContext

func UpdateTagsWithContext(ctx context.Context, conn kmsiface.KMSAPI, identifier string, oldTagsMap interface{}, newTagsMap interface{}) error

func WaitForGrantToBeRevoked

func WaitForGrantToBeRevoked(conn *kms.KMS, keyId string, grantId string) error

Used by the tests as well

func WaitIAMPropagation

func WaitIAMPropagation(f func() (interface{}, error)) (interface{}, error)

WaitIAMPropagation retries the specified function if the returned error indicates an IAM eventual consistency issue. If the retries time out the specified function is called one last time.

func WaitKeyDeleted

func WaitKeyDeleted(conn *kms.KMS, id string) (*kms.KeyMetadata, error)

func WaitKeyDescriptionPropagated

func WaitKeyDescriptionPropagated(conn *kms.KMS, id string, description string) error

func WaitKeyMaterialImported

func WaitKeyMaterialImported(conn *kms.KMS, id string) (*kms.KeyMetadata, error)

func WaitKeyPolicyPropagated

func WaitKeyPolicyPropagated(conn *kms.KMS, id, policy string) error

func WaitKeyRotationEnabledPropagated

func WaitKeyRotationEnabledPropagated(conn *kms.KMS, id string, enabled bool) error

func WaitKeyStatePropagated

func WaitKeyStatePropagated(conn *kms.KMS, id string, enabled bool) error

func WaitKeyValidToPropagated

func WaitKeyValidToPropagated(conn *kms.KMS, id string, validTo string) error

func WaitReplicaExternalKeyCreated

func WaitReplicaExternalKeyCreated(conn *kms.KMS, id string) (*kms.KeyMetadata, error)

func WaitReplicaKeyCreated

func WaitReplicaKeyCreated(conn *kms.KMS, id string) (*kms.KeyMetadata, error)

func WaitTagsPropagated

func WaitTagsPropagated(conn *kms.KMS, id string, tags tftags.KeyValueTags) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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