aws_s3_bucket_website_configuration

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"`
	// ExpectedBucketOwner: string, optional
	ExpectedBucketOwner terra.StringValue `hcl:"expected_bucket_owner,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// RoutingRules: string, optional
	RoutingRules terra.StringValue `hcl:"routing_rules,attr"`
	// ErrorDocument: optional
	ErrorDocument *ErrorDocument `hcl:"error_document,block"`
	// IndexDocument: optional
	IndexDocument *IndexDocument `hcl:"index_document,block"`
	// RedirectAllRequestsTo: optional
	RedirectAllRequestsTo *RedirectAllRequestsTo `hcl:"redirect_all_requests_to,block"`
	// RoutingRule: min=0
	RoutingRule []RoutingRule `hcl:"routing_rule,block" validate:"min=0"`
}

Args contains the configurations for aws_s3_bucket_website_configuration.

type ErrorDocument

type ErrorDocument struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
}

type ErrorDocumentAttributes

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

func (ErrorDocumentAttributes) InternalRef

func (ed ErrorDocumentAttributes) InternalRef() (terra.Reference, error)

func (ErrorDocumentAttributes) InternalTokens

func (ed ErrorDocumentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ErrorDocumentAttributes) InternalWithRef

func (ErrorDocumentAttributes) Key

type ErrorDocumentState

type ErrorDocumentState struct {
	Key string `json:"key"`
}

type IndexDocument

type IndexDocument struct {
	// Suffix: string, required
	Suffix terra.StringValue `hcl:"suffix,attr" validate:"required"`
}

type IndexDocumentAttributes

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

func (IndexDocumentAttributes) InternalRef

func (id IndexDocumentAttributes) InternalRef() (terra.Reference, error)

func (IndexDocumentAttributes) InternalTokens

func (id IndexDocumentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IndexDocumentAttributes) InternalWithRef

func (IndexDocumentAttributes) Suffix

type IndexDocumentState

type IndexDocumentState struct {
	Suffix string `json:"suffix"`
}

type RedirectAllRequestsTo

type RedirectAllRequestsTo struct {
	// HostName: string, required
	HostName terra.StringValue `hcl:"host_name,attr" validate:"required"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
}

type RedirectAllRequestsToAttributes

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

func (RedirectAllRequestsToAttributes) HostName

func (RedirectAllRequestsToAttributes) InternalRef

func (rart RedirectAllRequestsToAttributes) InternalRef() (terra.Reference, error)

func (RedirectAllRequestsToAttributes) InternalTokens

func (rart RedirectAllRequestsToAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RedirectAllRequestsToAttributes) InternalWithRef

func (RedirectAllRequestsToAttributes) Protocol

type RedirectAllRequestsToState

type RedirectAllRequestsToState struct {
	HostName string `json:"host_name"`
	Protocol string `json:"protocol"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asbwc *Resource) Attributes() awsS3BucketWebsiteConfigurationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asbwc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asbwc *Resource) State() (*awsS3BucketWebsiteConfigurationState, bool)

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

func (*Resource) StateMust

func (asbwc *Resource) StateMust() *awsS3BucketWebsiteConfigurationState

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

func (*Resource) Type

func (asbwc *Resource) Type() string

Type returns the Terraform object type for Resource.

type RoutingRule

type RoutingRule struct {
	// RoutingRuleCondition: optional
	Condition *RoutingRuleCondition `hcl:"condition,block"`
	// RoutingRuleRedirect: required
	Redirect *RoutingRuleRedirect `hcl:"redirect,block" validate:"required"`
}

type RoutingRuleAttributes

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

func (RoutingRuleAttributes) Condition

func (RoutingRuleAttributes) InternalRef

func (rr RoutingRuleAttributes) InternalRef() (terra.Reference, error)

func (RoutingRuleAttributes) InternalTokens

func (rr RoutingRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RoutingRuleAttributes) InternalWithRef

func (RoutingRuleAttributes) Redirect

type RoutingRuleCondition

type RoutingRuleCondition struct {
	// HttpErrorCodeReturnedEquals: string, optional
	HttpErrorCodeReturnedEquals terra.StringValue `hcl:"http_error_code_returned_equals,attr"`
	// KeyPrefixEquals: string, optional
	KeyPrefixEquals terra.StringValue `hcl:"key_prefix_equals,attr"`
}

type RoutingRuleConditionAttributes

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

func (RoutingRuleConditionAttributes) HttpErrorCodeReturnedEquals

func (c RoutingRuleConditionAttributes) HttpErrorCodeReturnedEquals() terra.StringValue

func (RoutingRuleConditionAttributes) InternalRef

func (RoutingRuleConditionAttributes) InternalTokens

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

func (RoutingRuleConditionAttributes) InternalWithRef

func (RoutingRuleConditionAttributes) KeyPrefixEquals

func (c RoutingRuleConditionAttributes) KeyPrefixEquals() terra.StringValue

type RoutingRuleConditionState

type RoutingRuleConditionState struct {
	HttpErrorCodeReturnedEquals string `json:"http_error_code_returned_equals"`
	KeyPrefixEquals             string `json:"key_prefix_equals"`
}

type RoutingRuleRedirect

type RoutingRuleRedirect struct {
	// HostName: string, optional
	HostName terra.StringValue `hcl:"host_name,attr"`
	// HttpRedirectCode: string, optional
	HttpRedirectCode terra.StringValue `hcl:"http_redirect_code,attr"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
	// ReplaceKeyPrefixWith: string, optional
	ReplaceKeyPrefixWith terra.StringValue `hcl:"replace_key_prefix_with,attr"`
	// ReplaceKeyWith: string, optional
	ReplaceKeyWith terra.StringValue `hcl:"replace_key_with,attr"`
}

type RoutingRuleRedirectAttributes

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

func (RoutingRuleRedirectAttributes) HostName

func (RoutingRuleRedirectAttributes) HttpRedirectCode

func (r RoutingRuleRedirectAttributes) HttpRedirectCode() terra.StringValue

func (RoutingRuleRedirectAttributes) InternalRef

func (RoutingRuleRedirectAttributes) InternalTokens

func (r RoutingRuleRedirectAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RoutingRuleRedirectAttributes) InternalWithRef

func (RoutingRuleRedirectAttributes) Protocol

func (RoutingRuleRedirectAttributes) ReplaceKeyPrefixWith

func (r RoutingRuleRedirectAttributes) ReplaceKeyPrefixWith() terra.StringValue

func (RoutingRuleRedirectAttributes) ReplaceKeyWith

func (r RoutingRuleRedirectAttributes) ReplaceKeyWith() terra.StringValue

type RoutingRuleRedirectState

type RoutingRuleRedirectState struct {
	HostName             string `json:"host_name"`
	HttpRedirectCode     string `json:"http_redirect_code"`
	Protocol             string `json:"protocol"`
	ReplaceKeyPrefixWith string `json:"replace_key_prefix_with"`
	ReplaceKeyWith       string `json:"replace_key_with"`
}

type RoutingRuleState

type RoutingRuleState struct {
	Condition []RoutingRuleConditionState `json:"condition"`
	Redirect  []RoutingRuleRedirectState  `json:"redirect"`
}

Jump to

Keyboard shortcuts

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