aws_s3_bucket_acl

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 AccessControlPolicy

type AccessControlPolicy struct {
	// AccessControlPolicyGrant: min=0
	Grant []AccessControlPolicyGrant `hcl:"grant,block" validate:"min=0"`
	// AccessControlPolicyOwner: required
	Owner *AccessControlPolicyOwner `hcl:"owner,block" validate:"required"`
}

type AccessControlPolicyAttributes

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

func (AccessControlPolicyAttributes) Grant

func (AccessControlPolicyAttributes) InternalRef

func (acp AccessControlPolicyAttributes) InternalRef() (terra.Reference, error)

func (AccessControlPolicyAttributes) InternalTokens

func (acp AccessControlPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AccessControlPolicyAttributes) InternalWithRef

func (AccessControlPolicyAttributes) Owner

type AccessControlPolicyGrant

type AccessControlPolicyGrant struct {
	// Permission: string, required
	Permission terra.StringValue `hcl:"permission,attr" validate:"required"`
	// AccessControlPolicyGrantGrantee: optional
	Grantee *AccessControlPolicyGrantGrantee `hcl:"grantee,block"`
}

type AccessControlPolicyGrantAttributes

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

func (AccessControlPolicyGrantAttributes) Grantee

func (AccessControlPolicyGrantAttributes) InternalRef

func (AccessControlPolicyGrantAttributes) InternalTokens

func (AccessControlPolicyGrantAttributes) InternalWithRef

func (AccessControlPolicyGrantAttributes) Permission

type AccessControlPolicyGrantGrantee

type AccessControlPolicyGrantGrantee struct {
	// EmailAddress: string, optional
	EmailAddress terra.StringValue `hcl:"email_address,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Uri: string, optional
	Uri terra.StringValue `hcl:"uri,attr"`
}

type AccessControlPolicyGrantGranteeAttributes

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

func (AccessControlPolicyGrantGranteeAttributes) DisplayName

func (AccessControlPolicyGrantGranteeAttributes) EmailAddress

func (AccessControlPolicyGrantGranteeAttributes) Id

func (AccessControlPolicyGrantGranteeAttributes) InternalRef

func (AccessControlPolicyGrantGranteeAttributes) InternalTokens

func (AccessControlPolicyGrantGranteeAttributes) InternalWithRef

func (AccessControlPolicyGrantGranteeAttributes) Type

func (AccessControlPolicyGrantGranteeAttributes) Uri

type AccessControlPolicyGrantGranteeState

type AccessControlPolicyGrantGranteeState struct {
	DisplayName  string `json:"display_name"`
	EmailAddress string `json:"email_address"`
	Id           string `json:"id"`
	Type         string `json:"type"`
	Uri          string `json:"uri"`
}

type AccessControlPolicyGrantState

type AccessControlPolicyGrantState struct {
	Permission string                                 `json:"permission"`
	Grantee    []AccessControlPolicyGrantGranteeState `json:"grantee"`
}

type AccessControlPolicyOwner

type AccessControlPolicyOwner struct {
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
}

type AccessControlPolicyOwnerAttributes

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

func (AccessControlPolicyOwnerAttributes) DisplayName

func (AccessControlPolicyOwnerAttributes) Id

func (AccessControlPolicyOwnerAttributes) InternalRef

func (AccessControlPolicyOwnerAttributes) InternalTokens

func (AccessControlPolicyOwnerAttributes) InternalWithRef

type AccessControlPolicyOwnerState

type AccessControlPolicyOwnerState struct {
	DisplayName string `json:"display_name"`
	Id          string `json:"id"`
}

type AccessControlPolicyState

type AccessControlPolicyState struct {
	Grant []AccessControlPolicyGrantState `json:"grant"`
	Owner []AccessControlPolicyOwnerState `json:"owner"`
}

type Args

type Args struct {
	// Acl: string, optional
	Acl terra.StringValue `hcl:"acl,attr"`
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// ExpectedBucketOwner: string, optional
	ExpectedBucketOwner terra.StringValue `hcl:"expected_bucket_owner,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// AccessControlPolicy: optional
	AccessControlPolicy *AccessControlPolicy `hcl:"access_control_policy,block"`
}

Args contains the configurations for aws_s3_bucket_acl.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asba *Resource) Attributes() awsS3BucketAclAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asba *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asba *Resource) State() (*awsS3BucketAclState, bool)

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

func (*Resource) StateMust

func (asba *Resource) StateMust() *awsS3BucketAclState

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

func (*Resource) Type

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