aws_ecs_cluster

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,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"`
	// Configuration: optional
	Configuration *Configuration `hcl:"configuration,block"`
	// ServiceConnectDefaults: optional
	ServiceConnectDefaults *ServiceConnectDefaults `hcl:"service_connect_defaults,block"`
	// Setting: min=0
	Setting []Setting `hcl:"setting,block" validate:"min=0"`
}

Args contains the configurations for aws_ecs_cluster.

type Configuration

type Configuration struct {
	// ConfigurationExecuteCommandConfiguration: optional
	ExecuteCommandConfiguration *ConfigurationExecuteCommandConfiguration `hcl:"execute_command_configuration,block"`
}

type ConfigurationAttributes

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

func (ConfigurationAttributes) ExecuteCommandConfiguration

func (ConfigurationAttributes) InternalRef

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

func (ConfigurationAttributes) InternalTokens

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

func (ConfigurationAttributes) InternalWithRef

type ConfigurationExecuteCommandConfiguration

type ConfigurationExecuteCommandConfiguration struct {
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// Logging: string, optional
	Logging terra.StringValue `hcl:"logging,attr"`
	// ConfigurationExecuteCommandConfigurationLogConfiguration: optional
	LogConfiguration *ConfigurationExecuteCommandConfigurationLogConfiguration `hcl:"log_configuration,block"`
}

type ConfigurationExecuteCommandConfigurationAttributes

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

func (ConfigurationExecuteCommandConfigurationAttributes) InternalRef

func (ConfigurationExecuteCommandConfigurationAttributes) InternalTokens

func (ConfigurationExecuteCommandConfigurationAttributes) InternalWithRef

func (ConfigurationExecuteCommandConfigurationAttributes) KmsKeyId

func (ConfigurationExecuteCommandConfigurationAttributes) Logging

type ConfigurationExecuteCommandConfigurationLogConfiguration

type ConfigurationExecuteCommandConfigurationLogConfiguration struct {
	// CloudWatchEncryptionEnabled: bool, optional
	CloudWatchEncryptionEnabled terra.BoolValue `hcl:"cloud_watch_encryption_enabled,attr"`
	// CloudWatchLogGroupName: string, optional
	CloudWatchLogGroupName terra.StringValue `hcl:"cloud_watch_log_group_name,attr"`
	// S3BucketEncryptionEnabled: bool, optional
	S3BucketEncryptionEnabled terra.BoolValue `hcl:"s3_bucket_encryption_enabled,attr"`
	// S3BucketName: string, optional
	S3BucketName terra.StringValue `hcl:"s3_bucket_name,attr"`
	// S3KeyPrefix: string, optional
	S3KeyPrefix terra.StringValue `hcl:"s3_key_prefix,attr"`
}

type ConfigurationExecuteCommandConfigurationLogConfigurationAttributes

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

func (ConfigurationExecuteCommandConfigurationLogConfigurationAttributes) CloudWatchEncryptionEnabled

func (ConfigurationExecuteCommandConfigurationLogConfigurationAttributes) CloudWatchLogGroupName

func (ConfigurationExecuteCommandConfigurationLogConfigurationAttributes) InternalRef

func (ConfigurationExecuteCommandConfigurationLogConfigurationAttributes) InternalTokens

func (ConfigurationExecuteCommandConfigurationLogConfigurationAttributes) InternalWithRef

func (ConfigurationExecuteCommandConfigurationLogConfigurationAttributes) S3BucketEncryptionEnabled

func (ConfigurationExecuteCommandConfigurationLogConfigurationAttributes) S3BucketName

func (ConfigurationExecuteCommandConfigurationLogConfigurationAttributes) S3KeyPrefix

type ConfigurationExecuteCommandConfigurationLogConfigurationState

type ConfigurationExecuteCommandConfigurationLogConfigurationState struct {
	CloudWatchEncryptionEnabled bool   `json:"cloud_watch_encryption_enabled"`
	CloudWatchLogGroupName      string `json:"cloud_watch_log_group_name"`
	S3BucketEncryptionEnabled   bool   `json:"s3_bucket_encryption_enabled"`
	S3BucketName                string `json:"s3_bucket_name"`
	S3KeyPrefix                 string `json:"s3_key_prefix"`
}

type ConfigurationExecuteCommandConfigurationState

type ConfigurationExecuteCommandConfigurationState struct {
	KmsKeyId         string                                                          `json:"kms_key_id"`
	Logging          string                                                          `json:"logging"`
	LogConfiguration []ConfigurationExecuteCommandConfigurationLogConfigurationState `json:"log_configuration"`
}

type ConfigurationState

type ConfigurationState struct {
	ExecuteCommandConfiguration []ConfigurationExecuteCommandConfigurationState `json:"execute_command_configuration"`
}

type DataArgs

type DataArgs struct {
	// ClusterName: string, required
	ClusterName terra.StringValue `hcl:"cluster_name,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_ecs_cluster.

type DataServiceConnectDefaultsAttributes

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

func (DataServiceConnectDefaultsAttributes) InternalRef

func (DataServiceConnectDefaultsAttributes) InternalTokens

func (DataServiceConnectDefaultsAttributes) InternalWithRef

func (DataServiceConnectDefaultsAttributes) Namespace

type DataServiceConnectDefaultsState

type DataServiceConnectDefaultsState struct {
	Namespace string `json:"namespace"`
}

type DataSettingAttributes

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

func (DataSettingAttributes) InternalRef

func (s DataSettingAttributes) InternalRef() (terra.Reference, error)

func (DataSettingAttributes) InternalTokens

func (s DataSettingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSettingAttributes) InternalWithRef

func (DataSettingAttributes) Name

func (DataSettingAttributes) Value

type DataSettingState

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

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_ecs_cluster.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aec *DataSource) Attributes() dataAwsEcsClusterAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aec *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aec *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_ecs_cluster.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aec *Resource) Attributes() awsEcsClusterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aec *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aec *Resource) State() (*awsEcsClusterState, bool)

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

func (*Resource) StateMust

func (aec *Resource) StateMust() *awsEcsClusterState

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

func (*Resource) Type

func (aec *Resource) Type() string

Type returns the Terraform object type for Resource.

type ServiceConnectDefaults

type ServiceConnectDefaults struct {
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
}

type ServiceConnectDefaultsAttributes

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

func (ServiceConnectDefaultsAttributes) InternalRef

func (ServiceConnectDefaultsAttributes) InternalTokens

func (scd ServiceConnectDefaultsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServiceConnectDefaultsAttributes) InternalWithRef

func (ServiceConnectDefaultsAttributes) Namespace

type ServiceConnectDefaultsState

type ServiceConnectDefaultsState struct {
	Namespace string `json:"namespace"`
}

type Setting

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

type SettingAttributes

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

func (SettingAttributes) InternalRef

func (s SettingAttributes) InternalRef() (terra.Reference, error)

func (SettingAttributes) InternalTokens

func (s SettingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SettingAttributes) InternalWithRef

func (s SettingAttributes) InternalWithRef(ref terra.Reference) SettingAttributes

func (SettingAttributes) Name

func (SettingAttributes) Value

type SettingState

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

Jump to

Keyboard shortcuts

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