google_secret_manager_secret

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 {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// ExpireTime: string, optional
	ExpireTime terra.StringValue `hcl:"expire_time,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// SecretId: string, required
	SecretId terra.StringValue `hcl:"secret_id,attr" validate:"required"`
	// Ttl: string, optional
	Ttl terra.StringValue `hcl:"ttl,attr"`
	// VersionAliases: map of string, optional
	VersionAliases terra.MapValue[terra.StringValue] `hcl:"version_aliases,attr"`
	// Replication: required
	Replication *Replication `hcl:"replication,block" validate:"required"`
	// Rotation: optional
	Rotation *Rotation `hcl:"rotation,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// Topics: min=0
	Topics []Topics `hcl:"topics,block" validate:"min=0"`
}

Args contains the configurations for google_secret_manager_secret.

type DataArgs

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

DataArgs contains the configurations for google_secret_manager_secret.

type DataReplicationAttributes

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

func (DataReplicationAttributes) Auto

func (DataReplicationAttributes) InternalRef

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

func (DataReplicationAttributes) InternalTokens

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

func (DataReplicationAttributes) InternalWithRef

func (DataReplicationAttributes) UserManaged

type DataReplicationAutoAttributes

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

func (DataReplicationAutoAttributes) InternalRef

func (DataReplicationAutoAttributes) InternalTokens

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

func (DataReplicationAutoAttributes) InternalWithRef

type DataReplicationAutoCustomerManagedEncryptionAttributes

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

func (DataReplicationAutoCustomerManagedEncryptionAttributes) InternalRef

func (DataReplicationAutoCustomerManagedEncryptionAttributes) InternalTokens

func (DataReplicationAutoCustomerManagedEncryptionAttributes) InternalWithRef

func (DataReplicationAutoCustomerManagedEncryptionAttributes) KmsKeyName

type DataReplicationAutoCustomerManagedEncryptionState

type DataReplicationAutoCustomerManagedEncryptionState struct {
	KmsKeyName string `json:"kms_key_name"`
}

type DataReplicationAutoState

type DataReplicationAutoState struct {
	CustomerManagedEncryption []DataReplicationAutoCustomerManagedEncryptionState `json:"customer_managed_encryption"`
}

type DataReplicationState

type DataReplicationState struct {
	Auto        []DataReplicationAutoState        `json:"auto"`
	UserManaged []DataReplicationUserManagedState `json:"user_managed"`
}

type DataReplicationUserManagedAttributes

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

func (DataReplicationUserManagedAttributes) InternalRef

func (DataReplicationUserManagedAttributes) InternalTokens

func (DataReplicationUserManagedAttributes) InternalWithRef

func (DataReplicationUserManagedAttributes) Replicas

type DataReplicationUserManagedReplicasAttributes

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

func (DataReplicationUserManagedReplicasAttributes) InternalRef

func (DataReplicationUserManagedReplicasAttributes) InternalTokens

func (DataReplicationUserManagedReplicasAttributes) InternalWithRef

func (DataReplicationUserManagedReplicasAttributes) Location

type DataReplicationUserManagedReplicasCustomerManagedEncryptionAttributes

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

func (DataReplicationUserManagedReplicasCustomerManagedEncryptionAttributes) InternalRef

func (DataReplicationUserManagedReplicasCustomerManagedEncryptionAttributes) InternalTokens

func (DataReplicationUserManagedReplicasCustomerManagedEncryptionAttributes) InternalWithRef

func (DataReplicationUserManagedReplicasCustomerManagedEncryptionAttributes) KmsKeyName

type DataReplicationUserManagedReplicasCustomerManagedEncryptionState

type DataReplicationUserManagedReplicasCustomerManagedEncryptionState struct {
	KmsKeyName string `json:"kms_key_name"`
}

type DataReplicationUserManagedReplicasState

