aws_kms_key

package
v5.45.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// BypassPolicyLockoutSafetyCheck: bool, optional
	BypassPolicyLockoutSafetyCheck terra.BoolValue `hcl:"bypass_policy_lockout_safety_check,attr"`
	// CustomKeyStoreId: string, optional
	CustomKeyStoreId terra.StringValue `hcl:"custom_key_store_id,attr"`
	// CustomerMasterKeySpec: string, optional
	CustomerMasterKeySpec terra.StringValue `hcl:"customer_master_key_spec,attr"`
	// DeletionWindowInDays: number, optional
	DeletionWindowInDays terra.NumberValue `hcl:"deletion_window_in_days,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// EnableKeyRotation: bool, optional
	EnableKeyRotation terra.BoolValue `hcl:"enable_key_rotation,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IsEnabled: bool, optional
	IsEnabled terra.BoolValue `hcl:"is_enabled,attr"`
	// KeyUsage: string, optional
	KeyUsage terra.StringValue `hcl:"key_usage,attr"`
	// MultiRegion: bool, optional
	MultiRegion terra.BoolValue `hcl:"multi_region,attr"`
	// Policy: string, optional
	Policy terra.StringValue `hcl:"policy,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
}

Args contains the configurations for aws_kms_key.

type DataArgs

type DataArgs struct {
	// GrantTokens: list of string, optional
	GrantTokens terra.ListValue[terra.StringValue] `hcl:"grant_tokens,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KeyId: string, required
	KeyId terra.StringValue `hcl:"key_id,attr" validate:"required"`
}

DataArgs contains the configurations for aws_kms_key.

type DataMultiRegionConfigurationAttributes

type DataMultiRegionConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (DataMultiRegionConfigurationAttributes) InternalRef

func (DataMultiRegionConfigurationAttributes) InternalTokens

func (DataMultiRegionConfigurationAttributes) InternalWithRef

func (DataMultiRegionConfigurationAttributes) MultiRegionKeyType

func (mrc DataMultiRegionConfigurationAttributes) MultiRegionKeyType() terra.StringValue

func (DataMultiRegionConfigurationAttributes) PrimaryKey

func (DataMultiRegionConfigurationAttributes) ReplicaKeys

type DataMultiRegionConfigurationPrimaryKeyAttributes

type DataMultiRegionConfigurationPrimaryKeyAttributes struct {
	// contains filtered or unexported fields
}

func (DataMultiRegionConfigurationPrimaryKeyAttributes) Arn

func (DataMultiRegionConfigurationPrimaryKeyAttributes) InternalRef

func (DataMultiRegionConfigurationPrimaryKeyAttributes) InternalTokens

func (DataMultiRegionConfigurationPrimaryKeyAttributes) InternalWithRef

func (DataMultiRegionConfigurationPrimaryKeyAttributes) Region

type DataMultiRegionConfigurationPrimaryKeyState

type DataMultiRegionConfigurationPrimaryKeyState struct {
	Arn    string `json:"arn"`
	Region string `json:"region"`
}

type DataMultiRegionConfigurationReplicaKeysAttributes

type DataMultiRegionConfigurationReplicaKeysAttributes struct {
	// contains filtered or unexported fields
}

func (DataMultiRegionConfigurationReplicaKeysAttributes) Arn

func (DataMultiRegionConfigurationReplicaKeysAttributes) InternalRef

func (DataMultiRegionConfigurationReplicaKeysAttributes) InternalTokens

func (DataMultiRegionConfigurationReplicaKeysAttributes) InternalWithRef

func (DataMultiRegionConfigurationReplicaKeysAttributes) Region

type DataMultiRegionConfigurationReplicaKeysState

type DataMultiRegionConfigurationReplicaKeysState struct {
	Arn    string `json:"arn"`
	Region string `json:"region"`
}

type DataMultiRegionConfigurationState

type DataMultiRegionConfigurationState struct {
	MultiRegionKeyType string                                         `json:"multi_region_key_type"`
	PrimaryKey         []DataMultiRegionConfigurationPrimaryKeyState  `json:"primary_key"`
	ReplicaKeys        []DataMultiRegionConfigurationReplicaKeysState `json:"replica_keys"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_kms_key.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (akk *DataSource) Attributes() dataAwsKmsKeyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (akk *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (akk *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (akk *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_kms_key.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (akk *Resource) Attributes() awsKmsKeyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (akk *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (akk *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (akk *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (akk *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (akk *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (akk *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (akk *Resource) State() (*awsKmsKeyState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (akk *Resource) StateMust() *awsKmsKeyState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (akk *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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