aws_codepipeline

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RoleArn: string, required
	RoleArn terra.StringValue `hcl:"role_arn,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"`
	// ArtifactStore: min=1
	ArtifactStore []ArtifactStore `hcl:"artifact_store,block" validate:"min=1"`
	// Stage: min=2
	Stage []Stage `hcl:"stage,block" validate:"min=2"`
}

Args contains the configurations for aws_codepipeline.

type ArtifactStore

type ArtifactStore struct {
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// ArtifactStoreEncryptionKey: optional
	EncryptionKey *ArtifactStoreEncryptionKey `hcl:"encryption_key,block"`
}

type ArtifactStoreAttributes

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

func (ArtifactStoreAttributes) EncryptionKey

func (ArtifactStoreAttributes) InternalRef

func (as ArtifactStoreAttributes) InternalRef() (terra.Reference, error)

func (ArtifactStoreAttributes) InternalTokens

func (as ArtifactStoreAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ArtifactStoreAttributes) InternalWithRef

func (ArtifactStoreAttributes) Location

func (ArtifactStoreAttributes) Region

func (ArtifactStoreAttributes) Type

type ArtifactStoreEncryptionKey

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

type ArtifactStoreEncryptionKeyAttributes

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

func (ArtifactStoreEncryptionKeyAttributes) Id

func (ArtifactStoreEncryptionKeyAttributes) InternalRef

func (ArtifactStoreEncryptionKeyAttributes) InternalTokens

func (ArtifactStoreEncryptionKeyAttributes) InternalWithRef

func (ArtifactStoreEncryptionKeyAttributes) Type

type ArtifactStoreEncryptionKeyState

type ArtifactStoreEncryptionKeyState struct {
	Id   string `json:"id"`
	Type string `json:"type"`
}

type ArtifactStoreState

type ArtifactStoreState struct {
	Location      string                            `json:"location"`
	Region        string                            `json:"region"`
	Type          string                            `json:"type"`
	EncryptionKey []ArtifactStoreEncryptionKeyState `json:"encryption_key"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ac *Resource) Attributes() awsCodepipelineAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ac *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ac *Resource) State() (*awsCodepipelineState, bool)

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

func (*Resource) StateMust

func (ac *Resource) StateMust() *awsCodepipelineState

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

func (*Resource) Type

func (ac *Resource) Type() string

Type returns the Terraform object type for Resource.

type Stage

type Stage struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// StageAction: min=1
	Action []StageAction `hcl:"action,block" validate:"min=1"`
}

type StageAction

type StageAction struct {
	// Category: string, required
	Category terra.StringValue `hcl:"category,attr" validate:"required"`
	// Configuration: map of string, optional
	Configuration terra.MapValue[terra.StringValue] `hcl:"configuration,attr"`
	// InputArtifacts: list of string, optional
	InputArtifacts terra.ListValue[terra.StringValue] `hcl:"input_artifacts,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Namespace: string, optional
	Namespace terra.StringValue `hcl:"namespace,attr"`
	// OutputArtifacts: list of string, optional
	OutputArtifacts terra.ListValue[terra.StringValue] `hcl:"output_artifacts,attr"`
	// Owner: string, required
	Owner terra.StringValue `hcl:"owner,attr" validate:"required"`
	// Provider: string, required
	Provider terra.StringValue `hcl:"provider,attr" validate:"required"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// RoleArn: string, optional
	RoleArn terra.StringValue `hcl:"role_arn,attr"`
	// RunOrder: number, optional
	RunOrder terra.NumberValue `hcl:"run_order,attr"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
}

type StageActionAttributes

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

func (StageActionAttributes) Category

func (StageActionAttributes) Configuration

func (StageActionAttributes) InputArtifacts

func (StageActionAttributes) InternalRef

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

func (StageActionAttributes) InternalTokens

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

func (StageActionAttributes) InternalWithRef

func (StageActionAttributes) Name

func (StageActionAttributes) Namespace

func (a StageActionAttributes) Namespace() terra.StringValue

func (StageActionAttributes) OutputArtifacts

func (a StageActionAttributes) OutputArtifacts() terra.ListValue[terra.StringValue]

func (StageActionAttributes) Owner

func (StageActionAttributes) Provider

func (StageActionAttributes) Region

func (StageActionAttributes) RoleArn

func (StageActionAttributes) RunOrder

func (StageActionAttributes) Version

type StageActionState

type StageActionState struct {
	Category        string            `json:"category"`
	Configuration   map[string]string `json:"configuration"`
	InputArtifacts  []string          `json:"input_artifacts"`
	Name            string            `json:"name"`
	Namespace       string            `json:"namespace"`
	OutputArtifacts []string          `json:"output_artifacts"`
	Owner           string            `json:"owner"`
	Provider        string            `json:"provider"`
	Region          string            `json:"region"`
	RoleArn         string            `json:"role_arn"`
	RunOrder        float64           `json:"run_order"`
	Version         string            `json:"version"`
}

type StageAttributes

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

func (StageAttributes) Action

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) Name

type StageState

type StageState struct {
	Name   string             `json:"name"`
	Action []StageActionState `json:"action"`
}

Jump to

Keyboard shortcuts

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