type DataReplicationUserManagedReplicasState struct {
	Location                  string                                                             `json:"location"`
	CustomerManagedEncryption []DataReplicationUserManagedReplicasCustomerManagedEncryptionState `json:"customer_managed_encryption"`
}

type DataReplicationUserManagedState

type DataReplicationUserManagedState struct {
	Replicas []DataReplicationUserManagedReplicasState `json:"replicas"`
}

type DataRotationAttributes

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

func (DataRotationAttributes) InternalRef

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

func (DataRotationAttributes) InternalTokens

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

func (DataRotationAttributes) InternalWithRef

func (DataRotationAttributes) NextRotationTime

func (r DataRotationAttributes) NextRotationTime() terra.StringValue

func (DataRotationAttributes) RotationPeriod

func (r DataRotationAttributes) RotationPeriod() terra.StringValue

type DataRotationState

type DataRotationState struct {
	NextRotationTime string `json:"next_rotation_time"`
	RotationPeriod   string `json:"rotation_period"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_secret_manager_secret.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gsms *DataSource) Attributes() dataGoogleSecretManagerSecretAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gsms *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gsms *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTopicsAttributes

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

func (DataTopicsAttributes) InternalRef

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

func (DataTopicsAttributes) InternalTokens

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

func (DataTopicsAttributes) InternalWithRef

func (DataTopicsAttributes) Name

type DataTopicsState

type DataTopicsState struct {
	Name string `json:"name"`
}

type Replication

type Replication struct {
	// ReplicationAuto: optional
	Auto *ReplicationAuto `hcl:"auto,block"`
	// ReplicationUserManaged: optional
	UserManaged *ReplicationUserManaged `hcl:"user_managed,block"`
}

type ReplicationAttributes

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

func (ReplicationAttributes) Auto

func (ReplicationAttributes) InternalRef

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

func (ReplicationAttributes) InternalTokens

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

func (ReplicationAttributes) InternalWithRef

func (ReplicationAttributes) UserManaged

type ReplicationAuto

type ReplicationAuto struct {
	// ReplicationAutoCustomerManagedEncryption: optional
	CustomerManagedEncryption *ReplicationAutoCustomerManagedEncryption `hcl:"customer_managed_encryption,block"`
}

type ReplicationAutoAttributes

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

func (ReplicationAutoAttributes) CustomerManagedEncryption

func (ReplicationAutoAttributes) InternalRef

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

func (ReplicationAutoAttributes) InternalTokens

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

func (ReplicationAutoAttributes) InternalWithRef

type ReplicationAutoCustomerManagedEncryption

type ReplicationAutoCustomerManagedEncryption struct {
	// KmsKeyName: string, required
	KmsKeyName terra.StringValue `hcl:"kms_key_name,attr" validate:"required"`
}

type ReplicationAutoCustomerManagedEncryptionAttributes

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

func (ReplicationAutoCustomerManagedEncryptionAttributes) InternalRef

func (ReplicationAutoCustomerManagedEncryptionAttributes) InternalTokens

func (ReplicationAutoCustomerManagedEncryptionAttributes) InternalWithRef

func (ReplicationAutoCustomerManagedEncryptionAttributes) KmsKeyName

type ReplicationAutoCustomerManagedEncryptionState

type ReplicationAutoCustomerManagedEncryptionState struct {
	KmsKeyName string `json:"kms_key_name"`
}

type ReplicationAutoState

type ReplicationAutoState struct {
	CustomerManagedEncryption []ReplicationAutoCustomerManagedEncryptionState `json:"customer_managed_encryption"`
}

type ReplicationState

type ReplicationState struct {
	Auto        []ReplicationAutoState        `json:"auto"`
	UserManaged []ReplicationUserManagedState `json:"user_managed"`
}

type ReplicationUserManaged

type ReplicationUserManaged struct {
	// ReplicationUserManagedReplicas: min=1
	Replicas []ReplicationUserManagedReplicas `hcl:"replicas,block" validate:"min=1"`
}

type ReplicationUserManagedAttributes

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

func (ReplicationUserManagedAttributes) InternalRef

func (ReplicationUserManagedAttributes) InternalTokens

func (um ReplicationUserManagedAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReplicationUserManagedAttributes) InternalWithRef

func (ReplicationUserManagedAttributes) Replicas

type ReplicationUserManagedReplicas

type ReplicationUserManagedReplicas struct {
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// ReplicationUserManagedReplicasCustomerManagedEncryption: optional
	CustomerManagedEncryption *ReplicationUserManagedReplicasCustomerManagedEncryption `hcl:"customer_managed_encryption,block"`
}

type ReplicationUserManagedReplicasAttributes

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

func (ReplicationUserManagedReplicasAttributes) InternalRef

func (ReplicationUserManagedReplicasAttributes) InternalTokens

func (ReplicationUserManagedReplicasAttributes) InternalWithRef

func (ReplicationUserManagedReplicasAttributes) Location

type ReplicationUserManagedReplicasCustomerManagedEncryption

type ReplicationUserManagedReplicasCustomerManagedEncryption struct {
	// KmsKeyName: string, required
	KmsKeyName terra.StringValue `hcl:"kms_key_name,attr" validate:"required"`
}

type ReplicationUserManagedReplicasCustomerManagedEncryptionAttributes

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

func (ReplicationUserManagedReplicasCustomerManagedEncryptionAttributes) InternalRef

func (ReplicationUserManagedReplicasCustomerManagedEncryptionAttributes) InternalTokens

func (ReplicationUserManagedReplicasCustomerManagedEncryptionAttributes) InternalWithRef

func (ReplicationUserManagedReplicasCustomerManagedEncryptionAttributes) KmsKeyName

type ReplicationUserManagedReplicasCustomerManagedEncryptionState

type ReplicationUserManagedReplicasCustomerManagedEncryptionState struct {
	KmsKeyName string `json:"kms_key_name"`
}

type ReplicationUserManagedReplicasState

type ReplicationUserManagedReplicasState struct {
	Location                  string                                                         `json:"location"`
	CustomerManagedEncryption []ReplicationUserManagedReplicasCustomerManagedEncryptionState `json:"customer_managed_encryption"`
}

type ReplicationUserManagedState

type ReplicationUserManagedState struct {
	Replicas []ReplicationUserManagedReplicasState `json:"replicas"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gsms *Resource) Attributes() googleSecretManagerSecretAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gsms *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gsms *Resource) State() (*googleSecretManagerSecretState, bool)

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

