google_pubsub_topic

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyName: string, optional
	KmsKeyName terra.StringValue `hcl:"kms_key_name,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"`
	// IngestionDataSourceSettings: optional
	IngestionDataSourceSettings *IngestionDataSourceSettings `hcl:"ingestion_data_source_settings,block"`
	// MessageStoragePolicy: optional
	MessageStoragePolicy *MessageStoragePolicy `hcl:"message_storage_policy,block"`
	// SchemaSettings: optional
	SchemaSettings *SchemaSettings `hcl:"schema_settings,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_pubsub_topic.

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

type DataIngestionDataSourceSettingsAttributes

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

func (DataIngestionDataSourceSettingsAttributes) AwsKinesis

func (DataIngestionDataSourceSettingsAttributes) InternalRef

func (DataIngestionDataSourceSettingsAttributes) InternalTokens

func (DataIngestionDataSourceSettingsAttributes) InternalWithRef

type DataIngestionDataSourceSettingsAwsKinesisAttributes

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

func (DataIngestionDataSourceSettingsAwsKinesisAttributes) AwsRoleArn

func (DataIngestionDataSourceSettingsAwsKinesisAttributes) ConsumerArn

func (DataIngestionDataSourceSettingsAwsKinesisAttributes) GcpServiceAccount

func (DataIngestionDataSourceSettingsAwsKinesisAttributes) InternalRef

func (DataIngestionDataSourceSettingsAwsKinesisAttributes) InternalTokens

func (DataIngestionDataSourceSettingsAwsKinesisAttributes) InternalWithRef

func (DataIngestionDataSourceSettingsAwsKinesisAttributes) StreamArn

type DataIngestionDataSourceSettingsAwsKinesisState

type DataIngestionDataSourceSettingsAwsKinesisState struct {
	AwsRoleArn        string `json:"aws_role_arn"`
	ConsumerArn       string `json:"consumer_arn"`
	GcpServiceAccount string `json:"gcp_service_account"`
	StreamArn         string `json:"stream_arn"`
}

type DataIngestionDataSourceSettingsState

type DataIngestionDataSourceSettingsState struct {
	AwsKinesis []DataIngestionDataSourceSettingsAwsKinesisState `json:"aws_kinesis"`
}

type DataMessageStoragePolicyAttributes

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

func (DataMessageStoragePolicyAttributes) AllowedPersistenceRegions

func (msp DataMessageStoragePolicyAttributes) AllowedPersistenceRegions() terra.ListValue[terra.StringValue]

func (DataMessageStoragePolicyAttributes) InternalRef

func (DataMessageStoragePolicyAttributes) InternalTokens

func (msp DataMessageStoragePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataMessageStoragePolicyAttributes) InternalWithRef

type DataMessageStoragePolicyState

type DataMessageStoragePolicyState struct {
	AllowedPersistenceRegions []string `json:"allowed_persistence_regions"`
}

type DataSchemaSettingsAttributes

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

func (DataSchemaSettingsAttributes) Encoding

func (DataSchemaSettingsAttributes) InternalRef

func (ss DataSchemaSettingsAttributes) InternalRef() (terra.Reference, error)

func (DataSchemaSettingsAttributes) InternalTokens

func (ss DataSchemaSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSchemaSettingsAttributes) InternalWithRef

func (DataSchemaSettingsAttributes) Schema

type DataSchemaSettingsState

type DataSchemaSettingsState struct {
	Encoding string `json:"encoding"`
	Schema   string `json:"schema"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_pubsub_topic.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gpt *DataSource) Attributes() dataGooglePubsubTopicAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gpt *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gpt *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type IngestionDataSourceSettings

type IngestionDataSourceSettings struct {
	// IngestionDataSourceSettingsAwsKinesis: optional
	AwsKinesis *IngestionDataSourceSettingsAwsKinesis `hcl:"aws_kinesis,block"`
}

type IngestionDataSourceSettingsAttributes

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

func (IngestionDataSourceSettingsAttributes) AwsKinesis

func (IngestionDataSourceSettingsAttributes) InternalRef

func (IngestionDataSourceSettingsAttributes) InternalTokens

