azurerm_shared_image_version

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 {
	// BlobUri: string, optional
	BlobUri terra.StringValue `hcl:"blob_uri,attr"`
	// DeletionOfReplicatedLocationsEnabled: bool, optional
	DeletionOfReplicatedLocationsEnabled terra.BoolValue `hcl:"deletion_of_replicated_locations_enabled,attr"`
	// EndOfLifeDate: string, optional
	EndOfLifeDate terra.StringValue `hcl:"end_of_life_date,attr"`
	// ExcludeFromLatest: bool, optional
	ExcludeFromLatest terra.BoolValue `hcl:"exclude_from_latest,attr"`
	// GalleryName: string, required
	GalleryName terra.StringValue `hcl:"gallery_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ImageName: string, required
	ImageName terra.StringValue `hcl:"image_name,attr" validate:"required"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// ManagedImageId: string, optional
	ManagedImageId terra.StringValue `hcl:"managed_image_id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// OsDiskSnapshotId: string, optional
	OsDiskSnapshotId terra.StringValue `hcl:"os_disk_snapshot_id,attr"`
	// ReplicationMode: string, optional
	ReplicationMode terra.StringValue `hcl:"replication_mode,attr"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// StorageAccountId: string, optional
	StorageAccountId terra.StringValue `hcl:"storage_account_id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TargetRegion: min=1
	TargetRegion []TargetRegion `hcl:"target_region,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_shared_image_version.

type DataArgs

type DataArgs struct {
	// GalleryName: string, required
	GalleryName terra.StringValue `hcl:"gallery_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ImageName: string, required
	ImageName terra.StringValue `hcl:"image_name,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// SortVersionsBySemver: bool, optional
	SortVersionsBySemver terra.BoolValue `hcl:"sort_versions_by_semver,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_shared_image_version.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_shared_image_version.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (asiv *DataSource) Attributes() dataAzurermSharedImageVersionAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (asiv *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (asiv *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTargetRegionAttributes

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

func (DataTargetRegionAttributes) InternalRef

func (tr DataTargetRegionAttributes) InternalRef() (terra.Reference, error)

func (DataTargetRegionAttributes) InternalTokens

func (tr DataTargetRegionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataTargetRegionAttributes) InternalWithRef

func (DataTargetRegionAttributes) Name

func (DataTargetRegionAttributes) RegionalReplicaCount

func (tr DataTargetRegionAttributes) RegionalReplicaCount() terra.NumberValue

func (DataTargetRegionAttributes) StorageAccountType

func (tr DataTargetRegionAttributes) StorageAccountType() terra.StringValue

type DataTargetRegionState

type DataTargetRegionState struct {
	Name                 string  `json:"name"`
	RegionalReplicaCount float64 `json:"regional_replica_count"`
	StorageAccountType   string  `json:"storage_account_type"`
}

type DataTimeouts

type DataTimeouts struct {
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
}

type DataTimeoutsAttributes

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

func (DataTimeoutsAttributes) InternalRef

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

func (DataTimeoutsAttributes) InternalTokens

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

func (DataTimeoutsAttributes) InternalWithRef

func (DataTimeoutsAttributes) Read

type DataTimeoutsState

type DataTimeoutsState struct {
	Read string `json:"read"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asiv *Resource) Attributes() azurermSharedImageVersionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asiv *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asiv *Resource) State() (*azurermSharedImageVersionState, bool)

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

func (*Resource) StateMust

func (asiv *Resource) StateMust() *azurermSharedImageVersionState

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

func (*Resource) Type

func (asiv *Resource) Type() string

Type returns the Terraform object type for Resource.

type TargetRegion

type TargetRegion struct {
	// DiskEncryptionSetId: string, optional
	DiskEncryptionSetId terra.StringValue `hcl:"disk_encryption_set_id,attr"`
	// ExcludeFromLatestEnabled: bool, optional
	ExcludeFromLatestEnabled terra.BoolValue `hcl:"exclude_from_latest_enabled,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RegionalReplicaCount: number, required
	RegionalReplicaCount terra.NumberValue `hcl:"regional_replica_count,attr" validate:"required"`
	// StorageAccountType: string, optional
	StorageAccountType terra.StringValue `hcl:"storage_account_type,attr"`
}

type TargetRegionAttributes

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

func (TargetRegionAttributes) DiskEncryptionSetId

func (tr TargetRegionAttributes) DiskEncryptionSetId() terra.StringValue

func (TargetRegionAttributes) ExcludeFromLatestEnabled

func (tr TargetRegionAttributes) ExcludeFromLatestEnabled() terra.BoolValue

func (TargetRegionAttributes) InternalRef

func (tr TargetRegionAttributes) InternalRef() (terra.Reference, error)

func (TargetRegionAttributes) InternalTokens

func (tr TargetRegionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetRegionAttributes) InternalWithRef

func (TargetRegionAttributes) Name

func (TargetRegionAttributes) RegionalReplicaCount

func (tr TargetRegionAttributes) RegionalReplicaCount() terra.NumberValue

func (TargetRegionAttributes) StorageAccountType

func (tr TargetRegionAttributes) StorageAccountType() terra.StringValue

type TargetRegionState

type TargetRegionState struct {
	DiskEncryptionSetId      string  `json:"disk_encryption_set_id"`
	ExcludeFromLatestEnabled bool    `json:"exclude_from_latest_enabled"`
	Name                     string  `json:"name"`
	RegionalReplicaCount     float64 `json:"regional_replica_count"`
	StorageAccountType       string  `json:"storage_account_type"`
}

type Timeouts

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

func (TimeoutsAttributes) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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