func (*Resource) StateMust

func (gsms *Resource) StateMust() *googleSecretManagerSecretState

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

func (*Resource) Type

func (gsms *Resource) Type() string

Type returns the Terraform object type for Resource.

type Rotation

type Rotation struct {
	// NextRotationTime: string, optional
	NextRotationTime terra.StringValue `hcl:"next_rotation_time,attr"`
	// RotationPeriod: string, optional
	RotationPeriod terra.StringValue `hcl:"rotation_period,attr"`
}

type RotationAttributes

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

func (RotationAttributes) InternalRef

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

func (RotationAttributes) InternalTokens

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

func (RotationAttributes) InternalWithRef

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

func (RotationAttributes) NextRotationTime

func (r RotationAttributes) NextRotationTime() terra.StringValue

func (RotationAttributes) RotationPeriod

func (r RotationAttributes) RotationPeriod() terra.StringValue

type RotationState

type RotationState struct {
	NextRotationTime string `json:"next_rotation_time"`
	RotationPeriod   string `json:"rotation_period"`
}

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"`
}

type Topics

type Topics struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type TopicsAttributes

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

func (TopicsAttributes) InternalRef

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

func (TopicsAttributes) InternalTokens

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

func (TopicsAttributes) InternalWithRef

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

func (TopicsAttributes) Name

type TopicsState

type TopicsState struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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