aws_cognito_identity_pool_roles_attachment

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IdentityPoolId: string, required
	IdentityPoolId terra.StringValue `hcl:"identity_pool_id,attr" validate:"required"`
	// Roles: map of string, required
	Roles terra.MapValue[terra.StringValue] `hcl:"roles,attr" validate:"required"`
	// RoleMapping: min=0
	RoleMapping []RoleMapping `hcl:"role_mapping,block" validate:"min=0"`
}

Args contains the configurations for aws_cognito_identity_pool_roles_attachment.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acipra *Resource) Attributes() awsCognitoIdentityPoolRolesAttachmentAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acipra *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acipra *Resource) State() (*awsCognitoIdentityPoolRolesAttachmentState, bool)

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

func (*Resource) StateMust

func (acipra *Resource) StateMust() *awsCognitoIdentityPoolRolesAttachmentState

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

func (*Resource) Type

func (acipra *Resource) Type() string

Type returns the Terraform object type for Resource.

type RoleMapping

type RoleMapping struct {
	// AmbiguousRoleResolution: string, optional
	AmbiguousRoleResolution terra.StringValue `hcl:"ambiguous_role_resolution,attr"`
	// IdentityProvider: string, required
	IdentityProvider terra.StringValue `hcl:"identity_provider,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// RoleMappingMappingRule: min=0,max=25
	MappingRule []RoleMappingMappingRule `hcl:"mapping_rule,block" validate:"min=0,max=25"`
}

type RoleMappingAttributes

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

func (RoleMappingAttributes) AmbiguousRoleResolution

func (rm RoleMappingAttributes) AmbiguousRoleResolution() terra.StringValue

func (RoleMappingAttributes) IdentityProvider

func (rm RoleMappingAttributes) IdentityProvider() terra.StringValue

func (RoleMappingAttributes) InternalRef

func (rm RoleMappingAttributes) InternalRef() (terra.Reference, error)

func (RoleMappingAttributes) InternalTokens

func (rm RoleMappingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RoleMappingAttributes) InternalWithRef

func (RoleMappingAttributes) MappingRule

func (RoleMappingAttributes) Type

type RoleMappingMappingRule

type RoleMappingMappingRule struct {
	// Claim: string, required
	Claim terra.StringValue `hcl:"claim,attr" validate:"required"`
	// MatchType: string, required
	MatchType terra.StringValue `hcl:"match_type,attr" validate:"required"`
	// RoleArn: string, required
	RoleArn terra.StringValue `hcl:"role_arn,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type RoleMappingMappingRuleAttributes

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

func (RoleMappingMappingRuleAttributes) Claim

func (RoleMappingMappingRuleAttributes) InternalRef

func (RoleMappingMappingRuleAttributes) InternalTokens

func (mr RoleMappingMappingRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RoleMappingMappingRuleAttributes) InternalWithRef

func (RoleMappingMappingRuleAttributes) MatchType

func (RoleMappingMappingRuleAttributes) RoleArn

func (RoleMappingMappingRuleAttributes) Value

type RoleMappingMappingRuleState

type RoleMappingMappingRuleState struct {
	Claim     string `json:"claim"`
	MatchType string `json:"match_type"`
	RoleArn   string `json:"role_arn"`
	Value     string `json:"value"`
}

type RoleMappingState

type RoleMappingState struct {
	AmbiguousRoleResolution string                        `json:"ambiguous_role_resolution"`
	IdentityProvider        string                        `json:"identity_provider"`
	Type                    string                        `json:"type"`
	MappingRule             []RoleMappingMappingRuleState `json:"mapping_rule"`
}

Jump to

Keyboard shortcuts

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