func (IngestionDataSourceSettingsAttributes) InternalWithRef

type IngestionDataSourceSettingsAwsKinesis

type IngestionDataSourceSettingsAwsKinesis struct {
	// AwsRoleArn: string, required
	AwsRoleArn terra.StringValue `hcl:"aws_role_arn,attr" validate:"required"`
	// ConsumerArn: string, required
	ConsumerArn terra.StringValue `hcl:"consumer_arn,attr" validate:"required"`
	// GcpServiceAccount: string, required
	GcpServiceAccount terra.StringValue `hcl:"gcp_service_account,attr" validate:"required"`
	// StreamArn: string, required
	StreamArn terra.StringValue `hcl:"stream_arn,attr" validate:"required"`
}

type IngestionDataSourceSettingsAwsKinesisAttributes

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

func (IngestionDataSourceSettingsAwsKinesisAttributes) AwsRoleArn

func (IngestionDataSourceSettingsAwsKinesisAttributes) ConsumerArn

func (IngestionDataSourceSettingsAwsKinesisAttributes) GcpServiceAccount

func (IngestionDataSourceSettingsAwsKinesisAttributes) InternalRef

func (IngestionDataSourceSettingsAwsKinesisAttributes) InternalTokens

func (IngestionDataSourceSettingsAwsKinesisAttributes) InternalWithRef

func (IngestionDataSourceSettingsAwsKinesisAttributes) StreamArn

type IngestionDataSourceSettingsAwsKinesisState

type IngestionDataSourceSettingsAwsKinesisState struct {
	AwsRoleArn        string `json:"aws_role_arn"`
	ConsumerArn       string `json:"consumer_arn"`
	GcpServiceAccount string `json:"gcp_service_account"`
	StreamArn         string `json:"stream_arn"`
}

type IngestionDataSourceSettingsState

type IngestionDataSourceSettingsState struct {
	AwsKinesis []IngestionDataSourceSettingsAwsKinesisState `json:"aws_kinesis"`
}

type MessageStoragePolicy

type MessageStoragePolicy struct {
	// AllowedPersistenceRegions: list of string, required
	AllowedPersistenceRegions terra.ListValue[terra.StringValue] `hcl:"allowed_persistence_regions,attr" validate:"required"`
}

type MessageStoragePolicyAttributes

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

func (MessageStoragePolicyAttributes) AllowedPersistenceRegions

func (msp MessageStoragePolicyAttributes) AllowedPersistenceRegions() terra.ListValue[terra.StringValue]

func (MessageStoragePolicyAttributes) InternalRef

func (msp MessageStoragePolicyAttributes) InternalRef() (terra.Reference, error)

func (MessageStoragePolicyAttributes) InternalTokens

func (msp MessageStoragePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MessageStoragePolicyAttributes) InternalWithRef

type MessageStoragePolicyState

type MessageStoragePolicyState struct {
	AllowedPersistenceRegions []string `json:"allowed_persistence_regions"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gpt *Resource) Attributes() googlePubsubTopicAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gpt *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gpt *Resource) State() (*googlePubsubTopicState, bool)

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

func (*Resource) StateMust

func (gpt *Resource) StateMust() *googlePubsubTopicState

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

func (*Resource) Type

func (gpt *Resource) Type() string

Type returns the Terraform object type for Resource.

type SchemaSettings

type SchemaSettings struct {
	// Encoding: string, optional
	Encoding terra.StringValue `hcl:"encoding,attr"`
	// Schema: string, required
	Schema terra.StringValue `hcl:"schema,attr" validate:"required"`
}

type SchemaSettingsAttributes

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

func (SchemaSettingsAttributes) Encoding

func (SchemaSettingsAttributes) InternalRef

func (ss SchemaSettingsAttributes) InternalRef() (terra.Reference, error)

func (SchemaSettingsAttributes) InternalTokens

func (ss SchemaSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SchemaSettingsAttributes) InternalWithRef

func (SchemaSettingsAttributes) Schema

type SchemaSettingsState

type SchemaSettingsState struct {
	Encoding string `json:"encoding"`
	Schema   string `json:"schema"`
}

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