google_pubsub_subscription

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 Args

type Args struct {
	// AckDeadlineSeconds: number, optional
	AckDeadlineSeconds terra.NumberValue `hcl:"ack_deadline_seconds,attr"`
	// EnableExactlyOnceDelivery: bool, optional
	EnableExactlyOnceDelivery terra.BoolValue `hcl:"enable_exactly_once_delivery,attr"`
	// EnableMessageOrdering: bool, optional
	EnableMessageOrdering terra.BoolValue `hcl:"enable_message_ordering,attr"`
	// Filter: string, optional
	Filter terra.StringValue `hcl:"filter,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// MessageRetentionDuration: string, optional
	MessageRetentionDuration terra.StringValue `hcl:"message_retention_duration,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// RetainAckedMessages: bool, optional
	RetainAckedMessages terra.BoolValue `hcl:"retain_acked_messages,attr"`
	// Topic: string, required
	Topic terra.StringValue `hcl:"topic,attr" validate:"required"`
	// BigqueryConfig: optional
	BigqueryConfig *BigqueryConfig `hcl:"bigquery_config,block"`
	// CloudStorageConfig: optional
	CloudStorageConfig *CloudStorageConfig `hcl:"cloud_storage_config,block"`
	// DeadLetterPolicy: optional
	DeadLetterPolicy *DeadLetterPolicy `hcl:"dead_letter_policy,block"`
	// ExpirationPolicy: optional
	ExpirationPolicy *ExpirationPolicy `hcl:"expiration_policy,block"`
	// PushConfig: optional
	PushConfig *PushConfig `hcl:"push_config,block"`
	// RetryPolicy: optional
	RetryPolicy *RetryPolicy `hcl:"retry_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_pubsub_subscription.

type BigqueryConfig

type BigqueryConfig struct {
	// DropUnknownFields: bool, optional
	DropUnknownFields terra.BoolValue `hcl:"drop_unknown_fields,attr"`
	// Table: string, required
	Table terra.StringValue `hcl:"table,attr" validate:"required"`
	// UseTableSchema: bool, optional
	UseTableSchema terra.BoolValue `hcl:"use_table_schema,attr"`
	// UseTopicSchema: bool, optional
	UseTopicSchema terra.BoolValue `hcl:"use_topic_schema,attr"`
	// WriteMetadata: bool, optional
	WriteMetadata terra.BoolValue `hcl:"write_metadata,attr"`
}

type BigqueryConfigAttributes

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

func (BigqueryConfigAttributes) DropUnknownFields

func (bc BigqueryConfigAttributes) DropUnknownFields() terra.BoolValue

func (BigqueryConfigAttributes) InternalRef

func (bc BigqueryConfigAttributes) InternalRef() (terra.Reference, error)

func (BigqueryConfigAttributes) InternalTokens

func (bc BigqueryConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BigqueryConfigAttributes) InternalWithRef

func (BigqueryConfigAttributes) Table

func (BigqueryConfigAttributes) UseTableSchema

func (bc BigqueryConfigAttributes) UseTableSchema() terra.BoolValue

func (BigqueryConfigAttributes) UseTopicSchema

func (bc BigqueryConfigAttributes) UseTopicSchema() terra.BoolValue

func (BigqueryConfigAttributes) WriteMetadata

func (bc BigqueryConfigAttributes) WriteMetadata() terra.BoolValue

type BigqueryConfigState

type BigqueryConfigState struct {
	DropUnknownFields bool   `json:"drop_unknown_fields"`
	Table             string `json:"table"`
	UseTableSchema    bool   `json:"use_table_schema"`
	UseTopicSchema    bool   `json:"use_topic_schema"`
	WriteMetadata     bool   `json:"write_metadata"`
}

type CloudStorageConfig

type CloudStorageConfig struct {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// FilenamePrefix: string, optional
	FilenamePrefix terra.StringValue `hcl:"filename_prefix,attr"`
	// FilenameSuffix: string, optional
	FilenameSuffix terra.StringValue `hcl:"filename_suffix,attr"`
	// MaxBytes: number, optional
	MaxBytes terra.NumberValue `hcl:"max_bytes,attr"`
	// MaxDuration: string, optional
	MaxDuration terra.StringValue `hcl:"max_duration,attr"`
	// CloudStorageConfigAvroConfig: optional
	AvroConfig *CloudStorageConfigAvroConfig `hcl:"avro_config,block"`
}

type CloudStorageConfigAttributes

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

func (CloudStorageConfigAttributes) AvroConfig

func (CloudStorageConfigAttributes) Bucket

func (CloudStorageConfigAttributes) FilenamePrefix

func (csc CloudStorageConfigAttributes) FilenamePrefix() terra.StringValue

func (CloudStorageConfigAttributes) FilenameSuffix

func (csc CloudStorageConfigAttributes) FilenameSuffix() terra.StringValue

func (CloudStorageConfigAttributes) InternalRef

func (csc CloudStorageConfigAttributes) InternalRef() (terra.Reference, error)

func (CloudStorageConfigAttributes) InternalTokens

func (csc CloudStorageConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CloudStorageConfigAttributes) InternalWithRef

func (CloudStorageConfigAttributes) MaxBytes

func (CloudStorageConfigAttributes) MaxDuration

func (CloudStorageConfigAttributes) State

type CloudStorageConfigAvroConfig

type CloudStorageConfigAvroConfig struct {
	// WriteMetadata: bool, optional
	WriteMetadata terra.BoolValue `hcl:"write_metadata,attr"`
}

type CloudStorageConfigAvroConfigAttributes

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

func (CloudStorageConfigAvroConfigAttributes) InternalRef

func (CloudStorageConfigAvroConfigAttributes) InternalTokens

func (CloudStorageConfigAvroConfigAttributes) InternalWithRef

func (CloudStorageConfigAvroConfigAttributes) WriteMetadata

type CloudStorageConfigAvroConfigState

type CloudStorageConfigAvroConfigState struct {
	WriteMetadata bool `json:"write_metadata"`
}

type CloudStorageConfigState

type CloudStorageConfigState struct {
	Bucket         string                              `json:"bucket"`
	FilenamePrefix string                              `json:"filename_prefix"`
	FilenameSuffix string                              `json:"filename_suffix"`
	MaxBytes       float64                             `json:"max_bytes"`
	MaxDuration    string                              `json:"max_duration"`
	State          string                              `json:"state"`
	AvroConfig     []CloudStorageConfigAvroConfigState `json:"avro_config"`
}

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

type DataBigqueryConfigAttributes

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

func (DataBigqueryConfigAttributes) DropUnknownFields

func (bc DataBigqueryConfigAttributes) DropUnknownFields() terra.BoolValue

func (DataBigqueryConfigAttributes) InternalRef

func (bc DataBigqueryConfigAttributes) InternalRef() (terra.Reference, error)

func (DataBigqueryConfigAttributes) InternalTokens

func (bc DataBigqueryConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataBigqueryConfigAttributes) InternalWithRef

func (DataBigqueryConfigAttributes) Table

func (DataBigqueryConfigAttributes) UseTableSchema

func (bc DataBigqueryConfigAttributes) UseTableSchema() terra.BoolValue

func (DataBigqueryConfigAttributes) UseTopicSchema

func (bc DataBigqueryConfigAttributes) UseTopicSchema() terra.BoolValue

func (DataBigqueryConfigAttributes) WriteMetadata

func (bc DataBigqueryConfigAttributes) WriteMetadata() terra.BoolValue

type DataBigqueryConfigState

type DataBigqueryConfigState struct {
	DropUnknownFields bool   `json:"drop_unknown_fields"`
	Table             string `json:"table"`
	UseTableSchema    bool   `json:"use_table_schema"`
	UseTopicSchema    bool   `json:"use_topic_schema"`
	WriteMetadata     bool   `json:"write_metadata"`
}

type DataCloudStorageConfigAttributes

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

func (DataCloudStorageConfigAttributes) AvroConfig

func (DataCloudStorageConfigAttributes) Bucket

func (DataCloudStorageConfigAttributes) FilenamePrefix

func (csc DataCloudStorageConfigAttributes) FilenamePrefix() terra.StringValue

func (DataCloudStorageConfigAttributes) FilenameSuffix

func (csc DataCloudStorageConfigAttributes) FilenameSuffix() terra.StringValue

func (DataCloudStorageConfigAttributes) InternalRef

func (DataCloudStorageConfigAttributes) InternalTokens

func (csc DataCloudStorageConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataCloudStorageConfigAttributes) InternalWithRef

func (DataCloudStorageConfigAttributes) MaxBytes

func (DataCloudStorageConfigAttributes) MaxDuration

func (DataCloudStorageConfigAttributes) State

type DataCloudStorageConfigAvroConfigAttributes

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

func (DataCloudStorageConfigAvroConfigAttributes) InternalRef

func (DataCloudStorageConfigAvroConfigAttributes) InternalTokens

func (DataCloudStorageConfigAvroConfigAttributes) InternalWithRef

func (DataCloudStorageConfigAvroConfigAttributes) WriteMetadata

type DataCloudStorageConfigAvroConfigState

type DataCloudStorageConfigAvroConfigState struct {
	WriteMetadata bool `json:"write_metadata"`
}

type DataCloudStorageConfigState

type DataCloudStorageConfigState struct {
	Bucket         string                                  `json:"bucket"`
	FilenamePrefix string                                  `json:"filename_prefix"`
	FilenameSuffix string                                  `json:"filename_suffix"`
	MaxBytes       float64                                 `json:"max_bytes"`
	MaxDuration    string                                  `json:"max_duration"`
	State          string                                  `json:"state"`
	AvroConfig     []DataCloudStorageConfigAvroConfigState `json:"avro_config"`
}

type DataDeadLetterPolicyAttributes

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

func (DataDeadLetterPolicyAttributes) DeadLetterTopic

func (dlp DataDeadLetterPolicyAttributes) DeadLetterTopic() terra.StringValue

func (DataDeadLetterPolicyAttributes) InternalRef

func (dlp DataDeadLetterPolicyAttributes) InternalRef() (terra.Reference, error)

func (DataDeadLetterPolicyAttributes) InternalTokens

func (dlp DataDeadLetterPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataDeadLetterPolicyAttributes) InternalWithRef

func (DataDeadLetterPolicyAttributes) MaxDeliveryAttempts

func (dlp DataDeadLetterPolicyAttributes) MaxDeliveryAttempts() terra.NumberValue

type DataDeadLetterPolicyState

type DataDeadLetterPolicyState struct {
	DeadLetterTopic     string  `json:"dead_letter_topic"`
	MaxDeliveryAttempts float64 `json:"max_delivery_attempts"`
}

type DataExpirationPolicyAttributes

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

func (DataExpirationPolicyAttributes) InternalRef

func (DataExpirationPolicyAttributes) InternalTokens

func (ep DataExpirationPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataExpirationPolicyAttributes) InternalWithRef

func (DataExpirationPolicyAttributes) Ttl

type DataExpirationPolicyState

type DataExpirationPolicyState struct {
	Ttl string `json:"ttl"`
}

type DataPushConfigAttributes

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

func (DataPushConfigAttributes) Attributes

func (DataPushConfigAttributes) InternalRef

func (pc DataPushConfigAttributes) InternalRef() (terra.Reference, error)

func (DataPushConfigAttributes) InternalTokens

func (pc DataPushConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataPushConfigAttributes) InternalWithRef

func (DataPushConfigAttributes) NoWrapper

func (DataPushConfigAttributes) OidcToken

func (DataPushConfigAttributes) PushEndpoint

func (pc DataPushConfigAttributes) PushEndpoint() terra.StringValue

type DataPushConfigNoWrapperAttributes

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

func (DataPushConfigNoWrapperAttributes) InternalRef

func (DataPushConfigNoWrapperAttributes) InternalTokens

func (nw DataPushConfigNoWrapperAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataPushConfigNoWrapperAttributes) InternalWithRef

func (DataPushConfigNoWrapperAttributes) WriteMetadata

type DataPushConfigNoWrapperState

type DataPushConfigNoWrapperState struct {
	WriteMetadata bool `json:"write_metadata"`
}

type DataPushConfigOidcTokenAttributes

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

func (DataPushConfigOidcTokenAttributes) Audience

func (DataPushConfigOidcTokenAttributes) InternalRef

func (DataPushConfigOidcTokenAttributes) InternalTokens

func (ot DataPushConfigOidcTokenAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataPushConfigOidcTokenAttributes) InternalWithRef

func (DataPushConfigOidcTokenAttributes) ServiceAccountEmail

func (ot DataPushConfigOidcTokenAttributes) ServiceAccountEmail() terra.StringValue

type DataPushConfigOidcTokenState

type DataPushConfigOidcTokenState struct {
	Audience            string `json:"audience"`
	ServiceAccountEmail string `json:"service_account_email"`
}

type DataPushConfigState

type DataPushConfigState struct {
	Attributes   map[string]string              `json:"attributes"`
	PushEndpoint string                         `json:"push_endpoint"`
	NoWrapper    []DataPushConfigNoWrapperState `json:"no_wrapper"`
	OidcToken    []DataPushConfigOidcTokenState `json:"oidc_token"`
}

type DataRetryPolicyAttributes

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

func (DataRetryPolicyAttributes) InternalRef

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

func (DataRetryPolicyAttributes) InternalTokens

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

func (DataRetryPolicyAttributes) InternalWithRef

func (DataRetryPolicyAttributes) MaximumBackoff

func (rp DataRetryPolicyAttributes) MaximumBackoff() terra.StringValue

func (DataRetryPolicyAttributes) MinimumBackoff

func (rp DataRetryPolicyAttributes) MinimumBackoff() terra.StringValue

type DataRetryPolicyState

type DataRetryPolicyState struct {
	MaximumBackoff string `json:"maximum_backoff"`
	MinimumBackoff string `json:"minimum_backoff"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_pubsub_subscription.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gps *DataSource) Attributes() dataGooglePubsubSubscriptionAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gps *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gps *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DeadLetterPolicy

