google_storage_bucket

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: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// DefaultEventBasedHold: bool, optional
	DefaultEventBasedHold terra.BoolValue `hcl:"default_event_based_hold,attr"`
	// EnableObjectRetention: bool, optional
	EnableObjectRetention terra.BoolValue `hcl:"enable_object_retention,attr"`
	// ForceDestroy: bool, optional
	ForceDestroy terra.BoolValue `hcl:"force_destroy,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// PublicAccessPrevention: string, optional
	PublicAccessPrevention terra.StringValue `hcl:"public_access_prevention,attr"`
	// RequesterPays: bool, optional
	RequesterPays terra.BoolValue `hcl:"requester_pays,attr"`
	// Rpo: string, optional
	Rpo terra.StringValue `hcl:"rpo,attr"`
	// StorageClass: string, optional
	StorageClass terra.StringValue `hcl:"storage_class,attr"`
	// UniformBucketLevelAccess: bool, optional
	UniformBucketLevelAccess terra.BoolValue `hcl:"uniform_bucket_level_access,attr"`
	// Autoclass: optional
	Autoclass *Autoclass `hcl:"autoclass,block"`
	// Cors: min=0
	Cors []Cors `hcl:"cors,block" validate:"min=0"`
	// CustomPlacementConfig: optional
	CustomPlacementConfig *CustomPlacementConfig `hcl:"custom_placement_config,block"`
	// Encryption: optional
	Encryption *Encryption `hcl:"encryption,block"`
	// LifecycleRule: min=0,max=100
	LifecycleRule []LifecycleRule `hcl:"lifecycle_rule,block" validate:"min=0,max=100"`
	// Logging: optional
	Logging *Logging `hcl:"logging,block"`
	// RetentionPolicy: optional
	RetentionPolicy *RetentionPolicy `hcl:"retention_policy,block"`
	// SoftDeletePolicy: optional
	SoftDeletePolicy *SoftDeletePolicy `hcl:"soft_delete_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// Versioning: optional
	Versioning *Versioning `hcl:"versioning,block"`
	// Website: optional
	Website *Website `hcl:"website,block"`
}

Args contains the configurations for google_storage_bucket.

type Autoclass

type Autoclass struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// TerminalStorageClass: string, optional
	TerminalStorageClass terra.StringValue `hcl:"terminal_storage_class,attr"`
}

type AutoclassAttributes

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

func (AutoclassAttributes) Enabled

func (a AutoclassAttributes) Enabled() terra.BoolValue

func (AutoclassAttributes) InternalRef

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

func (AutoclassAttributes) InternalTokens

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

func (AutoclassAttributes) InternalWithRef

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

func (AutoclassAttributes) TerminalStorageClass

func (a AutoclassAttributes) TerminalStorageClass() terra.StringValue

type AutoclassState

type AutoclassState struct {
	Enabled              bool   `json:"enabled"`
	TerminalStorageClass string `json:"terminal_storage_class"`
}

type Cors

type Cors struct {
	// MaxAgeSeconds: number, optional
	MaxAgeSeconds terra.NumberValue `hcl:"max_age_seconds,attr"`
	// Method: list of string, optional
	Method terra.ListValue[terra.StringValue] `hcl:"method,attr"`
	// Origin: list of string, optional
	Origin terra.ListValue[terra.StringValue] `hcl:"origin,attr"`
	// ResponseHeader: list of string, optional
	ResponseHeader terra.ListValue[terra.StringValue] `hcl:"response_header,attr"`
}

type CorsAttributes

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

func (CorsAttributes) InternalRef

func (c CorsAttributes) InternalRef() (terra.Reference, error)

func (CorsAttributes) InternalTokens

func (c CorsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CorsAttributes) InternalWithRef

func (c CorsAttributes) InternalWithRef(ref terra.Reference) CorsAttributes

func (CorsAttributes) MaxAgeSeconds

func (c CorsAttributes) MaxAgeSeconds() terra.NumberValue

func (CorsAttributes) Method

func (CorsAttributes) Origin

func (CorsAttributes) ResponseHeader

func (c CorsAttributes) ResponseHeader() terra.ListValue[terra.StringValue]

type CorsState

type CorsState struct {
	MaxAgeSeconds  float64  `json:"max_age_seconds"`
	Method         []string `json:"method"`
	Origin         []string `json:"origin"`
	ResponseHeader []string `json:"response_header"`
}

