aws_cloudwatch_event_target

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 {
	// Arn: string, required
	Arn terra.StringValue `hcl:"arn,attr" validate:"required"`
	// EventBusName: string, optional
	EventBusName terra.StringValue `hcl:"event_bus_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Input: string, optional
	Input terra.StringValue `hcl:"input,attr"`
	// InputPath: string, optional
	InputPath terra.StringValue `hcl:"input_path,attr"`
	// RoleArn: string, optional
	RoleArn terra.StringValue `hcl:"role_arn,attr"`
	// Rule: string, required
	Rule terra.StringValue `hcl:"rule,attr" validate:"required"`
	// TargetId: string, optional
	TargetId terra.StringValue `hcl:"target_id,attr"`
	// BatchTarget: optional
	BatchTarget *BatchTarget `hcl:"batch_target,block"`
	// DeadLetterConfig: optional
	DeadLetterConfig *DeadLetterConfig `hcl:"dead_letter_config,block"`
	// EcsTarget: optional
	EcsTarget *EcsTarget `hcl:"ecs_target,block"`
	// HttpTarget: optional
	HttpTarget *HttpTarget `hcl:"http_target,block"`
	// InputTransformer: optional
	InputTransformer *InputTransformer `hcl:"input_transformer,block"`
	// KinesisTarget: optional
	KinesisTarget *KinesisTarget `hcl:"kinesis_target,block"`
	// RedshiftTarget: optional
	RedshiftTarget *RedshiftTarget `hcl:"redshift_target,block"`
	// RetryPolicy: optional
	RetryPolicy *RetryPolicy `hcl:"retry_policy,block"`
	// RunCommandTargets: min=0,max=5
	RunCommandTargets []RunCommandTargets `hcl:"run_command_targets,block" validate:"min=0,max=5"`
	// SqsTarget: optional
	SqsTarget *SqsTarget `hcl:"sqs_target,block"`
}

Args contains the configurations for aws_cloudwatch_event_target.

type BatchTarget

type BatchTarget struct {
	// ArraySize: number, optional
	ArraySize terra.NumberValue `hcl:"array_size,attr"`
	// JobAttempts: number, optional
	JobAttempts terra.NumberValue `hcl:"job_attempts,attr"`
	// JobDefinition: string, required
	JobDefinition terra.StringValue `hcl:"job_definition,attr" validate:"required"`
	// JobName: string, required
	JobName terra.StringValue `hcl:"job_name,attr" validate:"required"`
}

type BatchTargetAttributes

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

func (BatchTargetAttributes) ArraySize

func (bt BatchTargetAttributes) ArraySize() terra.NumberValue

func (BatchTargetAttributes) InternalRef

func (bt BatchTargetAttributes) InternalRef() (terra.Reference, error)

func (BatchTargetAttributes) InternalTokens

func (bt BatchTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BatchTargetAttributes) InternalWithRef

func (BatchTargetAttributes) JobAttempts

func (bt BatchTargetAttributes) JobAttempts() terra.NumberValue

func (BatchTargetAttributes) JobDefinition

func (bt BatchTargetAttributes) JobDefinition() terra.StringValue

func (BatchTargetAttributes) JobName

type BatchTargetState

type BatchTargetState struct {
	ArraySize     float64 `json:"array_size"`
	JobAttempts   float64 `json:"job_attempts"`
	JobDefinition string  `json:"job_definition"`
	JobName       string  `json:"job_name"`
}

type DeadLetterConfig

type DeadLetterConfig struct {
	// Arn: string, optional
	Arn terra.StringValue `hcl:"arn,attr"`
}

type DeadLetterConfigAttributes

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

func (DeadLetterConfigAttributes) Arn

func (DeadLetterConfigAttributes) InternalRef

func (dlc DeadLetterConfigAttributes) InternalRef() (terra.Reference, error)

func (DeadLetterConfigAttributes) InternalTokens

func (dlc DeadLetterConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DeadLetterConfigAttributes) InternalWithRef

type DeadLetterConfigState

type DeadLetterConfigState struct {
	Arn string `json:"arn"`
}

type EcsTarget

type EcsTarget struct {
	// EnableEcsManagedTags: bool, optional
	EnableEcsManagedTags terra.BoolValue `hcl:"enable_ecs_managed_tags,attr"`
	// EnableExecuteCommand: bool, optional
	EnableExecuteCommand terra.BoolValue `hcl:"enable_execute_command,attr"`
	// Group: string, optional
	Group terra.StringValue `hcl:"group,attr"`
	// LaunchType: string, optional
	LaunchType terra.StringValue `hcl:"launch_type,attr"`
	// PlatformVersion: string, optional
	PlatformVersion terra.StringValue `hcl:"platform_version,attr"`
	// PropagateTags: string, optional
	PropagateTags terra.StringValue `hcl:"propagate_tags,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TaskCount: number, optional
	TaskCount terra.NumberValue `hcl:"task_count,attr"`
	// TaskDefinitionArn: string, required
	TaskDefinitionArn terra.StringValue `hcl:"task_definition_arn,attr" validate:"required"`
	// EcsTargetCapacityProviderStrategy: min=0
	CapacityProviderStrategy []EcsTargetCapacityProviderStrategy `hcl:"capacity_provider_strategy,block" validate:"min=0"`
	// EcsTargetNetworkConfiguration: optional
	NetworkConfiguration *EcsTargetNetworkConfiguration `hcl:"network_configuration,block"`
	// EcsTargetPlacementConstraint: min=0,max=10
	PlacementConstraint []EcsTargetPlacementConstraint `hcl:"placement_constraint,block" validate:"min=0,max=10"`
}

