aws_ses_receipt_rule

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 AddHeaderAction

type AddHeaderAction struct {
	// HeaderName: string, required
	HeaderName terra.StringValue `hcl:"header_name,attr" validate:"required"`
	// HeaderValue: string, required
	HeaderValue terra.StringValue `hcl:"header_value,attr" validate:"required"`
	// Position: number, required
	Position terra.NumberValue `hcl:"position,attr" validate:"required"`
}

type AddHeaderActionAttributes

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

func (AddHeaderActionAttributes) HeaderName

func (aha AddHeaderActionAttributes) HeaderName() terra.StringValue

func (AddHeaderActionAttributes) HeaderValue

func (aha AddHeaderActionAttributes) HeaderValue() terra.StringValue

func (AddHeaderActionAttributes) InternalRef

func (aha AddHeaderActionAttributes) InternalRef() (terra.Reference, error)

func (AddHeaderActionAttributes) InternalTokens

func (aha AddHeaderActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AddHeaderActionAttributes) InternalWithRef

func (AddHeaderActionAttributes) Position

type AddHeaderActionState

type AddHeaderActionState struct {
	HeaderName  string  `json:"header_name"`
	HeaderValue string  `json:"header_value"`
	Position    float64 `json:"position"`
}

type Args

type Args struct {
	// After: string, optional
	After terra.StringValue `hcl:"after,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Recipients: set of string, optional
	Recipients terra.SetValue[terra.StringValue] `hcl:"recipients,attr"`
	// RuleSetName: string, required
	RuleSetName terra.StringValue `hcl:"rule_set_name,attr" validate:"required"`
	// ScanEnabled: bool, optional
	ScanEnabled terra.BoolValue `hcl:"scan_enabled,attr"`
	// TlsPolicy: string, optional
	TlsPolicy terra.StringValue `hcl:"tls_policy,attr"`
	// AddHeaderAction: min=0
	AddHeaderAction []AddHeaderAction `hcl:"add_header_action,block" validate:"min=0"`
	// BounceAction: min=0
	BounceAction []BounceAction `hcl:"bounce_action,block" validate:"min=0"`
	// LambdaAction: min=0
	LambdaAction []LambdaAction `hcl:"lambda_action,block" validate:"min=0"`
	// S3Action: min=0
	S3Action []S3Action `hcl:"s3_action,block" validate:"min=0"`
	// SnsAction: min=0
	SnsAction []SnsAction `hcl:"sns_action,block" validate:"min=0"`
	// StopAction: min=0
	StopAction []StopAction `hcl:"stop_action,block" validate:"min=0"`
	// WorkmailAction: min=0
	WorkmailAction []WorkmailAction `hcl:"workmail_action,block" validate:"min=0"`
}

Args contains the configurations for aws_ses_receipt_rule.

type BounceAction

type BounceAction struct {
	// Message: string, required
	Message terra.StringValue `hcl:"message,attr" validate:"required"`
	// Position: number, required
	Position terra.NumberValue `hcl:"position,attr" validate:"required"`
	// Sender: string, required
	Sender terra.StringValue `hcl:"sender,attr" validate:"required"`
	// SmtpReplyCode: string, required
	SmtpReplyCode terra.StringValue `hcl:"smtp_reply_code,attr" validate:"required"`
	// StatusCode: string, optional
	StatusCode terra.StringValue `hcl:"status_code,attr"`
	// TopicArn: string, optional
	TopicArn terra.StringValue `hcl:"topic_arn,attr"`
}

type BounceActionAttributes

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

func (BounceActionAttributes) InternalRef

func (ba BounceActionAttributes) InternalRef() (terra.Reference, error)

func (BounceActionAttributes) InternalTokens

func (ba BounceActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BounceActionAttributes) InternalWithRef

func (BounceActionAttributes) Message

func (BounceActionAttributes) Position

func (BounceActionAttributes) Sender

func (BounceActionAttributes) SmtpReplyCode

func (ba BounceActionAttributes) SmtpReplyCode() terra.StringValue

func (BounceActionAttributes) StatusCode

func (ba BounceActionAttributes) StatusCode() terra.StringValue

func (BounceActionAttributes) TopicArn

type BounceActionState

type BounceActionState struct {
	Message       string  `json:"message"`
	Position      float64 `json:"position"`
	Sender        string  `json:"sender"`
	SmtpReplyCode string  `json:"smtp_reply_code"`
	StatusCode    string  `json:"status_code"`
	TopicArn      string  `json:"topic_arn"`
}

type LambdaAction

type LambdaAction struct {
	// FunctionArn: string, required
	FunctionArn terra.StringValue `hcl:"function_arn,attr" validate:"required"`
	// InvocationType: string, optional
	InvocationType terra.StringValue `hcl:"invocation_type,attr"`
	// Position: number, required
	Position terra.NumberValue `hcl:"position,attr" validate:"required"`
	// TopicArn: string, optional
	TopicArn terra.StringValue `hcl:"topic_arn,attr"`
}

type LambdaActionAttributes

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

func (LambdaActionAttributes) FunctionArn

func (la LambdaActionAttributes) FunctionArn() terra.StringValue

func (LambdaActionAttributes) InternalRef

func (la LambdaActionAttributes) InternalRef() (terra.Reference, error)

func (LambdaActionAttributes) InternalTokens

func (la LambdaActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LambdaActionAttributes) InternalWithRef

func (LambdaActionAttributes) InvocationType

func (la LambdaActionAttributes) InvocationType() terra.StringValue

func (LambdaActionAttributes) Position

func (LambdaActionAttributes) TopicArn

type LambdaActionState

type LambdaActionState struct {
	FunctionArn    string  `json:"function_arn"`
	InvocationType string  `json:"invocation_type"`
	Position       float64 `json:"position"`
	TopicArn       string  `json:"topic_arn"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asrr *Resource) Attributes() awsSesReceiptRuleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asrr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asrr *Resource) State() (*awsSesReceiptRuleState, bool)

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

