aws_imagebuilder_image

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 {
	// ContainerRecipeArn: string, optional
	ContainerRecipeArn terra.StringValue `hcl:"container_recipe_arn,attr"`
	// DistributionConfigurationArn: string, optional
	DistributionConfigurationArn terra.StringValue `hcl:"distribution_configuration_arn,attr"`
	// EnhancedImageMetadataEnabled: bool, optional
	EnhancedImageMetadataEnabled terra.BoolValue `hcl:"enhanced_image_metadata_enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ImageRecipeArn: string, optional
	ImageRecipeArn terra.StringValue `hcl:"image_recipe_arn,attr"`
	// InfrastructureConfigurationArn: string, required
	InfrastructureConfigurationArn terra.StringValue `hcl:"infrastructure_configuration_arn,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"`
	// ImageScanningConfiguration: optional
	ImageScanningConfiguration *ImageScanningConfiguration `hcl:"image_scanning_configuration,block"`
	// ImageTestsConfiguration: optional
	ImageTestsConfiguration *ImageTestsConfiguration `hcl:"image_tests_configuration,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_imagebuilder_image.

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.

type DataImageScanningConfigurationAttributes

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

func (DataImageScanningConfigurationAttributes) EcrConfiguration

func (DataImageScanningConfigurationAttributes) ImageScanningEnabled

func (isc DataImageScanningConfigurationAttributes) ImageScanningEnabled() terra.BoolValue

func (DataImageScanningConfigurationAttributes) InternalRef

func (DataImageScanningConfigurationAttributes) InternalTokens

func (DataImageScanningConfigurationAttributes) InternalWithRef

type DataImageScanningConfigurationEcrConfigurationAttributes

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

func (DataImageScanningConfigurationEcrConfigurationAttributes) ContainerTags

func (DataImageScanningConfigurationEcrConfigurationAttributes) InternalRef

func (DataImageScanningConfigurationEcrConfigurationAttributes) InternalTokens

func (DataImageScanningConfigurationEcrConfigurationAttributes) InternalWithRef

func (DataImageScanningConfigurationEcrConfigurationAttributes) RepositoryName

type DataImageScanningConfigurationEcrConfigurationState

type DataImageScanningConfigurationEcrConfigurationState struct {
	ContainerTags  []string `json:"container_tags"`
	RepositoryName string   `json:"repository_name"`
}

type DataImageScanningConfigurationState

type DataImageScanningConfigurationState struct {
	ImageScanningEnabled bool                                                  `json:"image_scanning_enabled"`
	EcrConfiguration     []DataImageScanningConfigurationEcrConfigurationState `json:"ecr_configuration"`
}

type DataImageTestsConfigurationAttributes

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

func (DataImageTestsConfigurationAttributes) ImageTestsEnabled

func (itc DataImageTestsConfigurationAttributes) ImageTestsEnabled() terra.BoolValue

func (DataImageTestsConfigurationAttributes) InternalRef

func (DataImageTestsConfigurationAttributes) InternalTokens

func (DataImageTestsConfigurationAttributes) InternalWithRef

func (DataImageTestsConfigurationAttributes) TimeoutMinutes

type DataImageTestsConfigurationState

type DataImageTestsConfigurationState struct {
	ImageTestsEnabled bool    `json:"image_tests_enabled"`
	TimeoutMinutes    float64 `json:"timeout_minutes"`
}

type DataOutputResourcesAmisAttributes

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

func (DataOutputResourcesAmisAttributes) AccountId

func (DataOutputResourcesAmisAttributes) Description

func (DataOutputResourcesAmisAttributes) Image

func (DataOutputResourcesAmisAttributes) InternalRef

func (DataOutputResourcesAmisAttributes) InternalTokens

func (DataOutputResourcesAmisAttributes) InternalWithRef

func (DataOutputResourcesAmisAttributes) Name

func (DataOutputResourcesAmisAttributes) Region

type DataOutputResourcesAmisState

type DataOutputResourcesAmisState struct {
	AccountId   string `json:"account_id"`
	Description string `json:"description"`
	Image       string `json:"image"`
	Name        string `json:"name"`
	Region      string `json:"region"`
}

type DataOutputResourcesAttributes

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

func (DataOutputResourcesAttributes) Amis

func (DataOutputResourcesAttributes) Containers

func (DataOutputResourcesAttributes) InternalRef

func (or DataOutputResourcesAttributes) InternalRef() (terra.Reference, error)

func (DataOutputResourcesAttributes) InternalTokens

func (or DataOutputResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataOutputResourcesAttributes) InternalWithRef

type DataOutputResourcesContainersAttributes

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

func (DataOutputResourcesContainersAttributes) ImageUris

func (DataOutputResourcesContainersAttributes) InternalRef

func (DataOutputResourcesContainersAttributes) InternalTokens

func (DataOutputResourcesContainersAttributes) InternalWithRef

func (DataOutputResourcesContainersAttributes) Region

type DataOutputResourcesContainersState

type DataOutputResourcesContainersState struct {
	ImageUris []string `json:"image_uris"`
	Region    string   `json:"region"`
}

type DataOutputResourcesState

type DataOutputResourcesState struct {
	Amis       []DataOutputResourcesAmisState       `json:"amis"`
	Containers []DataOutputResourcesContainersState `json:"containers"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_imagebuilder_image.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aii *DataSource) Attributes() dataAwsImagebuilderImageAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aii *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aii *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type ImageScanningConfiguration

type ImageScanningConfiguration struct {
	// ImageScanningEnabled: bool, optional
	ImageScanningEnabled terra.BoolValue `hcl:"image_scanning_enabled,attr"`
	// ImageScanningConfigurationEcrConfiguration: optional
	EcrConfiguration *ImageScanningConfigurationEcrConfiguration `hcl:"ecr_configuration,block"`
}

type ImageScanningConfigurationAttributes

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

func (ImageScanningConfigurationAttributes) EcrConfiguration

func (ImageScanningConfigurationAttributes) ImageScanningEnabled

func (isc ImageScanningConfigurationAttributes) ImageScanningEnabled() terra.BoolValue

func (ImageScanningConfigurationAttributes) InternalRef

func (ImageScanningConfigurationAttributes) InternalTokens

func (ImageScanningConfigurationAttributes) InternalWithRef

type ImageScanningConfigurationEcrConfiguration

type ImageScanningConfigurationEcrConfiguration struct {
	// ContainerTags: set of string, optional
	ContainerTags terra.SetValue[terra.StringValue] `hcl:"container_tags,attr"`
	// RepositoryName: string, optional
	RepositoryName terra.StringValue `hcl:"repository_name,attr"`
}

type ImageScanningConfigurationEcrConfigurationAttributes

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

func (ImageScanningConfigurationEcrConfigurationAttributes) ContainerTags

func (ImageScanningConfigurationEcrConfigurationAttributes) InternalRef

func (ImageScanningConfigurationEcrConfigurationAttributes) InternalTokens

func (ImageScanningConfigurationEcrConfigurationAttributes) InternalWithRef

func (ImageScanningConfigurationEcrConfigurationAttributes) RepositoryName

type ImageScanningConfigurationEcrConfigurationState

type ImageScanningConfigurationEcrConfigurationState struct {
	ContainerTags  []string `json:"container_tags"`
	RepositoryName string   `json:"repository_name"`
}

type ImageScanningConfigurationState

type ImageScanningConfigurationState struct {
	ImageScanningEnabled bool                                              `json:"image_scanning_enabled"`
	EcrConfiguration     []ImageScanningConfigurationEcrConfigurationState `json:"ecr_configuration"`
}

type ImageTestsConfiguration

type ImageTestsConfiguration struct {
	// ImageTestsEnabled: bool, optional
	ImageTestsEnabled terra.BoolValue `hcl:"image_tests_enabled,attr"`
	// TimeoutMinutes: number, optional
	TimeoutMinutes terra.NumberValue `hcl:"timeout_minutes,attr"`
}

type ImageTestsConfigurationAttributes

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

func (ImageTestsConfigurationAttributes) ImageTestsEnabled

func (itc ImageTestsConfigurationAttributes) ImageTestsEnabled() terra.BoolValue

func (ImageTestsConfigurationAttributes) InternalRef

func (ImageTestsConfigurationAttributes) InternalTokens

func (itc ImageTestsConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ImageTestsConfigurationAttributes) InternalWithRef

func (ImageTestsConfigurationAttributes) TimeoutMinutes

type ImageTestsConfigurationState

type ImageTestsConfigurationState struct {
	ImageTestsEnabled bool    `json:"image_tests_enabled"`
	TimeoutMinutes    float64 `json:"timeout_minutes"`
}

type OutputResourcesAmisAttributes

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

func (OutputResourcesAmisAttributes) AccountId

func (OutputResourcesAmisAttributes) Description

func (OutputResourcesAmisAttributes) Image

func (OutputResourcesAmisAttributes) InternalRef

func (OutputResourcesAmisAttributes) InternalTokens

func (a OutputResourcesAmisAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OutputResourcesAmisAttributes) InternalWithRef

func (OutputResourcesAmisAttributes) Name

func (OutputResourcesAmisAttributes) Region

type OutputResourcesAmisState

type OutputResourcesAmisState struct {
	AccountId   string `json:"account_id"`
	Description string `json:"description"`
	Image       string `json:"image"`
	Name        string `json:"name"`
	Region      string `json:"region"`
}

type OutputResourcesAttributes

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

func (OutputResourcesAttributes) Amis

func (OutputResourcesAttributes) Containers

func (OutputResourcesAttributes) InternalRef

func (or OutputResourcesAttributes) InternalRef() (terra.Reference, error)

func (OutputResourcesAttributes) InternalTokens

func (or OutputResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OutputResourcesAttributes) InternalWithRef

type OutputResourcesContainersAttributes

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

func (OutputResourcesContainersAttributes) ImageUris

func (OutputResourcesContainersAttributes) InternalRef

func (OutputResourcesContainersAttributes) InternalTokens

func (OutputResourcesContainersAttributes) InternalWithRef

func (OutputResourcesContainersAttributes) Region

type OutputResourcesContainersState

type OutputResourcesContainersState struct {
	ImageUris []string `json:"image_uris"`
	Region    string   `json:"region"`
}

type OutputResourcesState

type OutputResourcesState struct {
	Amis       []OutputResourcesAmisState       `json:"amis"`
	Containers []OutputResourcesContainersState `json:"containers"`
}

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.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aii *Resource) Attributes() awsImagebuilderImageAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aii *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aii *Resource) State() (*awsImagebuilderImageState, bool)

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

func (*Resource) StateMust

func (aii *Resource) StateMust() *awsImagebuilderImageState

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

func (*Resource) Type

func (aii *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"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

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

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
}

Jump to

Keyboard shortcuts

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