aws_ami_copy

package
v0.0.0-...-4deecce 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 {
	// DeprecationTime: string, optional
	DeprecationTime terra.StringValue `hcl:"deprecation_time,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DestinationOutpostArn: string, optional
	DestinationOutpostArn terra.StringValue `hcl:"destination_outpost_arn,attr"`
	// Encrypted: bool, optional
	Encrypted terra.BoolValue `hcl:"encrypted,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// SourceAmiId: string, required
	SourceAmiId terra.StringValue `hcl:"source_ami_id,attr" validate:"required"`
	// SourceAmiRegion: string, required
	SourceAmiRegion terra.StringValue `hcl:"source_ami_region,attr" validate:"required"`
	// 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"`
	// EbsBlockDevice: min=0
	EbsBlockDevice []EbsBlockDevice `hcl:"ebs_block_device,block" validate:"min=0"`
	// EphemeralBlockDevice: min=0
	EphemeralBlockDevice []EphemeralBlockDevice `hcl:"ephemeral_block_device,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_ami_copy.

type EbsBlockDevice

type EbsBlockDevice struct{}

type EbsBlockDeviceAttributes

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

func (EbsBlockDeviceAttributes) DeleteOnTermination

func (ebd EbsBlockDeviceAttributes) DeleteOnTermination() terra.BoolValue

func (EbsBlockDeviceAttributes) DeviceName

func (ebd EbsBlockDeviceAttributes) DeviceName() terra.StringValue

func (EbsBlockDeviceAttributes) Encrypted

func (ebd EbsBlockDeviceAttributes) Encrypted() terra.BoolValue

func (EbsBlockDeviceAttributes) InternalRef

func (ebd EbsBlockDeviceAttributes) InternalRef() (terra.Reference, error)

func (EbsBlockDeviceAttributes) InternalTokens

func (ebd EbsBlockDeviceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EbsBlockDeviceAttributes) InternalWithRef

func (EbsBlockDeviceAttributes) Iops

func (EbsBlockDeviceAttributes) OutpostArn

func (ebd EbsBlockDeviceAttributes) OutpostArn() terra.StringValue

func (EbsBlockDeviceAttributes) SnapshotId

func (ebd EbsBlockDeviceAttributes) SnapshotId() terra.StringValue

func (EbsBlockDeviceAttributes) Throughput

func (ebd EbsBlockDeviceAttributes) Throughput() terra.NumberValue

func (EbsBlockDeviceAttributes) VolumeSize

func (ebd EbsBlockDeviceAttributes) VolumeSize() terra.NumberValue

func (EbsBlockDeviceAttributes) VolumeType

func (ebd EbsBlockDeviceAttributes) VolumeType() terra.StringValue

type EbsBlockDeviceState

type EbsBlockDeviceState struct {
	DeleteOnTermination bool    `json:"delete_on_termination"`
	DeviceName          string  `json:"device_name"`
	Encrypted           bool    `json:"encrypted"`
	Iops                float64 `json:"iops"`
	OutpostArn          string  `json:"outpost_arn"`
	SnapshotId          string  `json:"snapshot_id"`
	Throughput          float64 `json:"throughput"`
	VolumeSize          float64 `json:"volume_size"`
	VolumeType          string  `json:"volume_type"`
}

type EphemeralBlockDevice

type EphemeralBlockDevice struct{}

type EphemeralBlockDeviceAttributes

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

func (EphemeralBlockDeviceAttributes) DeviceName

func (EphemeralBlockDeviceAttributes) InternalRef

func (ebd EphemeralBlockDeviceAttributes) InternalRef() (terra.Reference, error)

func (EphemeralBlockDeviceAttributes) InternalTokens

func (ebd EphemeralBlockDeviceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EphemeralBlockDeviceAttributes) InternalWithRef

func (EphemeralBlockDeviceAttributes) VirtualName

type EphemeralBlockDeviceState

type EphemeralBlockDeviceState struct {
	DeviceName  string `json:"device_name"`
	VirtualName string `json:"virtual_name"`
}

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_ami_copy.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aac *Resource) Attributes() awsAmiCopyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aac *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aac *Resource) State() (*awsAmiCopyState, bool)

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

func (*Resource) StateMust

func (aac *Resource) StateMust() *awsAmiCopyState

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

func (*Resource) Type

func (aac *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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