s3bucketlifecycleconfiguration

package
v0.0.0-...-964ba77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortIncompleteMultipartUpload

type AbortIncompleteMultipartUpload struct {
	// DaysAfterInitiation: number, optional
	DaysAfterInitiation terra.NumberValue `hcl:"days_after_initiation,attr"`
}

type AbortIncompleteMultipartUploadAttributes

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

func (AbortIncompleteMultipartUploadAttributes) DaysAfterInitiation

func (aimu AbortIncompleteMultipartUploadAttributes) DaysAfterInitiation() terra.NumberValue

func (AbortIncompleteMultipartUploadAttributes) InternalRef

func (AbortIncompleteMultipartUploadAttributes) InternalTokens

func (AbortIncompleteMultipartUploadAttributes) InternalWithRef

type AbortIncompleteMultipartUploadState

type AbortIncompleteMultipartUploadState struct {
	DaysAfterInitiation float64 `json:"days_after_initiation"`
}

type And

type And struct {
	// ObjectSizeGreaterThan: number, optional
	ObjectSizeGreaterThan terra.NumberValue `hcl:"object_size_greater_than,attr"`
	// ObjectSizeLessThan: number, optional
	ObjectSizeLessThan terra.NumberValue `hcl:"object_size_less_than,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

type AndAttributes

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

func (AndAttributes) InternalRef

func (a AndAttributes) InternalRef() (terra.Reference, error)

func (AndAttributes) InternalTokens

func (a AndAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AndAttributes) InternalWithRef

func (a AndAttributes) InternalWithRef(ref terra.Reference) AndAttributes

func (AndAttributes) ObjectSizeGreaterThan

func (a AndAttributes) ObjectSizeGreaterThan() terra.NumberValue

func (AndAttributes) ObjectSizeLessThan

func (a AndAttributes) ObjectSizeLessThan() terra.NumberValue

func (AndAttributes) Prefix

func (a AndAttributes) Prefix() terra.StringValue

func (AndAttributes) Tags

type AndState

type AndState struct {
	ObjectSizeGreaterThan float64           `json:"object_size_greater_than"`
	ObjectSizeLessThan    float64           `json:"object_size_less_than"`
	Prefix                string            `json:"prefix"`
	Tags                  map[string]string `json:"tags"`
}

type Expiration

type Expiration struct {
	// Date: string, optional
	Date terra.StringValue `hcl:"date,attr"`
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// ExpiredObjectDeleteMarker: bool, optional
	ExpiredObjectDeleteMarker terra.BoolValue `hcl:"expired_object_delete_marker,attr"`
}

type ExpirationAttributes

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

func (ExpirationAttributes) Date

func (ExpirationAttributes) Days

func (ExpirationAttributes) ExpiredObjectDeleteMarker

func (e ExpirationAttributes) ExpiredObjectDeleteMarker() terra.BoolValue

func (ExpirationAttributes) InternalRef

func (e ExpirationAttributes) InternalRef() (terra.Reference, error)

func (ExpirationAttributes) InternalTokens

func (e ExpirationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExpirationAttributes) InternalWithRef

type ExpirationState

type ExpirationState struct {
	Date                      string  `json:"date"`
	Days                      float64 `json:"days"`
	ExpiredObjectDeleteMarker bool    `json:"expired_object_delete_marker"`
}

type Filter

type Filter struct {
	// ObjectSizeGreaterThan: string, optional
	ObjectSizeGreaterThan terra.StringValue `hcl:"object_size_greater_than,attr"`
	// ObjectSizeLessThan: string, optional
	ObjectSizeLessThan terra.StringValue `hcl:"object_size_less_than,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// And: optional
	And *And `hcl:"and,block"`
	// Tag: optional
	Tag *Tag `hcl:"tag,block"`
}

type FilterAttributes

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

func (FilterAttributes) And

func (FilterAttributes) InternalRef

func (f FilterAttributes) InternalRef() (terra.Reference, error)

func (FilterAttributes) InternalTokens

func (f FilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FilterAttributes) InternalWithRef

func (f FilterAttributes) InternalWithRef(ref terra.Reference) FilterAttributes

func (FilterAttributes) ObjectSizeGreaterThan

func (f FilterAttributes) ObjectSizeGreaterThan() terra.StringValue

func (FilterAttributes) ObjectSizeLessThan

func (f FilterAttributes) ObjectSizeLessThan() terra.StringValue

func (FilterAttributes) Prefix

func (f FilterAttributes) Prefix() terra.StringValue

func (FilterAttributes) Tag

type FilterState

type FilterState struct {
	ObjectSizeGreaterThan string     `json:"object_size_greater_than"`
	ObjectSizeLessThan    string     `json:"object_size_less_than"`
	Prefix                string     `json:"prefix"`
	And                   []AndState `json:"and"`
	Tag                   []TagState `json:"tag"`
}

type NoncurrentVersionExpiration

type NoncurrentVersionExpiration struct {
	// NewerNoncurrentVersions: string, optional
	NewerNoncurrentVersions terra.StringValue `hcl:"newer_noncurrent_versions,attr"`
	// NoncurrentDays: number, optional
	NoncurrentDays terra.NumberValue `hcl:"noncurrent_days,attr"`
}

type NoncurrentVersionExpirationAttributes

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

func (NoncurrentVersionExpirationAttributes) InternalRef

func (NoncurrentVersionExpirationAttributes) InternalTokens

func (NoncurrentVersionExpirationAttributes) InternalWithRef

func (NoncurrentVersionExpirationAttributes) NewerNoncurrentVersions

func (nve NoncurrentVersionExpirationAttributes) NewerNoncurrentVersions() terra.StringValue

func (NoncurrentVersionExpirationAttributes) NoncurrentDays

