Documentation
¶
Index ¶
- type Args
- type DataArgs
- type DataSnapshotEncryptionKeyAttributes
- func (sek DataSnapshotEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
- func (sek DataSnapshotEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sek DataSnapshotEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) DataSnapshotEncryptionKeyAttributes
- func (sek DataSnapshotEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue
- func (sek DataSnapshotEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
- func (sek DataSnapshotEncryptionKeyAttributes) RawKey() terra.StringValue
- func (sek DataSnapshotEncryptionKeyAttributes) Sha256() terra.StringValue
- type DataSnapshotEncryptionKeyState
- type DataSource
- type DataSourceDiskEncryptionKeyAttributes
- func (sdek DataSourceDiskEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
- func (sdek DataSourceDiskEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sdek DataSourceDiskEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) DataSourceDiskEncryptionKeyAttributes
- func (sdek DataSourceDiskEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
- func (sdek DataSourceDiskEncryptionKeyAttributes) RawKey() terra.StringValue
- type DataSourceDiskEncryptionKeyState
- type Resource
- func (gcs *Resource) Attributes() googleComputeSnapshotAttributes
- func (gcs *Resource) Configuration() interface{}
- func (gcs *Resource) DependOn() terra.Reference
- func (gcs *Resource) Dependencies() terra.Dependencies
- func (gcs *Resource) ImportState(state io.Reader) error
- func (gcs *Resource) LifecycleManagement() *terra.Lifecycle
- func (gcs *Resource) LocalName() string
- func (gcs *Resource) State() (*googleComputeSnapshotState, bool)
- func (gcs *Resource) StateMust() *googleComputeSnapshotState
- func (gcs *Resource) Type() string
- type SnapshotEncryptionKey
- type SnapshotEncryptionKeyAttributes
- func (sek SnapshotEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
- func (sek SnapshotEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sek SnapshotEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) SnapshotEncryptionKeyAttributes
- func (sek SnapshotEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue
- func (sek SnapshotEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
- func (sek SnapshotEncryptionKeyAttributes) RawKey() terra.StringValue
- func (sek SnapshotEncryptionKeyAttributes) Sha256() terra.StringValue
- type SnapshotEncryptionKeyState
- type SourceDiskEncryptionKey
- type SourceDiskEncryptionKeyAttributes
- func (sdek SourceDiskEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
- func (sdek SourceDiskEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sdek SourceDiskEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) SourceDiskEncryptionKeyAttributes
- func (sdek SourceDiskEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
- func (sdek SourceDiskEncryptionKeyAttributes) RawKey() terra.StringValue
- type SourceDiskEncryptionKeyState
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // ChainName: string, optional ChainName terra.StringValue `hcl:"chain_name,attr"` // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Labels: map of string, optional Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` // SourceDisk: string, required SourceDisk terra.StringValue `hcl:"source_disk,attr" validate:"required"` // StorageLocations: list of string, optional StorageLocations terra.ListValue[terra.StringValue] `hcl:"storage_locations,attr"` // Zone: string, optional Zone terra.StringValue `hcl:"zone,attr"` // SnapshotEncryptionKey: optional SnapshotEncryptionKey *SnapshotEncryptionKey `hcl:"snapshot_encryption_key,block"` // SourceDiskEncryptionKey: optional SourceDiskEncryptionKey *SourceDiskEncryptionKey `hcl:"source_disk_encryption_key,block"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for google_compute_snapshot.
type DataArgs ¶
type DataArgs struct { // Filter: string, optional Filter terra.StringValue `hcl:"filter,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // MostRecent: bool, optional MostRecent terra.BoolValue `hcl:"most_recent,attr"` // Name: string, optional Name terra.StringValue `hcl:"name,attr"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` }
DataArgs contains the configurations for google_compute_snapshot.
type DataSnapshotEncryptionKeyAttributes ¶
type DataSnapshotEncryptionKeyAttributes struct {
// contains filtered or unexported fields
}
func (DataSnapshotEncryptionKeyAttributes) InternalRef ¶
func (sek DataSnapshotEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
func (DataSnapshotEncryptionKeyAttributes) InternalTokens ¶
func (sek DataSnapshotEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataSnapshotEncryptionKeyAttributes) InternalWithRef ¶
func (sek DataSnapshotEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) DataSnapshotEncryptionKeyAttributes
func (DataSnapshotEncryptionKeyAttributes) KmsKeySelfLink ¶
func (sek DataSnapshotEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue
func (DataSnapshotEncryptionKeyAttributes) KmsKeyServiceAccount ¶
func (sek DataSnapshotEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
func (DataSnapshotEncryptionKeyAttributes) RawKey ¶
func (sek DataSnapshotEncryptionKeyAttributes) RawKey() terra.StringValue
func (DataSnapshotEncryptionKeyAttributes) Sha256 ¶
func (sek DataSnapshotEncryptionKeyAttributes) Sha256() terra.StringValue
type DataSource ¶
DataSource represents the Terraform data resource google_compute_snapshot.
func Data ¶
func Data(name string, args DataArgs) *DataSource
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (gcs *DataSource) Attributes() dataGoogleComputeSnapshotAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (gcs *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (gcs *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (gcs *DataSource) LocalName() string
LocalName returns the local name for DataSource.
type DataSourceDiskEncryptionKeyAttributes ¶
type DataSourceDiskEncryptionKeyAttributes struct {
// contains filtered or unexported fields
}
func (DataSourceDiskEncryptionKeyAttributes) InternalRef ¶
func (sdek DataSourceDiskEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
func (DataSourceDiskEncryptionKeyAttributes) InternalTokens ¶
func (sdek DataSourceDiskEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataSourceDiskEncryptionKeyAttributes) InternalWithRef ¶
func (sdek DataSourceDiskEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) DataSourceDiskEncryptionKeyAttributes
func (DataSourceDiskEncryptionKeyAttributes) KmsKeyServiceAccount ¶
func (sdek DataSourceDiskEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
func (DataSourceDiskEncryptionKeyAttributes) RawKey ¶
func (sdek DataSourceDiskEncryptionKeyAttributes) RawKey() terra.StringValue
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_snapshot.
func (*Resource) Attributes ¶
func (gcs *Resource) Attributes() googleComputeSnapshotAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gcs *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gcs *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
type SnapshotEncryptionKey ¶
type SnapshotEncryptionKey struct { // KmsKeySelfLink: string, optional KmsKeySelfLink terra.StringValue `hcl:"kms_key_self_link,attr"` // KmsKeyServiceAccount: string, optional KmsKeyServiceAccount terra.StringValue `hcl:"kms_key_service_account,attr"` // RawKey: string, optional RawKey terra.StringValue `hcl:"raw_key,attr"` }
type SnapshotEncryptionKeyAttributes ¶
type SnapshotEncryptionKeyAttributes struct {
// contains filtered or unexported fields
}
func (SnapshotEncryptionKeyAttributes) InternalRef ¶
func (sek SnapshotEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
func (SnapshotEncryptionKeyAttributes) InternalTokens ¶
func (sek SnapshotEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SnapshotEncryptionKeyAttributes) InternalWithRef ¶
func (sek SnapshotEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) SnapshotEncryptionKeyAttributes
func (SnapshotEncryptionKeyAttributes) KmsKeySelfLink ¶
func (sek SnapshotEncryptionKeyAttributes) KmsKeySelfLink() terra.StringValue
func (SnapshotEncryptionKeyAttributes) KmsKeyServiceAccount ¶
func (sek SnapshotEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
func (SnapshotEncryptionKeyAttributes) RawKey ¶
func (sek SnapshotEncryptionKeyAttributes) RawKey() terra.StringValue
func (SnapshotEncryptionKeyAttributes) Sha256 ¶
func (sek SnapshotEncryptionKeyAttributes) Sha256() terra.StringValue
type SourceDiskEncryptionKey ¶
type SourceDiskEncryptionKey struct { // KmsKeyServiceAccount: string, optional KmsKeyServiceAccount terra.StringValue `hcl:"kms_key_service_account,attr"` // RawKey: string, optional RawKey terra.StringValue `hcl:"raw_key,attr"` }
type SourceDiskEncryptionKeyAttributes ¶
type SourceDiskEncryptionKeyAttributes struct {
// contains filtered or unexported fields
}
func (SourceDiskEncryptionKeyAttributes) InternalRef ¶
func (sdek SourceDiskEncryptionKeyAttributes) InternalRef() (terra.Reference, error)
func (SourceDiskEncryptionKeyAttributes) InternalTokens ¶
func (sdek SourceDiskEncryptionKeyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SourceDiskEncryptionKeyAttributes) InternalWithRef ¶
func (sdek SourceDiskEncryptionKeyAttributes) InternalWithRef(ref terra.Reference) SourceDiskEncryptionKeyAttributes
func (SourceDiskEncryptionKeyAttributes) KmsKeyServiceAccount ¶
func (sdek SourceDiskEncryptionKeyAttributes) KmsKeyServiceAccount() terra.StringValue
func (SourceDiskEncryptionKeyAttributes) RawKey ¶
func (sdek SourceDiskEncryptionKeyAttributes) RawKey() terra.StringValue
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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 ¶
func (t TimeoutsAttributes) Update() terra.StringValue