aws_ce_anomaly_subscription

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 {
	// AccountId: string, optional
	AccountId terra.StringValue `hcl:"account_id,attr"`
	// Frequency: string, required
	Frequency terra.StringValue `hcl:"frequency,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MonitorArnList: list of string, required
	MonitorArnList terra.ListValue[terra.StringValue] `hcl:"monitor_arn_list,attr" validate:"required"`
	// 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"`
	// Subscriber: min=1
	Subscriber []Subscriber `hcl:"subscriber,block" validate:"min=1"`
	// ThresholdExpression: optional
	ThresholdExpression *ThresholdExpression `hcl:"threshold_expression,block"`
}

Args contains the configurations for aws_ce_anomaly_subscription.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acas *Resource) Attributes() awsCeAnomalySubscriptionAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acas *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acas *Resource) State() (*awsCeAnomalySubscriptionState, bool)

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

func (*Resource) StateMust

func (acas *Resource) StateMust() *awsCeAnomalySubscriptionState

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

func (*Resource) Type

func (acas *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"`
	// Type: string, required
	Type terra.StringValue `hcl:"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) Type

type SubscriberState

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

type ThresholdExpression

type ThresholdExpression struct {
	// ThresholdExpressionAnd: min=0
	And []ThresholdExpressionAnd `hcl:"and,block" validate:"min=0"`
	// ThresholdExpressionCostCategory: optional
	CostCategory *ThresholdExpressionCostCategory `hcl:"cost_category,block"`
	// ThresholdExpressionDimension: optional
	Dimension *ThresholdExpressionDimension `hcl:"dimension,block"`
	// ThresholdExpressionNot: optional
	Not *ThresholdExpressionNot `hcl:"not,block"`
	// ThresholdExpressionOr: min=0
	Or []ThresholdExpressionOr `hcl:"or,block" validate:"min=0"`
	// ThresholdExpressionTags: optional
	Tags *ThresholdExpressionTags `hcl:"tags,block"`
}

type ThresholdExpressionAnd

type ThresholdExpressionAnd struct {
	// ThresholdExpressionAndCostCategory: optional
	CostCategory *ThresholdExpressionAndCostCategory `hcl:"cost_category,block"`
	// ThresholdExpressionAndDimension: optional
	Dimension *ThresholdExpressionAndDimension `hcl:"dimension,block"`
	// ThresholdExpressionAndTags: optional
	Tags *ThresholdExpressionAndTags `hcl:"tags,block"`
}

type ThresholdExpressionAndAttributes

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

func (ThresholdExpressionAndAttributes) CostCategory

func (ThresholdExpressionAndAttributes) Dimension

func (ThresholdExpressionAndAttributes) InternalRef

func (ThresholdExpressionAndAttributes) InternalTokens

func (a ThresholdExpressionAndAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ThresholdExpressionAndAttributes) InternalWithRef

func (ThresholdExpressionAndAttributes) Tags

type ThresholdExpressionAndCostCategory

type ThresholdExpressionAndCostCategory struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionAndCostCategoryAttributes

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

func (ThresholdExpressionAndCostCategoryAttributes) InternalRef

func (ThresholdExpressionAndCostCategoryAttributes) InternalTokens

func (ThresholdExpressionAndCostCategoryAttributes) InternalWithRef

func (ThresholdExpressionAndCostCategoryAttributes) Key

func (ThresholdExpressionAndCostCategoryAttributes) MatchOptions

func (ThresholdExpressionAndCostCategoryAttributes) Values

type ThresholdExpressionAndCostCategoryState

type ThresholdExpressionAndCostCategoryState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionAndDimension

type ThresholdExpressionAndDimension struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionAndDimensionAttributes

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

func (ThresholdExpressionAndDimensionAttributes) InternalRef

func (ThresholdExpressionAndDimensionAttributes) InternalTokens

func (ThresholdExpressionAndDimensionAttributes) InternalWithRef

func (ThresholdExpressionAndDimensionAttributes) Key

func (ThresholdExpressionAndDimensionAttributes) MatchOptions

func (ThresholdExpressionAndDimensionAttributes) Values

type ThresholdExpressionAndDimensionState

type ThresholdExpressionAndDimensionState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionAndState

type ThresholdExpressionAndState struct {
	CostCategory []ThresholdExpressionAndCostCategoryState `json:"cost_category"`
	Dimension    []ThresholdExpressionAndDimensionState    `json:"dimension"`
	Tags         []ThresholdExpressionAndTagsState         `json:"tags"`
}

type ThresholdExpressionAndTags

type ThresholdExpressionAndTags struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionAndTagsAttributes

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

func (ThresholdExpressionAndTagsAttributes) InternalRef

func (ThresholdExpressionAndTagsAttributes) InternalTokens

func (ThresholdExpressionAndTagsAttributes) InternalWithRef

func (ThresholdExpressionAndTagsAttributes) Key

func (ThresholdExpressionAndTagsAttributes) MatchOptions

func (ThresholdExpressionAndTagsAttributes) Values

type ThresholdExpressionAndTagsState

type ThresholdExpressionAndTagsState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionAttributes

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

func (ThresholdExpressionAttributes) And

func (ThresholdExpressionAttributes) CostCategory

func (ThresholdExpressionAttributes) Dimension

func (ThresholdExpressionAttributes) InternalRef

func (te ThresholdExpressionAttributes) InternalRef() (terra.Reference, error)

func (ThresholdExpressionAttributes) InternalTokens

func (te ThresholdExpressionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ThresholdExpressionAttributes) InternalWithRef

func (ThresholdExpressionAttributes) Not

func (ThresholdExpressionAttributes) Or

func (ThresholdExpressionAttributes) Tags

type ThresholdExpressionCostCategory

type ThresholdExpressionCostCategory struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionCostCategoryAttributes

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

func (ThresholdExpressionCostCategoryAttributes) InternalRef

func (ThresholdExpressionCostCategoryAttributes) InternalTokens

func (ThresholdExpressionCostCategoryAttributes) InternalWithRef

func (ThresholdExpressionCostCategoryAttributes) Key

func (ThresholdExpressionCostCategoryAttributes) MatchOptions

func (ThresholdExpressionCostCategoryAttributes) Values

type ThresholdExpressionCostCategoryState

type ThresholdExpressionCostCategoryState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionDimension

type ThresholdExpressionDimension struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionDimensionAttributes

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

func (ThresholdExpressionDimensionAttributes) InternalRef

func (ThresholdExpressionDimensionAttributes) InternalTokens

func (ThresholdExpressionDimensionAttributes) InternalWithRef

func (ThresholdExpressionDimensionAttributes) Key

func (ThresholdExpressionDimensionAttributes) MatchOptions

func (ThresholdExpressionDimensionAttributes) Values

type ThresholdExpressionDimensionState

type ThresholdExpressionDimensionState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionNot

type ThresholdExpressionNot struct {
	// ThresholdExpressionNotCostCategory: optional
	CostCategory *ThresholdExpressionNotCostCategory `hcl:"cost_category,block"`
	// ThresholdExpressionNotDimension: optional
	Dimension *ThresholdExpressionNotDimension `hcl:"dimension,block"`
	// ThresholdExpressionNotTags: optional
	Tags *ThresholdExpressionNotTags `hcl:"tags,block"`
}

type ThresholdExpressionNotAttributes

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

func (ThresholdExpressionNotAttributes) CostCategory

func (ThresholdExpressionNotAttributes) Dimension

func (ThresholdExpressionNotAttributes) InternalRef

func (ThresholdExpressionNotAttributes) InternalTokens

func (n ThresholdExpressionNotAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ThresholdExpressionNotAttributes) InternalWithRef

func (ThresholdExpressionNotAttributes) Tags

type ThresholdExpressionNotCostCategory

type ThresholdExpressionNotCostCategory struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionNotCostCategoryAttributes

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

func (ThresholdExpressionNotCostCategoryAttributes) InternalRef

func (ThresholdExpressionNotCostCategoryAttributes) InternalTokens

func (ThresholdExpressionNotCostCategoryAttributes) InternalWithRef

func (ThresholdExpressionNotCostCategoryAttributes) Key

func (ThresholdExpressionNotCostCategoryAttributes) MatchOptions

func (ThresholdExpressionNotCostCategoryAttributes) Values

type ThresholdExpressionNotCostCategoryState

type ThresholdExpressionNotCostCategoryState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionNotDimension

type ThresholdExpressionNotDimension struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionNotDimensionAttributes

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

func (ThresholdExpressionNotDimensionAttributes) InternalRef

func (ThresholdExpressionNotDimensionAttributes) InternalTokens

func (ThresholdExpressionNotDimensionAttributes) InternalWithRef

func (ThresholdExpressionNotDimensionAttributes) Key

func (ThresholdExpressionNotDimensionAttributes) MatchOptions

func (ThresholdExpressionNotDimensionAttributes) Values

type ThresholdExpressionNotDimensionState

type ThresholdExpressionNotDimensionState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionNotState

type ThresholdExpressionNotState struct {
	CostCategory []ThresholdExpressionNotCostCategoryState `json:"cost_category"`
	Dimension    []ThresholdExpressionNotDimensionState    `json:"dimension"`
	Tags         []ThresholdExpressionNotTagsState         `json:"tags"`
}

type ThresholdExpressionNotTags

type ThresholdExpressionNotTags struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionNotTagsAttributes

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

func (ThresholdExpressionNotTagsAttributes) InternalRef

func (ThresholdExpressionNotTagsAttributes) InternalTokens

func (ThresholdExpressionNotTagsAttributes) InternalWithRef

func (ThresholdExpressionNotTagsAttributes) Key

func (ThresholdExpressionNotTagsAttributes) MatchOptions

func (ThresholdExpressionNotTagsAttributes) Values

type ThresholdExpressionNotTagsState

type ThresholdExpressionNotTagsState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionOr

type ThresholdExpressionOr struct {
	// ThresholdExpressionOrCostCategory: optional
	CostCategory *ThresholdExpressionOrCostCategory `hcl:"cost_category,block"`
	// ThresholdExpressionOrDimension: optional
	Dimension *ThresholdExpressionOrDimension `hcl:"dimension,block"`
	// ThresholdExpressionOrTags: optional
	Tags *ThresholdExpressionOrTags `hcl:"tags,block"`
}

type ThresholdExpressionOrAttributes

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

func (ThresholdExpressionOrAttributes) CostCategory

func (ThresholdExpressionOrAttributes) Dimension

func (ThresholdExpressionOrAttributes) InternalRef

func (ThresholdExpressionOrAttributes) InternalTokens

func (o ThresholdExpressionOrAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ThresholdExpressionOrAttributes) InternalWithRef

func (ThresholdExpressionOrAttributes) Tags

type ThresholdExpressionOrCostCategory

type ThresholdExpressionOrCostCategory struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionOrCostCategoryAttributes

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

func (ThresholdExpressionOrCostCategoryAttributes) InternalRef

func (ThresholdExpressionOrCostCategoryAttributes) InternalTokens

func (ThresholdExpressionOrCostCategoryAttributes) InternalWithRef

func (ThresholdExpressionOrCostCategoryAttributes) Key

func (ThresholdExpressionOrCostCategoryAttributes) MatchOptions

func (ThresholdExpressionOrCostCategoryAttributes) Values

type ThresholdExpressionOrCostCategoryState

type ThresholdExpressionOrCostCategoryState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionOrDimension

type ThresholdExpressionOrDimension struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionOrDimensionAttributes

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

func (ThresholdExpressionOrDimensionAttributes) InternalRef

func (ThresholdExpressionOrDimensionAttributes) InternalTokens

func (ThresholdExpressionOrDimensionAttributes) InternalWithRef

func (ThresholdExpressionOrDimensionAttributes) Key

func (ThresholdExpressionOrDimensionAttributes) MatchOptions

func (ThresholdExpressionOrDimensionAttributes) Values

type ThresholdExpressionOrDimensionState

type ThresholdExpressionOrDimensionState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionOrState

type ThresholdExpressionOrState struct {
	CostCategory []ThresholdExpressionOrCostCategoryState `json:"cost_category"`
	Dimension    []ThresholdExpressionOrDimensionState    `json:"dimension"`
	Tags         []ThresholdExpressionOrTagsState         `json:"tags"`
}

type ThresholdExpressionOrTags

type ThresholdExpressionOrTags struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionOrTagsAttributes

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

func (ThresholdExpressionOrTagsAttributes) InternalRef

func (ThresholdExpressionOrTagsAttributes) InternalTokens

func (ThresholdExpressionOrTagsAttributes) InternalWithRef

func (ThresholdExpressionOrTagsAttributes) Key

func (ThresholdExpressionOrTagsAttributes) MatchOptions

func (ThresholdExpressionOrTagsAttributes) Values

type ThresholdExpressionOrTagsState

type ThresholdExpressionOrTagsState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type ThresholdExpressionState

type ThresholdExpressionState struct {
	And          []ThresholdExpressionAndState          `json:"and"`
	CostCategory []ThresholdExpressionCostCategoryState `json:"cost_category"`
	Dimension    []ThresholdExpressionDimensionState    `json:"dimension"`
	Not          []ThresholdExpressionNotState          `json:"not"`
	Or           []ThresholdExpressionOrState           `json:"or"`
	Tags         []ThresholdExpressionTagsState         `json:"tags"`
}

type ThresholdExpressionTags

type ThresholdExpressionTags struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type ThresholdExpressionTagsAttributes

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

func (ThresholdExpressionTagsAttributes) InternalRef

func (ThresholdExpressionTagsAttributes) InternalTokens

func (ThresholdExpressionTagsAttributes) InternalWithRef

func (ThresholdExpressionTagsAttributes) Key

func (ThresholdExpressionTagsAttributes) MatchOptions

func (ThresholdExpressionTagsAttributes) Values

type ThresholdExpressionTagsState

type ThresholdExpressionTagsState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

Jump to

Keyboard shortcuts

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