aws_s3_bucket_notification

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 {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// Eventbridge: bool, optional
	Eventbridge terra.BoolValue `hcl:"eventbridge,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LambdaFunction: min=0
	LambdaFunction []LambdaFunction `hcl:"lambda_function,block" validate:"min=0"`
	// Queue: min=0
	Queue []Queue `hcl:"queue,block" validate:"min=0"`
	// Topic: min=0
	Topic []Topic `hcl:"topic,block" validate:"min=0"`
}

Args contains the configurations for aws_s3_bucket_notification.

type LambdaFunction

type LambdaFunction struct {
	// Events: set of string, required
	Events terra.SetValue[terra.StringValue] `hcl:"events,attr" validate:"required"`
	// FilterPrefix: string, optional
	FilterPrefix terra.StringValue `hcl:"filter_prefix,attr"`
	// FilterSuffix: string, optional
	FilterSuffix terra.StringValue `hcl:"filter_suffix,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LambdaFunctionArn: string, optional
	LambdaFunctionArn terra.StringValue `hcl:"lambda_function_arn,attr"`
}

type LambdaFunctionAttributes

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

func (LambdaFunctionAttributes) Events

func (LambdaFunctionAttributes) FilterPrefix

func (lf LambdaFunctionAttributes) FilterPrefix() terra.StringValue

func (LambdaFunctionAttributes) FilterSuffix

func (lf LambdaFunctionAttributes) FilterSuffix() terra.StringValue

func (LambdaFunctionAttributes) Id

func (LambdaFunctionAttributes) InternalRef

func (lf LambdaFunctionAttributes) InternalRef() (terra.Reference, error)

func (LambdaFunctionAttributes) InternalTokens

func (lf LambdaFunctionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LambdaFunctionAttributes) InternalWithRef

func (LambdaFunctionAttributes) LambdaFunctionArn

func (lf LambdaFunctionAttributes) LambdaFunctionArn() terra.StringValue

type LambdaFunctionState

type LambdaFunctionState struct {
	Events            []string `json:"events"`
	FilterPrefix      string   `json:"filter_prefix"`
	FilterSuffix      string   `json:"filter_suffix"`
	Id                string   `json:"id"`
	LambdaFunctionArn string   `json:"lambda_function_arn"`
}

type Queue

type Queue struct {
	// Events: set of string, required
	Events terra.SetValue[terra.StringValue] `hcl:"events,attr" validate:"required"`
	// FilterPrefix: string, optional
	FilterPrefix terra.StringValue `hcl:"filter_prefix,attr"`
	// FilterSuffix: string, optional
	FilterSuffix terra.StringValue `hcl:"filter_suffix,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// QueueArn: string, required
	QueueArn terra.StringValue `hcl:"queue_arn,attr" validate:"required"`
}

type QueueAttributes

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

func (QueueAttributes) Events

func (QueueAttributes) FilterPrefix

func (q QueueAttributes) FilterPrefix() terra.StringValue

func (QueueAttributes) FilterSuffix

func (q QueueAttributes) FilterSuffix() terra.StringValue

func (QueueAttributes) Id

func (QueueAttributes) InternalRef

func (q QueueAttributes) InternalRef() (terra.Reference, error)

func (QueueAttributes) InternalTokens

func (q QueueAttributes) InternalTokens() (hclwrite.Tokens, error)

func (QueueAttributes) InternalWithRef

func (q QueueAttributes) InternalWithRef(ref terra.Reference) QueueAttributes

func (QueueAttributes) QueueArn

func (q QueueAttributes) QueueArn() terra.StringValue

type QueueState

type QueueState struct {
	Events       []string `json:"events"`
	FilterPrefix string   `json:"filter_prefix"`
	FilterSuffix string   `json:"filter_suffix"`
	Id           string   `json:"id"`
	QueueArn     string   `json:"queue_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_s3_bucket_notification.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asbn *Resource) Attributes() awsS3BucketNotificationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asbn *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asbn *Resource) State() (*awsS3BucketNotificationState, bool)

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

func (*Resource) StateMust

func (asbn *Resource) StateMust() *awsS3BucketNotificationState

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

func (*Resource) Type

func (asbn *Resource) Type() string

Type returns the Terraform object type for Resource.

type Topic

type Topic struct {
	// Events: set of string, required
	Events terra.SetValue[terra.StringValue] `hcl:"events,attr" validate:"required"`
	// FilterPrefix: string, optional
	FilterPrefix terra.StringValue `hcl:"filter_prefix,attr"`
	// FilterSuffix: string, optional
	FilterSuffix terra.StringValue `hcl:"filter_suffix,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// TopicArn: string, required
	TopicArn terra.StringValue `hcl:"topic_arn,attr" validate:"required"`
}

type TopicAttributes

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

func (TopicAttributes) Events

func (TopicAttributes) FilterPrefix

func (t TopicAttributes) FilterPrefix() terra.StringValue

func (TopicAttributes) FilterSuffix

func (t TopicAttributes) FilterSuffix() terra.StringValue

func (TopicAttributes) Id

func (TopicAttributes) InternalRef

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

func (TopicAttributes) InternalTokens

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

func (TopicAttributes) InternalWithRef

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

func (TopicAttributes) TopicArn

func (t TopicAttributes) TopicArn() terra.StringValue

type TopicState

type TopicState struct {
	Events       []string `json:"events"`
	FilterPrefix string   `json:"filter_prefix"`
	FilterSuffix string   `json:"filter_suffix"`
	Id           string   `json:"id"`
	TopicArn     string   `json:"topic_arn"`
}

Jump to

Keyboard shortcuts

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