aws_budgets_budget_action

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 ActionThreshold

type ActionThreshold struct {
	// ActionThresholdType: string, required
	ActionThresholdType terra.StringValue `hcl:"action_threshold_type,attr" validate:"required"`
	// ActionThresholdValue: number, required
	ActionThresholdValue terra.NumberValue `hcl:"action_threshold_value,attr" validate:"required"`
}

type ActionThresholdAttributes

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

func (ActionThresholdAttributes) ActionThresholdType

func (at ActionThresholdAttributes) ActionThresholdType() terra.StringValue

func (ActionThresholdAttributes) ActionThresholdValue

func (at ActionThresholdAttributes) ActionThresholdValue() terra.NumberValue

func (ActionThresholdAttributes) InternalRef

func (at ActionThresholdAttributes) InternalRef() (terra.Reference, error)

func (ActionThresholdAttributes) InternalTokens

func (at ActionThresholdAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ActionThresholdAttributes) InternalWithRef

type ActionThresholdState

type ActionThresholdState struct {
	ActionThresholdType  string  `json:"action_threshold_type"`
	ActionThresholdValue float64 `json:"action_threshold_value"`
}

type Args

type Args struct {
	// AccountId: string, optional
	AccountId terra.StringValue `hcl:"account_id,attr"`
	// ActionType: string, required
	ActionType terra.StringValue `hcl:"action_type,attr" validate:"required"`
	// ApprovalModel: string, required
	ApprovalModel terra.StringValue `hcl:"approval_model,attr" validate:"required"`
	// BudgetName: string, required
	BudgetName terra.StringValue `hcl:"budget_name,attr" validate:"required"`
	// ExecutionRoleArn: string, required
	ExecutionRoleArn terra.StringValue `hcl:"execution_role_arn,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// NotificationType: string, required
	NotificationType terra.StringValue `hcl:"notification_type,attr" validate:"required"`
	// ActionThreshold: required
	ActionThreshold *ActionThreshold `hcl:"action_threshold,block" validate:"required"`
	// Definition: required
	Definition *Definition `hcl:"definition,block" validate:"required"`
	// Subscriber: min=1,max=11
	Subscriber []Subscriber `hcl:"subscriber,block" validate:"min=1,max=11"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_budgets_budget_action.

type Definition

type Definition struct {
	// DefinitionIamActionDefinition: optional
	IamActionDefinition *DefinitionIamActionDefinition `hcl:"iam_action_definition,block"`
	// DefinitionScpActionDefinition: optional
	ScpActionDefinition *DefinitionScpActionDefinition `hcl:"scp_action_definition,block"`
	// DefinitionSsmActionDefinition: optional
	SsmActionDefinition *DefinitionSsmActionDefinition `hcl:"ssm_action_definition,block"`
}

type DefinitionAttributes

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

func (DefinitionAttributes) IamActionDefinition

func (DefinitionAttributes) InternalRef

func (d DefinitionAttributes) InternalRef() (terra.Reference, error)

func (DefinitionAttributes) InternalTokens

func (d DefinitionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DefinitionAttributes) InternalWithRef

func (DefinitionAttributes) ScpActionDefinition

func (DefinitionAttributes) SsmActionDefinition

type DefinitionIamActionDefinition

type DefinitionIamActionDefinition struct {
	// Groups: set of string, optional
	Groups terra.SetValue[terra.StringValue] `hcl:"groups,attr"`
	// PolicyArn: string, required
	PolicyArn terra.StringValue `hcl:"policy_arn,attr" validate:"required"`
	// Roles: set of string, optional
	Roles terra.SetValue[terra.StringValue] `hcl:"roles,attr"`
	// Users: set of string, optional
	Users terra.SetValue[terra.StringValue] `hcl:"users,attr"`
}

type DefinitionIamActionDefinitionAttributes

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

func (DefinitionIamActionDefinitionAttributes) Groups

func (DefinitionIamActionDefinitionAttributes) InternalRef

func (DefinitionIamActionDefinitionAttributes) InternalTokens

func (DefinitionIamActionDefinitionAttributes) InternalWithRef

func (DefinitionIamActionDefinitionAttributes) PolicyArn

func (DefinitionIamActionDefinitionAttributes) Roles

func (DefinitionIamActionDefinitionAttributes) Users

type DefinitionIamActionDefinitionState

type DefinitionIamActionDefinitionState struct {
	Groups    []string `json:"groups"`
	PolicyArn string   `json:"policy_arn"`
	Roles     []string `json:"roles"`
	Users     []string `json:"users"`
}

type DefinitionScpActionDefinition

type DefinitionScpActionDefinition struct {
	// PolicyId: string, required
	PolicyId terra.StringValue `hcl:"policy_id,attr" validate:"required"`
	// TargetIds: set of string, required
	TargetIds terra.SetValue[terra.StringValue] `hcl:"target_ids,attr" validate:"required"`
}

type DefinitionScpActionDefinitionAttributes

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

func (DefinitionScpActionDefinitionAttributes) InternalRef

func (DefinitionScpActionDefinitionAttributes) InternalTokens

func (DefinitionScpActionDefinitionAttributes) InternalWithRef

func (DefinitionScpActionDefinitionAttributes) PolicyId

func (DefinitionScpActionDefinitionAttributes) TargetIds

type DefinitionScpActionDefinitionState

type DefinitionScpActionDefinitionState struct {
	PolicyId  string   `json:"policy_id"`
	TargetIds []string `json:"target_ids"`
}

type DefinitionSsmActionDefinition

type DefinitionSsmActionDefinition struct {
	// ActionSubType: string, required
	ActionSubType terra.StringValue `hcl:"action_sub_type,attr" validate:"required"`
	// InstanceIds: set of string, required
	InstanceIds terra.SetValue[terra.StringValue] `hcl:"instance_ids,attr" validate:"required"`
	// Region: string, required
	Region terra.StringValue `hcl:"region,attr" validate:"required"`
}

type DefinitionSsmActionDefinitionAttributes

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

func (DefinitionSsmActionDefinitionAttributes) ActionSubType

func (DefinitionSsmActionDefinitionAttributes) InstanceIds

func (DefinitionSsmActionDefinitionAttributes) InternalRef

func (DefinitionSsmActionDefinitionAttributes) InternalTokens

func (DefinitionSsmActionDefinitionAttributes) InternalWithRef

func (DefinitionSsmActionDefinitionAttributes) Region

type DefinitionSsmActionDefinitionState

type DefinitionSsmActionDefinitionState struct {
	ActionSubType string   `json:"action_sub_type"`
	InstanceIds   []string `json:"instance_ids"`
	Region        string   `json:"region"`
}

type DefinitionState

type DefinitionState struct {
	IamActionDefinition []DefinitionIamActionDefinitionState `json:"iam_action_definition"`
	ScpActionDefinition []DefinitionScpActionDefinitionState `json:"scp_action_definition"`
	SsmActionDefinition []DefinitionSsmActionDefinitionState `json:"ssm_action_definition"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (abba *Resource) Attributes() awsBudgetsBudgetActionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (abba *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (abba *Resource) State() (*awsBudgetsBudgetActionState, bool)

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

func (*Resource) StateMust

func (abba *Resource) StateMust() *awsBudgetsBudgetActionState

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

func (*Resource) Type

func (abba *Resource) Type() string

Type returns the Terraform object type for Resource.

type Subscriber

type Subscriber struct {
	// Address: string, required
	Address terra.StringValue `hcl:"address,attr" validate:"required"`
	// SubscriptionType: string, required
	SubscriptionType terra.StringValue `hcl:"subscription_type,attr" validate:"required"`
}

type SubscriberAttributes

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

func (SubscriberAttributes) Address

func (SubscriberAttributes) InternalRef

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

func (SubscriberAttributes) InternalTokens

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

func (SubscriberAttributes) InternalWithRef

func (SubscriberAttributes) SubscriptionType

func (s SubscriberAttributes) SubscriptionType() terra.StringValue

type SubscriberState

type SubscriberState struct {
	Address          string `json:"address"`
	SubscriptionType string `json:"subscription_type"`
}

type Timeouts

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

type TimeoutsState

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

Jump to

Keyboard shortcuts

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