type CustomPlacementConfig

type CustomPlacementConfig struct {
	// DataLocations: set of string, required
	DataLocations terra.SetValue[terra.StringValue] `hcl:"data_locations,attr" validate:"required"`
}

type CustomPlacementConfigAttributes

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

func (CustomPlacementConfigAttributes) DataLocations

func (CustomPlacementConfigAttributes) InternalRef

func (CustomPlacementConfigAttributes) InternalTokens

func (cpc CustomPlacementConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomPlacementConfigAttributes) InternalWithRef

type CustomPlacementConfigState

type CustomPlacementConfigState struct {
	DataLocations []string `json:"data_locations"`
}

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
}

DataArgs contains the configurations for google_storage_bucket.

type DataAutoclassAttributes

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

func (DataAutoclassAttributes) Enabled

func (DataAutoclassAttributes) InternalRef

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

func (DataAutoclassAttributes) InternalTokens

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

func (DataAutoclassAttributes) InternalWithRef

func (DataAutoclassAttributes) TerminalStorageClass

func (a DataAutoclassAttributes) TerminalStorageClass() terra.StringValue

type DataAutoclassState

type DataAutoclassState struct {
	Enabled              bool   `json:"enabled"`
	TerminalStorageClass string `json:"terminal_storage_class"`
}

type DataCorsAttributes

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

func (DataCorsAttributes) InternalRef

func (c DataCorsAttributes) InternalRef() (terra.Reference, error)

func (DataCorsAttributes) InternalTokens

func (c DataCorsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataCorsAttributes) InternalWithRef

func (c DataCorsAttributes) InternalWithRef(ref terra.Reference) DataCorsAttributes

func (DataCorsAttributes) MaxAgeSeconds

func (c DataCorsAttributes) MaxAgeSeconds() terra.NumberValue

func (DataCorsAttributes) Method

func (DataCorsAttributes) Origin

func (DataCorsAttributes) ResponseHeader

func (c DataCorsAttributes) ResponseHeader() terra.ListValue[terra.StringValue]

type DataCorsState

type DataCorsState struct {
	MaxAgeSeconds  float64  `json:"max_age_seconds"`
	Method         []string `json:"method"`
	Origin         []string `json:"origin"`
	ResponseHeader []string `json:"response_header"`
}

type DataCustomPlacementConfigAttributes

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

func (DataCustomPlacementConfigAttributes) DataLocations

func (DataCustomPlacementConfigAttributes) InternalRef

func (DataCustomPlacementConfigAttributes) InternalTokens

func (cpc DataCustomPlacementConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataCustomPlacementConfigAttributes) InternalWithRef

type DataCustomPlacementConfigState

type DataCustomPlacementConfigState struct {
	DataLocations []string `json:"data_locations"`
}

type DataEncryptionAttributes

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

func (DataEncryptionAttributes) DefaultKmsKeyName

func (e DataEncryptionAttributes) DefaultKmsKeyName() terra.StringValue

func (DataEncryptionAttributes) InternalRef

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

func (DataEncryptionAttributes) InternalTokens

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

func (DataEncryptionAttributes) InternalWithRef

type DataEncryptionState

type DataEncryptionState struct {
	DefaultKmsKeyName string `json:"default_kms_key_name"`
}

type DataLifecycleRuleActionAttributes

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

func (DataLifecycleRuleActionAttributes) InternalRef

func (DataLifecycleRuleActionAttributes) InternalTokens

func (DataLifecycleRuleActionAttributes) InternalWithRef

func (DataLifecycleRuleActionAttributes) StorageClass

func (DataLifecycleRuleActionAttributes) Type

type DataLifecycleRuleActionState

type DataLifecycleRuleActionState struct {
	StorageClass string `json:"storage_class"`
	Type         string `json:"type"`
}

type DataLifecycleRuleAttributes

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

func (DataLifecycleRuleAttributes) Action

func (DataLifecycleRuleAttributes) Condition

func (DataLifecycleRuleAttributes) InternalRef

func (lr DataLifecycleRuleAttributes) InternalRef() (terra.Reference, error)

func (DataLifecycleRuleAttributes) InternalTokens

func (lr DataLifecycleRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataLifecycleRuleAttributes) InternalWithRef

type DataLifecycleRuleConditionAttributes

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

func (DataLifecycleRuleConditionAttributes) Age

func (DataLifecycleRuleConditionAttributes) CreatedBefore

