aws_ssm_association

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 {
	// ApplyOnlyAtCronInterval: bool, optional
	ApplyOnlyAtCronInterval terra.BoolValue `hcl:"apply_only_at_cron_interval,attr"`
	// AssociationName: string, optional
	AssociationName terra.StringValue `hcl:"association_name,attr"`
	// AutomationTargetParameterName: string, optional
	AutomationTargetParameterName terra.StringValue `hcl:"automation_target_parameter_name,attr"`
	// ComplianceSeverity: string, optional
	ComplianceSeverity terra.StringValue `hcl:"compliance_severity,attr"`
	// DocumentVersion: string, optional
	DocumentVersion terra.StringValue `hcl:"document_version,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceId: string, optional
	InstanceId terra.StringValue `hcl:"instance_id,attr"`
	// MaxConcurrency: string, optional
	MaxConcurrency terra.StringValue `hcl:"max_concurrency,attr"`
	// MaxErrors: string, optional
	MaxErrors terra.StringValue `hcl:"max_errors,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Parameters: map of string, optional
	Parameters terra.MapValue[terra.StringValue] `hcl:"parameters,attr"`
	// ScheduleExpression: string, optional
	ScheduleExpression terra.StringValue `hcl:"schedule_expression,attr"`
	// WaitForSuccessTimeoutSeconds: number, optional
	WaitForSuccessTimeoutSeconds terra.NumberValue `hcl:"wait_for_success_timeout_seconds,attr"`
	// OutputLocation: optional
	OutputLocation *OutputLocation `hcl:"output_location,block"`
	// Targets: min=0,max=5
	Targets []Targets `hcl:"targets,block" validate:"min=0,max=5"`
}

Args contains the configurations for aws_ssm_association.

type OutputLocation

type OutputLocation struct {
	// S3BucketName: string, required
	S3BucketName terra.StringValue `hcl:"s3_bucket_name,attr" validate:"required"`
	// S3KeyPrefix: string, optional
	S3KeyPrefix terra.StringValue `hcl:"s3_key_prefix,attr"`
	// S3Region: string, optional
	S3Region terra.StringValue `hcl:"s3_region,attr"`
}

type OutputLocationAttributes

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

func (OutputLocationAttributes) InternalRef

func (ol OutputLocationAttributes) InternalRef() (terra.Reference, error)

func (OutputLocationAttributes) InternalTokens

func (ol OutputLocationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OutputLocationAttributes) InternalWithRef

func (OutputLocationAttributes) S3BucketName

func (ol OutputLocationAttributes) S3BucketName() terra.StringValue

func (OutputLocationAttributes) S3KeyPrefix

func (ol OutputLocationAttributes) S3KeyPrefix() terra.StringValue

func (OutputLocationAttributes) S3Region

type OutputLocationState

type OutputLocationState struct {
	S3BucketName string `json:"s3_bucket_name"`
	S3KeyPrefix  string `json:"s3_key_prefix"`
	S3Region     string `json:"s3_region"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asa *Resource) Attributes() awsSsmAssociationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asa *Resource) State() (*awsSsmAssociationState, bool)

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

func (*Resource) StateMust

func (asa *Resource) StateMust() *awsSsmAssociationState

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

func (*Resource) Type

func (asa *Resource) Type() string

Type returns the Terraform object type for Resource.

type Targets

type Targets struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Values: list of string, required
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type TargetsAttributes

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

func (TargetsAttributes) InternalRef

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

func (TargetsAttributes) InternalTokens

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

func (TargetsAttributes) InternalWithRef

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

func (TargetsAttributes) Key

func (TargetsAttributes) Values

type TargetsState

type TargetsState struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

Jump to

Keyboard shortcuts

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