aws_opsworks_stack

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 {
	// AgentVersion: string, optional
	AgentVersion terra.StringValue `hcl:"agent_version,attr"`
	// BerkshelfVersion: string, optional
	BerkshelfVersion terra.StringValue `hcl:"berkshelf_version,attr"`
	// Color: string, optional
	Color terra.StringValue `hcl:"color,attr"`
	// ConfigurationManagerName: string, optional
	ConfigurationManagerName terra.StringValue `hcl:"configuration_manager_name,attr"`
	// ConfigurationManagerVersion: string, optional
	ConfigurationManagerVersion terra.StringValue `hcl:"configuration_manager_version,attr"`
	// CustomJson: string, optional
	CustomJson terra.StringValue `hcl:"custom_json,attr"`
	// DefaultAvailabilityZone: string, optional
	DefaultAvailabilityZone terra.StringValue `hcl:"default_availability_zone,attr"`
	// DefaultInstanceProfileArn: string, required
	DefaultInstanceProfileArn terra.StringValue `hcl:"default_instance_profile_arn,attr" validate:"required"`
	// DefaultOs: string, optional
	DefaultOs terra.StringValue `hcl:"default_os,attr"`
	// DefaultRootDeviceType: string, optional
	DefaultRootDeviceType terra.StringValue `hcl:"default_root_device_type,attr"`
	// DefaultSshKeyName: string, optional
	DefaultSshKeyName terra.StringValue `hcl:"default_ssh_key_name,attr"`
	// DefaultSubnetId: string, optional
	DefaultSubnetId terra.StringValue `hcl:"default_subnet_id,attr"`
	// HostnameTheme: string, optional
	HostnameTheme terra.StringValue `hcl:"hostname_theme,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ManageBerkshelf: bool, optional
	ManageBerkshelf terra.BoolValue `hcl:"manage_berkshelf,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Region: string, required
	Region terra.StringValue `hcl:"region,attr" validate:"required"`
	// ServiceRoleArn: string, required
	ServiceRoleArn terra.StringValue `hcl:"service_role_arn,attr" validate:"required"`
	// 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"`
	// UseCustomCookbooks: bool, optional
	UseCustomCookbooks terra.BoolValue `hcl:"use_custom_cookbooks,attr"`
	// UseOpsworksSecurityGroups: bool, optional
	UseOpsworksSecurityGroups terra.BoolValue `hcl:"use_opsworks_security_groups,attr"`
	// VpcId: string, optional
	VpcId terra.StringValue `hcl:"vpc_id,attr"`
	// CustomCookbooksSource: optional
	CustomCookbooksSource *CustomCookbooksSource `hcl:"custom_cookbooks_source,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_opsworks_stack.

type CustomCookbooksSource

type CustomCookbooksSource struct {
	// Password: string, optional
	Password terra.StringValue `hcl:"password,attr"`
	// Revision: string, optional
	Revision terra.StringValue `hcl:"revision,attr"`
	// SshKey: string, optional
	SshKey terra.StringValue `hcl:"ssh_key,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
	// Username: string, optional
	Username terra.StringValue `hcl:"username,attr"`
}

type CustomCookbooksSourceAttributes

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

func (CustomCookbooksSourceAttributes) InternalRef

func (CustomCookbooksSourceAttributes) InternalTokens

func (ccs CustomCookbooksSourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomCookbooksSourceAttributes) InternalWithRef

func (CustomCookbooksSourceAttributes) Password

func (CustomCookbooksSourceAttributes) Revision

func (CustomCookbooksSourceAttributes) SshKey

func (CustomCookbooksSourceAttributes) Type

func (CustomCookbooksSourceAttributes) Url

func (CustomCookbooksSourceAttributes) Username

type CustomCookbooksSourceState

type CustomCookbooksSourceState struct {
	Password string `json:"password"`
	Revision string `json:"revision"`
	SshKey   string `json:"ssh_key"`
	Type     string `json:"type"`
	Url      string `json:"url"`
	Username string `json:"username"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aos *Resource) Attributes() awsOpsworksStackAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aos *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aos *Resource) State() (*awsOpsworksStackState, bool)

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

func (*Resource) StateMust

func (aos *Resource) StateMust() *awsOpsworksStackState

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

func (*Resource) Type

func (aos *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"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

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

Jump to

Keyboard shortcuts

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