Documentation ¶
Index ¶
- type Args
- type CorsConfiguration
- type CorsConfigurationAttributes
- func (cc CorsConfigurationAttributes) AllowCredentials() terra.BoolValue
- func (cc CorsConfigurationAttributes) AllowHeaders() terra.SetValue[terra.StringValue]
- func (cc CorsConfigurationAttributes) AllowMethods() terra.SetValue[terra.StringValue]
- func (cc CorsConfigurationAttributes) AllowOrigins() terra.SetValue[terra.StringValue]
- func (cc CorsConfigurationAttributes) ExposeHeaders() terra.SetValue[terra.StringValue]
- func (cc CorsConfigurationAttributes) InternalRef() (terra.Reference, error)
- func (cc CorsConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (cc CorsConfigurationAttributes) InternalWithRef(ref terra.Reference) CorsConfigurationAttributes
- func (cc CorsConfigurationAttributes) MaxAge() terra.NumberValue
- type CorsConfigurationState
- type DataArgs
- type DataCorsConfigurationAttributes
- func (cc DataCorsConfigurationAttributes) AllowCredentials() terra.BoolValue
- func (cc DataCorsConfigurationAttributes) AllowHeaders() terra.SetValue[terra.StringValue]
- func (cc DataCorsConfigurationAttributes) AllowMethods() terra.SetValue[terra.StringValue]
- func (cc DataCorsConfigurationAttributes) AllowOrigins() terra.SetValue[terra.StringValue]
- func (cc DataCorsConfigurationAttributes) ExposeHeaders() terra.SetValue[terra.StringValue]
- func (cc DataCorsConfigurationAttributes) InternalRef() (terra.Reference, error)
- func (cc DataCorsConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (cc DataCorsConfigurationAttributes) InternalWithRef(ref terra.Reference) DataCorsConfigurationAttributes
- func (cc DataCorsConfigurationAttributes) MaxAge() terra.NumberValue
- type DataCorsConfigurationState
- type DataSource
- type Resource
- func (aaa *Resource) Attributes() awsApigatewayv2ApiAttributes
- func (aaa *Resource) Configuration() interface{}
- func (aaa *Resource) DependOn() terra.Reference
- func (aaa *Resource) Dependencies() terra.Dependencies
- func (aaa *Resource) ImportState(state io.Reader) error
- func (aaa *Resource) LifecycleManagement() *terra.Lifecycle
- func (aaa *Resource) LocalName() string
- func (aaa *Resource) State() (*awsApigatewayv2ApiState, bool)
- func (aaa *Resource) StateMust() *awsApigatewayv2ApiState
- func (aaa *Resource) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // ApiKeySelectionExpression: string, optional ApiKeySelectionExpression terra.StringValue `hcl:"api_key_selection_expression,attr"` // Body: string, optional Body terra.StringValue `hcl:"body,attr"` // CredentialsArn: string, optional CredentialsArn terra.StringValue `hcl:"credentials_arn,attr"` // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // DisableExecuteApiEndpoint: bool, optional DisableExecuteApiEndpoint terra.BoolValue `hcl:"disable_execute_api_endpoint,attr"` // FailOnWarnings: bool, optional FailOnWarnings terra.BoolValue `hcl:"fail_on_warnings,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // ProtocolType: string, required ProtocolType terra.StringValue `hcl:"protocol_type,attr" validate:"required"` // RouteKey: string, optional RouteKey terra.StringValue `hcl:"route_key,attr"` // RouteSelectionExpression: string, optional RouteSelectionExpression terra.StringValue `hcl:"route_selection_expression,attr"` // Tags: map of string, optional Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"` // TagsAll: map of string, optional TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"` // Target: string, optional Target terra.StringValue `hcl:"target,attr"` // Version: string, optional Version terra.StringValue `hcl:"version,attr"` // CorsConfiguration: optional CorsConfiguration *CorsConfiguration `hcl:"cors_configuration,block"` }
Args contains the configurations for aws_apigatewayv2_api.
type CorsConfiguration ¶
type CorsConfiguration struct { // AllowCredentials: bool, optional AllowCredentials terra.BoolValue `hcl:"allow_credentials,attr"` // AllowHeaders: set of string, optional AllowHeaders terra.SetValue[terra.StringValue] `hcl:"allow_headers,attr"` // AllowMethods: set of string, optional AllowMethods terra.SetValue[terra.StringValue] `hcl:"allow_methods,attr"` // AllowOrigins: set of string, optional AllowOrigins terra.SetValue[terra.StringValue] `hcl:"allow_origins,attr"` // ExposeHeaders: set of string, optional ExposeHeaders terra.SetValue[terra.StringValue] `hcl:"expose_headers,attr"` // MaxAge: number, optional MaxAge terra.NumberValue `hcl:"max_age,attr"` }
type CorsConfigurationAttributes ¶
type CorsConfigurationAttributes struct {
// contains filtered or unexported fields
}
func (CorsConfigurationAttributes) AllowCredentials ¶
func (cc CorsConfigurationAttributes) AllowCredentials() terra.BoolValue
func (CorsConfigurationAttributes) AllowHeaders ¶
func (cc CorsConfigurationAttributes) AllowHeaders() terra.SetValue[terra.StringValue]
func (CorsConfigurationAttributes) AllowMethods ¶
func (cc CorsConfigurationAttributes) AllowMethods() terra.SetValue[terra.StringValue]
func (CorsConfigurationAttributes) AllowOrigins ¶
func (cc CorsConfigurationAttributes) AllowOrigins() terra.SetValue[terra.StringValue]
func (CorsConfigurationAttributes) ExposeHeaders ¶
func (cc CorsConfigurationAttributes) ExposeHeaders() terra.SetValue[terra.StringValue]
func (CorsConfigurationAttributes) InternalRef ¶
func (cc CorsConfigurationAttributes) InternalRef() (terra.Reference, error)
func (CorsConfigurationAttributes) InternalTokens ¶
func (cc CorsConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CorsConfigurationAttributes) InternalWithRef ¶
func (cc CorsConfigurationAttributes) InternalWithRef(ref terra.Reference) CorsConfigurationAttributes
func (CorsConfigurationAttributes) MaxAge ¶
func (cc CorsConfigurationAttributes) MaxAge() terra.NumberValue
type CorsConfigurationState ¶
type CorsConfigurationState struct { AllowCredentials bool `json:"allow_credentials"` AllowHeaders []string `json:"allow_headers"` AllowMethods []string `json:"allow_methods"` AllowOrigins []string `json:"allow_origins"` ExposeHeaders []string `json:"expose_headers"` MaxAge float64 `json:"max_age"` }
type DataArgs ¶
type DataArgs struct { // ApiId: string, required ApiId terra.StringValue `hcl:"api_id,attr" validate:"required"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Tags: map of string, optional Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"` }
DataArgs contains the configurations for aws_apigatewayv2_api.
type DataCorsConfigurationAttributes ¶
type DataCorsConfigurationAttributes struct {
// contains filtered or unexported fields
}
func (DataCorsConfigurationAttributes) AllowCredentials ¶
func (cc DataCorsConfigurationAttributes) AllowCredentials() terra.BoolValue
func (DataCorsConfigurationAttributes) AllowHeaders ¶
func (cc DataCorsConfigurationAttributes) AllowHeaders() terra.SetValue[terra.StringValue]
func (DataCorsConfigurationAttributes) AllowMethods ¶
func (cc DataCorsConfigurationAttributes) AllowMethods() terra.SetValue[terra.StringValue]
func (DataCorsConfigurationAttributes) AllowOrigins ¶
func (cc DataCorsConfigurationAttributes) AllowOrigins() terra.SetValue[terra.StringValue]
func (DataCorsConfigurationAttributes) ExposeHeaders ¶
func (cc DataCorsConfigurationAttributes) ExposeHeaders() terra.SetValue[terra.StringValue]
func (DataCorsConfigurationAttributes) InternalRef ¶
func (cc DataCorsConfigurationAttributes) InternalRef() (terra.Reference, error)
func (DataCorsConfigurationAttributes) InternalTokens ¶
func (cc DataCorsConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataCorsConfigurationAttributes) InternalWithRef ¶
func (cc DataCorsConfigurationAttributes) InternalWithRef(ref terra.Reference) DataCorsConfigurationAttributes
func (DataCorsConfigurationAttributes) MaxAge ¶
func (cc DataCorsConfigurationAttributes) MaxAge() terra.NumberValue
type DataCorsConfigurationState ¶
type DataCorsConfigurationState struct { AllowCredentials bool `json:"allow_credentials"` AllowHeaders []string `json:"allow_headers"` AllowMethods []string `json:"allow_methods"` AllowOrigins []string `json:"allow_origins"` ExposeHeaders []string `json:"expose_headers"` MaxAge float64 `json:"max_age"` }
type DataSource ¶
DataSource represents the Terraform data resource aws_apigatewayv2_api.
func Data ¶
func Data(name string, args DataArgs) *DataSource
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (aaa *DataSource) Attributes() dataAwsApigatewayv2ApiAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (aaa *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (aaa *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (aaa *DataSource) LocalName() string
LocalName returns the local name for DataSource.
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_apigatewayv2_api.
func (*Resource) Attributes ¶
func (aaa *Resource) Attributes() awsApigatewayv2ApiAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (aaa *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (aaa *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.