google_compute_backend_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 {
	// BucketName: string, required
	BucketName terra.StringValue `hcl:"bucket_name,attr" validate:"required"`
	// CompressionMode: string, optional
	CompressionMode terra.StringValue `hcl:"compression_mode,attr"`
	// CustomResponseHeaders: list of string, optional
	CustomResponseHeaders terra.ListValue[terra.StringValue] `hcl:"custom_response_headers,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// EdgeSecurityPolicy: string, optional
	EdgeSecurityPolicy terra.StringValue `hcl:"edge_security_policy,attr"`
	// EnableCdn: bool, optional
	EnableCdn terra.BoolValue `hcl:"enable_cdn,attr"`
	// 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"`
	// CdnPolicy: optional
	CdnPolicy *CdnPolicy `hcl:"cdn_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_backend_bucket.

type CdnPolicy

type CdnPolicy struct {
	// CacheMode: string, optional
	CacheMode terra.StringValue `hcl:"cache_mode,attr"`
	// ClientTtl: number, optional
	ClientTtl terra.NumberValue `hcl:"client_ttl,attr"`
	// DefaultTtl: number, optional
	DefaultTtl terra.NumberValue `hcl:"default_ttl,attr"`
	// MaxTtl: number, optional
	MaxTtl terra.NumberValue `hcl:"max_ttl,attr"`
	// NegativeCaching: bool, optional
	NegativeCaching terra.BoolValue `hcl:"negative_caching,attr"`
	// RequestCoalescing: bool, optional
	RequestCoalescing terra.BoolValue `hcl:"request_coalescing,attr"`
	// ServeWhileStale: number, optional
	ServeWhileStale terra.NumberValue `hcl:"serve_while_stale,attr"`
	// SignedUrlCacheMaxAgeSec: number, optional
	SignedUrlCacheMaxAgeSec terra.NumberValue `hcl:"signed_url_cache_max_age_sec,attr"`
	// CdnPolicyBypassCacheOnRequestHeaders: min=0,max=5
	BypassCacheOnRequestHeaders []CdnPolicyBypassCacheOnRequestHeaders `hcl:"bypass_cache_on_request_headers,block" validate:"min=0,max=5"`
	// CdnPolicyCacheKeyPolicy: optional
	CacheKeyPolicy *CdnPolicyCacheKeyPolicy `hcl:"cache_key_policy,block"`
	// CdnPolicyNegativeCachingPolicy: min=0
	NegativeCachingPolicy []CdnPolicyNegativeCachingPolicy `hcl:"negative_caching_policy,block" validate:"min=0"`
}

type CdnPolicyAttributes

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

func (CdnPolicyAttributes) BypassCacheOnRequestHeaders

func (CdnPolicyAttributes) CacheKeyPolicy

func (CdnPolicyAttributes) CacheMode

func (cp CdnPolicyAttributes) CacheMode() terra.StringValue

func (CdnPolicyAttributes) ClientTtl

func (cp CdnPolicyAttributes) ClientTtl() terra.NumberValue

func (CdnPolicyAttributes) DefaultTtl

func (cp CdnPolicyAttributes) DefaultTtl() terra.NumberValue

func (CdnPolicyAttributes) InternalRef

func (cp CdnPolicyAttributes) InternalRef() (terra.Reference, error)

func (CdnPolicyAttributes) InternalTokens

func (cp CdnPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CdnPolicyAttributes) InternalWithRef

func (cp CdnPolicyAttributes) InternalWithRef(ref terra.Reference) CdnPolicyAttributes

func (CdnPolicyAttributes) MaxTtl

func (CdnPolicyAttributes) NegativeCaching

func (cp CdnPolicyAttributes) NegativeCaching() terra.BoolValue

func (CdnPolicyAttributes) NegativeCachingPolicy

func (CdnPolicyAttributes) RequestCoalescing

func (cp CdnPolicyAttributes) RequestCoalescing() terra.BoolValue

func (CdnPolicyAttributes) ServeWhileStale

func (cp CdnPolicyAttributes) ServeWhileStale() terra.NumberValue

func (CdnPolicyAttributes) SignedUrlCacheMaxAgeSec

func (cp CdnPolicyAttributes) SignedUrlCacheMaxAgeSec() terra.NumberValue

type CdnPolicyBypassCacheOnRequestHeaders

type CdnPolicyBypassCacheOnRequestHeaders struct {
	// HeaderName: string, optional
	HeaderName terra.StringValue `hcl:"header_name,attr"`
}

type CdnPolicyBypassCacheOnRequestHeadersAttributes

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

func (CdnPolicyBypassCacheOnRequestHeadersAttributes) HeaderName

func (CdnPolicyBypassCacheOnRequestHeadersAttributes) InternalRef

func (CdnPolicyBypassCacheOnRequestHeadersAttributes) InternalTokens

func (CdnPolicyBypassCacheOnRequestHeadersAttributes) InternalWithRef

type CdnPolicyBypassCacheOnRequestHeadersState

type CdnPolicyBypassCacheOnRequestHeadersState struct {
	HeaderName string `json:"header_name"`
}

type CdnPolicyCacheKeyPolicy

type CdnPolicyCacheKeyPolicy struct {
	// IncludeHttpHeaders: list of string, optional
	IncludeHttpHeaders terra.ListValue[terra.StringValue] `hcl:"include_http_headers,attr"`
	// QueryStringWhitelist: list of string, optional
	QueryStringWhitelist terra.ListValue[terra.StringValue] `hcl:"query_string_whitelist,attr"`
}

type CdnPolicyCacheKeyPolicyAttributes

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

func (CdnPolicyCacheKeyPolicyAttributes) IncludeHttpHeaders

func (CdnPolicyCacheKeyPolicyAttributes) InternalRef

func (CdnPolicyCacheKeyPolicyAttributes) InternalTokens

func (ckp CdnPolicyCacheKeyPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CdnPolicyCacheKeyPolicyAttributes) InternalWithRef

func (CdnPolicyCacheKeyPolicyAttributes) QueryStringWhitelist

type CdnPolicyCacheKeyPolicyState

type CdnPolicyCacheKeyPolicyState struct {
	IncludeHttpHeaders   []string `json:"include_http_headers"`
	QueryStringWhitelist []string `json:"query_string_whitelist"`
}

type CdnPolicyNegativeCachingPolicy

type CdnPolicyNegativeCachingPolicy struct {
	// Code: number, optional
	Code terra.NumberValue `hcl:"code,attr"`
	// Ttl: number, optional
	Ttl terra.NumberValue `hcl:"ttl,attr"`
}

type CdnPolicyNegativeCachingPolicyAttributes

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

func (CdnPolicyNegativeCachingPolicyAttributes) Code

func (CdnPolicyNegativeCachingPolicyAttributes) InternalRef

func (CdnPolicyNegativeCachingPolicyAttributes) InternalTokens

func (CdnPolicyNegativeCachingPolicyAttributes) InternalWithRef

func (CdnPolicyNegativeCachingPolicyAttributes) Ttl

type CdnPolicyNegativeCachingPolicyState

type CdnPolicyNegativeCachingPolicyState struct {
	Code float64 `json:"code"`
	Ttl  float64 `json:"ttl"`
}

type CdnPolicyState

type CdnPolicyState struct {
	CacheMode                   string                                      `json:"cache_mode"`
	ClientTtl                   float64                                     `json:"client_ttl"`
	DefaultTtl                  float64                                     `json:"default_ttl"`
	MaxTtl                      float64                                     `json:"max_ttl"`
	NegativeCaching             bool                                        `json:"negative_caching"`
	RequestCoalescing           bool                                        `json:"request_coalescing"`
	ServeWhileStale             float64                                     `json:"serve_while_stale"`
	SignedUrlCacheMaxAgeSec     float64                                     `json:"signed_url_cache_max_age_sec"`
	BypassCacheOnRequestHeaders []CdnPolicyBypassCacheOnRequestHeadersState `json:"bypass_cache_on_request_headers"`
	CacheKeyPolicy              []CdnPolicyCacheKeyPolicyState              `json:"cache_key_policy"`
	NegativeCachingPolicy       []CdnPolicyNegativeCachingPolicyState       `json:"negative_caching_policy"`
}

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

type DataCdnPolicyAttributes

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

func (DataCdnPolicyAttributes) BypassCacheOnRequestHeaders

func (DataCdnPolicyAttributes) CacheKeyPolicy

func (DataCdnPolicyAttributes) CacheMode

func (cp DataCdnPolicyAttributes) CacheMode() terra.StringValue

func (DataCdnPolicyAttributes) ClientTtl

func (cp DataCdnPolicyAttributes) ClientTtl() terra.NumberValue

func (DataCdnPolicyAttributes) DefaultTtl

func (cp DataCdnPolicyAttributes) DefaultTtl() terra.NumberValue

func (DataCdnPolicyAttributes) InternalRef

func (cp DataCdnPolicyAttributes) InternalRef() (terra.Reference, error)

func (DataCdnPolicyAttributes) InternalTokens

func (cp DataCdnPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataCdnPolicyAttributes) InternalWithRef

func (DataCdnPolicyAttributes) MaxTtl

func (DataCdnPolicyAttributes) NegativeCaching

func (cp DataCdnPolicyAttributes) NegativeCaching() terra.BoolValue

func (DataCdnPolicyAttributes) NegativeCachingPolicy

func (DataCdnPolicyAttributes) RequestCoalescing

func (cp DataCdnPolicyAttributes) RequestCoalescing() terra.BoolValue

func (DataCdnPolicyAttributes) ServeWhileStale

func (cp DataCdnPolicyAttributes) ServeWhileStale() terra.NumberValue

func (DataCdnPolicyAttributes) SignedUrlCacheMaxAgeSec

func (cp DataCdnPolicyAttributes) SignedUrlCacheMaxAgeSec() terra.NumberValue

type DataCdnPolicyBypassCacheOnRequestHeadersAttributes

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

func (DataCdnPolicyBypassCacheOnRequestHeadersAttributes) HeaderName

func (DataCdnPolicyBypassCacheOnRequestHeadersAttributes) InternalRef

func (DataCdnPolicyBypassCacheOnRequestHeadersAttributes) InternalTokens

func (DataCdnPolicyBypassCacheOnRequestHeadersAttributes) InternalWithRef

type DataCdnPolicyBypassCacheOnRequestHeadersState

type DataCdnPolicyBypassCacheOnRequestHeadersState struct {
	HeaderName string `json:"header_name"`
}

type DataCdnPolicyCacheKeyPolicyAttributes

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

func (DataCdnPolicyCacheKeyPolicyAttributes) IncludeHttpHeaders

func (DataCdnPolicyCacheKeyPolicyAttributes) InternalRef

func (DataCdnPolicyCacheKeyPolicyAttributes) InternalTokens

func (DataCdnPolicyCacheKeyPolicyAttributes) InternalWithRef

func (DataCdnPolicyCacheKeyPolicyAttributes) QueryStringWhitelist

type DataCdnPolicyCacheKeyPolicyState

type DataCdnPolicyCacheKeyPolicyState struct {
	IncludeHttpHeaders   []string `json:"include_http_headers"`
	QueryStringWhitelist []string `json:"query_string_whitelist"`
}

type DataCdnPolicyNegativeCachingPolicyAttributes

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

func (DataCdnPolicyNegativeCachingPolicyAttributes) Code

func (DataCdnPolicyNegativeCachingPolicyAttributes) InternalRef

func (DataCdnPolicyNegativeCachingPolicyAttributes) InternalTokens

func (DataCdnPolicyNegativeCachingPolicyAttributes) InternalWithRef

func (DataCdnPolicyNegativeCachingPolicyAttributes) Ttl

type DataCdnPolicyNegativeCachingPolicyState

type DataCdnPolicyNegativeCachingPolicyState struct {
	Code float64 `json:"code"`
	Ttl  float64 `json:"ttl"`
}

type DataCdnPolicyState

type DataCdnPolicyState struct {
	CacheMode                   string                                          `json:"cache_mode"`
	ClientTtl                   float64                                         `json:"client_ttl"`
	DefaultTtl                  float64                                         `json:"default_ttl"`
	MaxTtl                      float64                                         `json:"max_ttl"`
	NegativeCaching             bool                                            `json:"negative_caching"`
	RequestCoalescing           bool                                            `json:"request_coalescing"`
	ServeWhileStale             float64                                         `json:"serve_while_stale"`
	SignedUrlCacheMaxAgeSec     float64                                         `json:"signed_url_cache_max_age_sec"`
	BypassCacheOnRequestHeaders []DataCdnPolicyBypassCacheOnRequestHeadersState `json:"bypass_cache_on_request_headers"`
	CacheKeyPolicy              []DataCdnPolicyCacheKeyPolicyState              `json:"cache_key_policy"`
	NegativeCachingPolicy       []DataCdnPolicyNegativeCachingPolicyState       `json:"negative_caching_policy"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_compute_backend_bucket.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gcbb *DataSource) Attributes() dataGoogleComputeBackendBucketAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gcbb *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gcbb *DataSource) LocalName() string

LocalName returns the local name for DataSource.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcbb *Resource) Attributes() googleComputeBackendBucketAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcbb *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcbb *Resource) State() (*googleComputeBackendBucketState, bool)

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

func (*Resource) StateMust

func (gcbb *Resource) StateMust() *googleComputeBackendBucketState

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

func (*Resource) Type

func (gcbb *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,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) Delete

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) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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