func (DataLifecycleRuleConditionAttributes) CustomTimeBefore

func (DataLifecycleRuleConditionAttributes) DaysSinceCustomTime

func (c DataLifecycleRuleConditionAttributes) DaysSinceCustomTime() terra.NumberValue

func (DataLifecycleRuleConditionAttributes) DaysSinceNoncurrentTime

func (c DataLifecycleRuleConditionAttributes) DaysSinceNoncurrentTime() terra.NumberValue

func (DataLifecycleRuleConditionAttributes) InternalRef

func (DataLifecycleRuleConditionAttributes) InternalTokens

func (DataLifecycleRuleConditionAttributes) InternalWithRef

func (DataLifecycleRuleConditionAttributes) MatchesPrefix

func (DataLifecycleRuleConditionAttributes) MatchesStorageClass

func (DataLifecycleRuleConditionAttributes) MatchesSuffix

func (DataLifecycleRuleConditionAttributes) NoAge

func (DataLifecycleRuleConditionAttributes) NoncurrentTimeBefore

func (c DataLifecycleRuleConditionAttributes) NoncurrentTimeBefore() terra.StringValue

func (DataLifecycleRuleConditionAttributes) NumNewerVersions

func (DataLifecycleRuleConditionAttributes) WithState

type DataLifecycleRuleConditionState

type DataLifecycleRuleConditionState struct {
	Age                     float64  `json:"age"`
	CreatedBefore           string   `json:"created_before"`
	CustomTimeBefore        string   `json:"custom_time_before"`
	DaysSinceCustomTime     float64  `json:"days_since_custom_time"`
	DaysSinceNoncurrentTime float64  `json:"days_since_noncurrent_time"`
	MatchesPrefix           []string `json:"matches_prefix"`
	MatchesStorageClass     []string `json:"matches_storage_class"`
	MatchesSuffix           []string `json:"matches_suffix"`
	NoAge                   bool     `json:"no_age"`
	NoncurrentTimeBefore    string   `json:"noncurrent_time_before"`
	NumNewerVersions        float64  `json:"num_newer_versions"`
	WithState               string   `json:"with_state"`
}

type DataLifecycleRuleState

type DataLifecycleRuleState struct {
	Action    []DataLifecycleRuleActionState    `json:"action"`
	Condition []DataLifecycleRuleConditionState `json:"condition"`
}

type DataLoggingAttributes

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

func (DataLoggingAttributes) InternalRef

func (l DataLoggingAttributes) InternalRef() (terra.Reference, error)

func (DataLoggingAttributes) InternalTokens

func (l DataLoggingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataLoggingAttributes) InternalWithRef

func (DataLoggingAttributes) LogBucket

func (l DataLoggingAttributes) LogBucket() terra.StringValue

func (DataLoggingAttributes) LogObjectPrefix

func (l DataLoggingAttributes) LogObjectPrefix() terra.StringValue

type DataLoggingState

type DataLoggingState struct {
	LogBucket       string `json:"log_bucket"`
	LogObjectPrefix string `json:"log_object_prefix"`
}

type DataRetentionPolicyAttributes

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

func (DataRetentionPolicyAttributes) InternalRef

func (rp DataRetentionPolicyAttributes) InternalRef() (terra.Reference, error)

func (DataRetentionPolicyAttributes) InternalTokens

func (rp DataRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRetentionPolicyAttributes) InternalWithRef

func (DataRetentionPolicyAttributes) IsLocked

func (DataRetentionPolicyAttributes) RetentionPeriod

func (rp DataRetentionPolicyAttributes) RetentionPeriod() terra.NumberValue

type DataRetentionPolicyState

type DataRetentionPolicyState struct {
	IsLocked        bool    `json:"is_locked"`
	RetentionPeriod float64 `json:"retention_period"`
}

type DataSoftDeletePolicyAttributes

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

func (DataSoftDeletePolicyAttributes) EffectiveTime

func (sdp DataSoftDeletePolicyAttributes) EffectiveTime() terra.StringValue

func (DataSoftDeletePolicyAttributes) InternalRef

func (sdp DataSoftDeletePolicyAttributes) InternalRef() (terra.Reference, error)

func (DataSoftDeletePolicyAttributes) InternalTokens

func (sdp DataSoftDeletePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSoftDeletePolicyAttributes) InternalWithRef

func (DataSoftDeletePolicyAttributes) RetentionDurationSeconds