func (*Resource) StateMust

func (asrr *Resource) StateMust() *awsSesReceiptRuleState

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

func (*Resource) Type

func (asrr *Resource) Type() string

Type returns the Terraform object type for Resource.

type S3Action

type S3Action struct {
	// BucketName: string, required
	BucketName terra.StringValue `hcl:"bucket_name,attr" validate:"required"`
	// KmsKeyArn: string, optional
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr"`
	// ObjectKeyPrefix: string, optional
	ObjectKeyPrefix terra.StringValue `hcl:"object_key_prefix,attr"`
	// Position: number, required
	Position terra.NumberValue `hcl:"position,attr" validate:"required"`
	// TopicArn: string, optional
	TopicArn terra.StringValue `hcl:"topic_arn,attr"`
}

type S3ActionAttributes

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

func (S3ActionAttributes) BucketName

func (sa S3ActionAttributes) BucketName() terra.StringValue

func (S3ActionAttributes) InternalRef

func (sa S3ActionAttributes) InternalRef() (terra.Reference, error)

func (S3ActionAttributes) InternalTokens

func (sa S3ActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (S3ActionAttributes) InternalWithRef

func (sa S3ActionAttributes) InternalWithRef(ref terra.Reference) S3ActionAttributes

func (S3ActionAttributes) KmsKeyArn

func (sa S3ActionAttributes) KmsKeyArn() terra.StringValue

func (S3ActionAttributes) ObjectKeyPrefix

func (sa S3ActionAttributes) ObjectKeyPrefix() terra.StringValue

func (S3ActionAttributes) Position

func (sa S3ActionAttributes) Position() terra.NumberValue

func (S3ActionAttributes) TopicArn

func (sa S3ActionAttributes) TopicArn() terra.StringValue

type S3ActionState

type S3ActionState struct {
	BucketName      string  `json:"bucket_name"`
	KmsKeyArn       string  `json:"kms_key_arn"`
	ObjectKeyPrefix string  `json:"object_key_prefix"`
	Position        float64 `json:"position"`
	TopicArn        string  `json:"topic_arn"`
}

type SnsAction

type SnsAction struct {
	// Encoding: string, optional
	Encoding terra.StringValue `hcl:"encoding,attr"`
	// Position: number, required
	Position terra.NumberValue `hcl:"position,attr" validate:"required"`
	// TopicArn: string, required
	TopicArn terra.StringValue `hcl:"topic_arn,attr" validate:"required"`
}

type SnsActionAttributes

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

func (SnsActionAttributes) Encoding

func (sa SnsActionAttributes) Encoding() terra.StringValue

func (SnsActionAttributes) InternalRef

func (sa SnsActionAttributes) InternalRef() (terra.Reference, error)

func (SnsActionAttributes) InternalTokens

func (sa SnsActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SnsActionAttributes) InternalWithRef

func (sa SnsActionAttributes) InternalWithRef(ref terra.Reference) SnsActionAttributes

func (SnsActionAttributes) Position

func (sa SnsActionAttributes) Position() terra.NumberValue

func (SnsActionAttributes) TopicArn

func (sa SnsActionAttributes) TopicArn() terra.StringValue

type SnsActionState

type SnsActionState struct {
	Encoding string  `json:"encoding"`
	Position float64 `json:"position"`
	TopicArn string  `json:"topic_arn"`
}

type StopAction

type StopAction struct {
	// Position: number, required
	Position terra.NumberValue `hcl:"position,attr" validate:"required"`
	// Scope: string, required
	Scope terra.StringValue `hcl:"scope,attr" validate:"required"`
	// TopicArn: string, optional
	TopicArn terra.StringValue `hcl:"topic_arn,attr"`
}

type StopActionAttributes

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

func (StopActionAttributes) InternalRef

func (sa StopActionAttributes) InternalRef() (terra.Reference, error)

func (StopActionAttributes) InternalTokens

func (sa StopActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StopActionAttributes) InternalWithRef

func (sa StopActionAttributes) InternalWithRef(ref terra.Reference) StopActionAttributes

func (StopActionAttributes) Position

func (sa StopActionAttributes) Position() terra.NumberValue

func (StopActionAttributes) Scope

func (StopActionAttributes) TopicArn

func (sa StopActionAttributes) TopicArn() terra.StringValue

type StopActionState

type StopActionState struct {
	Position float64 `json:"position"`
	Scope    string  `json:"scope"`
	TopicArn string  `json:"topic_arn"`
}

type WorkmailAction

type WorkmailAction struct {
	// OrganizationArn: string, required
	OrganizationArn terra.StringValue `hcl:"organization_arn,attr" validate:"required"`
	// Position: number, required
	Position terra.NumberValue `hcl:"position,attr" validate:"required"`
	// TopicArn: string, optional
	TopicArn terra.StringValue `hcl:"topic_arn,attr"`
}

type WorkmailActionAttributes

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

func (WorkmailActionAttributes) InternalRef

func (wa WorkmailActionAttributes) InternalRef() (terra.Reference, error)

func (WorkmailActionAttributes) InternalTokens

func (wa WorkmailActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WorkmailActionAttributes) InternalWithRef

func (WorkmailActionAttributes) OrganizationArn

func (wa WorkmailActionAttributes) OrganizationArn() terra.StringValue

func (WorkmailActionAttributes) Position

func (WorkmailActionAttributes) TopicArn

type WorkmailActionState

type WorkmailActionState struct {
	OrganizationArn string  `json:"organization_arn"`
	Position        float64 `json:"position"`
	TopicArn        string  `json:"topic_arn"`
}

Jump to

Keyboard shortcuts

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