Documentation ¶
Index ¶
- type Args
- type CorsRule
- type CorsRuleAttributes
- func (cr CorsRuleAttributes) AllowedHeaders() terra.SetValue[terra.StringValue]
- func (cr CorsRuleAttributes) AllowedMethods() terra.SetValue[terra.StringValue]
- func (cr CorsRuleAttributes) AllowedOrigins() terra.SetValue[terra.StringValue]
- func (cr CorsRuleAttributes) ExposeHeaders() terra.SetValue[terra.StringValue]
- func (cr CorsRuleAttributes) Id() terra.StringValue
- func (cr CorsRuleAttributes) InternalRef() (terra.Reference, error)
- func (cr CorsRuleAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (cr CorsRuleAttributes) InternalWithRef(ref terra.Reference) CorsRuleAttributes
- func (cr CorsRuleAttributes) MaxAgeSeconds() terra.NumberValue
- type CorsRuleState
- type Resource
- func (asbcc *Resource) Attributes() awsS3BucketCorsConfigurationAttributes
- func (asbcc *Resource) Configuration() interface{}
- func (asbcc *Resource) DependOn() terra.Reference
- func (asbcc *Resource) Dependencies() terra.Dependencies
- func (asbcc *Resource) ImportState(state io.Reader) error
- func (asbcc *Resource) LifecycleManagement() *terra.Lifecycle
- func (asbcc *Resource) LocalName() string
- func (asbcc *Resource) State() (*awsS3BucketCorsConfigurationState, bool)
- func (asbcc *Resource) StateMust() *awsS3BucketCorsConfigurationState
- func (asbcc *Resource) Type() string
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"` // CorsRule: min=1,max=100 CorsRule []CorsRule `hcl:"cors_rule,block" validate:"min=1,max=100"` }
Args contains the configurations for aws_s3_bucket_cors_configuration.
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 (cr CorsRuleAttributes) Id() terra.StringValue
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 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_cors_configuration.
func (*Resource) Attributes ¶
func (asbcc *Resource) Attributes() awsS3BucketCorsConfigurationAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (asbcc *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (asbcc *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
Click to show internal directories.
Click to hide internal directories.