aws_imagebuilder_container_recipe

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 {
	// ContainerType: string, required
	ContainerType terra.StringValue `hcl:"container_type,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DockerfileTemplateData: string, optional
	DockerfileTemplateData terra.StringValue `hcl:"dockerfile_template_data,attr"`
	// DockerfileTemplateUri: string, optional
	DockerfileTemplateUri terra.StringValue `hcl:"dockerfile_template_uri,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"`
	// ParentImage: string, required
	ParentImage terra.StringValue `hcl:"parent_image,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"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
	// WorkingDirectory: string, optional
	WorkingDirectory terra.StringValue `hcl:"working_directory,attr"`
	// Component: min=1
	Component []Component `hcl:"component,block" validate:"min=1"`
	// InstanceConfiguration: optional
	InstanceConfiguration *InstanceConfiguration `hcl:"instance_configuration,block"`
	// TargetRepository: required
	TargetRepository *TargetRepository `hcl:"target_repository,block" validate:"required"`
}

Args contains the configurations for aws_imagebuilder_container_recipe.

type Component

type Component struct {
	// ComponentArn: string, required
	ComponentArn terra.StringValue `hcl:"component_arn,attr" validate:"required"`
	// ComponentParameter: min=0
	Parameter []ComponentParameter `hcl:"parameter,block" validate:"min=0"`
}

type ComponentAttributes

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

func (ComponentAttributes) ComponentArn

func (c ComponentAttributes) ComponentArn() terra.StringValue

func (ComponentAttributes) InternalRef

func (c ComponentAttributes) InternalRef() (terra.Reference, error)

func (ComponentAttributes) InternalTokens

func (c ComponentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ComponentAttributes) InternalWithRef

func (c ComponentAttributes) InternalWithRef(ref terra.Reference) ComponentAttributes

func (ComponentAttributes) Parameter

type ComponentParameter

type ComponentParameter struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type ComponentParameterAttributes

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

func (ComponentParameterAttributes) InternalRef

func (ComponentParameterAttributes) InternalTokens

func (p ComponentParameterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ComponentParameterAttributes) InternalWithRef

func (ComponentParameterAttributes) Name

func (ComponentParameterAttributes) Value

type ComponentParameterState

type ComponentParameterState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type ComponentState

type ComponentState struct {
	ComponentArn string                    `json:"component_arn"`
	Parameter    []ComponentParameterState `json:"parameter"`
}

type DataArgs

