aws_codedeploy_deployment_config

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 {
	// ComputePlatform: string, optional
	ComputePlatform terra.StringValue `hcl:"compute_platform,attr"`
	// DeploymentConfigName: string, required
	DeploymentConfigName terra.StringValue `hcl:"deployment_config_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MinimumHealthyHosts: optional
	MinimumHealthyHosts *MinimumHealthyHosts `hcl:"minimum_healthy_hosts,block"`
	// TrafficRoutingConfig: optional
	TrafficRoutingConfig *TrafficRoutingConfig `hcl:"traffic_routing_config,block"`
}

Args contains the configurations for aws_codedeploy_deployment_config.

type MinimumHealthyHosts

type MinimumHealthyHosts struct {
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Value: number, optional
	Value terra.NumberValue `hcl:"value,attr"`
}

type MinimumHealthyHostsAttributes

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

func (MinimumHealthyHostsAttributes) InternalRef

func (mhh MinimumHealthyHostsAttributes) InternalRef() (terra.Reference, error)

func (MinimumHealthyHostsAttributes) InternalTokens

func (mhh MinimumHealthyHostsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MinimumHealthyHostsAttributes) InternalWithRef

func (MinimumHealthyHostsAttributes) Type

func (MinimumHealthyHostsAttributes) Value

type MinimumHealthyHostsState

type MinimumHealthyHostsState struct {
	Type  string  `json:"type"`
	Value float64 `json:"value"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acdc *Resource) Attributes() awsCodedeployDeploymentConfigAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acdc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acdc *Resource) State() (*awsCodedeployDeploymentConfigState, bool)

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

func (*Resource) StateMust

func (acdc *Resource) StateMust() *awsCodedeployDeploymentConfigState

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

func (*Resource) Type

func (acdc *Resource) Type() string

Type returns the Terraform object type for Resource.

type TrafficRoutingConfig

type TrafficRoutingConfig struct {
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// TrafficRoutingConfigTimeBasedCanary: optional
	TimeBasedCanary *TrafficRoutingConfigTimeBasedCanary `hcl:"time_based_canary,block"`
	// TrafficRoutingConfigTimeBasedLinear: optional
	TimeBasedLinear *TrafficRoutingConfigTimeBasedLinear `hcl:"time_based_linear,block"`
}

type TrafficRoutingConfigAttributes

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

func (TrafficRoutingConfigAttributes) InternalRef

func (trc TrafficRoutingConfigAttributes) InternalRef() (terra.Reference, error)

func (TrafficRoutingConfigAttributes) InternalTokens

func (trc TrafficRoutingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TrafficRoutingConfigAttributes) InternalWithRef

func (TrafficRoutingConfigAttributes) TimeBasedCanary

func (TrafficRoutingConfigAttributes) TimeBasedLinear

func (TrafficRoutingConfigAttributes) Type

type TrafficRoutingConfigState

type TrafficRoutingConfigState struct {
	Type            string                                     `json:"type"`
	TimeBasedCanary []TrafficRoutingConfigTimeBasedCanaryState `json:"time_based_canary"`
	TimeBasedLinear []TrafficRoutingConfigTimeBasedLinearState `json:"time_based_linear"`
}

type TrafficRoutingConfigTimeBasedCanary

type TrafficRoutingConfigTimeBasedCanary struct {
	// Interval: number, optional
	Interval terra.NumberValue `hcl:"interval,attr"`
	// Percentage: number, optional
	Percentage terra.NumberValue `hcl:"percentage,attr"`
}

type TrafficRoutingConfigTimeBasedCanaryAttributes

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

func (TrafficRoutingConfigTimeBasedCanaryAttributes) InternalRef

func (TrafficRoutingConfigTimeBasedCanaryAttributes) InternalTokens

func (TrafficRoutingConfigTimeBasedCanaryAttributes) InternalWithRef

func (TrafficRoutingConfigTimeBasedCanaryAttributes) Interval

func (TrafficRoutingConfigTimeBasedCanaryAttributes) Percentage

type TrafficRoutingConfigTimeBasedCanaryState

type TrafficRoutingConfigTimeBasedCanaryState struct {
	Interval   float64 `json:"interval"`
	Percentage float64 `json:"percentage"`
}

type TrafficRoutingConfigTimeBasedLinear

type TrafficRoutingConfigTimeBasedLinear struct {
	// Interval: number, optional
	Interval terra.NumberValue `hcl:"interval,attr"`
	// Percentage: number, optional
	Percentage terra.NumberValue `hcl:"percentage,attr"`
}

type TrafficRoutingConfigTimeBasedLinearAttributes

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

func (TrafficRoutingConfigTimeBasedLinearAttributes) InternalRef

func (TrafficRoutingConfigTimeBasedLinearAttributes) InternalTokens

func (TrafficRoutingConfigTimeBasedLinearAttributes) InternalWithRef

func (TrafficRoutingConfigTimeBasedLinearAttributes) Interval

func (TrafficRoutingConfigTimeBasedLinearAttributes) Percentage

type TrafficRoutingConfigTimeBasedLinearState

type TrafficRoutingConfigTimeBasedLinearState struct {
	Interval   float64 `json:"interval"`
	Percentage float64 `json:"percentage"`
}

Jump to

Keyboard shortcuts

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