aws_appconfig_environment

package
v5.45.0 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 {
	// ApplicationId: string, required
	ApplicationId terra.StringValue `hcl:"application_id,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,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"`
	// Monitor: min=0,max=5
	Monitor []Monitor `hcl:"monitor,block" validate:"min=0,max=5"`
}

Args contains the configurations for aws_appconfig_environment.

type DataArgs

type DataArgs struct {
	// ApplicationId: string, required
	ApplicationId terra.StringValue `hcl:"application_id,attr" validate:"required"`
	// EnvironmentId: string, required
	EnvironmentId terra.StringValue `hcl:"environment_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_appconfig_environment.

type DataMonitorAttributes

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

func (DataMonitorAttributes) AlarmArn

func (DataMonitorAttributes) AlarmRoleArn

func (m DataMonitorAttributes) AlarmRoleArn() terra.StringValue

func (DataMonitorAttributes) InternalRef

func (m DataMonitorAttributes) InternalRef() (terra.Reference, error)

func (DataMonitorAttributes) InternalTokens

func (m DataMonitorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataMonitorAttributes) InternalWithRef

type DataMonitorState

type DataMonitorState struct {
	AlarmArn     string `json:"alarm_arn"`
	AlarmRoleArn string `json:"alarm_role_arn"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_appconfig_environment.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aae *DataSource) Attributes() dataAwsAppconfigEnvironmentAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aae *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aae *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type Monitor

type Monitor struct {
	// AlarmArn: string, required
	AlarmArn terra.StringValue `hcl:"alarm_arn,attr" validate:"required"`
	// AlarmRoleArn: string, optional
	AlarmRoleArn terra.StringValue `hcl:"alarm_role_arn,attr"`
}

type MonitorAttributes

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

func (MonitorAttributes) AlarmArn

func (m MonitorAttributes) AlarmArn() terra.StringValue

func (MonitorAttributes) AlarmRoleArn

func (m MonitorAttributes) AlarmRoleArn() terra.StringValue

func (MonitorAttributes) InternalRef

func (m MonitorAttributes) InternalRef() (terra.Reference, error)

func (MonitorAttributes) InternalTokens

func (m MonitorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MonitorAttributes) InternalWithRef

func (m MonitorAttributes) InternalWithRef(ref terra.Reference) MonitorAttributes

type MonitorState

type MonitorState struct {
	AlarmArn     string `json:"alarm_arn"`
	AlarmRoleArn string `json:"alarm_role_arn"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aae *Resource) Attributes() awsAppconfigEnvironmentAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aae *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aae *Resource) State() (*awsAppconfigEnvironmentState, bool)

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

func (*Resource) StateMust

func (aae *Resource) StateMust() *awsAppconfigEnvironmentState

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

func (*Resource) Type

func (aae *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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