func (sdp DataSoftDeletePolicyAttributes) RetentionDurationSeconds() terra.NumberValue

type DataSoftDeletePolicyState

type DataSoftDeletePolicyState struct {
	EffectiveTime            string  `json:"effective_time"`
	RetentionDurationSeconds float64 `json:"retention_duration_seconds"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_storage_bucket.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gsb *DataSource) Attributes() dataGoogleStorageBucketAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (gsb *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gsb *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gsb *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataVersioningAttributes

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

func (DataVersioningAttributes) Enabled

func (DataVersioningAttributes) InternalRef

func (v DataVersioningAttributes) InternalRef() (terra.Reference, error)

func (DataVersioningAttributes) InternalTokens

func (v DataVersioningAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataVersioningAttributes) InternalWithRef

type DataVersioningState

type DataVersioningState struct {
	Enabled bool `json:"enabled"`
}

type DataWebsiteAttributes

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

func (DataWebsiteAttributes) InternalRef

func (w DataWebsiteAttributes) InternalRef() (terra.Reference, error)

func (DataWebsiteAttributes) InternalTokens

func (w DataWebsiteAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataWebsiteAttributes) InternalWithRef

func (DataWebsiteAttributes) MainPageSuffix

func (w DataWebsiteAttributes) MainPageSuffix() terra.StringValue

func (DataWebsiteAttributes) NotFoundPage

func (w DataWebsiteAttributes) NotFoundPage() terra.StringValue

type DataWebsiteState

type DataWebsiteState struct {
	MainPageSuffix string `json:"main_page_suffix"`
	NotFoundPage   string `json:"not_found_page"`
}

type Encryption

type Encryption struct {
	// DefaultKmsKeyName: string, required
	DefaultKmsKeyName terra.StringValue `hcl:"default_kms_key_name,attr" validate:"required"`
}

type EncryptionAttributes

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

func (EncryptionAttributes) DefaultKmsKeyName

func (e EncryptionAttributes) DefaultKmsKeyName() terra.StringValue

func (EncryptionAttributes) InternalRef

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

func (EncryptionAttributes) InternalTokens

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

func (EncryptionAttributes) InternalWithRef

type EncryptionState

type EncryptionState struct {
	DefaultKmsKeyName string `json:"default_kms_key_name"`
}

type LifecycleRule

type LifecycleRule struct {
	// LifecycleRuleAction: required
	Action *LifecycleRuleAction `hcl:"action,block" validate:"required"`
	// LifecycleRuleCondition: required
	Condition *LifecycleRuleCondition `hcl:"condition,block" validate:"required"`
}

type LifecycleRuleAction

type LifecycleRuleAction struct {
	// StorageClass: string, optional
	StorageClass terra.StringValue `hcl:"storage_class,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type LifecycleRuleActionAttributes

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

func (LifecycleRuleActionAttributes) InternalRef

func (LifecycleRuleActionAttributes) InternalTokens

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

func (LifecycleRuleActionAttributes) InternalWithRef

func (LifecycleRuleActionAttributes) StorageClass

func (LifecycleRuleActionAttributes) Type

type LifecycleRuleActionState

type LifecycleRuleActionState struct {
	StorageClass string `json:"storage_class"`
	Type         string `json:"type"`
}

type LifecycleRuleAttributes

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

func (LifecycleRuleAttributes) Action

func (LifecycleRuleAttributes) Condition

func (LifecycleRuleAttributes) InternalRef

func (lr LifecycleRuleAttributes) InternalRef() (terra.Reference, error)

func (LifecycleRuleAttributes) InternalTokens

func (lr LifecycleRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LifecycleRuleAttributes) InternalWithRef

type LifecycleRuleCondition

type LifecycleRuleCondition struct {
	// Age: number, optional
	Age terra.NumberValue `hcl:"age,attr"`
	// CreatedBefore: string, optional
	CreatedBefore terra.StringValue `hcl:"created_before,attr"`
	// CustomTimeBefore: string, optional
	CustomTimeBefore terra.StringValue `hcl:"custom_time_before,attr"`
	// DaysSinceCustomTime: number, optional
	DaysSinceCustomTime terra.NumberValue `hcl:"days_since_custom_time,attr"`
	// DaysSinceNoncurrentTime: number, optional
	DaysSinceNoncurrentTime terra.NumberValue `hcl:"days_since_noncurrent_time,attr"`
	// MatchesPrefix: list of string, optional
	MatchesPrefix terra.ListValue[terra.StringValue] `hcl:"matches_prefix,attr"`
	// MatchesStorageClass: list of string, optional
	MatchesStorageClass terra.ListValue[terra.StringValue] `hcl:"matches_storage_class,attr"`
	// MatchesSuffix: list of string, optional
	MatchesSuffix terra.ListValue[terra.StringValue] `hcl:"matches_suffix,attr"`
	// NoAge: bool, optional
	NoAge terra.BoolValue `hcl:"no_age,attr"`
	// NoncurrentTimeBefore: string, optional
	NoncurrentTimeBefore terra.StringValue `hcl:"noncurrent_time_before,attr"`
	// NumNewerVersions: number, optional
	NumNewerVersions terra.NumberValue `hcl:"num_newer_versions,attr"`
	// WithState: string, optional
	WithState terra.StringValue `hcl:"with_state,attr"`
}

type LifecycleRuleConditionAttributes

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

func (LifecycleRuleConditionAttributes) Age

func (LifecycleRuleConditionAttributes) CreatedBefore

func (LifecycleRuleConditionAttributes) CustomTimeBefore

func (c LifecycleRuleConditionAttributes) CustomTimeBefore() terra.StringValue

func (LifecycleRuleConditionAttributes) DaysSinceCustomTime

func (c LifecycleRuleConditionAttributes) DaysSinceCustomTime() terra.NumberValue

func (LifecycleRuleConditionAttributes) DaysSinceNoncurrentTime

func (c LifecycleRuleConditionAttributes) DaysSinceNoncurrentTime() terra.NumberValue

func (LifecycleRuleConditionAttributes) InternalRef

func (LifecycleRuleConditionAttributes) InternalTokens

func (c LifecycleRuleConditionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LifecycleRuleConditionAttributes) InternalWithRef

func (LifecycleRuleConditionAttributes) MatchesPrefix

func (LifecycleRuleConditionAttributes) MatchesStorageClass

func (LifecycleRuleConditionAttributes) MatchesSuffix

func (LifecycleRuleConditionAttributes) NoAge

func (LifecycleRuleConditionAttributes) NoncurrentTimeBefore

func (c LifecycleRuleConditionAttributes) NoncurrentTimeBefore() terra.StringValue

func (LifecycleRuleConditionAttributes) NumNewerVersions

func (c LifecycleRuleConditionAttributes) NumNewerVersions() terra.NumberValue

func (LifecycleRuleConditionAttributes) WithState

type LifecycleRuleConditionState

type LifecycleRuleConditionState struct {
	Age                     float64  `json:"age"`
	CreatedBefore           string   `json:"created_before"`
	CustomTimeBefore        string   `json:"custom_time_before"`
	DaysSinceCustomTime     float64  `json:"days_since_custom_time"`
	DaysSinceNoncurrentTime float64  `json:"days_since_noncurrent_time"`
	MatchesPrefix           []string `json:"matches_prefix"`
	MatchesStorageClass     []string `json:"matches_storage_class"`
	MatchesSuffix           []string `json:"matches_suffix"`
	NoAge                   bool     `json:"no_age"`
	NoncurrentTimeBefore    string   `json:"noncurrent_time_before"`
	NumNewerVersions        float64  `json:"num_newer_versions"`
	WithState               string   `json:"with_state"`
}

type LifecycleRuleState

type LifecycleRuleState struct {
	Action    []LifecycleRuleActionState    `json:"action"`
	Condition []LifecycleRuleConditionState `json:"condition"`
}

type Logging

type Logging struct {
	// LogBucket: string, required
	LogBucket terra.StringValue `hcl:"log_bucket,attr" validate:"required"`
	// LogObjectPrefix: string, optional
	LogObjectPrefix terra.StringValue `hcl:"log_object_prefix,attr"`
}

type LoggingAttributes

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

func (LoggingAttributes) InternalRef

func (l LoggingAttributes) InternalRef() (terra.Reference, error)

func (LoggingAttributes) InternalTokens

func (l LoggingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoggingAttributes) InternalWithRef

func (l LoggingAttributes) InternalWithRef(ref terra.Reference) LoggingAttributes

func (LoggingAttributes) LogBucket

func (l LoggingAttributes) LogBucket() terra.StringValue

func (LoggingAttributes) LogObjectPrefix

func (l LoggingAttributes) LogObjectPrefix() terra.StringValue

type LoggingState

type LoggingState struct {
	LogBucket       string `json:"log_bucket"`
	LogObjectPrefix string `json:"log_object_prefix"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gsb *Resource) Attributes() googleStorageBucketAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gsb *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gsb *Resource) State() (*googleStorageBucketState, bool)

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

func (*Resource) StateMust

func (gsb *Resource) StateMust() *googleStorageBucketState

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

func (*Resource) Type

func (gsb *Resource) Type() string

Type returns the Terraform object type for Resource.

type RetentionPolicy

type RetentionPolicy struct {
	// IsLocked: bool, optional
	IsLocked terra.BoolValue `hcl:"is_locked,attr"`
	// RetentionPeriod: number, required
	RetentionPeriod terra.NumberValue `hcl:"retention_period,attr" validate:"required"`
}

type RetentionPolicyAttributes

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

func (RetentionPolicyAttributes) InternalRef

func (rp RetentionPolicyAttributes) InternalRef() (terra.Reference, error)

func (RetentionPolicyAttributes) InternalTokens

func (rp RetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetentionPolicyAttributes) InternalWithRef

func (RetentionPolicyAttributes) IsLocked

func (RetentionPolicyAttributes) RetentionPeriod

func (rp RetentionPolicyAttributes) RetentionPeriod() terra.NumberValue

type RetentionPolicyState

type RetentionPolicyState struct {
	IsLocked        bool    `json:"is_locked"`
	RetentionPeriod float64 `json:"retention_period"`
}

type SoftDeletePolicy

type SoftDeletePolicy struct {
	// RetentionDurationSeconds: number, optional
	RetentionDurationSeconds terra.NumberValue `hcl:"retention_duration_seconds,attr"`
}

type SoftDeletePolicyAttributes

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

func (SoftDeletePolicyAttributes) EffectiveTime

func (sdp SoftDeletePolicyAttributes) EffectiveTime() terra.StringValue

func (SoftDeletePolicyAttributes) InternalRef

func (sdp SoftDeletePolicyAttributes) InternalRef() (terra.Reference, error)

func (SoftDeletePolicyAttributes) InternalTokens

func (sdp SoftDeletePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SoftDeletePolicyAttributes) InternalWithRef

func (SoftDeletePolicyAttributes) RetentionDurationSeconds

func (sdp SoftDeletePolicyAttributes) RetentionDurationSeconds() terra.NumberValue

type SoftDeletePolicyState

type SoftDeletePolicyState struct {
	EffectiveTime            string  `json:"effective_time"`
	RetentionDurationSeconds float64 `json:"retention_duration_seconds"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) InternalRef

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

func (TimeoutsAttributes) InternalTokens

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

func (TimeoutsAttributes) InternalWithRef

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

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

type Versioning

type Versioning struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
}