type DeadLetterPolicy struct {
	// DeadLetterTopic: string, optional
	DeadLetterTopic terra.StringValue `hcl:"dead_letter_topic,attr"`
	// MaxDeliveryAttempts: number, optional
	MaxDeliveryAttempts terra.NumberValue `hcl:"max_delivery_attempts,attr"`
}

type DeadLetterPolicyAttributes

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

func (DeadLetterPolicyAttributes) DeadLetterTopic

func (dlp DeadLetterPolicyAttributes) DeadLetterTopic() terra.StringValue

func (DeadLetterPolicyAttributes) InternalRef

func (dlp DeadLetterPolicyAttributes) InternalRef() (terra.Reference, error)

func (DeadLetterPolicyAttributes) InternalTokens

func (dlp DeadLetterPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DeadLetterPolicyAttributes) InternalWithRef

func (DeadLetterPolicyAttributes) MaxDeliveryAttempts

func (dlp DeadLetterPolicyAttributes) MaxDeliveryAttempts() terra.NumberValue

type DeadLetterPolicyState

type DeadLetterPolicyState struct {
	DeadLetterTopic     string  `json:"dead_letter_topic"`
	MaxDeliveryAttempts float64 `json:"max_delivery_attempts"`
}

type ExpirationPolicy

type ExpirationPolicy struct {
	// Ttl: string, required
	Ttl terra.StringValue `hcl:"ttl,attr" validate:"required"`
}

