Documentation ¶
Overview ¶
Code generated by internal/generate/tags/main.go; DO NOT EDIT.
Index ¶
- Constants
- func AliasARNToKeyARN(inputARN, keyID string) (string, error)
- func DataSourceAlias() *schema.Resource
- func DataSourceCiphertext() *schema.Resource
- func DataSourceKey() *schema.Resource
- func DataSourcePublicKey() *schema.Resource
- func DataSourceSecret() *schema.Resource
- func DataSourceSecrets() *schema.Resource
- func FindAliasByName(conn *kms.KMS, name string) (*kms.AliasListEntry, error)
- func FindKeyByID(conn *kms.KMS, id string) (*kms.KeyMetadata, error)
- func FindKeyPolicyByKeyIDAndPolicyName(conn *kms.KMS, keyID, policyName string) (*string, error)
- func FindKeyRotationEnabledByKeyID(conn *kms.KMS, keyID string) (*bool, error)
- func KeyARNOrIDEqual(arnOrID1, arnOrID2 string) bool
- func KeyValueTags(tags []*kms.Tag) tftags.KeyValueTags
- func ListTags(conn kmsiface.KMSAPI, identifier string) (tftags.KeyValueTags, error)
- func ListTagsWithContext(ctx context.Context, conn kmsiface.KMSAPI, identifier string) (tftags.KeyValueTags, error)
- func ResourceAlias() *schema.Resource
- func ResourceCiphertext() *schema.Resource
- func ResourceExternalKey() *schema.Resource
- func ResourceGrant() *schema.Resource
- func ResourceKey() *schema.Resource
- func ResourceReplicaExternalKey() *schema.Resource
- func ResourceReplicaKey() *schema.Resource
- func StatusKeyState(conn *kms.KMS, id string) resource.StateRefreshFunc
- func Tags(tags tftags.KeyValueTags) []*kms.Tag
- func UpdateTags(conn kmsiface.KMSAPI, identifier string, oldTags interface{}, ...) error
- func UpdateTagsWithContext(ctx context.Context, conn kmsiface.KMSAPI, identifier string, ...) error
- func WaitForGrantToBeRevoked(conn *kms.KMS, keyId string, grantId string) error
- func WaitIAMPropagation(f func() (interface{}, error)) (interface{}, error)
- func WaitKeyDeleted(conn *kms.KMS, id string) (*kms.KeyMetadata, error)
- func WaitKeyDescriptionPropagated(conn *kms.KMS, id string, description string) error
- func WaitKeyMaterialImported(conn *kms.KMS, id string) (*kms.KeyMetadata, error)
- func WaitKeyPolicyPropagated(conn *kms.KMS, id, policy string) error
- func WaitKeyRotationEnabledPropagated(conn *kms.KMS, id string, enabled bool) error
- func WaitKeyStatePropagated(conn *kms.KMS, id string, enabled bool) error
- func WaitKeyValidToPropagated(conn *kms.KMS, id string, validTo string) error
- func WaitReplicaExternalKeyCreated(conn *kms.KMS, id string) (*kms.KeyMetadata, error)
- func WaitReplicaKeyCreated(conn *kms.KMS, id string) (*kms.KeyMetadata, error)
- func WaitTagsPropagated(conn *kms.KMS, id string, tags tftags.KeyValueTags) error
Constants ¶
const ( ARNSeparator = "/" ARNService = "kms" )
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 )
const (
AliasNamePrefix = "alias/"
)
const (
PolicyNameDefault = "default"
)
const SecretRemovedMessage = "" /* 212-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AliasARNToKeyARN ¶
AliasARNToKeyARN converts an alias ARN to a CMK ARN.
func DataSourceAlias ¶
func DataSourceCiphertext ¶
func DataSourceKey ¶
func DataSourcePublicKey ¶
func DataSourceSecret ¶
func DataSourceSecrets ¶
func FindAliasByName ¶
func FindKeyByID ¶
func KeyARNOrIDEqual ¶
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 ¶
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 ResourceAlias ¶
func ResourceCiphertext ¶
func ResourceExternalKey ¶
func ResourceGrant ¶
func ResourceKey ¶
func ResourceReplicaKey ¶
func StatusKeyState ¶
func StatusKeyState(conn *kms.KMS, id string) resource.StateRefreshFunc
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 WaitForGrantToBeRevoked ¶
Used by the tests as well
func WaitIAMPropagation ¶
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 WaitKeyMaterialImported ¶
func WaitKeyStatePropagated ¶
func WaitReplicaKeyCreated ¶
func WaitTagsPropagated ¶
Types ¶
This section is empty.
Source Files ¶
- alias.go
- alias_data_source.go
- arn.go
- ciphertext.go
- ciphertext_data_source.go
- consts.go
- external_key.go
- find.go
- generate.go
- grant.go
- key.go
- key_data_source.go
- public_key_data_source.go
- replica_external_key.go
- replica_key.go
- secret_data_source.go
- secrets_data_source.go
- status.go
- tags_gen.go
- validate.go
- wait.go