aws_sagemaker_workforce

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// WorkforceName: string, required
	WorkforceName terra.StringValue `hcl:"workforce_name,attr" validate:"required"`
	// CognitoConfig: optional
	CognitoConfig *CognitoConfig `hcl:"cognito_config,block"`
	// OidcConfig: optional
	OidcConfig *OidcConfig `hcl:"oidc_config,block"`
	// SourceIpConfig: optional
	SourceIpConfig *SourceIpConfig `hcl:"source_ip_config,block"`
	// WorkforceVpcConfig: optional
	WorkforceVpcConfig *WorkforceVpcConfig `hcl:"workforce_vpc_config,block"`
}

Args contains the configurations for aws_sagemaker_workforce.

type CognitoConfig

type CognitoConfig struct {
	// ClientId: string, required
	ClientId terra.StringValue `hcl:"client_id,attr" validate:"required"`
	// UserPool: string, required
	UserPool terra.StringValue `hcl:"user_pool,attr" validate:"required"`
}

type CognitoConfigAttributes

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

func (CognitoConfigAttributes) ClientId

func (CognitoConfigAttributes) InternalRef

func (cc CognitoConfigAttributes) InternalRef() (terra.Reference, error)

func (CognitoConfigAttributes) InternalTokens

func (cc CognitoConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CognitoConfigAttributes) InternalWithRef

func (CognitoConfigAttributes) UserPool

type CognitoConfigState

type CognitoConfigState struct {
	ClientId string `json:"client_id"`
	UserPool string `json:"user_pool"`
}

type OidcConfig

type OidcConfig struct {
	// AuthorizationEndpoint: string, required
	AuthorizationEndpoint terra.StringValue `hcl:"authorization_endpoint,attr" validate:"required"`
	// ClientId: string, required
	ClientId terra.StringValue `hcl:"client_id,attr" validate:"required"`
	// ClientSecret: string, required
	ClientSecret terra.StringValue `hcl:"client_secret,attr" validate:"required"`
	// Issuer: string, required
	Issuer terra.StringValue `hcl:"issuer,attr" validate:"required"`
	// JwksUri: string, required
	JwksUri terra.StringValue `hcl:"jwks_uri,attr" validate:"required"`
	// LogoutEndpoint: string, required
	LogoutEndpoint terra.StringValue `hcl:"logout_endpoint,attr" validate:"required"`
	// TokenEndpoint: string, required
	TokenEndpoint terra.StringValue `hcl:"token_endpoint,attr" validate:"required"`
	// UserInfoEndpoint: string, required
	UserInfoEndpoint terra.StringValue `hcl:"user_info_endpoint,attr" validate:"required"`
}

type OidcConfigAttributes

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

func (OidcConfigAttributes) AuthorizationEndpoint

func (oc OidcConfigAttributes) AuthorizationEndpoint() terra.StringValue

func (OidcConfigAttributes) ClientId

func (oc OidcConfigAttributes) ClientId() terra.StringValue

func (OidcConfigAttributes) ClientSecret

func (oc OidcConfigAttributes) ClientSecret() terra.StringValue

func (OidcConfigAttributes) InternalRef

func (oc OidcConfigAttributes) InternalRef() (terra.Reference, error)

func (OidcConfigAttributes) InternalTokens

func (oc OidcConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OidcConfigAttributes) InternalWithRef

func (oc OidcConfigAttributes) InternalWithRef(ref terra.Reference) OidcConfigAttributes

func (OidcConfigAttributes) Issuer

func (OidcConfigAttributes) JwksUri

func (oc OidcConfigAttributes) JwksUri() terra.StringValue

func (OidcConfigAttributes) LogoutEndpoint

func (oc OidcConfigAttributes) LogoutEndpoint() terra.StringValue

func (OidcConfigAttributes) TokenEndpoint

func (oc OidcConfigAttributes) TokenEndpoint() terra.StringValue

func (OidcConfigAttributes) UserInfoEndpoint

func (oc OidcConfigAttributes) UserInfoEndpoint() terra.StringValue

type OidcConfigState

type OidcConfigState struct {
	AuthorizationEndpoint string `json:"authorization_endpoint"`
	ClientId              string `json:"client_id"`
	ClientSecret          string `json:"client_secret"`
	Issuer                string `json:"issuer"`
	JwksUri               string `json:"jwks_uri"`
	LogoutEndpoint        string `json:"logout_endpoint"`
	TokenEndpoint         string `json:"token_endpoint"`
	UserInfoEndpoint      string `json:"user_info_endpoint"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asw *Resource) Attributes() awsSagemakerWorkforceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asw *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asw *Resource) State() (*awsSagemakerWorkforceState, bool)

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

func (*Resource) StateMust

func (asw *Resource) StateMust() *awsSagemakerWorkforceState

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

func (*Resource) Type

func (asw *Resource) Type() string

Type returns the Terraform object type for Resource.

type SourceIpConfig

type SourceIpConfig struct {
	// Cidrs: set of string, required
	Cidrs terra.SetValue[terra.StringValue] `hcl:"cidrs,attr" validate:"required"`
}

type SourceIpConfigAttributes

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

func (SourceIpConfigAttributes) Cidrs

func (SourceIpConfigAttributes) InternalRef

func (sic SourceIpConfigAttributes) InternalRef() (terra.Reference, error)

func (SourceIpConfigAttributes) InternalTokens

func (sic SourceIpConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceIpConfigAttributes) InternalWithRef

type SourceIpConfigState

type SourceIpConfigState struct {
	Cidrs []string `json:"cidrs"`
}

type WorkforceVpcConfig

type WorkforceVpcConfig struct {
	// SecurityGroupIds: set of string, optional
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr"`
	// Subnets: set of string, optional
	Subnets terra.SetValue[terra.StringValue] `hcl:"subnets,attr"`
	// VpcId: string, optional
	VpcId terra.StringValue `hcl:"vpc_id,attr"`
}

type WorkforceVpcConfigAttributes

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

func (WorkforceVpcConfigAttributes) InternalRef

func (wvc WorkforceVpcConfigAttributes) InternalRef() (terra.Reference, error)

func (WorkforceVpcConfigAttributes) InternalTokens

func (wvc WorkforceVpcConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WorkforceVpcConfigAttributes) InternalWithRef

func (WorkforceVpcConfigAttributes) SecurityGroupIds

func (WorkforceVpcConfigAttributes) Subnets

func (WorkforceVpcConfigAttributes) VpcEndpointId

func (wvc WorkforceVpcConfigAttributes) VpcEndpointId() terra.StringValue

func (WorkforceVpcConfigAttributes) VpcId

type WorkforceVpcConfigState

type WorkforceVpcConfigState struct {
	SecurityGroupIds []string `json:"security_group_ids"`
	Subnets          []string `json:"subnets"`
	VpcEndpointId    string   `json:"vpc_endpoint_id"`
	VpcId            string   `json:"vpc_id"`
}

Jump to

Keyboard shortcuts

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