type DataArgs struct {
	// Arn: string, required
	Arn terra.StringValue `hcl:"arn,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_imagebuilder_container_recipe.

type DataComponentAttributes

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

func (DataComponentAttributes) ComponentArn

func (c DataComponentAttributes) ComponentArn() terra.StringValue

func (DataComponentAttributes) InternalRef

func (c DataComponentAttributes) InternalRef() (terra.Reference, error)

func (DataComponentAttributes) InternalTokens

func (c DataComponentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataComponentAttributes) InternalWithRef

func (DataComponentAttributes) Parameter

type DataComponentParameterAttributes

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

func (DataComponentParameterAttributes) InternalRef

func (DataComponentParameterAttributes) InternalTokens

func (p DataComponentParameterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataComponentParameterAttributes) InternalWithRef

func (DataComponentParameterAttributes) Name

func (DataComponentParameterAttributes) Value

type DataComponentParameterState

type DataComponentParameterState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type DataComponentState

type DataComponentState struct {
	ComponentArn string                        `json:"component_arn"`
	Parameter    []DataComponentParameterState `json:"parameter"`
}

type DataInstanceConfigurationAttributes

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

func (DataInstanceConfigurationAttributes) BlockDeviceMapping

func (DataInstanceConfigurationAttributes) Image

func (DataInstanceConfigurationAttributes) InternalRef

func (DataInstanceConfigurationAttributes) InternalTokens

func (DataInstanceConfigurationAttributes) InternalWithRef

type DataInstanceConfigurationBlockDeviceMappingAttributes

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

func (DataInstanceConfigurationBlockDeviceMappingAttributes) DeviceName

func (DataInstanceConfigurationBlockDeviceMappingAttributes) Ebs

func (DataInstanceConfigurationBlockDeviceMappingAttributes) InternalRef

func (DataInstanceConfigurationBlockDeviceMappingAttributes) InternalTokens

func (DataInstanceConfigurationBlockDeviceMappingAttributes) InternalWithRef

func (DataInstanceConfigurationBlockDeviceMappingAttributes) NoDevice

func (DataInstanceConfigurationBlockDeviceMappingAttributes) VirtualName

type DataInstanceConfigurationBlockDeviceMappingEbsAttributes

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

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) DeleteOnTermination

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) Encrypted

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) InternalRef

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) InternalTokens

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) InternalWithRef

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) Iops

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) KmsKeyId

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) SnapshotId

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) Throughput

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) VolumeSize

func (DataInstanceConfigurationBlockDeviceMappingEbsAttributes) VolumeType

type DataInstanceConfigurationBlockDeviceMappingEbsState

type DataInstanceConfigurationBlockDeviceMappingEbsState struct {
	DeleteOnTermination bool    `json:"delete_on_termination"`
	Encrypted           bool    `json:"encrypted"`
	Iops                float64 `json:"iops"`
	KmsKeyId            string  `json:"kms_key_id"`
	SnapshotId          string  `json:"snapshot_id"`
	Throughput          float64 `json:"throughput"`
	VolumeSize          float64 `json:"volume_size"`
	VolumeType          string  `json:"volume_type"`
}

type DataInstanceConfigurationBlockDeviceMappingState

type DataInstanceConfigurationBlockDeviceMappingState struct {
	DeviceName  string                                                `json:"device_name"`
	NoDevice    string                                                `json:"no_device"`
	VirtualName string                                                `json:"virtual_name"`
	Ebs         []DataInstanceConfigurationBlockDeviceMappingEbsState `json:"ebs"`
}

type DataInstanceConfigurationState

type DataInstanceConfigurationState struct {
	Image              string                                             `json:"image"`
	BlockDeviceMapping []DataInstanceConfigurationBlockDeviceMappingState `json:"block_device_mapping"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_imagebuilder_container_recipe.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aicr *DataSource) Attributes() dataAwsImagebuilderContainerRecipeAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aicr *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aicr *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTargetRepositoryAttributes

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

func (DataTargetRepositoryAttributes) InternalRef

func (DataTargetRepositoryAttributes) InternalTokens

func (tr DataTargetRepositoryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataTargetRepositoryAttributes) InternalWithRef

func (DataTargetRepositoryAttributes) RepositoryName

func (tr DataTargetRepositoryAttributes) RepositoryName() terra.StringValue

func (DataTargetRepositoryAttributes) Service

type DataTargetRepositoryState

type DataTargetRepositoryState struct {
	RepositoryName string `json:"repository_name"`
	Service        string `json:"service"`
}

type InstanceConfiguration

type InstanceConfiguration struct {
	// Image: string, optional
	Image terra.StringValue `hcl:"image,attr"`
	// InstanceConfigurationBlockDeviceMapping: min=0
	BlockDeviceMapping []InstanceConfigurationBlockDeviceMapping `hcl:"block_device_mapping,block" validate:"min=0"`
}

type InstanceConfigurationAttributes

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

func (InstanceConfigurationAttributes) BlockDeviceMapping

func (InstanceConfigurationAttributes) Image

func (InstanceConfigurationAttributes) InternalRef

func (InstanceConfigurationAttributes) InternalTokens

func (ic InstanceConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InstanceConfigurationAttributes) InternalWithRef

type InstanceConfigurationBlockDeviceMapping

type InstanceConfigurationBlockDeviceMapping struct {
	// DeviceName: string, optional
	DeviceName terra.StringValue `hcl:"device_name,attr"`
	// NoDevice: bool, optional
	NoDevice terra.BoolValue `hcl:"no_device,attr"`
	// VirtualName: string, optional
	VirtualName terra.StringValue `hcl:"virtual_name,attr"`
	// InstanceConfigurationBlockDeviceMappingEbs: optional
	Ebs *InstanceConfigurationBlockDeviceMappingEbs `hcl:"ebs,block"`
}

type InstanceConfigurationBlockDeviceMappingAttributes

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

func (InstanceConfigurationBlockDeviceMappingAttributes) DeviceName