type ExpirationPolicyAttributes

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

func (ExpirationPolicyAttributes) InternalRef

func (ep ExpirationPolicyAttributes) InternalRef() (terra.Reference, error)

func (ExpirationPolicyAttributes) InternalTokens

func (ep ExpirationPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExpirationPolicyAttributes) InternalWithRef

func (ExpirationPolicyAttributes) Ttl

type ExpirationPolicyState

type ExpirationPolicyState struct {
	Ttl string `json:"ttl"`
}

type PushConfig

type PushConfig struct {
	// Attributes: map of string, optional
	Attributes terra.MapValue[terra.StringValue] `hcl:"attributes,attr"`
	// PushEndpoint: string, required
	PushEndpoint terra.StringValue `hcl:"push_endpoint,attr" validate:"required"`
	// PushConfigNoWrapper: optional
	NoWrapper *PushConfigNoWrapper `hcl:"no_wrapper,block"`
	// PushConfigOidcToken: optional
	OidcToken *PushConfigOidcToken `hcl:"oidc_token,block"`
}

type PushConfigAttributes

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

func (PushConfigAttributes) Attributes

func (PushConfigAttributes) InternalRef

func (pc PushConfigAttributes) InternalRef() (terra.Reference, error)

func (PushConfigAttributes) InternalTokens