type VersioningAttributes

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

func (VersioningAttributes) Enabled

func (v VersioningAttributes) Enabled() terra.BoolValue

func (VersioningAttributes) InternalRef

func (v VersioningAttributes) InternalRef() (terra.Reference, error)

func (VersioningAttributes) InternalTokens

func (v VersioningAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VersioningAttributes) InternalWithRef

type VersioningState

type VersioningState struct {
	Enabled bool `json:"enabled"`
}

type Website

type Website struct {
	// MainPageSuffix: string, optional
	MainPageSuffix terra.StringValue `hcl:"main_page_suffix,attr"`
	// NotFoundPage: string, optional
	NotFoundPage terra.StringValue `hcl:"not_found_page,attr"`
}

type WebsiteAttributes

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

func (WebsiteAttributes) InternalRef

func (w WebsiteAttributes) InternalRef() (terra.Reference, error)

func (WebsiteAttributes) InternalTokens

func (w WebsiteAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WebsiteAttributes) InternalWithRef

func (w WebsiteAttributes) InternalWithRef(ref terra.Reference) WebsiteAttributes

func (WebsiteAttributes) MainPageSuffix

func (w WebsiteAttributes) MainPageSuffix() terra.StringValue

func (WebsiteAttributes) NotFoundPage

func (w WebsiteAttributes) NotFoundPage() terra.StringValue

type WebsiteState

type WebsiteState struct {
	MainPageSuffix string `json:"main_page_suffix"`
	NotFoundPage   string `json:"not_found_page"`
}

Jump to

Keyboard shortcuts

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