aws_ebs_snapshot_import

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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Encrypted: bool, optional
	Encrypted terra.BoolValue `hcl:"encrypted,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// PermanentRestore: bool, optional
	PermanentRestore terra.BoolValue `hcl:"permanent_restore,attr"`
	// RoleName: string, optional
	RoleName terra.StringValue `hcl:"role_name,attr"`
	// StorageTier: string, optional
	StorageTier terra.StringValue `hcl:"storage_tier,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// TemporaryRestoreDays: number, optional
	TemporaryRestoreDays terra.NumberValue `hcl:"temporary_restore_days,attr"`
	// ClientData: optional
	ClientData *ClientData `hcl:"client_data,block"`
	// DiskContainer: required
	DiskContainer *DiskContainer `hcl:"disk_container,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_ebs_snapshot_import.

type ClientData

type ClientData struct {
	// Comment: string, optional
	Comment terra.StringValue `hcl:"comment,attr"`
	// UploadEnd: string, optional
	UploadEnd terra.StringValue `hcl:"upload_end,attr"`
	// UploadSize: number, optional
	UploadSize terra.NumberValue `hcl:"upload_size,attr"`
	// UploadStart: string, optional
	UploadStart terra.StringValue `hcl:"upload_start,attr"`
}

type ClientDataAttributes

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

func (ClientDataAttributes) Comment

func (cd ClientDataAttributes) Comment() terra.StringValue

func (ClientDataAttributes) InternalRef

func (cd ClientDataAttributes) InternalRef() (terra.Reference, error)

func (ClientDataAttributes) InternalTokens

func (cd ClientDataAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ClientDataAttributes) InternalWithRef

func (cd ClientDataAttributes) InternalWithRef(ref terra.Reference) ClientDataAttributes

func (ClientDataAttributes) UploadEnd

func (cd ClientDataAttributes) UploadEnd() terra.StringValue

func (ClientDataAttributes) UploadSize

func (cd ClientDataAttributes) UploadSize() terra.NumberValue

func (ClientDataAttributes) UploadStart

func (cd ClientDataAttributes) UploadStart() terra.StringValue

type ClientDataState

type ClientDataState struct {
	Comment     string  `json:"comment"`
	UploadEnd   string  `json:"upload_end"`
	UploadSize  float64 `json:"upload_size"`
	UploadStart string  `json:"upload_start"`
}

type DiskContainer

type DiskContainer struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Format: string, required
	Format terra.StringValue `hcl:"format,attr" validate:"required"`
	// Url: string, optional
	Url terra.StringValue `hcl:"url,attr"`
	// DiskContainerUserBucket: optional
	UserBucket *DiskContainerUserBucket `hcl:"user_bucket,block"`
}

type DiskContainerAttributes

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

func (DiskContainerAttributes) Description

func (dc DiskContainerAttributes) Description() terra.StringValue

func (DiskContainerAttributes) Format

func (DiskContainerAttributes) InternalRef

func (dc DiskContainerAttributes) InternalRef() (terra.Reference, error)

func (DiskContainerAttributes) InternalTokens

func (dc DiskContainerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DiskContainerAttributes) InternalWithRef

func (DiskContainerAttributes) Url

func (DiskContainerAttributes) UserBucket

type DiskContainerState

type DiskContainerState struct {
	Description string                         `json:"description"`
	Format      string                         `json:"format"`
	Url         string                         `json:"url"`
	UserBucket  []DiskContainerUserBucketState `json:"user_bucket"`
}

type DiskContainerUserBucket

type DiskContainerUserBucket struct {
	// S3Bucket: string, required
	S3Bucket terra.StringValue `hcl:"s3_bucket,attr" validate:"required"`
	// S3Key: string, required
	S3Key terra.StringValue `hcl:"s3_key,attr" validate:"required"`
}

type DiskContainerUserBucketAttributes

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

func (DiskContainerUserBucketAttributes) InternalRef

func (DiskContainerUserBucketAttributes) InternalTokens

func (ub DiskContainerUserBucketAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DiskContainerUserBucketAttributes) InternalWithRef

func (DiskContainerUserBucketAttributes) S3Bucket

func (DiskContainerUserBucketAttributes) S3Key

type DiskContainerUserBucketState

type DiskContainerUserBucketState struct {
	S3Bucket string `json:"s3_bucket"`
	S3Key    string `json:"s3_key"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aesi *Resource) Attributes() awsEbsSnapshotImportAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aesi *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aesi *Resource) State() (*awsEbsSnapshotImportState, bool)

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

func (*Resource) StateMust

func (aesi *Resource) StateMust() *awsEbsSnapshotImportState

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

func (*Resource) Type

func (aesi *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

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

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
}

Jump to

Keyboard shortcuts

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