s3bucketcorsconfiguration

package
v0.0.0-...-964ba77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorsRule

type CorsRule struct {
	// AllowedHeaders: set of string, optional
	AllowedHeaders terra.SetValue[terra.StringValue] `hcl:"allowed_headers,attr"`
	// AllowedMethods: set of string, required
	AllowedMethods terra.SetValue[terra.StringValue] `hcl:"allowed_methods,attr" validate:"required"`
	// AllowedOrigins: set of string, required
	AllowedOrigins terra.SetValue[terra.StringValue] `hcl:"allowed_origins,attr" validate:"required"`
	// ExposeHeaders: set of string, optional
	ExposeHeaders terra.SetValue[terra.StringValue] `hcl:"expose_headers,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaxAgeSeconds: number, optional
	MaxAgeSeconds terra.NumberValue `hcl:"max_age_seconds,attr"`
}

type CorsRuleAttributes

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

func (CorsRuleAttributes) AllowedHeaders

func (cr CorsRuleAttributes) AllowedHeaders() terra.SetValue[terra.StringValue]

func (CorsRuleAttributes) AllowedMethods

func (cr CorsRuleAttributes) AllowedMethods() terra.SetValue[terra.StringValue]

func (CorsRuleAttributes) AllowedOrigins

func (cr CorsRuleAttributes) AllowedOrigins() terra.SetValue[terra.StringValue]

func (CorsRuleAttributes) ExposeHeaders

func (cr CorsRuleAttributes) ExposeHeaders() terra.SetValue[terra.StringValue]

func (CorsRuleAttributes) Id

func (CorsRuleAttributes) InternalRef

func (cr CorsRuleAttributes) InternalRef() (terra.Reference, error)

func (CorsRuleAttributes) InternalTokens

func (cr CorsRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CorsRuleAttributes) InternalWithRef

func (cr CorsRuleAttributes) InternalWithRef(ref terra.Reference) CorsRuleAttributes

func (CorsRuleAttributes) MaxAgeSeconds

func (cr CorsRuleAttributes) MaxAgeSeconds() terra.NumberValue

type CorsRuleState

type CorsRuleState struct {
	AllowedHeaders []string `json:"allowed_headers"`
	AllowedMethods []string `json:"allowed_methods"`
	AllowedOrigins []string `json:"allowed_origins"`
	ExposeHeaders  []string `json:"expose_headers"`
	Id             string   `json:"id"`
	MaxAgeSeconds  float64  `json:"max_age_seconds"`
}

Jump to

Keyboard shortcuts

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