type EcsTargetAttributes

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

func (EcsTargetAttributes) CapacityProviderStrategy

func (EcsTargetAttributes) EnableEcsManagedTags

func (et EcsTargetAttributes) EnableEcsManagedTags() terra.BoolValue

func (EcsTargetAttributes) EnableExecuteCommand

func (et EcsTargetAttributes) EnableExecuteCommand() terra.BoolValue

func (EcsTargetAttributes) Group

func (EcsTargetAttributes) InternalRef

func (et EcsTargetAttributes) InternalRef() (terra.Reference, error)

func (EcsTargetAttributes) InternalTokens

func (et EcsTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EcsTargetAttributes) InternalWithRef

func (et EcsTargetAttributes) InternalWithRef(ref terra.Reference) EcsTargetAttributes

func (EcsTargetAttributes) LaunchType

func (et EcsTargetAttributes) LaunchType() terra.StringValue

func (EcsTargetAttributes) NetworkConfiguration

func (EcsTargetAttributes) PlacementConstraint

func (EcsTargetAttributes) PlatformVersion

func (et EcsTargetAttributes) PlatformVersion() terra.StringValue

func (EcsTargetAttributes) PropagateTags

func (et EcsTargetAttributes) PropagateTags() terra.StringValue

func (EcsTargetAttributes) Tags

func (EcsTargetAttributes) TaskCount

func (et EcsTargetAttributes) TaskCount() terra.NumberValue

func (EcsTargetAttributes) TaskDefinitionArn

func (et EcsTargetAttributes) TaskDefinitionArn() terra.StringValue

type EcsTargetCapacityProviderStrategy

type EcsTargetCapacityProviderStrategy struct {
	// Base: number, optional
	Base terra.NumberValue `hcl:"base,attr"`
	// CapacityProvider: string, required
	CapacityProvider terra.StringValue `hcl:"capacity_provider,attr" validate:"required"`
	// Weight: number, optional
	Weight terra.NumberValue `hcl:"weight,attr"`
}

type EcsTargetCapacityProviderStrategyAttributes

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

func (EcsTargetCapacityProviderStrategyAttributes) Base

