aws_ecr_lifecycle_policy_document

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataArgs

type DataArgs struct {
	// Rule: min=0
	Rule []DataRule `hcl:"rule,block" validate:"min=0"`
}

DataArgs contains the configurations for aws_ecr_lifecycle_policy_document.

type DataRule

type DataRule struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// RuleAction: min=0
	Action []DataRuleAction `hcl:"action,block" validate:"min=0"`
	// RuleSelection: min=0
	Selection []DataRuleSelection `hcl:"selection,block" validate:"min=0"`
}

type DataRuleAction

type DataRuleAction struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type DataRuleActionAttributes

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

func (DataRuleActionAttributes) InternalRef

func (a DataRuleActionAttributes) InternalRef() (terra.Reference, error)

func (DataRuleActionAttributes) InternalTokens

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

func (DataRuleActionAttributes) InternalWithRef

func (DataRuleActionAttributes) Type

type DataRuleActionState

type DataRuleActionState struct {
	Type string `json:"type"`
}

type DataRuleAttributes

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

func (DataRuleAttributes) Action

func (DataRuleAttributes) Description

func (r DataRuleAttributes) Description() terra.StringValue

func (DataRuleAttributes) InternalRef

func (r DataRuleAttributes) InternalRef() (terra.Reference, error)

func (DataRuleAttributes) InternalTokens

func (r DataRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRuleAttributes) InternalWithRef

func (r DataRuleAttributes) InternalWithRef(ref terra.Reference) DataRuleAttributes

func (DataRuleAttributes) Priority

func (r DataRuleAttributes) Priority() terra.NumberValue

func (DataRuleAttributes) Selection

type DataRuleSelection

type DataRuleSelection struct {
	// CountNumber: number, required
	CountNumber terra.NumberValue `hcl:"count_number,attr" validate:"required"`
	// CountType: string, required
	CountType terra.StringValue `hcl:"count_type,attr" validate:"required"`
	// CountUnit: string, optional
	CountUnit terra.StringValue `hcl:"count_unit,attr"`
	// TagPatternList: list of string, optional
	TagPatternList terra.ListValue[terra.StringValue] `hcl:"tag_pattern_list,attr"`
	// TagPrefixList: list of string, optional
	TagPrefixList terra.ListValue[terra.StringValue] `hcl:"tag_prefix_list,attr"`
	// TagStatus: string, required
	TagStatus terra.StringValue `hcl:"tag_status,attr" validate:"required"`
}

type DataRuleSelectionAttributes

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

func (DataRuleSelectionAttributes) CountNumber

func (DataRuleSelectionAttributes) CountType

func (DataRuleSelectionAttributes) CountUnit

func (DataRuleSelectionAttributes) InternalRef

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

func (DataRuleSelectionAttributes) InternalTokens

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

func (DataRuleSelectionAttributes) InternalWithRef

func (DataRuleSelectionAttributes) TagPatternList

func (DataRuleSelectionAttributes) TagPrefixList

func (DataRuleSelectionAttributes) TagStatus

type DataRuleSelectionState

type DataRuleSelectionState struct {
	CountNumber    float64  `json:"count_number"`
	CountType      string   `json:"count_type"`
	CountUnit      string   `json:"count_unit"`
	TagPatternList []string `json:"tag_pattern_list"`
	TagPrefixList  []string `json:"tag_prefix_list"`
	TagStatus      string   `json:"tag_status"`
}

type DataRuleState

type DataRuleState struct {
	Description string                   `json:"description"`
	Priority    float64                  `json:"priority"`
	Action      []DataRuleActionState    `json:"action"`
	Selection   []DataRuleSelectionState `json:"selection"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_ecr_lifecycle_policy_document.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aelpd *DataSource) Attributes() dataAwsEcrLifecyclePolicyDocumentAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aelpd *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aelpd *DataSource) LocalName() string

LocalName returns the local name for DataSource.

Jump to

Keyboard shortcuts

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