func (pc PushConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PushConfigAttributes) InternalWithRef

func (pc PushConfigAttributes) InternalWithRef(ref terra.Reference) PushConfigAttributes

func (PushConfigAttributes) NoWrapper

func (PushConfigAttributes) OidcToken

func (PushConfigAttributes) PushEndpoint

func (pc PushConfigAttributes) PushEndpoint() terra.StringValue

type PushConfigNoWrapper

type PushConfigNoWrapper struct {
	// WriteMetadata: bool, required
	WriteMetadata terra.BoolValue `hcl:"write_metadata,attr" validate:"required"`
}

type PushConfigNoWrapperAttributes

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

func (PushConfigNoWrapperAttributes) InternalRef

func (nw PushConfigNoWrapperAttributes) InternalRef() (terra.Reference, error)

func (PushConfigNoWrapperAttributes) InternalTokens

func (nw PushConfigNoWrapperAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PushConfigNoWrapperAttributes) InternalWithRef

func (PushConfigNoWrapperAttributes) WriteMetadata

func (nw PushConfigNoWrapperAttributes) WriteMetadata() terra.BoolValue

type PushConfigNoWrapperState

type PushConfigNoWrapperState struct {
	WriteMetadata bool `json:"write_metadata"`
}

type PushConfigOidcToken

