aws_apigatewayv2_authorizer

package
v0.0.0-...-4deecce 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 {
	// ApiId: string, required
	ApiId terra.StringValue `hcl:"api_id,attr" validate:"required"`
	// AuthorizerCredentialsArn: string, optional
	AuthorizerCredentialsArn terra.StringValue `hcl:"authorizer_credentials_arn,attr"`
	// AuthorizerPayloadFormatVersion: string, optional
	AuthorizerPayloadFormatVersion terra.StringValue `hcl:"authorizer_payload_format_version,attr"`
	// AuthorizerResultTtlInSeconds: number, optional
	AuthorizerResultTtlInSeconds terra.NumberValue `hcl:"authorizer_result_ttl_in_seconds,attr"`
	// AuthorizerType: string, required
	AuthorizerType terra.StringValue `hcl:"authorizer_type,attr" validate:"required"`
	// AuthorizerUri: string, optional
	AuthorizerUri terra.StringValue `hcl:"authorizer_uri,attr"`
	// EnableSimpleResponses: bool, optional
	EnableSimpleResponses terra.BoolValue `hcl:"enable_simple_responses,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IdentitySources: set of string, optional
	IdentitySources terra.SetValue[terra.StringValue] `hcl:"identity_sources,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// JwtConfiguration: optional
	JwtConfiguration *JwtConfiguration `hcl:"jwt_configuration,block"`
}

Args contains the configurations for aws_apigatewayv2_authorizer.

type JwtConfiguration

type JwtConfiguration struct {
	// Audience: set of string, optional
	Audience terra.SetValue[terra.StringValue] `hcl:"audience,attr"`
	// Issuer: string, optional
	Issuer terra.StringValue `hcl:"issuer,attr"`
}

type JwtConfigurationAttributes

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

func (JwtConfigurationAttributes) Audience

func (JwtConfigurationAttributes) InternalRef

func (jc JwtConfigurationAttributes) InternalRef() (terra.Reference, error)

func (JwtConfigurationAttributes) InternalTokens

func (jc JwtConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (JwtConfigurationAttributes) InternalWithRef

func (JwtConfigurationAttributes) Issuer

type JwtConfigurationState

type JwtConfigurationState struct {
	Audience []string `json:"audience"`
	Issuer   string   `json:"issuer"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aaa *Resource) Attributes() awsApigatewayv2AuthorizerAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aaa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aaa *Resource) State() (*awsApigatewayv2AuthorizerState, bool)

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

func (*Resource) StateMust

func (aaa *Resource) StateMust() *awsApigatewayv2AuthorizerState

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

func (*Resource) Type

func (aaa *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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