aws_ssmcontacts_plan

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 {
	// ContactId: string, required
	ContactId terra.StringValue `hcl:"contact_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Stage: min=1
	Stage []Stage `hcl:"stage,block" validate:"min=1"`
}

Args contains the configurations for aws_ssmcontacts_plan.

type DataArgs

type DataArgs struct {
	// ContactId: string, required
	ContactId terra.StringValue `hcl:"contact_id,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
}

DataArgs contains the configurations for aws_ssmcontacts_plan.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_ssmcontacts_plan.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (asp *DataSource) Attributes() dataAwsSsmcontactsPlanAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (asp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (asp *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataStageAttributes

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

func (DataStageAttributes) DurationInMinutes

func (s DataStageAttributes) DurationInMinutes() terra.NumberValue

func (DataStageAttributes) InternalRef

func (s DataStageAttributes) InternalRef() (terra.Reference, error)

func (DataStageAttributes) InternalTokens

func (s DataStageAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataStageAttributes) InternalWithRef

func (s DataStageAttributes) InternalWithRef(ref terra.Reference) DataStageAttributes

func (DataStageAttributes) Target

type DataStageState

type DataStageState struct {
	DurationInMinutes float64                `json:"duration_in_minutes"`
	Target            []DataStageTargetState `json:"target"`
}

type DataStageTargetAttributes

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

func (DataStageTargetAttributes) ChannelTargetInfo

func (DataStageTargetAttributes) ContactTargetInfo

func (DataStageTargetAttributes) InternalRef

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

func (DataStageTargetAttributes) InternalTokens

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

func (DataStageTargetAttributes) InternalWithRef

type DataStageTargetChannelTargetInfoAttributes

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

func (DataStageTargetChannelTargetInfoAttributes) ContactChannelId

func (DataStageTargetChannelTargetInfoAttributes) InternalRef

func (DataStageTargetChannelTargetInfoAttributes) InternalTokens

func (DataStageTargetChannelTargetInfoAttributes) InternalWithRef

func (DataStageTargetChannelTargetInfoAttributes) RetryIntervalInMinutes

func (cti DataStageTargetChannelTargetInfoAttributes) RetryIntervalInMinutes() terra.NumberValue

type DataStageTargetChannelTargetInfoState

type DataStageTargetChannelTargetInfoState struct {
	ContactChannelId       string  `json:"contact_channel_id"`
	RetryIntervalInMinutes float64 `json:"retry_interval_in_minutes"`
}

type DataStageTargetContactTargetInfoAttributes

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

func (DataStageTargetContactTargetInfoAttributes) ContactId

func (DataStageTargetContactTargetInfoAttributes) InternalRef

func (DataStageTargetContactTargetInfoAttributes) InternalTokens

func (DataStageTargetContactTargetInfoAttributes) InternalWithRef

func (DataStageTargetContactTargetInfoAttributes) IsEssential

type DataStageTargetContactTargetInfoState

type DataStageTargetContactTargetInfoState struct {
	ContactId   string `json:"contact_id"`
	IsEssential bool   `json:"is_essential"`
}

type DataStageTargetState

type DataStageTargetState struct {
	ChannelTargetInfo []DataStageTargetChannelTargetInfoState `json:"channel_target_info"`
	ContactTargetInfo []DataStageTargetContactTargetInfoState `json:"contact_target_info"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asp *Resource) Attributes() awsSsmcontactsPlanAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asp *Resource) State() (*awsSsmcontactsPlanState, bool)

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

func (*Resource) StateMust

func (asp *Resource) StateMust() *awsSsmcontactsPlanState

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

func (*Resource) Type

func (asp *Resource) Type() string

Type returns the Terraform object type for Resource.

type Stage

type Stage struct {
	// DurationInMinutes: number, required
	DurationInMinutes terra.NumberValue `hcl:"duration_in_minutes,attr" validate:"required"`
	// StageTarget: min=0
	Target []StageTarget `hcl:"target,block" validate:"min=0"`
}

type StageAttributes

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

func (StageAttributes) DurationInMinutes

func (s StageAttributes) DurationInMinutes() terra.NumberValue

func (StageAttributes) InternalRef

func (s StageAttributes) InternalRef() (terra.Reference, error)

func (StageAttributes) InternalTokens

func (s StageAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StageAttributes) InternalWithRef

func (s StageAttributes) InternalWithRef(ref terra.Reference) StageAttributes

func (StageAttributes) Target

type StageState

type StageState struct {
	DurationInMinutes float64            `json:"duration_in_minutes"`
	Target            []StageTargetState `json:"target"`
}

type StageTarget

type StageTarget struct {
	// StageTargetChannelTargetInfo: optional
	ChannelTargetInfo *StageTargetChannelTargetInfo `hcl:"channel_target_info,block"`
	// StageTargetContactTargetInfo: optional
	ContactTargetInfo *StageTargetContactTargetInfo `hcl:"contact_target_info,block"`
}

type StageTargetAttributes

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

func (StageTargetAttributes) ChannelTargetInfo

func (StageTargetAttributes) ContactTargetInfo

func (StageTargetAttributes) InternalRef

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

func (StageTargetAttributes) InternalTokens

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

func (StageTargetAttributes) InternalWithRef

type StageTargetChannelTargetInfo

type StageTargetChannelTargetInfo struct {
	// ContactChannelId: string, required
	ContactChannelId terra.StringValue `hcl:"contact_channel_id,attr" validate:"required"`
	// RetryIntervalInMinutes: number, optional
	RetryIntervalInMinutes terra.NumberValue `hcl:"retry_interval_in_minutes,attr"`
}

type StageTargetChannelTargetInfoAttributes

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

func (StageTargetChannelTargetInfoAttributes) ContactChannelId

func (StageTargetChannelTargetInfoAttributes) InternalRef

func (StageTargetChannelTargetInfoAttributes) InternalTokens

func (StageTargetChannelTargetInfoAttributes) InternalWithRef

func (StageTargetChannelTargetInfoAttributes) RetryIntervalInMinutes

func (cti StageTargetChannelTargetInfoAttributes) RetryIntervalInMinutes() terra.NumberValue

type StageTargetChannelTargetInfoState

type StageTargetChannelTargetInfoState struct {
	ContactChannelId       string  `json:"contact_channel_id"`
	RetryIntervalInMinutes float64 `json:"retry_interval_in_minutes"`
}

type StageTargetContactTargetInfo

type StageTargetContactTargetInfo struct {
	// ContactId: string, optional
	ContactId terra.StringValue `hcl:"contact_id,attr"`
	// IsEssential: bool, required
	IsEssential terra.BoolValue `hcl:"is_essential,attr" validate:"required"`
}

type StageTargetContactTargetInfoAttributes

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

func (StageTargetContactTargetInfoAttributes) ContactId

func (StageTargetContactTargetInfoAttributes) InternalRef

func (StageTargetContactTargetInfoAttributes) InternalTokens

func (StageTargetContactTargetInfoAttributes) InternalWithRef

func (StageTargetContactTargetInfoAttributes) IsEssential

type StageTargetContactTargetInfoState

type StageTargetContactTargetInfoState struct {
	ContactId   string `json:"contact_id"`
	IsEssential bool   `json:"is_essential"`
}

type StageTargetState

type StageTargetState struct {
	ChannelTargetInfo []StageTargetChannelTargetInfoState `json:"channel_target_info"`
	ContactTargetInfo []StageTargetContactTargetInfoState `json:"contact_target_info"`
}

Jump to

Keyboard shortcuts

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