type PushConfigOidcToken struct {
	// Audience: string, optional
	Audience terra.StringValue `hcl:"audience,attr"`
	// ServiceAccountEmail: string, required
	ServiceAccountEmail terra.StringValue `hcl:"service_account_email,attr" validate:"required"`
}

type PushConfigOidcTokenAttributes

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

func (PushConfigOidcTokenAttributes) Audience

func (PushConfigOidcTokenAttributes) InternalRef

func (ot PushConfigOidcTokenAttributes) InternalRef() (terra.Reference, error)

func (PushConfigOidcTokenAttributes) InternalTokens

func (ot PushConfigOidcTokenAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PushConfigOidcTokenAttributes) InternalWithRef

func (PushConfigOidcTokenAttributes) ServiceAccountEmail

func (ot PushConfigOidcTokenAttributes) ServiceAccountEmail() terra.StringValue

type PushConfigOidcTokenState

type PushConfigOidcTokenState struct {
	Audience            string `json:"audience"`
	ServiceAccountEmail string `json:"service_account_email"`
}

type PushConfigState

type PushConfigState struct {
	Attributes   map[string]string          `json:"attributes"`
	PushEndpoint string                     `json:"push_endpoint"`
	NoWrapper    []PushConfigNoWrapperState `json:"no_wrapper"`
	OidcToken    []PushConfigOidcTokenState `json:"oidc_token"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gps *Resource) Attributes() googlePubsubSubscriptionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gps *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gps *Resource) State() (*googlePubsubSubscriptionState, bool)

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

func (*Resource) StateMust

func (gps *Resource) StateMust() *googlePubsubSubscriptionState

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

func (*Resource) Type

func (gps *Resource) Type() string

Type returns the Terraform object type for Resource.

type RetryPolicy

type RetryPolicy struct {
	// MaximumBackoff: string, optional
	MaximumBackoff terra.StringValue `hcl:"maximum_backoff,attr"`
	// MinimumBackoff: string, optional
	MinimumBackoff terra.StringValue `hcl:"minimum_backoff,attr"`
}

type RetryPolicyAttributes

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

func (RetryPolicyAttributes) InternalRef

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

func (RetryPolicyAttributes) InternalTokens

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

func (RetryPolicyAttributes) InternalWithRef

func (RetryPolicyAttributes) MaximumBackoff

func (rp RetryPolicyAttributes) MaximumBackoff() terra.StringValue

func (RetryPolicyAttributes) MinimumBackoff

func (rp RetryPolicyAttributes) MinimumBackoff() terra.StringValue

type RetryPolicyState

type RetryPolicyState struct {
	MaximumBackoff string `json:"maximum_backoff"`
	MinimumBackoff string `json:"minimum_backoff"`
}

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