func (EcsTargetCapacityProviderStrategyAttributes) CapacityProvider

func (EcsTargetCapacityProviderStrategyAttributes) InternalRef

func (EcsTargetCapacityProviderStrategyAttributes) InternalTokens

func (EcsTargetCapacityProviderStrategyAttributes) InternalWithRef

func (EcsTargetCapacityProviderStrategyAttributes) Weight

type EcsTargetCapacityProviderStrategyState

type EcsTargetCapacityProviderStrategyState struct {
	Base             float64 `json:"base"`
	CapacityProvider string  `json:"capacity_provider"`
	Weight           float64 `json:"weight"`
}

type EcsTargetNetworkConfiguration

type EcsTargetNetworkConfiguration struct {
	// AssignPublicIp: bool, optional
	AssignPublicIp terra.BoolValue `hcl:"assign_public_ip,attr"`
	// SecurityGroups: set of string, optional
	SecurityGroups terra.SetValue[terra.StringValue] `hcl:"security_groups,attr"`
	// Subnets: set of string, required
	Subnets terra.SetValue[terra.StringValue] `hcl:"subnets,attr" validate:"required"`
}

type EcsTargetNetworkConfigurationAttributes

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

func (EcsTargetNetworkConfigurationAttributes) AssignPublicIp

func (EcsTargetNetworkConfigurationAttributes) InternalRef

func (EcsTargetNetworkConfigurationAttributes) InternalTokens

func (EcsTargetNetworkConfigurationAttributes) InternalWithRef

func (EcsTargetNetworkConfigurationAttributes) SecurityGroups

func (EcsTargetNetworkConfigurationAttributes) Subnets

type EcsTargetNetworkConfigurationState

type EcsTargetNetworkConfigurationState struct {
	AssignPublicIp bool     `json:"assign_public_ip"`
	SecurityGroups []string `json:"security_groups"`
	Subnets        []string `json:"subnets"`
}

type EcsTargetPlacementConstraint