func (InstanceConfigurationBlockDeviceMappingAttributes) Ebs

func (InstanceConfigurationBlockDeviceMappingAttributes) InternalRef

func (InstanceConfigurationBlockDeviceMappingAttributes) InternalTokens

func (InstanceConfigurationBlockDeviceMappingAttributes) InternalWithRef

func (InstanceConfigurationBlockDeviceMappingAttributes) NoDevice

func (InstanceConfigurationBlockDeviceMappingAttributes) VirtualName

type InstanceConfigurationBlockDeviceMappingEbs

type InstanceConfigurationBlockDeviceMappingEbs struct {
	// DeleteOnTermination: string, optional
	DeleteOnTermination terra.StringValue `hcl:"delete_on_termination,attr"`
	// Encrypted: string, optional
	Encrypted terra.StringValue `hcl:"encrypted,attr"`
	// Iops: number, optional
	Iops terra.NumberValue `hcl:"iops,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// SnapshotId: string, optional
	SnapshotId terra.StringValue `hcl:"snapshot_id,attr"`
	// Throughput: number, optional
	Throughput terra.NumberValue `hcl:"throughput,attr"`
	// VolumeSize: number, optional
	VolumeSize terra.NumberValue `hcl:"volume_size,attr"`
	// VolumeType: string, optional
	VolumeType terra.StringValue `hcl:"volume_type,attr"`
}

type InstanceConfigurationBlockDeviceMappingEbsAttributes

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

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) DeleteOnTermination

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) Encrypted

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) InternalRef

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) InternalTokens

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) InternalWithRef

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) Iops

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) KmsKeyId

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) SnapshotId

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) Throughput

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) VolumeSize

func (InstanceConfigurationBlockDeviceMappingEbsAttributes) VolumeType

type InstanceConfigurationBlockDeviceMappingEbsState

type InstanceConfigurationBlockDeviceMappingEbsState struct {
	DeleteOnTermination string  `json:"delete_on_termination"`
	Encrypted           string  `json:"encrypted"`
	Iops                float64 `json:"iops"`
	KmsKeyId            string  `json:"kms_key_id"`
	SnapshotId          string  `json:"snapshot_id"`
	Throughput          float64 `json:"throughput"`
	VolumeSize          float64 `json:"volume_size"`
	VolumeType          string  `json:"volume_type"`
}

type InstanceConfigurationBlockDeviceMappingState

type InstanceConfigurationBlockDeviceMappingState struct {
	DeviceName  string                                            `json:"device_name"`
	NoDevice    bool                                              `json:"no_device"`
	VirtualName string                                            `json:"virtual_name"`
	Ebs         []InstanceConfigurationBlockDeviceMappingEbsState `json:"ebs"`
}

type InstanceConfigurationState

type InstanceConfigurationState struct {
	Image              string                                         `json:"image"`
	BlockDeviceMapping []InstanceConfigurationBlockDeviceMappingState `json:"block_device_mapping"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aicr *Resource) Attributes() awsImagebuilderContainerRecipeAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aicr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aicr *Resource) State() (*awsImagebuilderContainerRecipeState, bool)

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

func (*Resource) StateMust

func (aicr *Resource) StateMust() *awsImagebuilderContainerRecipeState

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

func (*Resource) Type

func (aicr *Resource) Type() string

Type returns the Terraform object type for Resource.

type TargetRepository

type TargetRepository struct {
	// RepositoryName: string, required
	RepositoryName terra.StringValue `hcl:"repository_name,attr" validate:"required"`
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
}

type TargetRepositoryAttributes

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

func (TargetRepositoryAttributes) InternalRef

func (tr TargetRepositoryAttributes) InternalRef() (terra.Reference, error)

func (TargetRepositoryAttributes) InternalTokens

func (tr TargetRepositoryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetRepositoryAttributes) InternalWithRef

func (TargetRepositoryAttributes) RepositoryName

func (tr TargetRepositoryAttributes) RepositoryName() terra.StringValue

func (TargetRepositoryAttributes) Service

type TargetRepositoryState

type TargetRepositoryState struct {
	RepositoryName string `json:"repository_name"`
	Service        string `json:"service"`
}

Jump to

Keyboard shortcuts

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