aws_s3control_access_grant

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 AccessGrantsLocationConfiguration

type AccessGrantsLocationConfiguration struct {
	// S3SubPrefix: string, optional
	S3SubPrefix terra.StringValue `hcl:"s3_sub_prefix,attr"`
}

type AccessGrantsLocationConfigurationAttributes

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

func (AccessGrantsLocationConfigurationAttributes) InternalRef

func (AccessGrantsLocationConfigurationAttributes) InternalTokens

func (AccessGrantsLocationConfigurationAttributes) InternalWithRef

func (AccessGrantsLocationConfigurationAttributes) S3SubPrefix

type AccessGrantsLocationConfigurationState

type AccessGrantsLocationConfigurationState struct {
	S3SubPrefix string `json:"s3_sub_prefix"`
}

type Args

type Args struct {
	// AccessGrantsLocationId: string, required
	AccessGrantsLocationId terra.StringValue `hcl:"access_grants_location_id,attr" validate:"required"`
	// AccountId: string, optional
	AccountId terra.StringValue `hcl:"account_id,attr"`
	// Permission: string, required
	Permission terra.StringValue `hcl:"permission,attr" validate:"required"`
	// S3PrefixType: string, optional
	S3PrefixType terra.StringValue `hcl:"s3_prefix_type,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// AccessGrantsLocationConfiguration: min=0
	AccessGrantsLocationConfiguration []AccessGrantsLocationConfiguration `hcl:"access_grants_location_configuration,block" validate:"min=0"`
	// Grantee: min=0
	Grantee []Grantee `hcl:"grantee,block" validate:"min=0"`
}

Args contains the configurations for aws_s3control_access_grant.

type Grantee

type Grantee struct {
	// GranteeIdentifier: string, required
	GranteeIdentifier terra.StringValue `hcl:"grantee_identifier,attr" validate:"required"`
	// GranteeType: string, required
	GranteeType terra.StringValue `hcl:"grantee_type,attr" validate:"required"`
}

type GranteeAttributes

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

func (GranteeAttributes) GranteeIdentifier

func (g GranteeAttributes) GranteeIdentifier() terra.StringValue

func (GranteeAttributes) GranteeType

func (g GranteeAttributes) GranteeType() terra.StringValue

func (GranteeAttributes) InternalRef

func (g GranteeAttributes) InternalRef() (terra.Reference, error)

func (GranteeAttributes) InternalTokens

func (g GranteeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GranteeAttributes) InternalWithRef

func (g GranteeAttributes) InternalWithRef(ref terra.Reference) GranteeAttributes

type GranteeState

type GranteeState struct {
	GranteeIdentifier string `json:"grantee_identifier"`
	GranteeType       string `json:"grantee_type"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asag *Resource) Attributes() awsS3ControlAccessGrantAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asag *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asag *Resource) State() (*awsS3ControlAccessGrantState, bool)

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

func (*Resource) StateMust

func (asag *Resource) StateMust() *awsS3ControlAccessGrantState

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

func (*Resource) Type

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