aws_imagebuilder_image_recipe

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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"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"`
	// UserDataBase64: string, optional
	UserDataBase64 terra.StringValue `hcl:"user_data_base64,attr"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
	// WorkingDirectory: string, optional
	WorkingDirectory terra.StringValue `hcl:"working_directory,attr"`
	// BlockDeviceMapping: min=0
	BlockDeviceMapping []BlockDeviceMapping `hcl:"block_device_mapping,block" validate:"min=0"`
	// Component: min=1
	Component []Component `hcl:"component,block" validate:"min=1"`
	// SystemsManagerAgent: optional
	SystemsManagerAgent *SystemsManagerAgent `hcl:"systems_manager_agent,block"`
}

Args contains the configurations for aws_imagebuilder_image_recipe.

type BlockDeviceMapping

type BlockDeviceMapping 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"`
	// BlockDeviceMappingEbs: optional
	Ebs *BlockDeviceMappingEbs `hcl:"ebs,block"`
}

type BlockDeviceMappingAttributes

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

func (BlockDeviceMappingAttributes) DeviceName

func (BlockDeviceMappingAttributes) Ebs

func (BlockDeviceMappingAttributes) InternalRef

func (bdm BlockDeviceMappingAttributes) InternalRef() (terra.Reference, error)

func (BlockDeviceMappingAttributes) InternalTokens

func (bdm BlockDeviceMappingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BlockDeviceMappingAttributes) InternalWithRef

func (BlockDeviceMappingAttributes) NoDevice

func (BlockDeviceMappingAttributes) VirtualName

type BlockDeviceMappingEbs

type BlockDeviceMappingEbs 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 BlockDeviceMappingEbsAttributes

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

func (BlockDeviceMappingEbsAttributes) DeleteOnTermination

func (e BlockDeviceMappingEbsAttributes) DeleteOnTermination() terra.StringValue

func (BlockDeviceMappingEbsAttributes) Encrypted

func (BlockDeviceMappingEbsAttributes) InternalRef

func (BlockDeviceMappingEbsAttributes) InternalTokens

func (e BlockDeviceMappingEbsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BlockDeviceMappingEbsAttributes) InternalWithRef

func (BlockDeviceMappingEbsAttributes) Iops

func (BlockDeviceMappingEbsAttributes) KmsKeyId

func (BlockDeviceMappingEbsAttributes) SnapshotId

func (BlockDeviceMappingEbsAttributes) Throughput

func (BlockDeviceMappingEbsAttributes) VolumeSize

func (BlockDeviceMappingEbsAttributes) VolumeType

type BlockDeviceMappingEbsState

type BlockDeviceMappingEbsState 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 BlockDeviceMappingState

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

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

type DataBlockDeviceMappingAttributes

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

func (DataBlockDeviceMappingAttributes) DeviceName

func (DataBlockDeviceMappingAttributes) Ebs

func (DataBlockDeviceMappingAttributes) InternalRef

func (DataBlockDeviceMappingAttributes) InternalTokens

func (bdm DataBlockDeviceMappingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataBlockDeviceMappingAttributes) InternalWithRef

func (DataBlockDeviceMappingAttributes) NoDevice

func (DataBlockDeviceMappingAttributes) VirtualName

type DataBlockDeviceMappingEbsAttributes

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

func (DataBlockDeviceMappingEbsAttributes) DeleteOnTermination

func (e DataBlockDeviceMappingEbsAttributes) DeleteOnTermination() terra.BoolValue

func (DataBlockDeviceMappingEbsAttributes) Encrypted

func (DataBlockDeviceMappingEbsAttributes) InternalRef

func (DataBlockDeviceMappingEbsAttributes) InternalTokens

func (DataBlockDeviceMappingEbsAttributes) InternalWithRef

func (DataBlockDeviceMappingEbsAttributes) Iops

func (DataBlockDeviceMappingEbsAttributes) KmsKeyId

func (DataBlockDeviceMappingEbsAttributes) SnapshotId

func (DataBlockDeviceMappingEbsAttributes) Throughput

func (DataBlockDeviceMappingEbsAttributes) VolumeSize

func (DataBlockDeviceMappingEbsAttributes) VolumeType

type DataBlockDeviceMappingEbsState

type DataBlockDeviceMappingEbsState 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 DataBlockDeviceMappingState

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

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 DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_imagebuilder_image_recipe.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aiir *DataSource) Attributes() dataAwsImagebuilderImageRecipeAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aiir *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aiir *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_imagebuilder_image_recipe.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aiir *Resource) Attributes() awsImagebuilderImageRecipeAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aiir *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aiir *Resource) State() (*awsImagebuilderImageRecipeState, bool)

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

func (*Resource) StateMust

func (aiir *Resource) StateMust() *awsImagebuilderImageRecipeState

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

func (*Resource) Type

func (aiir *Resource) Type() string

Type returns the Terraform object type for Resource.

type SystemsManagerAgent

type SystemsManagerAgent struct {
	// UninstallAfterBuild: bool, required
	UninstallAfterBuild terra.BoolValue `hcl:"uninstall_after_build,attr" validate:"required"`
}

type SystemsManagerAgentAttributes

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

func (SystemsManagerAgentAttributes) InternalRef

func (sma SystemsManagerAgentAttributes) InternalRef() (terra.Reference, error)

func (SystemsManagerAgentAttributes) InternalTokens

func (sma SystemsManagerAgentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SystemsManagerAgentAttributes) InternalWithRef

func (SystemsManagerAgentAttributes) UninstallAfterBuild

func (sma SystemsManagerAgentAttributes) UninstallAfterBuild() terra.BoolValue

type SystemsManagerAgentState

type SystemsManagerAgentState struct {
	UninstallAfterBuild bool `json:"uninstall_after_build"`
}

Jump to

Keyboard shortcuts

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