aws_transfer_user

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 {
	// HomeDirectory: string, optional
	HomeDirectory terra.StringValue `hcl:"home_directory,attr"`
	// HomeDirectoryType: string, optional
	HomeDirectoryType terra.StringValue `hcl:"home_directory_type,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Policy: string, optional
	Policy terra.StringValue `hcl:"policy,attr"`
	// Role: string, required
	Role terra.StringValue `hcl:"role,attr" validate:"required"`
	// ServerId: string, required
	ServerId terra.StringValue `hcl:"server_id,attr" validate:"required"`
	// 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"`
	// UserName: string, required
	UserName terra.StringValue `hcl:"user_name,attr" validate:"required"`
	// HomeDirectoryMappings: min=0
	HomeDirectoryMappings []HomeDirectoryMappings `hcl:"home_directory_mappings,block" validate:"min=0"`
	// PosixProfile: optional
	PosixProfile *PosixProfile `hcl:"posix_profile,block"`
}

Args contains the configurations for aws_transfer_user.

type HomeDirectoryMappings

type HomeDirectoryMappings struct {
	// Entry: string, required
	Entry terra.StringValue `hcl:"entry,attr" validate:"required"`
	// Target: string, required
	Target terra.StringValue `hcl:"target,attr" validate:"required"`
}

type HomeDirectoryMappingsAttributes

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

func (HomeDirectoryMappingsAttributes) Entry

func (HomeDirectoryMappingsAttributes) InternalRef

func (HomeDirectoryMappingsAttributes) InternalTokens

func (hdm HomeDirectoryMappingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HomeDirectoryMappingsAttributes) InternalWithRef

func (HomeDirectoryMappingsAttributes) Target

type HomeDirectoryMappingsState

type HomeDirectoryMappingsState struct {
	Entry  string `json:"entry"`
	Target string `json:"target"`
}

type PosixProfile

type PosixProfile struct {
	// Gid: number, required
	Gid terra.NumberValue `hcl:"gid,attr" validate:"required"`
	// SecondaryGids: set of number, optional
	SecondaryGids terra.SetValue[terra.NumberValue] `hcl:"secondary_gids,attr"`
	// Uid: number, required
	Uid terra.NumberValue `hcl:"uid,attr" validate:"required"`
}

type PosixProfileAttributes

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

func (PosixProfileAttributes) Gid

func (PosixProfileAttributes) InternalRef

func (pp PosixProfileAttributes) InternalRef() (terra.Reference, error)

func (PosixProfileAttributes) InternalTokens

func (pp PosixProfileAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PosixProfileAttributes) InternalWithRef

func (PosixProfileAttributes) SecondaryGids

func (PosixProfileAttributes) Uid

type PosixProfileState

type PosixProfileState struct {
	Gid           float64   `json:"gid"`
	SecondaryGids []float64 `json:"secondary_gids"`
	Uid           float64   `json:"uid"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (atu *Resource) Attributes() awsTransferUserAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (atu *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (atu *Resource) State() (*awsTransferUserState, bool)

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

func (*Resource) StateMust

func (atu *Resource) StateMust() *awsTransferUserState

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

func (*Resource) Type

func (atu *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