type NoncurrentVersionExpirationState

type NoncurrentVersionExpirationState struct {
	NewerNoncurrentVersions string  `json:"newer_noncurrent_versions"`
	NoncurrentDays          float64 `json:"noncurrent_days"`
}

type NoncurrentVersionTransition

type NoncurrentVersionTransition struct {
	// NewerNoncurrentVersions: string, optional
	NewerNoncurrentVersions terra.StringValue `hcl:"newer_noncurrent_versions,attr"`
	// NoncurrentDays: number, optional
	NoncurrentDays terra.NumberValue `hcl:"noncurrent_days,attr"`
	// StorageClass: string, required
	StorageClass terra.StringValue `hcl:"storage_class,attr" validate:"required"`
}

type NoncurrentVersionTransitionAttributes

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

func (NoncurrentVersionTransitionAttributes) InternalRef

func (NoncurrentVersionTransitionAttributes) InternalTokens

func (NoncurrentVersionTransitionAttributes) InternalWithRef

func (NoncurrentVersionTransitionAttributes) NewerNoncurrentVersions

func (nvt NoncurrentVersionTransitionAttributes) NewerNoncurrentVersions() terra.StringValue

func (NoncurrentVersionTransitionAttributes) NoncurrentDays

func (NoncurrentVersionTransitionAttributes) StorageClass

type NoncurrentVersionTransitionState

type NoncurrentVersionTransitionState struct {
	NewerNoncurrentVersions string  `json:"newer_noncurrent_versions"`
	NoncurrentDays          float64 `json:"noncurrent_days"`
	StorageClass            string  `json:"storage_class"`
}

type Rule

type Rule struct {
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
	// AbortIncompleteMultipartUpload: optional
	AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `hcl:"abort_incomplete_multipart_upload,block"`
	// Expiration: optional
	Expiration *Expiration `hcl:"expiration,block"`
	// Filter: optional
	Filter *Filter `hcl:"filter,block"`
	// NoncurrentVersionExpiration: optional
	NoncurrentVersionExpiration *NoncurrentVersionExpiration `hcl:"noncurrent_version_expiration,block"`
	// NoncurrentVersionTransition: min=0
	NoncurrentVersionTransition []NoncurrentVersionTransition `hcl:"noncurrent_version_transition,block" validate:"min=0"`
	// Transition: min=0
	Transition []Transition `hcl:"transition,block" validate:"min=0"`
}

type RuleAttributes

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

func (RuleAttributes) AbortIncompleteMultipartUpload

func (r RuleAttributes) AbortIncompleteMultipartUpload() terra.ListValue[AbortIncompleteMultipartUploadAttributes]

func (RuleAttributes) Expiration

func (RuleAttributes) Filter

func (RuleAttributes) Id

func (RuleAttributes) InternalRef

func (r RuleAttributes) InternalRef() (terra.Reference, error)

func (RuleAttributes) InternalTokens

func (r RuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleAttributes) InternalWithRef

func (r RuleAttributes) InternalWithRef(ref terra.Reference) RuleAttributes

func (RuleAttributes) NoncurrentVersionExpiration

func (r RuleAttributes) NoncurrentVersionExpiration() terra.ListValue[NoncurrentVersionExpirationAttributes]

func (RuleAttributes) NoncurrentVersionTransition

func (r RuleAttributes) NoncurrentVersionTransition() terra.SetValue[NoncurrentVersionTransitionAttributes]

func (RuleAttributes) Prefix

func (r RuleAttributes) Prefix() terra.StringValue

func (RuleAttributes) Status

func (r RuleAttributes) Status() terra.StringValue

func (RuleAttributes) Transition

type RuleState

type RuleState struct {
	Id                             string                                `json:"id"`
	Prefix                         string                                `json:"prefix"`
	Status                         string                                `json:"status"`
	AbortIncompleteMultipartUpload []AbortIncompleteMultipartUploadState `json:"abort_incomplete_multipart_upload"`
	Expiration                     []ExpirationState                     `json:"expiration"`
	Filter                         []FilterState                         `json:"filter"`
	NoncurrentVersionExpiration    []NoncurrentVersionExpirationState    `json:"noncurrent_version_expiration"`
	NoncurrentVersionTransition    []NoncurrentVersionTransitionState    `json:"noncurrent_version_transition"`
	Transition                     []TransitionState                     `json:"transition"`
}

type Tag

type Tag struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type TagAttributes

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

func (TagAttributes) InternalRef

func (t TagAttributes) InternalRef() (terra.Reference, error)

func (TagAttributes) InternalTokens

func (t TagAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TagAttributes) InternalWithRef

func (t TagAttributes) InternalWithRef(ref terra.Reference) TagAttributes

func (TagAttributes) Key

func (TagAttributes) Value

func (t TagAttributes) Value() terra.StringValue

type TagState

type TagState struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Transition

type Transition struct {
	// Date: string, optional
	Date terra.StringValue `hcl:"date,attr"`
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// StorageClass: string, required
	StorageClass terra.StringValue `hcl:"storage_class,attr" validate:"required"`
}

type TransitionAttributes

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

func (TransitionAttributes) Date

func (TransitionAttributes) Days

func (TransitionAttributes) InternalRef

func (t TransitionAttributes) InternalRef() (terra.Reference, error)

func (TransitionAttributes) InternalTokens

func (t TransitionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TransitionAttributes) InternalWithRef

func (TransitionAttributes) StorageClass

func (t TransitionAttributes) StorageClass() terra.StringValue

type TransitionState

type TransitionState struct {
	Date         string  `json:"date"`
	Days         float64 `json:"days"`
	StorageClass string  `json:"storage_class"`
}

Jump to

Keyboard shortcuts

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