type EcsTargetPlacementConstraint struct {
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type EcsTargetPlacementConstraintAttributes

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

func (EcsTargetPlacementConstraintAttributes) Expression

func (EcsTargetPlacementConstraintAttributes) InternalRef

func (EcsTargetPlacementConstraintAttributes) InternalTokens

func (EcsTargetPlacementConstraintAttributes) InternalWithRef

func (EcsTargetPlacementConstraintAttributes) Type

type EcsTargetPlacementConstraintState

type EcsTargetPlacementConstraintState struct {
	Expression string `json:"expression"`
	Type       string `json:"type"`
}

type EcsTargetState

type EcsTargetState struct {
	EnableEcsManagedTags     bool                                     `json:"enable_ecs_managed_tags"`
	EnableExecuteCommand     bool                                     `json:"enable_execute_command"`
	Group                    string                                   `json:"group"`
	LaunchType               string                                   `json:"launch_type"`
	PlatformVersion          string                                   `json:"platform_version"`
	PropagateTags            string                                   `json:"propagate_tags"`
	Tags                     map[string]string                        `json:"tags"`
	TaskCount                float64                                  `json:"task_count"`
	TaskDefinitionArn        string                                   `json:"task_definition_arn"`
	CapacityProviderStrategy []EcsTargetCapacityProviderStrategyState `json:"capacity_provider_strategy"`
	NetworkConfiguration     []EcsTargetNetworkConfigurationState     `json:"network_configuration"`
	PlacementConstraint      []EcsTargetPlacementConstraintState      `json:"placement_constraint"`
}

type HttpTarget

type HttpTarget struct {
	// HeaderParameters: map of string, optional
	HeaderParameters terra.MapValue[terra.StringValue] `hcl:"header_parameters,attr"`
	// PathParameterValues: list of string, optional
	PathParameterValues terra.ListValue[terra.StringValue] `hcl:"path_parameter_values,attr"`
	// QueryStringParameters: map of string, optional
	QueryStringParameters terra.MapValue[terra.StringValue] `hcl:"query_string_parameters,attr"`
}

type HttpTargetAttributes

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

func (HttpTargetAttributes) HeaderParameters

func (ht HttpTargetAttributes) HeaderParameters() terra.MapValue[terra.StringValue]

func (HttpTargetAttributes) InternalRef

func (ht HttpTargetAttributes) InternalRef() (terra.Reference, error)

func (HttpTargetAttributes) InternalTokens

func (ht HttpTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpTargetAttributes) InternalWithRef

func (ht HttpTargetAttributes) InternalWithRef(ref terra.Reference) HttpTargetAttributes

func (HttpTargetAttributes) PathParameterValues

func (ht HttpTargetAttributes) PathParameterValues() terra.ListValue[terra.StringValue]

func (HttpTargetAttributes) QueryStringParameters

func (ht HttpTargetAttributes) QueryStringParameters() terra.MapValue[terra.StringValue]

type HttpTargetState

type HttpTargetState struct {
	HeaderParameters      map[string]string `json:"header_parameters"`
	PathParameterValues   []string          `json:"path_parameter_values"`
	QueryStringParameters map[string]string `json:"query_string_parameters"`
}

type InputTransformer

type InputTransformer struct {
	// InputPaths: map of string, optional
	InputPaths terra.MapValue[terra.StringValue] `hcl:"input_paths,attr"`
	// InputTemplate: string, required
	InputTemplate terra.StringValue `hcl:"input_template,attr" validate:"required"`
}

type InputTransformerAttributes

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

func (InputTransformerAttributes) InputPaths

func (InputTransformerAttributes) InputTemplate

func (it InputTransformerAttributes) InputTemplate() terra.StringValue

func (InputTransformerAttributes) InternalRef

func (it InputTransformerAttributes) InternalRef() (terra.Reference, error)

func (InputTransformerAttributes) InternalTokens

func (it InputTransformerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InputTransformerAttributes) InternalWithRef

type InputTransformerState

type InputTransformerState struct {
	InputPaths    map[string]string `json:"input_paths"`
	InputTemplate string            `json:"input_template"`
}

type KinesisTarget

type KinesisTarget struct {
	// PartitionKeyPath: string, optional
	PartitionKeyPath terra.StringValue `hcl:"partition_key_path,attr"`
}

type KinesisTargetAttributes

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

func (KinesisTargetAttributes) InternalRef

func (kt KinesisTargetAttributes) InternalRef() (terra.Reference, error)

func (KinesisTargetAttributes) InternalTokens

func (kt KinesisTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (KinesisTargetAttributes) InternalWithRef

func (KinesisTargetAttributes) PartitionKeyPath

func (kt KinesisTargetAttributes) PartitionKeyPath() terra.StringValue

type KinesisTargetState

type KinesisTargetState struct {
	PartitionKeyPath string `json:"partition_key_path"`
}

type RedshiftTarget

type RedshiftTarget struct {
	// Database: string, required
	Database terra.StringValue `hcl:"database,attr" validate:"required"`
	// DbUser: string, optional
	DbUser terra.StringValue `hcl:"db_user,attr"`
	// SecretsManagerArn: string, optional
	SecretsManagerArn terra.StringValue `hcl:"secrets_manager_arn,attr"`
	// Sql: string, optional
	Sql terra.StringValue `hcl:"sql,attr"`
	// StatementName: string, optional
	StatementName terra.StringValue `hcl:"statement_name,attr"`
	// WithEvent: bool, optional
	WithEvent terra.BoolValue `hcl:"with_event,attr"`
}

type RedshiftTargetAttributes

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

func (RedshiftTargetAttributes) Database

func (RedshiftTargetAttributes) DbUser

func (RedshiftTargetAttributes) InternalRef

func (rt RedshiftTargetAttributes) InternalRef() (terra.Reference, error)

func (RedshiftTargetAttributes) InternalTokens

func (rt RedshiftTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RedshiftTargetAttributes) InternalWithRef

func (RedshiftTargetAttributes) SecretsManagerArn

func (rt RedshiftTargetAttributes) SecretsManagerArn() terra.StringValue

func (RedshiftTargetAttributes) Sql

func (RedshiftTargetAttributes) StatementName

func (rt RedshiftTargetAttributes) StatementName() terra.StringValue

func (RedshiftTargetAttributes) WithEvent

func (rt RedshiftTargetAttributes) WithEvent() terra.BoolValue

type RedshiftTargetState

type RedshiftTargetState struct {
	Database          string `json:"database"`
	DbUser            string `json:"db_user"`
	SecretsManagerArn string `json:"secrets_manager_arn"`
	Sql               string `json:"sql"`
	StatementName     string `json:"statement_name"`
	WithEvent         bool   `json:"with_event"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acet *Resource) Attributes() awsCloudwatchEventTargetAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acet *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acet *Resource) State() (*awsCloudwatchEventTargetState, bool)

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

func (*Resource) StateMust

func (acet *Resource) StateMust() *awsCloudwatchEventTargetState

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

func (*Resource) Type

func (acet *Resource) Type() string

Type returns the Terraform object type for Resource.

type RetryPolicy

type RetryPolicy struct {
	// MaximumEventAgeInSeconds: number, optional
	MaximumEventAgeInSeconds terra.NumberValue `hcl:"maximum_event_age_in_seconds,attr"`
	// MaximumRetryAttempts: number, optional
	MaximumRetryAttempts terra.NumberValue `hcl:"maximum_retry_attempts,attr"`
}

type RetryPolicyAttributes

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

func (RetryPolicyAttributes) InternalRef

func (rp RetryPolicyAttributes) InternalRef() (terra.Reference, error)

func (RetryPolicyAttributes) InternalTokens

func (rp RetryPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetryPolicyAttributes) InternalWithRef

func (RetryPolicyAttributes) MaximumEventAgeInSeconds

func (rp RetryPolicyAttributes) MaximumEventAgeInSeconds() terra.NumberValue

func (RetryPolicyAttributes) MaximumRetryAttempts

func (rp RetryPolicyAttributes) MaximumRetryAttempts() terra.NumberValue

type RetryPolicyState

type RetryPolicyState struct {
	MaximumEventAgeInSeconds float64 `json:"maximum_event_age_in_seconds"`
	MaximumRetryAttempts     float64 `json:"maximum_retry_attempts"`
}

type RunCommandTargets

type RunCommandTargets 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 RunCommandTargetsAttributes

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

func (RunCommandTargetsAttributes) InternalRef

func (rct RunCommandTargetsAttributes) InternalRef() (terra.Reference, error)

func (RunCommandTargetsAttributes) InternalTokens

func (rct RunCommandTargetsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RunCommandTargetsAttributes) InternalWithRef

func (RunCommandTargetsAttributes) Key

func (RunCommandTargetsAttributes) Values

type RunCommandTargetsState

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

type SqsTarget

type SqsTarget struct {
	// MessageGroupId: string, optional
	MessageGroupId terra.StringValue `hcl:"message_group_id,attr"`
}

type SqsTargetAttributes

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

func (SqsTargetAttributes) InternalRef

func (st SqsTargetAttributes) InternalRef() (terra.Reference, error)

func (SqsTargetAttributes) InternalTokens

func (st SqsTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SqsTargetAttributes) InternalWithRef

func (st SqsTargetAttributes) InternalWithRef(ref terra.Reference) SqsTargetAttributes

func (SqsTargetAttributes) MessageGroupId

func (st SqsTargetAttributes) MessageGroupId() terra.StringValue

type SqsTargetState

type SqsTargetState struct {
	MessageGroupId string `json:"message_group_id"`
}

Jump to

Keyboard shortcuts

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