ecs

package
v1.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapacityProvider added in v1.16.0

type CapacityProvider struct {
	pulumi.CustomResourceState

	// The Amazon Resource Name (ARN) that identifies the capacity provider.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Nested argument defining the provider for the ECS auto scaling group. Defined below.
	AutoScalingGroupProvider CapacityProviderAutoScalingGroupProviderOutput `pulumi:"autoScalingGroupProvider"`
	// The name of the capacity provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// Key-value mapping of resource tags.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/ecs_capacity_provider.html.markdown.

func GetCapacityProvider added in v1.16.0

func GetCapacityProvider(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CapacityProviderState, opts ...pulumi.ResourceOption) (*CapacityProvider, error)

GetCapacityProvider gets an existing CapacityProvider resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCapacityProvider added in v1.16.0

func NewCapacityProvider(ctx *pulumi.Context,
	name string, args *CapacityProviderArgs, opts ...pulumi.ResourceOption) (*CapacityProvider, error)

NewCapacityProvider registers a new resource with the given unique name, arguments, and options.

type CapacityProviderArgs added in v1.16.0

type CapacityProviderArgs struct {
	// Nested argument defining the provider for the ECS auto scaling group. Defined below.
	AutoScalingGroupProvider CapacityProviderAutoScalingGroupProviderInput
	// The name of the capacity provider.
	Name pulumi.StringPtrInput
	// Key-value mapping of resource tags.
	Tags pulumi.MapInput
}

The set of arguments for constructing a CapacityProvider resource.

func (CapacityProviderArgs) ElementType added in v1.19.0

func (CapacityProviderArgs) ElementType() reflect.Type

type CapacityProviderAutoScalingGroupProvider added in v1.19.0

type CapacityProviderAutoScalingGroupProvider struct {
	AutoScalingGroupArn          string                                                  `pulumi:"autoScalingGroupArn"`
	ManagedScaling               *CapacityProviderAutoScalingGroupProviderManagedScaling `pulumi:"managedScaling"`
	ManagedTerminationProtection *string                                                 `pulumi:"managedTerminationProtection"`
}

type CapacityProviderAutoScalingGroupProviderArgs added in v1.19.0

type CapacityProviderAutoScalingGroupProviderArgs struct {
	AutoScalingGroupArn          pulumi.StringInput                                             `pulumi:"autoScalingGroupArn"`
	ManagedScaling               CapacityProviderAutoScalingGroupProviderManagedScalingPtrInput `pulumi:"managedScaling"`
	ManagedTerminationProtection pulumi.StringPtrInput                                          `pulumi:"managedTerminationProtection"`
}

func (CapacityProviderAutoScalingGroupProviderArgs) ElementType added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderArgs) ToCapacityProviderAutoScalingGroupProviderOutput added in v1.19.0

func (i CapacityProviderAutoScalingGroupProviderArgs) ToCapacityProviderAutoScalingGroupProviderOutput() CapacityProviderAutoScalingGroupProviderOutput

func (CapacityProviderAutoScalingGroupProviderArgs) ToCapacityProviderAutoScalingGroupProviderOutputWithContext added in v1.19.0

func (i CapacityProviderAutoScalingGroupProviderArgs) ToCapacityProviderAutoScalingGroupProviderOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderOutput

func (CapacityProviderAutoScalingGroupProviderArgs) ToCapacityProviderAutoScalingGroupProviderPtrOutput added in v1.19.0

func (i CapacityProviderAutoScalingGroupProviderArgs) ToCapacityProviderAutoScalingGroupProviderPtrOutput() CapacityProviderAutoScalingGroupProviderPtrOutput

func (CapacityProviderAutoScalingGroupProviderArgs) ToCapacityProviderAutoScalingGroupProviderPtrOutputWithContext added in v1.19.0

func (i CapacityProviderAutoScalingGroupProviderArgs) ToCapacityProviderAutoScalingGroupProviderPtrOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderPtrOutput

type CapacityProviderAutoScalingGroupProviderInput added in v1.19.0

type CapacityProviderAutoScalingGroupProviderInput interface {
	pulumi.Input

	ToCapacityProviderAutoScalingGroupProviderOutput() CapacityProviderAutoScalingGroupProviderOutput
	ToCapacityProviderAutoScalingGroupProviderOutputWithContext(context.Context) CapacityProviderAutoScalingGroupProviderOutput
}

type CapacityProviderAutoScalingGroupProviderManagedScaling added in v1.19.0

type CapacityProviderAutoScalingGroupProviderManagedScaling struct {
	MaximumScalingStepSize *int    `pulumi:"maximumScalingStepSize"`
	MinimumScalingStepSize *int    `pulumi:"minimumScalingStepSize"`
	Status                 *string `pulumi:"status"`
	TargetCapacity         *int    `pulumi:"targetCapacity"`
}

type CapacityProviderAutoScalingGroupProviderManagedScalingArgs added in v1.19.0

type CapacityProviderAutoScalingGroupProviderManagedScalingArgs struct {
	MaximumScalingStepSize pulumi.IntPtrInput    `pulumi:"maximumScalingStepSize"`
	MinimumScalingStepSize pulumi.IntPtrInput    `pulumi:"minimumScalingStepSize"`
	Status                 pulumi.StringPtrInput `pulumi:"status"`
	TargetCapacity         pulumi.IntPtrInput    `pulumi:"targetCapacity"`
}

func (CapacityProviderAutoScalingGroupProviderManagedScalingArgs) ElementType added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingArgs) ToCapacityProviderAutoScalingGroupProviderManagedScalingOutput added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingArgs) ToCapacityProviderAutoScalingGroupProviderManagedScalingOutputWithContext added in v1.19.0

func (i CapacityProviderAutoScalingGroupProviderManagedScalingArgs) ToCapacityProviderAutoScalingGroupProviderManagedScalingOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderManagedScalingOutput

func (CapacityProviderAutoScalingGroupProviderManagedScalingArgs) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingArgs) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutputWithContext added in v1.19.0

func (i CapacityProviderAutoScalingGroupProviderManagedScalingArgs) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput

type CapacityProviderAutoScalingGroupProviderManagedScalingInput added in v1.19.0

type CapacityProviderAutoScalingGroupProviderManagedScalingInput interface {
	pulumi.Input

	ToCapacityProviderAutoScalingGroupProviderManagedScalingOutput() CapacityProviderAutoScalingGroupProviderManagedScalingOutput
	ToCapacityProviderAutoScalingGroupProviderManagedScalingOutputWithContext(context.Context) CapacityProviderAutoScalingGroupProviderManagedScalingOutput
}

type CapacityProviderAutoScalingGroupProviderManagedScalingOutput added in v1.19.0

type CapacityProviderAutoScalingGroupProviderManagedScalingOutput struct{ *pulumi.OutputState }

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) ElementType added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) MaximumScalingStepSize added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) MinimumScalingStepSize added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) Status added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) TargetCapacity added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingOutput added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingOutputWithContext added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderManagedScalingOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderManagedScalingOutput

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutputWithContext added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderManagedScalingOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput

type CapacityProviderAutoScalingGroupProviderManagedScalingPtrInput added in v1.19.0

type CapacityProviderAutoScalingGroupProviderManagedScalingPtrInput interface {
	pulumi.Input

	ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput() CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput
	ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutputWithContext(context.Context) CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput
}

type CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput added in v1.19.0

type CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput struct{ *pulumi.OutputState }

func (CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) Elem added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) ElementType added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) MaximumScalingStepSize added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) MinimumScalingStepSize added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) Status added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) TargetCapacity added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutputWithContext added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput) ToCapacityProviderAutoScalingGroupProviderManagedScalingPtrOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderManagedScalingPtrOutput

type CapacityProviderAutoScalingGroupProviderOutput added in v1.19.0

type CapacityProviderAutoScalingGroupProviderOutput struct{ *pulumi.OutputState }

func (CapacityProviderAutoScalingGroupProviderOutput) AutoScalingGroupArn added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderOutput) ElementType added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderOutput) ManagedScaling added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderOutput) ManagedTerminationProtection added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderOutput) ToCapacityProviderAutoScalingGroupProviderOutput added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderOutput) ToCapacityProviderAutoScalingGroupProviderOutput() CapacityProviderAutoScalingGroupProviderOutput

func (CapacityProviderAutoScalingGroupProviderOutput) ToCapacityProviderAutoScalingGroupProviderOutputWithContext added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderOutput) ToCapacityProviderAutoScalingGroupProviderOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderOutput

func (CapacityProviderAutoScalingGroupProviderOutput) ToCapacityProviderAutoScalingGroupProviderPtrOutput added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderOutput) ToCapacityProviderAutoScalingGroupProviderPtrOutput() CapacityProviderAutoScalingGroupProviderPtrOutput

func (CapacityProviderAutoScalingGroupProviderOutput) ToCapacityProviderAutoScalingGroupProviderPtrOutputWithContext added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderOutput) ToCapacityProviderAutoScalingGroupProviderPtrOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderPtrOutput

type CapacityProviderAutoScalingGroupProviderPtrInput added in v1.19.0

type CapacityProviderAutoScalingGroupProviderPtrInput interface {
	pulumi.Input

	ToCapacityProviderAutoScalingGroupProviderPtrOutput() CapacityProviderAutoScalingGroupProviderPtrOutput
	ToCapacityProviderAutoScalingGroupProviderPtrOutputWithContext(context.Context) CapacityProviderAutoScalingGroupProviderPtrOutput
}

type CapacityProviderAutoScalingGroupProviderPtrOutput added in v1.19.0

type CapacityProviderAutoScalingGroupProviderPtrOutput struct{ *pulumi.OutputState }

func (CapacityProviderAutoScalingGroupProviderPtrOutput) AutoScalingGroupArn added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderPtrOutput) Elem added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderPtrOutput) ElementType added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderPtrOutput) ManagedScaling added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderPtrOutput) ManagedTerminationProtection added in v1.19.0

func (CapacityProviderAutoScalingGroupProviderPtrOutput) ToCapacityProviderAutoScalingGroupProviderPtrOutput added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderPtrOutput) ToCapacityProviderAutoScalingGroupProviderPtrOutput() CapacityProviderAutoScalingGroupProviderPtrOutput

func (CapacityProviderAutoScalingGroupProviderPtrOutput) ToCapacityProviderAutoScalingGroupProviderPtrOutputWithContext added in v1.19.0

func (o CapacityProviderAutoScalingGroupProviderPtrOutput) ToCapacityProviderAutoScalingGroupProviderPtrOutputWithContext(ctx context.Context) CapacityProviderAutoScalingGroupProviderPtrOutput

type CapacityProviderState added in v1.16.0

type CapacityProviderState struct {
	// The Amazon Resource Name (ARN) that identifies the capacity provider.
	Arn pulumi.StringPtrInput
	// Nested argument defining the provider for the ECS auto scaling group. Defined below.
	AutoScalingGroupProvider CapacityProviderAutoScalingGroupProviderPtrInput
	// The name of the capacity provider.
	Name pulumi.StringPtrInput
	// Key-value mapping of resource tags.
	Tags pulumi.MapInput
}

func (CapacityProviderState) ElementType added in v1.19.0

func (CapacityProviderState) ElementType() reflect.Type

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// The Amazon Resource Name (ARN) that identifies the cluster
	Arn pulumi.StringOutput `pulumi:"arn"`
	// List of short names of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`.
	CapacityProviders pulumi.StringArrayOutput `pulumi:"capacityProviders"`
	// The capacity provider strategy to use by default for the cluster. Can be one or more.  Defined below.
	DefaultCapacityProviderStrategies ClusterDefaultCapacityProviderStrategyArrayOutput `pulumi:"defaultCapacityProviderStrategies"`
	// The name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
	Name pulumi.StringOutput `pulumi:"name"`
	// Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Defined below.
	Settings ClusterSettingArrayOutput `pulumi:"settings"`
	// Key-value mapping of resource tags
	Tags pulumi.MapOutput `pulumi:"tags"`
}

Provides an ECS cluster.

## setting

The `setting` configuration block supports the following:

* `name` - (Required) Name of the setting to manage. Valid values: `containerInsights`. * `value` - (Required) The value to assign to the setting. Value values are `enabled` and `disabled`.

## defaultCapacityProviderStrategy

The `defaultCapacityProviderStrategy` configuration block supports the following:

* `capacityProvider` - (Required) The short name of the capacity provider. * `weight` - (Optional) The relative percentage of the total number of launched tasks that should use the specified capacity provider. * `base` - (Optional) The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/ecs_cluster.html.markdown.

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

NewCluster registers a new resource with the given unique name, arguments, and options.

type ClusterArgs

type ClusterArgs struct {
	// List of short names of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`.
	CapacityProviders pulumi.StringArrayInput
	// The capacity provider strategy to use by default for the cluster. Can be one or more.  Defined below.
	DefaultCapacityProviderStrategies ClusterDefaultCapacityProviderStrategyArrayInput
	// The name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
	Name pulumi.StringPtrInput
	// Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Defined below.
	Settings ClusterSettingArrayInput
	// Key-value mapping of resource tags
	Tags pulumi.MapInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType added in v1.19.0

func (ClusterArgs) ElementType() reflect.Type

type ClusterDefaultCapacityProviderStrategy added in v1.19.0

type ClusterDefaultCapacityProviderStrategy struct {
	Base             *int   `pulumi:"base"`
	CapacityProvider string `pulumi:"capacityProvider"`
	Weight           *int   `pulumi:"weight"`
}

type ClusterDefaultCapacityProviderStrategyArgs added in v1.19.0

type ClusterDefaultCapacityProviderStrategyArgs struct {
	Base             pulumi.IntPtrInput `pulumi:"base"`
	CapacityProvider pulumi.StringInput `pulumi:"capacityProvider"`
	Weight           pulumi.IntPtrInput `pulumi:"weight"`
}

func (ClusterDefaultCapacityProviderStrategyArgs) ElementType added in v1.19.0

func (ClusterDefaultCapacityProviderStrategyArgs) ToClusterDefaultCapacityProviderStrategyOutput added in v1.19.0

func (i ClusterDefaultCapacityProviderStrategyArgs) ToClusterDefaultCapacityProviderStrategyOutput() ClusterDefaultCapacityProviderStrategyOutput

func (ClusterDefaultCapacityProviderStrategyArgs) ToClusterDefaultCapacityProviderStrategyOutputWithContext added in v1.19.0

func (i ClusterDefaultCapacityProviderStrategyArgs) ToClusterDefaultCapacityProviderStrategyOutputWithContext(ctx context.Context) ClusterDefaultCapacityProviderStrategyOutput

type ClusterDefaultCapacityProviderStrategyArray added in v1.19.0

type ClusterDefaultCapacityProviderStrategyArray []ClusterDefaultCapacityProviderStrategyInput

func (ClusterDefaultCapacityProviderStrategyArray) ElementType added in v1.19.0

func (ClusterDefaultCapacityProviderStrategyArray) ToClusterDefaultCapacityProviderStrategyArrayOutput added in v1.19.0

func (i ClusterDefaultCapacityProviderStrategyArray) ToClusterDefaultCapacityProviderStrategyArrayOutput() ClusterDefaultCapacityProviderStrategyArrayOutput

func (ClusterDefaultCapacityProviderStrategyArray) ToClusterDefaultCapacityProviderStrategyArrayOutputWithContext added in v1.19.0

func (i ClusterDefaultCapacityProviderStrategyArray) ToClusterDefaultCapacityProviderStrategyArrayOutputWithContext(ctx context.Context) ClusterDefaultCapacityProviderStrategyArrayOutput

type ClusterDefaultCapacityProviderStrategyArrayInput added in v1.19.0

type ClusterDefaultCapacityProviderStrategyArrayInput interface {
	pulumi.Input

	ToClusterDefaultCapacityProviderStrategyArrayOutput() ClusterDefaultCapacityProviderStrategyArrayOutput
	ToClusterDefaultCapacityProviderStrategyArrayOutputWithContext(context.Context) ClusterDefaultCapacityProviderStrategyArrayOutput
}

type ClusterDefaultCapacityProviderStrategyArrayOutput added in v1.19.0

type ClusterDefaultCapacityProviderStrategyArrayOutput struct{ *pulumi.OutputState }

func (ClusterDefaultCapacityProviderStrategyArrayOutput) ElementType added in v1.19.0

func (ClusterDefaultCapacityProviderStrategyArrayOutput) Index added in v1.19.0

func (ClusterDefaultCapacityProviderStrategyArrayOutput) ToClusterDefaultCapacityProviderStrategyArrayOutput added in v1.19.0

func (o ClusterDefaultCapacityProviderStrategyArrayOutput) ToClusterDefaultCapacityProviderStrategyArrayOutput() ClusterDefaultCapacityProviderStrategyArrayOutput

func (ClusterDefaultCapacityProviderStrategyArrayOutput) ToClusterDefaultCapacityProviderStrategyArrayOutputWithContext added in v1.19.0

func (o ClusterDefaultCapacityProviderStrategyArrayOutput) ToClusterDefaultCapacityProviderStrategyArrayOutputWithContext(ctx context.Context) ClusterDefaultCapacityProviderStrategyArrayOutput

type ClusterDefaultCapacityProviderStrategyInput added in v1.19.0

type ClusterDefaultCapacityProviderStrategyInput interface {
	pulumi.Input

	ToClusterDefaultCapacityProviderStrategyOutput() ClusterDefaultCapacityProviderStrategyOutput
	ToClusterDefaultCapacityProviderStrategyOutputWithContext(context.Context) ClusterDefaultCapacityProviderStrategyOutput
}

type ClusterDefaultCapacityProviderStrategyOutput added in v1.19.0

type ClusterDefaultCapacityProviderStrategyOutput struct{ *pulumi.OutputState }

func (ClusterDefaultCapacityProviderStrategyOutput) Base added in v1.19.0

func (ClusterDefaultCapacityProviderStrategyOutput) CapacityProvider added in v1.19.0

func (ClusterDefaultCapacityProviderStrategyOutput) ElementType added in v1.19.0

func (ClusterDefaultCapacityProviderStrategyOutput) ToClusterDefaultCapacityProviderStrategyOutput added in v1.19.0

func (o ClusterDefaultCapacityProviderStrategyOutput) ToClusterDefaultCapacityProviderStrategyOutput() ClusterDefaultCapacityProviderStrategyOutput

func (ClusterDefaultCapacityProviderStrategyOutput) ToClusterDefaultCapacityProviderStrategyOutputWithContext added in v1.19.0

func (o ClusterDefaultCapacityProviderStrategyOutput) ToClusterDefaultCapacityProviderStrategyOutputWithContext(ctx context.Context) ClusterDefaultCapacityProviderStrategyOutput

func (ClusterDefaultCapacityProviderStrategyOutput) Weight added in v1.19.0

type ClusterSetting added in v1.19.0

type ClusterSetting struct {
	// The name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
	Name  string `pulumi:"name"`
	Value string `pulumi:"value"`
}

type ClusterSettingArgs added in v1.19.0

type ClusterSettingArgs struct {
	// The name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
	Name  pulumi.StringInput `pulumi:"name"`
	Value pulumi.StringInput `pulumi:"value"`
}

func (ClusterSettingArgs) ElementType added in v1.19.0

func (ClusterSettingArgs) ElementType() reflect.Type

func (ClusterSettingArgs) ToClusterSettingOutput added in v1.19.0

func (i ClusterSettingArgs) ToClusterSettingOutput() ClusterSettingOutput

func (ClusterSettingArgs) ToClusterSettingOutputWithContext added in v1.19.0

func (i ClusterSettingArgs) ToClusterSettingOutputWithContext(ctx context.Context) ClusterSettingOutput

type ClusterSettingArray added in v1.19.0

type ClusterSettingArray []ClusterSettingInput

func (ClusterSettingArray) ElementType added in v1.19.0

func (ClusterSettingArray) ElementType() reflect.Type

func (ClusterSettingArray) ToClusterSettingArrayOutput added in v1.19.0

func (i ClusterSettingArray) ToClusterSettingArrayOutput() ClusterSettingArrayOutput

func (ClusterSettingArray) ToClusterSettingArrayOutputWithContext added in v1.19.0

func (i ClusterSettingArray) ToClusterSettingArrayOutputWithContext(ctx context.Context) ClusterSettingArrayOutput

type ClusterSettingArrayInput added in v1.19.0

type ClusterSettingArrayInput interface {
	pulumi.Input

	ToClusterSettingArrayOutput() ClusterSettingArrayOutput
	ToClusterSettingArrayOutputWithContext(context.Context) ClusterSettingArrayOutput
}

type ClusterSettingArrayOutput added in v1.19.0

type ClusterSettingArrayOutput struct{ *pulumi.OutputState }

func (ClusterSettingArrayOutput) ElementType added in v1.19.0

func (ClusterSettingArrayOutput) ElementType() reflect.Type

func (ClusterSettingArrayOutput) Index added in v1.19.0

func (ClusterSettingArrayOutput) ToClusterSettingArrayOutput added in v1.19.0

func (o ClusterSettingArrayOutput) ToClusterSettingArrayOutput() ClusterSettingArrayOutput

func (ClusterSettingArrayOutput) ToClusterSettingArrayOutputWithContext added in v1.19.0

func (o ClusterSettingArrayOutput) ToClusterSettingArrayOutputWithContext(ctx context.Context) ClusterSettingArrayOutput

type ClusterSettingInput added in v1.19.0

type ClusterSettingInput interface {
	pulumi.Input

	ToClusterSettingOutput() ClusterSettingOutput
	ToClusterSettingOutputWithContext(context.Context) ClusterSettingOutput
}

type ClusterSettingOutput added in v1.19.0

type ClusterSettingOutput struct{ *pulumi.OutputState }

func (ClusterSettingOutput) ElementType added in v1.19.0

func (ClusterSettingOutput) ElementType() reflect.Type

func (ClusterSettingOutput) Name added in v1.19.0

The name of the cluster (up to 255 letters, numbers, hyphens, and underscores)

func (ClusterSettingOutput) ToClusterSettingOutput added in v1.19.0

func (o ClusterSettingOutput) ToClusterSettingOutput() ClusterSettingOutput

func (ClusterSettingOutput) ToClusterSettingOutputWithContext added in v1.19.0

func (o ClusterSettingOutput) ToClusterSettingOutputWithContext(ctx context.Context) ClusterSettingOutput

func (ClusterSettingOutput) Value added in v1.19.0

type ClusterState

type ClusterState struct {
	// The Amazon Resource Name (ARN) that identifies the cluster
	Arn pulumi.StringPtrInput
	// List of short names of one or more capacity providers to associate with the cluster. Valid values also include `FARGATE` and `FARGATE_SPOT`.
	CapacityProviders pulumi.StringArrayInput
	// The capacity provider strategy to use by default for the cluster. Can be one or more.  Defined below.
	DefaultCapacityProviderStrategies ClusterDefaultCapacityProviderStrategyArrayInput
	// The name of the cluster (up to 255 letters, numbers, hyphens, and underscores)
	Name pulumi.StringPtrInput
	// Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster. Defined below.
	Settings ClusterSettingArrayInput
	// Key-value mapping of resource tags
	Tags pulumi.MapInput
}

func (ClusterState) ElementType added in v1.19.0

func (ClusterState) ElementType() reflect.Type

type GetClusterSetting added in v1.19.0

type GetClusterSetting struct {
	Name  string `pulumi:"name"`
	Value string `pulumi:"value"`
}

type GetClusterSettingArgs added in v1.19.0

type GetClusterSettingArgs struct {
	Name  pulumi.StringInput `pulumi:"name"`
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetClusterSettingArgs) ElementType added in v1.19.0

func (GetClusterSettingArgs) ElementType() reflect.Type

func (GetClusterSettingArgs) ToGetClusterSettingOutput added in v1.19.0

func (i GetClusterSettingArgs) ToGetClusterSettingOutput() GetClusterSettingOutput

func (GetClusterSettingArgs) ToGetClusterSettingOutputWithContext added in v1.19.0

func (i GetClusterSettingArgs) ToGetClusterSettingOutputWithContext(ctx context.Context) GetClusterSettingOutput

type GetClusterSettingArray added in v1.19.0

type GetClusterSettingArray []GetClusterSettingInput

func (GetClusterSettingArray) ElementType added in v1.19.0

func (GetClusterSettingArray) ElementType() reflect.Type

func (GetClusterSettingArray) ToGetClusterSettingArrayOutput added in v1.19.0

func (i GetClusterSettingArray) ToGetClusterSettingArrayOutput() GetClusterSettingArrayOutput

func (GetClusterSettingArray) ToGetClusterSettingArrayOutputWithContext added in v1.19.0

func (i GetClusterSettingArray) ToGetClusterSettingArrayOutputWithContext(ctx context.Context) GetClusterSettingArrayOutput

type GetClusterSettingArrayInput added in v1.19.0

type GetClusterSettingArrayInput interface {
	pulumi.Input

	ToGetClusterSettingArrayOutput() GetClusterSettingArrayOutput
	ToGetClusterSettingArrayOutputWithContext(context.Context) GetClusterSettingArrayOutput
}

type GetClusterSettingArrayOutput added in v1.19.0

type GetClusterSettingArrayOutput struct{ *pulumi.OutputState }

func (GetClusterSettingArrayOutput) ElementType added in v1.19.0

func (GetClusterSettingArrayOutput) Index added in v1.19.0

func (GetClusterSettingArrayOutput) ToGetClusterSettingArrayOutput added in v1.19.0

func (o GetClusterSettingArrayOutput) ToGetClusterSettingArrayOutput() GetClusterSettingArrayOutput

func (GetClusterSettingArrayOutput) ToGetClusterSettingArrayOutputWithContext added in v1.19.0

func (o GetClusterSettingArrayOutput) ToGetClusterSettingArrayOutputWithContext(ctx context.Context) GetClusterSettingArrayOutput

type GetClusterSettingInput added in v1.19.0

type GetClusterSettingInput interface {
	pulumi.Input

	ToGetClusterSettingOutput() GetClusterSettingOutput
	ToGetClusterSettingOutputWithContext(context.Context) GetClusterSettingOutput
}

type GetClusterSettingOutput added in v1.19.0

type GetClusterSettingOutput struct{ *pulumi.OutputState }

func (GetClusterSettingOutput) ElementType added in v1.19.0

func (GetClusterSettingOutput) ElementType() reflect.Type

func (GetClusterSettingOutput) Name added in v1.19.0

func (GetClusterSettingOutput) ToGetClusterSettingOutput added in v1.19.0

func (o GetClusterSettingOutput) ToGetClusterSettingOutput() GetClusterSettingOutput

func (GetClusterSettingOutput) ToGetClusterSettingOutputWithContext added in v1.19.0

func (o GetClusterSettingOutput) ToGetClusterSettingOutputWithContext(ctx context.Context) GetClusterSettingOutput

func (GetClusterSettingOutput) Value added in v1.19.0

type GetContainerDefinitionArgs

type GetContainerDefinitionArgs struct {
	// The name of the container definition
	ContainerName string `pulumi:"containerName"`
	// The ARN of the task definition which contains the container
	TaskDefinition string `pulumi:"taskDefinition"`
}

A collection of arguments for invoking getContainerDefinition.

type GetContainerDefinitionResult

type GetContainerDefinitionResult struct {
	ContainerName string `pulumi:"containerName"`
	// The CPU limit for this container definition
	Cpu int `pulumi:"cpu"`
	// Indicator if networking is disabled
	DisableNetworking bool `pulumi:"disableNetworking"`
	// Set docker labels
	DockerLabels map[string]string `pulumi:"dockerLabels"`
	// The environment in use
	Environment map[string]string `pulumi:"environment"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The docker image in use, including the digest
	Image string `pulumi:"image"`
	// The digest of the docker image in use
	ImageDigest string `pulumi:"imageDigest"`
	// The memory limit for this container definition
	Memory int `pulumi:"memory"`
	// The soft limit (in MiB) of memory to reserve for the container. When system memory is under contention, Docker attempts to keep the container memory to this soft limit
	MemoryReservation int    `pulumi:"memoryReservation"`
	TaskDefinition    string `pulumi:"taskDefinition"`
}

A collection of values returned by getContainerDefinition.

func GetContainerDefinition added in v1.19.0

func GetContainerDefinition(ctx *pulumi.Context, args *GetContainerDefinitionArgs, opts ...pulumi.InvokeOption) (*GetContainerDefinitionResult, error)

The ECS container definition data source allows access to details of a specific container within an AWS ECS service.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/ecs_container_definition.html.markdown.

type LookupClusterArgs added in v1.19.0

type LookupClusterArgs struct {
	// The name of the ECS Cluster
	ClusterName string `pulumi:"clusterName"`
}

A collection of arguments for invoking getCluster.

type LookupClusterResult added in v1.19.0

type LookupClusterResult struct {
	// The ARN of the ECS Cluster
	Arn         string `pulumi:"arn"`
	ClusterName string `pulumi:"clusterName"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The number of pending tasks for the ECS Cluster
	PendingTasksCount int `pulumi:"pendingTasksCount"`
	// The number of registered container instances for the ECS Cluster
	RegisteredContainerInstancesCount int `pulumi:"registeredContainerInstancesCount"`
	// The number of running tasks for the ECS Cluster
	RunningTasksCount int `pulumi:"runningTasksCount"`
	// The settings associated with the ECS Cluster.
	Settings []GetClusterSetting `pulumi:"settings"`
	// The status of the ECS Cluster
	Status string `pulumi:"status"`
}

A collection of values returned by getCluster.

func LookupCluster

func LookupCluster(ctx *pulumi.Context, args *LookupClusterArgs, opts ...pulumi.InvokeOption) (*LookupClusterResult, error)

The ECS Cluster data source allows access to details of a specific cluster within an AWS ECS service.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/ecs_cluster.html.markdown.

type LookupServiceArgs added in v1.19.0

type LookupServiceArgs struct {
	// The arn of the ECS Cluster
	ClusterArn string `pulumi:"clusterArn"`
	// The name of the ECS Service
	ServiceName string `pulumi:"serviceName"`
}

A collection of arguments for invoking getService.

type LookupServiceResult added in v1.19.0

type LookupServiceResult struct {
	// The ARN of the ECS Service
	Arn        string `pulumi:"arn"`
	ClusterArn string `pulumi:"clusterArn"`
	// The number of tasks for the ECS Service
	DesiredCount int `pulumi:"desiredCount"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The launch type for the ECS Service
	LaunchType string `pulumi:"launchType"`
	// The scheduling strategy for the ECS Service
	SchedulingStrategy string `pulumi:"schedulingStrategy"`
	ServiceName        string `pulumi:"serviceName"`
	// The family for the latest ACTIVE revision
	TaskDefinition string `pulumi:"taskDefinition"`
}

A collection of values returned by getService.

func LookupService

func LookupService(ctx *pulumi.Context, args *LookupServiceArgs, opts ...pulumi.InvokeOption) (*LookupServiceResult, error)

The ECS Service data source allows access to details of a specific Service within a AWS ECS Cluster.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/ecs_service.html.markdown.

type LookupTaskDefinitionArgs added in v1.19.0

type LookupTaskDefinitionArgs struct {
	// The family for the latest ACTIVE revision, family and revision (family:revision) for a specific revision in the family, the ARN of the task definition to access to.
	TaskDefinition string `pulumi:"taskDefinition"`
}

A collection of arguments for invoking getTaskDefinition.

type LookupTaskDefinitionResult added in v1.19.0

type LookupTaskDefinitionResult struct {
	// The family of this task definition
	Family string `pulumi:"family"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The Docker networking mode to use for the containers in this task.
	NetworkMode string `pulumi:"networkMode"`
	// The revision of this task definition
	Revision int `pulumi:"revision"`
	// The status of this task definition
	Status         string `pulumi:"status"`
	TaskDefinition string `pulumi:"taskDefinition"`
	// The ARN of the IAM role that containers in this task can assume
	TaskRoleArn string `pulumi:"taskRoleArn"`
}

A collection of values returned by getTaskDefinition.

func LookupTaskDefinition

func LookupTaskDefinition(ctx *pulumi.Context, args *LookupTaskDefinitionArgs, opts ...pulumi.InvokeOption) (*LookupTaskDefinitionResult, error)

The ECS task definition data source allows access to details of a specific AWS ECS task definition.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/ecs_task_definition.html.markdown.

type Service

type Service struct {
	pulumi.CustomResourceState

	// The capacity provider strategy to use for the service. Can be one or more.  Defined below.
	CapacityProviderStrategies ServiceCapacityProviderStrategyArrayOutput `pulumi:"capacityProviderStrategies"`
	// ARN of an ECS cluster
	Cluster pulumi.StringOutput `pulumi:"cluster"`
	// Configuration block containing deployment controller configuration. Defined below.
	DeploymentController ServiceDeploymentControllerPtrOutput `pulumi:"deploymentController"`
	// The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. Not valid when using the `DAEMON` scheduling strategy.
	DeploymentMaximumPercent pulumi.IntPtrOutput `pulumi:"deploymentMaximumPercent"`
	// The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment.
	DeploymentMinimumHealthyPercent pulumi.IntPtrOutput `pulumi:"deploymentMinimumHealthyPercent"`
	// The number of instances of the task definition to place and keep running. Defaults to 0. Do not specify if using the `DAEMON` scheduling strategy.
	DesiredCount pulumi.IntPtrOutput `pulumi:"desiredCount"`
	// Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
	EnableEcsManagedTags pulumi.BoolPtrOutput `pulumi:"enableEcsManagedTags"`
	// Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers.
	HealthCheckGracePeriodSeconds pulumi.IntPtrOutput `pulumi:"healthCheckGracePeriodSeconds"`
	// ARN of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is required if you are using a load balancer with your service, but only if your task definition does not use the `awsvpc` network mode. If using `awsvpc` network mode, do not specify this role. If your account has already created the Amazon ECS service-linked role, that role is used by default for your service unless you specify a role here.
	IamRole pulumi.StringOutput `pulumi:"iamRole"`
	// The launch type on which to run your service. The valid values are `EC2` and `FARGATE`. Defaults to `EC2`.
	LaunchType pulumi.StringOutput `pulumi:"launchType"`
	// A load balancer block. Load balancers documented below.
	LoadBalancers ServiceLoadBalancerArrayOutput `pulumi:"loadBalancers"`
	// The name of the service (up to 255 letters, numbers, hyphens, and underscores)
	Name pulumi.StringOutput `pulumi:"name"`
	// The network configuration for the service. This parameter is required for task definitions that use the `awsvpc` network mode to receive their own Elastic Network Interface, and it is not supported for other network modes.
	NetworkConfiguration ServiceNetworkConfigurationPtrOutput `pulumi:"networkConfiguration"`
	// Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. The maximum number of `orderedPlacementStrategy` blocks is `5`. Defined below.
	OrderedPlacementStrategies ServiceOrderedPlacementStrategyArrayOutput `pulumi:"orderedPlacementStrategies"`
	// rules that are taken into consideration during task placement. Maximum number of
	// `placementConstraints` is `10`. Defined below.
	PlacementConstraints ServicePlacementConstraintArrayOutput `pulumi:"placementConstraints"`
	// The platform version on which to run your service. Only applicable for `launchType` set to `FARGATE`. Defaults to `LATEST`. More information about Fargate platform versions can be found in the [AWS ECS User Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
	PlatformVersion pulumi.StringOutput `pulumi:"platformVersion"`
	// Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are `SERVICE` and `TASK_DEFINITION`.
	PropagateTags pulumi.StringPtrOutput `pulumi:"propagateTags"`
	// The scheduling strategy to use for the service. The valid values are `REPLICA` and `DAEMON`. Defaults to `REPLICA`. Note that [*Fargate tasks do not support the `DAEMON` scheduling strategy*](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html).
	SchedulingStrategy pulumi.StringPtrOutput `pulumi:"schedulingStrategy"`
	// The service discovery registries for the service. The maximum number of `serviceRegistries` blocks is `1`.
	ServiceRegistries ServiceServiceRegistriesPtrOutput `pulumi:"serviceRegistries"`
	// Key-value mapping of resource tags
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The family and revision (`family:revision`) or full ARN of the task definition that you want to run in your service.
	TaskDefinition pulumi.StringOutput `pulumi:"taskDefinition"`
	// If `true`, this provider will wait for the service to reach a steady state (like [`aws ecs wait services-stable`](https://docs.aws.amazon.com/cli/latest/reference/ecs/wait/services-stable.html)) before continuing. Default `false`.
	WaitForSteadyState pulumi.BoolPtrOutput `pulumi:"waitForSteadyState"`
}

> **Note:** To prevent a race condition during service deletion, make sure to set `dependsOn` to the related `iam.RolePolicy`; otherwise, the policy may be destroyed too soon and the ECS service will then get stuck in the `DRAINING` state.

Provides an ECS service - effectively a task that is expected to run until an error occurs or a user terminates it (typically a webserver or a database).

See [ECS Services section in AWS developer guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html).

## capacityProviderStrategy

The `capacityProviderStrategy` configuration block supports the following:

* `capacityProvider` - (Required) The short name or full Amazon Resource Name (ARN) of the capacity provider. * `weight` - (Required) The relative percentage of the total number of launched tasks that should use the specified capacity provider. * `base` - (Optional) The number of tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined.

## deploymentController

The `deploymentController` configuration block supports the following:

* `type` - (Optional) Type of deployment controller. Valid values: `CODE_DEPLOY`, `ECS`. Default: `ECS`.

## loadBalancer

`loadBalancer` supports the following:

* `elbName` - (Required for ELB Classic) The name of the ELB (Classic) to associate with the service. * `targetGroupArn` - (Required for ALB/NLB) The ARN of the Load Balancer target group to associate with the service. * `containerName` - (Required) The name of the container to associate with the load balancer (as it appears in a container definition). * `containerPort` - (Required) The port on the container to associate with the load balancer.

> **Version note:** Multiple `loadBalancer` configuration block support was added in version 2.22.0 of the provider. This allows configuration of [ECS service support for multiple target groups](https://aws.amazon.com/about-aws/whats-new/2019/07/amazon-ecs-services-now-support-multiple-load-balancer-target-groups/).

## orderedPlacementStrategy

`orderedPlacementStrategy` supports the following:

  • `type` - (Required) The type of placement strategy. Must be one of: `binpack`, `random`, or `spread`
  • `field` - (Optional) For the `spread` placement strategy, valid values are `instanceId` (or `host`, which has the same effect), or any platform or custom attribute that is applied to a container instance. For the `binpack` type, valid values are `memory` and `cpu`. For the `random` type, this attribute is not needed. For more information, see [Placement Strategy](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PlacementStrategy.html).

> **Note:** for `spread`, `host` and `instanceId` will be normalized, by AWS, to be `instanceId`. This means the statefile will show `instanceId` but your config will differ if you use `host`.

## placementConstraints

`placementConstraints` support the following:

* `type` - (Required) The type of constraint. The only valid values at this time are `memberOf` and `distinctInstance`. * `expression` - (Optional) Cluster Query Language expression to apply to the constraint. Does not need to be specified for the `distinctInstance` type. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html).

## networkConfiguration

`networkConfiguration` support the following:

* `subnets` - (Required) The subnets associated with the task or service. * `securityGroups` - (Optional) The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. * `assignPublicIp` - (Optional) Assign a public IP address to the ENI (Fargate launch type only). Valid values are `true` or `false`. Default `false`.

For more information, see [Task Networking](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html)

## serviceRegistries

`serviceRegistries` support the following:

* `registryArn` - (Required) The ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`servicediscovery.Service`). For more information, see Service(https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html) * `port` - (Optional) The port value used if your Service Discovery service specified an SRV record. * `containerPort` - (Optional) The port value, already specified in the task definition, to be used for your service discovery service. * `containerName` - (Optional) The container name value, already specified in the task definition, to be used for your service discovery service.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/ecs_service.html.markdown.

func GetService

func GetService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServiceState, opts ...pulumi.ResourceOption) (*Service, error)

GetService gets an existing Service resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewService

func NewService(ctx *pulumi.Context,
	name string, args *ServiceArgs, opts ...pulumi.ResourceOption) (*Service, error)

NewService registers a new resource with the given unique name, arguments, and options.

type ServiceArgs

type ServiceArgs struct {
	// The capacity provider strategy to use for the service. Can be one or more.  Defined below.
	CapacityProviderStrategies ServiceCapacityProviderStrategyArrayInput
	// ARN of an ECS cluster
	Cluster pulumi.StringPtrInput
	// Configuration block containing deployment controller configuration. Defined below.
	DeploymentController ServiceDeploymentControllerPtrInput
	// The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. Not valid when using the `DAEMON` scheduling strategy.
	DeploymentMaximumPercent pulumi.IntPtrInput
	// The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment.
	DeploymentMinimumHealthyPercent pulumi.IntPtrInput
	// The number of instances of the task definition to place and keep running. Defaults to 0. Do not specify if using the `DAEMON` scheduling strategy.
	DesiredCount pulumi.IntPtrInput
	// Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
	EnableEcsManagedTags pulumi.BoolPtrInput
	// Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers.
	HealthCheckGracePeriodSeconds pulumi.IntPtrInput
	// ARN of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is required if you are using a load balancer with your service, but only if your task definition does not use the `awsvpc` network mode. If using `awsvpc` network mode, do not specify this role. If your account has already created the Amazon ECS service-linked role, that role is used by default for your service unless you specify a role here.
	IamRole pulumi.StringPtrInput
	// The launch type on which to run your service. The valid values are `EC2` and `FARGATE`. Defaults to `EC2`.
	LaunchType pulumi.StringPtrInput
	// A load balancer block. Load balancers documented below.
	LoadBalancers ServiceLoadBalancerArrayInput
	// The name of the service (up to 255 letters, numbers, hyphens, and underscores)
	Name pulumi.StringPtrInput
	// The network configuration for the service. This parameter is required for task definitions that use the `awsvpc` network mode to receive their own Elastic Network Interface, and it is not supported for other network modes.
	NetworkConfiguration ServiceNetworkConfigurationPtrInput
	// Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. The maximum number of `orderedPlacementStrategy` blocks is `5`. Defined below.
	OrderedPlacementStrategies ServiceOrderedPlacementStrategyArrayInput
	// rules that are taken into consideration during task placement. Maximum number of
	// `placementConstraints` is `10`. Defined below.
	PlacementConstraints ServicePlacementConstraintArrayInput
	// The platform version on which to run your service. Only applicable for `launchType` set to `FARGATE`. Defaults to `LATEST`. More information about Fargate platform versions can be found in the [AWS ECS User Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
	PlatformVersion pulumi.StringPtrInput
	// Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are `SERVICE` and `TASK_DEFINITION`.
	PropagateTags pulumi.StringPtrInput
	// The scheduling strategy to use for the service. The valid values are `REPLICA` and `DAEMON`. Defaults to `REPLICA`. Note that [*Fargate tasks do not support the `DAEMON` scheduling strategy*](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html).
	SchedulingStrategy pulumi.StringPtrInput
	// The service discovery registries for the service. The maximum number of `serviceRegistries` blocks is `1`.
	ServiceRegistries ServiceServiceRegistriesPtrInput
	// Key-value mapping of resource tags
	Tags pulumi.MapInput
	// The family and revision (`family:revision`) or full ARN of the task definition that you want to run in your service.
	TaskDefinition pulumi.StringInput
	// If `true`, this provider will wait for the service to reach a steady state (like [`aws ecs wait services-stable`](https://docs.aws.amazon.com/cli/latest/reference/ecs/wait/services-stable.html)) before continuing. Default `false`.
	WaitForSteadyState pulumi.BoolPtrInput
}

The set of arguments for constructing a Service resource.

func (ServiceArgs) ElementType added in v1.19.0

func (ServiceArgs) ElementType() reflect.Type

type ServiceCapacityProviderStrategy added in v1.19.0

type ServiceCapacityProviderStrategy struct {
	Base             *int   `pulumi:"base"`
	CapacityProvider string `pulumi:"capacityProvider"`
	Weight           *int   `pulumi:"weight"`
}

type ServiceCapacityProviderStrategyArgs added in v1.19.0

type ServiceCapacityProviderStrategyArgs struct {
	Base             pulumi.IntPtrInput `pulumi:"base"`
	CapacityProvider pulumi.StringInput `pulumi:"capacityProvider"`
	Weight           pulumi.IntPtrInput `pulumi:"weight"`
}

func (ServiceCapacityProviderStrategyArgs) ElementType added in v1.19.0

func (ServiceCapacityProviderStrategyArgs) ToServiceCapacityProviderStrategyOutput added in v1.19.0

func (i ServiceCapacityProviderStrategyArgs) ToServiceCapacityProviderStrategyOutput() ServiceCapacityProviderStrategyOutput

func (ServiceCapacityProviderStrategyArgs) ToServiceCapacityProviderStrategyOutputWithContext added in v1.19.0

func (i ServiceCapacityProviderStrategyArgs) ToServiceCapacityProviderStrategyOutputWithContext(ctx context.Context) ServiceCapacityProviderStrategyOutput

type ServiceCapacityProviderStrategyArray added in v1.19.0

type ServiceCapacityProviderStrategyArray []ServiceCapacityProviderStrategyInput

func (ServiceCapacityProviderStrategyArray) ElementType added in v1.19.0

func (ServiceCapacityProviderStrategyArray) ToServiceCapacityProviderStrategyArrayOutput added in v1.19.0

func (i ServiceCapacityProviderStrategyArray) ToServiceCapacityProviderStrategyArrayOutput() ServiceCapacityProviderStrategyArrayOutput

func (ServiceCapacityProviderStrategyArray) ToServiceCapacityProviderStrategyArrayOutputWithContext added in v1.19.0

func (i ServiceCapacityProviderStrategyArray) ToServiceCapacityProviderStrategyArrayOutputWithContext(ctx context.Context) ServiceCapacityProviderStrategyArrayOutput

type ServiceCapacityProviderStrategyArrayInput added in v1.19.0

type ServiceCapacityProviderStrategyArrayInput interface {
	pulumi.Input

	ToServiceCapacityProviderStrategyArrayOutput() ServiceCapacityProviderStrategyArrayOutput
	ToServiceCapacityProviderStrategyArrayOutputWithContext(context.Context) ServiceCapacityProviderStrategyArrayOutput
}

type ServiceCapacityProviderStrategyArrayOutput added in v1.19.0

type ServiceCapacityProviderStrategyArrayOutput struct{ *pulumi.OutputState }

func (ServiceCapacityProviderStrategyArrayOutput) ElementType added in v1.19.0

func (ServiceCapacityProviderStrategyArrayOutput) Index added in v1.19.0

func (ServiceCapacityProviderStrategyArrayOutput) ToServiceCapacityProviderStrategyArrayOutput added in v1.19.0

func (o ServiceCapacityProviderStrategyArrayOutput) ToServiceCapacityProviderStrategyArrayOutput() ServiceCapacityProviderStrategyArrayOutput

func (ServiceCapacityProviderStrategyArrayOutput) ToServiceCapacityProviderStrategyArrayOutputWithContext added in v1.19.0

func (o ServiceCapacityProviderStrategyArrayOutput) ToServiceCapacityProviderStrategyArrayOutputWithContext(ctx context.Context) ServiceCapacityProviderStrategyArrayOutput

type ServiceCapacityProviderStrategyInput added in v1.19.0

type ServiceCapacityProviderStrategyInput interface {
	pulumi.Input

	ToServiceCapacityProviderStrategyOutput() ServiceCapacityProviderStrategyOutput
	ToServiceCapacityProviderStrategyOutputWithContext(context.Context) ServiceCapacityProviderStrategyOutput
}

type ServiceCapacityProviderStrategyOutput added in v1.19.0

type ServiceCapacityProviderStrategyOutput struct{ *pulumi.OutputState }

func (ServiceCapacityProviderStrategyOutput) Base added in v1.19.0

func (ServiceCapacityProviderStrategyOutput) CapacityProvider added in v1.19.0

func (ServiceCapacityProviderStrategyOutput) ElementType added in v1.19.0

func (ServiceCapacityProviderStrategyOutput) ToServiceCapacityProviderStrategyOutput added in v1.19.0

func (o ServiceCapacityProviderStrategyOutput) ToServiceCapacityProviderStrategyOutput() ServiceCapacityProviderStrategyOutput

func (ServiceCapacityProviderStrategyOutput) ToServiceCapacityProviderStrategyOutputWithContext added in v1.19.0

func (o ServiceCapacityProviderStrategyOutput) ToServiceCapacityProviderStrategyOutputWithContext(ctx context.Context) ServiceCapacityProviderStrategyOutput

func (ServiceCapacityProviderStrategyOutput) Weight added in v1.19.0

type ServiceDeploymentController added in v1.19.0

type ServiceDeploymentController struct {
	Type *string `pulumi:"type"`
}

type ServiceDeploymentControllerArgs added in v1.19.0

type ServiceDeploymentControllerArgs struct {
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (ServiceDeploymentControllerArgs) ElementType added in v1.19.0

func (ServiceDeploymentControllerArgs) ToServiceDeploymentControllerOutput added in v1.19.0

func (i ServiceDeploymentControllerArgs) ToServiceDeploymentControllerOutput() ServiceDeploymentControllerOutput

func (ServiceDeploymentControllerArgs) ToServiceDeploymentControllerOutputWithContext added in v1.19.0

func (i ServiceDeploymentControllerArgs) ToServiceDeploymentControllerOutputWithContext(ctx context.Context) ServiceDeploymentControllerOutput

func (ServiceDeploymentControllerArgs) ToServiceDeploymentControllerPtrOutput added in v1.19.0

func (i ServiceDeploymentControllerArgs) ToServiceDeploymentControllerPtrOutput() ServiceDeploymentControllerPtrOutput

func (ServiceDeploymentControllerArgs) ToServiceDeploymentControllerPtrOutputWithContext added in v1.19.0

func (i ServiceDeploymentControllerArgs) ToServiceDeploymentControllerPtrOutputWithContext(ctx context.Context) ServiceDeploymentControllerPtrOutput

type ServiceDeploymentControllerInput added in v1.19.0

type ServiceDeploymentControllerInput interface {
	pulumi.Input

	ToServiceDeploymentControllerOutput() ServiceDeploymentControllerOutput
	ToServiceDeploymentControllerOutputWithContext(context.Context) ServiceDeploymentControllerOutput
}

type ServiceDeploymentControllerOutput added in v1.19.0

type ServiceDeploymentControllerOutput struct{ *pulumi.OutputState }

func (ServiceDeploymentControllerOutput) ElementType added in v1.19.0

func (ServiceDeploymentControllerOutput) ToServiceDeploymentControllerOutput added in v1.19.0

func (o ServiceDeploymentControllerOutput) ToServiceDeploymentControllerOutput() ServiceDeploymentControllerOutput

func (ServiceDeploymentControllerOutput) ToServiceDeploymentControllerOutputWithContext added in v1.19.0

func (o ServiceDeploymentControllerOutput) ToServiceDeploymentControllerOutputWithContext(ctx context.Context) ServiceDeploymentControllerOutput

func (ServiceDeploymentControllerOutput) ToServiceDeploymentControllerPtrOutput added in v1.19.0

func (o ServiceDeploymentControllerOutput) ToServiceDeploymentControllerPtrOutput() ServiceDeploymentControllerPtrOutput

func (ServiceDeploymentControllerOutput) ToServiceDeploymentControllerPtrOutputWithContext added in v1.19.0

func (o ServiceDeploymentControllerOutput) ToServiceDeploymentControllerPtrOutputWithContext(ctx context.Context) ServiceDeploymentControllerPtrOutput

func (ServiceDeploymentControllerOutput) Type added in v1.19.0

type ServiceDeploymentControllerPtrInput added in v1.19.0

type ServiceDeploymentControllerPtrInput interface {
	pulumi.Input

	ToServiceDeploymentControllerPtrOutput() ServiceDeploymentControllerPtrOutput
	ToServiceDeploymentControllerPtrOutputWithContext(context.Context) ServiceDeploymentControllerPtrOutput
}

func ServiceDeploymentControllerPtr added in v1.19.0

type ServiceDeploymentControllerPtrOutput added in v1.19.0

type ServiceDeploymentControllerPtrOutput struct{ *pulumi.OutputState }

func (ServiceDeploymentControllerPtrOutput) Elem added in v1.19.0

func (ServiceDeploymentControllerPtrOutput) ElementType added in v1.19.0

func (ServiceDeploymentControllerPtrOutput) ToServiceDeploymentControllerPtrOutput added in v1.19.0

func (o ServiceDeploymentControllerPtrOutput) ToServiceDeploymentControllerPtrOutput() ServiceDeploymentControllerPtrOutput

func (ServiceDeploymentControllerPtrOutput) ToServiceDeploymentControllerPtrOutputWithContext added in v1.19.0

func (o ServiceDeploymentControllerPtrOutput) ToServiceDeploymentControllerPtrOutputWithContext(ctx context.Context) ServiceDeploymentControllerPtrOutput

func (ServiceDeploymentControllerPtrOutput) Type added in v1.19.0

type ServiceLoadBalancer added in v1.19.0

type ServiceLoadBalancer struct {
	ContainerName  string  `pulumi:"containerName"`
	ContainerPort  int     `pulumi:"containerPort"`
	ElbName        *string `pulumi:"elbName"`
	TargetGroupArn *string `pulumi:"targetGroupArn"`
}

type ServiceLoadBalancerArgs added in v1.19.0

type ServiceLoadBalancerArgs struct {
	ContainerName  pulumi.StringInput    `pulumi:"containerName"`
	ContainerPort  pulumi.IntInput       `pulumi:"containerPort"`
	ElbName        pulumi.StringPtrInput `pulumi:"elbName"`
	TargetGroupArn pulumi.StringPtrInput `pulumi:"targetGroupArn"`
}

func (ServiceLoadBalancerArgs) ElementType added in v1.19.0

func (ServiceLoadBalancerArgs) ElementType() reflect.Type

func (ServiceLoadBalancerArgs) ToServiceLoadBalancerOutput added in v1.19.0

func (i ServiceLoadBalancerArgs) ToServiceLoadBalancerOutput() ServiceLoadBalancerOutput

func (ServiceLoadBalancerArgs) ToServiceLoadBalancerOutputWithContext added in v1.19.0

func (i ServiceLoadBalancerArgs) ToServiceLoadBalancerOutputWithContext(ctx context.Context) ServiceLoadBalancerOutput

type ServiceLoadBalancerArray added in v1.19.0

type ServiceLoadBalancerArray []ServiceLoadBalancerInput

func (ServiceLoadBalancerArray) ElementType added in v1.19.0

func (ServiceLoadBalancerArray) ElementType() reflect.Type

func (ServiceLoadBalancerArray) ToServiceLoadBalancerArrayOutput added in v1.19.0

func (i ServiceLoadBalancerArray) ToServiceLoadBalancerArrayOutput() ServiceLoadBalancerArrayOutput

func (ServiceLoadBalancerArray) ToServiceLoadBalancerArrayOutputWithContext added in v1.19.0

func (i ServiceLoadBalancerArray) ToServiceLoadBalancerArrayOutputWithContext(ctx context.Context) ServiceLoadBalancerArrayOutput

type ServiceLoadBalancerArrayInput added in v1.19.0

type ServiceLoadBalancerArrayInput interface {
	pulumi.Input

	ToServiceLoadBalancerArrayOutput() ServiceLoadBalancerArrayOutput
	ToServiceLoadBalancerArrayOutputWithContext(context.Context) ServiceLoadBalancerArrayOutput
}

type ServiceLoadBalancerArrayOutput added in v1.19.0

type ServiceLoadBalancerArrayOutput struct{ *pulumi.OutputState }

func (ServiceLoadBalancerArrayOutput) ElementType added in v1.19.0

func (ServiceLoadBalancerArrayOutput) Index added in v1.19.0

func (ServiceLoadBalancerArrayOutput) ToServiceLoadBalancerArrayOutput added in v1.19.0

func (o ServiceLoadBalancerArrayOutput) ToServiceLoadBalancerArrayOutput() ServiceLoadBalancerArrayOutput

func (ServiceLoadBalancerArrayOutput) ToServiceLoadBalancerArrayOutputWithContext added in v1.19.0

func (o ServiceLoadBalancerArrayOutput) ToServiceLoadBalancerArrayOutputWithContext(ctx context.Context) ServiceLoadBalancerArrayOutput

type ServiceLoadBalancerInput added in v1.19.0

type ServiceLoadBalancerInput interface {
	pulumi.Input

	ToServiceLoadBalancerOutput() ServiceLoadBalancerOutput
	ToServiceLoadBalancerOutputWithContext(context.Context) ServiceLoadBalancerOutput
}

type ServiceLoadBalancerOutput added in v1.19.0

type ServiceLoadBalancerOutput struct{ *pulumi.OutputState }

func (ServiceLoadBalancerOutput) ContainerName added in v1.19.0

func (o ServiceLoadBalancerOutput) ContainerName() pulumi.StringOutput

func (ServiceLoadBalancerOutput) ContainerPort added in v1.19.0

func (o ServiceLoadBalancerOutput) ContainerPort() pulumi.IntOutput

func (ServiceLoadBalancerOutput) ElbName added in v1.19.0

func (ServiceLoadBalancerOutput) ElementType added in v1.19.0

func (ServiceLoadBalancerOutput) ElementType() reflect.Type

func (ServiceLoadBalancerOutput) TargetGroupArn added in v1.19.0

func (ServiceLoadBalancerOutput) ToServiceLoadBalancerOutput added in v1.19.0

func (o ServiceLoadBalancerOutput) ToServiceLoadBalancerOutput() ServiceLoadBalancerOutput

func (ServiceLoadBalancerOutput) ToServiceLoadBalancerOutputWithContext added in v1.19.0

func (o ServiceLoadBalancerOutput) ToServiceLoadBalancerOutputWithContext(ctx context.Context) ServiceLoadBalancerOutput

type ServiceNetworkConfiguration added in v1.19.0

type ServiceNetworkConfiguration struct {
	AssignPublicIp *bool    `pulumi:"assignPublicIp"`
	SecurityGroups []string `pulumi:"securityGroups"`
	Subnets        []string `pulumi:"subnets"`
}

type ServiceNetworkConfigurationArgs added in v1.19.0

type ServiceNetworkConfigurationArgs struct {
	AssignPublicIp pulumi.BoolPtrInput     `pulumi:"assignPublicIp"`
	SecurityGroups pulumi.StringArrayInput `pulumi:"securityGroups"`
	Subnets        pulumi.StringArrayInput `pulumi:"subnets"`
}

func (ServiceNetworkConfigurationArgs) ElementType added in v1.19.0

func (ServiceNetworkConfigurationArgs) ToServiceNetworkConfigurationOutput added in v1.19.0

func (i ServiceNetworkConfigurationArgs) ToServiceNetworkConfigurationOutput() ServiceNetworkConfigurationOutput

func (ServiceNetworkConfigurationArgs) ToServiceNetworkConfigurationOutputWithContext added in v1.19.0

func (i ServiceNetworkConfigurationArgs) ToServiceNetworkConfigurationOutputWithContext(ctx context.Context) ServiceNetworkConfigurationOutput

func (ServiceNetworkConfigurationArgs) ToServiceNetworkConfigurationPtrOutput added in v1.19.0

func (i ServiceNetworkConfigurationArgs) ToServiceNetworkConfigurationPtrOutput() ServiceNetworkConfigurationPtrOutput

func (ServiceNetworkConfigurationArgs) ToServiceNetworkConfigurationPtrOutputWithContext added in v1.19.0

func (i ServiceNetworkConfigurationArgs) ToServiceNetworkConfigurationPtrOutputWithContext(ctx context.Context) ServiceNetworkConfigurationPtrOutput

type ServiceNetworkConfigurationInput added in v1.19.0

type ServiceNetworkConfigurationInput interface {
	pulumi.Input

	ToServiceNetworkConfigurationOutput() ServiceNetworkConfigurationOutput
	ToServiceNetworkConfigurationOutputWithContext(context.Context) ServiceNetworkConfigurationOutput
}

type ServiceNetworkConfigurationOutput added in v1.19.0

type ServiceNetworkConfigurationOutput struct{ *pulumi.OutputState }

func (ServiceNetworkConfigurationOutput) AssignPublicIp added in v1.19.0

func (ServiceNetworkConfigurationOutput) ElementType added in v1.19.0

func (ServiceNetworkConfigurationOutput) SecurityGroups added in v1.19.0

func (ServiceNetworkConfigurationOutput) Subnets added in v1.19.0

func (ServiceNetworkConfigurationOutput) ToServiceNetworkConfigurationOutput added in v1.19.0

func (o ServiceNetworkConfigurationOutput) ToServiceNetworkConfigurationOutput() ServiceNetworkConfigurationOutput

func (ServiceNetworkConfigurationOutput) ToServiceNetworkConfigurationOutputWithContext added in v1.19.0

func (o ServiceNetworkConfigurationOutput) ToServiceNetworkConfigurationOutputWithContext(ctx context.Context) ServiceNetworkConfigurationOutput

func (ServiceNetworkConfigurationOutput) ToServiceNetworkConfigurationPtrOutput added in v1.19.0

func (o ServiceNetworkConfigurationOutput) ToServiceNetworkConfigurationPtrOutput() ServiceNetworkConfigurationPtrOutput

func (ServiceNetworkConfigurationOutput) ToServiceNetworkConfigurationPtrOutputWithContext added in v1.19.0

func (o ServiceNetworkConfigurationOutput) ToServiceNetworkConfigurationPtrOutputWithContext(ctx context.Context) ServiceNetworkConfigurationPtrOutput

type ServiceNetworkConfigurationPtrInput added in v1.19.0

type ServiceNetworkConfigurationPtrInput interface {
	pulumi.Input

	ToServiceNetworkConfigurationPtrOutput() ServiceNetworkConfigurationPtrOutput
	ToServiceNetworkConfigurationPtrOutputWithContext(context.Context) ServiceNetworkConfigurationPtrOutput
}

func ServiceNetworkConfigurationPtr added in v1.19.0

type ServiceNetworkConfigurationPtrOutput added in v1.19.0

type ServiceNetworkConfigurationPtrOutput struct{ *pulumi.OutputState }

func (ServiceNetworkConfigurationPtrOutput) AssignPublicIp added in v1.19.0

func (ServiceNetworkConfigurationPtrOutput) Elem added in v1.19.0

func (ServiceNetworkConfigurationPtrOutput) ElementType added in v1.19.0

func (ServiceNetworkConfigurationPtrOutput) SecurityGroups added in v1.19.0

func (ServiceNetworkConfigurationPtrOutput) Subnets added in v1.19.0

func (ServiceNetworkConfigurationPtrOutput) ToServiceNetworkConfigurationPtrOutput added in v1.19.0

func (o ServiceNetworkConfigurationPtrOutput) ToServiceNetworkConfigurationPtrOutput() ServiceNetworkConfigurationPtrOutput

func (ServiceNetworkConfigurationPtrOutput) ToServiceNetworkConfigurationPtrOutputWithContext added in v1.19.0

func (o ServiceNetworkConfigurationPtrOutput) ToServiceNetworkConfigurationPtrOutputWithContext(ctx context.Context) ServiceNetworkConfigurationPtrOutput

type ServiceOrderedPlacementStrategy added in v1.19.0

type ServiceOrderedPlacementStrategy struct {
	Field *string `pulumi:"field"`
	Type  string  `pulumi:"type"`
}

type ServiceOrderedPlacementStrategyArgs added in v1.19.0

type ServiceOrderedPlacementStrategyArgs struct {
	Field pulumi.StringPtrInput `pulumi:"field"`
	Type  pulumi.StringInput    `pulumi:"type"`
}

func (ServiceOrderedPlacementStrategyArgs) ElementType added in v1.19.0

func (ServiceOrderedPlacementStrategyArgs) ToServiceOrderedPlacementStrategyOutput added in v1.19.0

func (i ServiceOrderedPlacementStrategyArgs) ToServiceOrderedPlacementStrategyOutput() ServiceOrderedPlacementStrategyOutput

func (ServiceOrderedPlacementStrategyArgs) ToServiceOrderedPlacementStrategyOutputWithContext added in v1.19.0

func (i ServiceOrderedPlacementStrategyArgs) ToServiceOrderedPlacementStrategyOutputWithContext(ctx context.Context) ServiceOrderedPlacementStrategyOutput

type ServiceOrderedPlacementStrategyArray added in v1.19.0

type ServiceOrderedPlacementStrategyArray []ServiceOrderedPlacementStrategyInput

func (ServiceOrderedPlacementStrategyArray) ElementType added in v1.19.0

func (ServiceOrderedPlacementStrategyArray) ToServiceOrderedPlacementStrategyArrayOutput added in v1.19.0

func (i ServiceOrderedPlacementStrategyArray) ToServiceOrderedPlacementStrategyArrayOutput() ServiceOrderedPlacementStrategyArrayOutput

func (ServiceOrderedPlacementStrategyArray) ToServiceOrderedPlacementStrategyArrayOutputWithContext added in v1.19.0

func (i ServiceOrderedPlacementStrategyArray) ToServiceOrderedPlacementStrategyArrayOutputWithContext(ctx context.Context) ServiceOrderedPlacementStrategyArrayOutput

type ServiceOrderedPlacementStrategyArrayInput added in v1.19.0

type ServiceOrderedPlacementStrategyArrayInput interface {
	pulumi.Input

	ToServiceOrderedPlacementStrategyArrayOutput() ServiceOrderedPlacementStrategyArrayOutput
	ToServiceOrderedPlacementStrategyArrayOutputWithContext(context.Context) ServiceOrderedPlacementStrategyArrayOutput
}

type ServiceOrderedPlacementStrategyArrayOutput added in v1.19.0

type ServiceOrderedPlacementStrategyArrayOutput struct{ *pulumi.OutputState }

func (ServiceOrderedPlacementStrategyArrayOutput) ElementType added in v1.19.0

func (ServiceOrderedPlacementStrategyArrayOutput) Index added in v1.19.0

func (ServiceOrderedPlacementStrategyArrayOutput) ToServiceOrderedPlacementStrategyArrayOutput added in v1.19.0

func (o ServiceOrderedPlacementStrategyArrayOutput) ToServiceOrderedPlacementStrategyArrayOutput() ServiceOrderedPlacementStrategyArrayOutput

func (ServiceOrderedPlacementStrategyArrayOutput) ToServiceOrderedPlacementStrategyArrayOutputWithContext added in v1.19.0

func (o ServiceOrderedPlacementStrategyArrayOutput) ToServiceOrderedPlacementStrategyArrayOutputWithContext(ctx context.Context) ServiceOrderedPlacementStrategyArrayOutput

type ServiceOrderedPlacementStrategyInput added in v1.19.0

type ServiceOrderedPlacementStrategyInput interface {
	pulumi.Input

	ToServiceOrderedPlacementStrategyOutput() ServiceOrderedPlacementStrategyOutput
	ToServiceOrderedPlacementStrategyOutputWithContext(context.Context) ServiceOrderedPlacementStrategyOutput
}

type ServiceOrderedPlacementStrategyOutput added in v1.19.0

type ServiceOrderedPlacementStrategyOutput struct{ *pulumi.OutputState }

func (ServiceOrderedPlacementStrategyOutput) ElementType added in v1.19.0

func (ServiceOrderedPlacementStrategyOutput) Field added in v1.19.0

func (ServiceOrderedPlacementStrategyOutput) ToServiceOrderedPlacementStrategyOutput added in v1.19.0

func (o ServiceOrderedPlacementStrategyOutput) ToServiceOrderedPlacementStrategyOutput() ServiceOrderedPlacementStrategyOutput

func (ServiceOrderedPlacementStrategyOutput) ToServiceOrderedPlacementStrategyOutputWithContext added in v1.19.0

func (o ServiceOrderedPlacementStrategyOutput) ToServiceOrderedPlacementStrategyOutputWithContext(ctx context.Context) ServiceOrderedPlacementStrategyOutput

func (ServiceOrderedPlacementStrategyOutput) Type added in v1.19.0

type ServicePlacementConstraint added in v1.19.0

type ServicePlacementConstraint struct {
	Expression *string `pulumi:"expression"`
	Type       string  `pulumi:"type"`
}

type ServicePlacementConstraintArgs added in v1.19.0

type ServicePlacementConstraintArgs struct {
	Expression pulumi.StringPtrInput `pulumi:"expression"`
	Type       pulumi.StringInput    `pulumi:"type"`
}

func (ServicePlacementConstraintArgs) ElementType added in v1.19.0

func (ServicePlacementConstraintArgs) ToServicePlacementConstraintOutput added in v1.19.0

func (i ServicePlacementConstraintArgs) ToServicePlacementConstraintOutput() ServicePlacementConstraintOutput

func (ServicePlacementConstraintArgs) ToServicePlacementConstraintOutputWithContext added in v1.19.0

func (i ServicePlacementConstraintArgs) ToServicePlacementConstraintOutputWithContext(ctx context.Context) ServicePlacementConstraintOutput

type ServicePlacementConstraintArray added in v1.19.0

type ServicePlacementConstraintArray []ServicePlacementConstraintInput

func (ServicePlacementConstraintArray) ElementType added in v1.19.0

func (ServicePlacementConstraintArray) ToServicePlacementConstraintArrayOutput added in v1.19.0

func (i ServicePlacementConstraintArray) ToServicePlacementConstraintArrayOutput() ServicePlacementConstraintArrayOutput

func (ServicePlacementConstraintArray) ToServicePlacementConstraintArrayOutputWithContext added in v1.19.0

func (i ServicePlacementConstraintArray) ToServicePlacementConstraintArrayOutputWithContext(ctx context.Context) ServicePlacementConstraintArrayOutput

type ServicePlacementConstraintArrayInput added in v1.19.0

type ServicePlacementConstraintArrayInput interface {
	pulumi.Input

	ToServicePlacementConstraintArrayOutput() ServicePlacementConstraintArrayOutput
	ToServicePlacementConstraintArrayOutputWithContext(context.Context) ServicePlacementConstraintArrayOutput
}

type ServicePlacementConstraintArrayOutput added in v1.19.0

type ServicePlacementConstraintArrayOutput struct{ *pulumi.OutputState }

func (ServicePlacementConstraintArrayOutput) ElementType added in v1.19.0

func (ServicePlacementConstraintArrayOutput) Index added in v1.19.0

func (ServicePlacementConstraintArrayOutput) ToServicePlacementConstraintArrayOutput added in v1.19.0

func (o ServicePlacementConstraintArrayOutput) ToServicePlacementConstraintArrayOutput() ServicePlacementConstraintArrayOutput

func (ServicePlacementConstraintArrayOutput) ToServicePlacementConstraintArrayOutputWithContext added in v1.19.0

func (o ServicePlacementConstraintArrayOutput) ToServicePlacementConstraintArrayOutputWithContext(ctx context.Context) ServicePlacementConstraintArrayOutput

type ServicePlacementConstraintInput added in v1.19.0

type ServicePlacementConstraintInput interface {
	pulumi.Input

	ToServicePlacementConstraintOutput() ServicePlacementConstraintOutput
	ToServicePlacementConstraintOutputWithContext(context.Context) ServicePlacementConstraintOutput
}

type ServicePlacementConstraintOutput added in v1.19.0

type ServicePlacementConstraintOutput struct{ *pulumi.OutputState }

func (ServicePlacementConstraintOutput) ElementType added in v1.19.0

func (ServicePlacementConstraintOutput) Expression added in v1.19.0

func (ServicePlacementConstraintOutput) ToServicePlacementConstraintOutput added in v1.19.0

func (o ServicePlacementConstraintOutput) ToServicePlacementConstraintOutput() ServicePlacementConstraintOutput

func (ServicePlacementConstraintOutput) ToServicePlacementConstraintOutputWithContext added in v1.19.0

func (o ServicePlacementConstraintOutput) ToServicePlacementConstraintOutputWithContext(ctx context.Context) ServicePlacementConstraintOutput

func (ServicePlacementConstraintOutput) Type added in v1.19.0

type ServiceServiceRegistries added in v1.19.0

type ServiceServiceRegistries struct {
	ContainerName *string `pulumi:"containerName"`
	ContainerPort *int    `pulumi:"containerPort"`
	Port          *int    `pulumi:"port"`
	RegistryArn   string  `pulumi:"registryArn"`
}

type ServiceServiceRegistriesArgs added in v1.19.0

type ServiceServiceRegistriesArgs struct {
	ContainerName pulumi.StringPtrInput `pulumi:"containerName"`
	ContainerPort pulumi.IntPtrInput    `pulumi:"containerPort"`
	Port          pulumi.IntPtrInput    `pulumi:"port"`
	RegistryArn   pulumi.StringInput    `pulumi:"registryArn"`
}

func (ServiceServiceRegistriesArgs) ElementType added in v1.19.0

func (ServiceServiceRegistriesArgs) ToServiceServiceRegistriesOutput added in v1.19.0

func (i ServiceServiceRegistriesArgs) ToServiceServiceRegistriesOutput() ServiceServiceRegistriesOutput

func (ServiceServiceRegistriesArgs) ToServiceServiceRegistriesOutputWithContext added in v1.19.0

func (i ServiceServiceRegistriesArgs) ToServiceServiceRegistriesOutputWithContext(ctx context.Context) ServiceServiceRegistriesOutput

func (ServiceServiceRegistriesArgs) ToServiceServiceRegistriesPtrOutput added in v1.19.0

func (i ServiceServiceRegistriesArgs) ToServiceServiceRegistriesPtrOutput() ServiceServiceRegistriesPtrOutput

func (ServiceServiceRegistriesArgs) ToServiceServiceRegistriesPtrOutputWithContext added in v1.19.0

func (i ServiceServiceRegistriesArgs) ToServiceServiceRegistriesPtrOutputWithContext(ctx context.Context) ServiceServiceRegistriesPtrOutput

type ServiceServiceRegistriesInput added in v1.19.0

type ServiceServiceRegistriesInput interface {
	pulumi.Input

	ToServiceServiceRegistriesOutput() ServiceServiceRegistriesOutput
	ToServiceServiceRegistriesOutputWithContext(context.Context) ServiceServiceRegistriesOutput
}

type ServiceServiceRegistriesOutput added in v1.19.0

type ServiceServiceRegistriesOutput struct{ *pulumi.OutputState }

func (ServiceServiceRegistriesOutput) ContainerName added in v1.19.0

func (ServiceServiceRegistriesOutput) ContainerPort added in v1.19.0

func (ServiceServiceRegistriesOutput) ElementType added in v1.19.0

func (ServiceServiceRegistriesOutput) Port added in v1.19.0

func (ServiceServiceRegistriesOutput) RegistryArn added in v1.19.0

func (ServiceServiceRegistriesOutput) ToServiceServiceRegistriesOutput added in v1.19.0

func (o ServiceServiceRegistriesOutput) ToServiceServiceRegistriesOutput() ServiceServiceRegistriesOutput

func (ServiceServiceRegistriesOutput) ToServiceServiceRegistriesOutputWithContext added in v1.19.0

func (o ServiceServiceRegistriesOutput) ToServiceServiceRegistriesOutputWithContext(ctx context.Context) ServiceServiceRegistriesOutput

func (ServiceServiceRegistriesOutput) ToServiceServiceRegistriesPtrOutput added in v1.19.0

func (o ServiceServiceRegistriesOutput) ToServiceServiceRegistriesPtrOutput() ServiceServiceRegistriesPtrOutput

func (ServiceServiceRegistriesOutput) ToServiceServiceRegistriesPtrOutputWithContext added in v1.19.0

func (o ServiceServiceRegistriesOutput) ToServiceServiceRegistriesPtrOutputWithContext(ctx context.Context) ServiceServiceRegistriesPtrOutput

type ServiceServiceRegistriesPtrInput added in v1.19.0

type ServiceServiceRegistriesPtrInput interface {
	pulumi.Input

	ToServiceServiceRegistriesPtrOutput() ServiceServiceRegistriesPtrOutput
	ToServiceServiceRegistriesPtrOutputWithContext(context.Context) ServiceServiceRegistriesPtrOutput
}

func ServiceServiceRegistriesPtr added in v1.19.0

func ServiceServiceRegistriesPtr(v *ServiceServiceRegistriesArgs) ServiceServiceRegistriesPtrInput

type ServiceServiceRegistriesPtrOutput added in v1.19.0

type ServiceServiceRegistriesPtrOutput struct{ *pulumi.OutputState }

func (ServiceServiceRegistriesPtrOutput) ContainerName added in v1.19.0

func (ServiceServiceRegistriesPtrOutput) ContainerPort added in v1.19.0

func (ServiceServiceRegistriesPtrOutput) Elem added in v1.19.0

func (ServiceServiceRegistriesPtrOutput) ElementType added in v1.19.0

func (ServiceServiceRegistriesPtrOutput) Port added in v1.19.0

func (ServiceServiceRegistriesPtrOutput) RegistryArn added in v1.19.0

func (ServiceServiceRegistriesPtrOutput) ToServiceServiceRegistriesPtrOutput added in v1.19.0

func (o ServiceServiceRegistriesPtrOutput) ToServiceServiceRegistriesPtrOutput() ServiceServiceRegistriesPtrOutput

func (ServiceServiceRegistriesPtrOutput) ToServiceServiceRegistriesPtrOutputWithContext added in v1.19.0

func (o ServiceServiceRegistriesPtrOutput) ToServiceServiceRegistriesPtrOutputWithContext(ctx context.Context) ServiceServiceRegistriesPtrOutput

type ServiceState

type ServiceState struct {
	// The capacity provider strategy to use for the service. Can be one or more.  Defined below.
	CapacityProviderStrategies ServiceCapacityProviderStrategyArrayInput
	// ARN of an ECS cluster
	Cluster pulumi.StringPtrInput
	// Configuration block containing deployment controller configuration. Defined below.
	DeploymentController ServiceDeploymentControllerPtrInput
	// The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. Not valid when using the `DAEMON` scheduling strategy.
	DeploymentMaximumPercent pulumi.IntPtrInput
	// The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment.
	DeploymentMinimumHealthyPercent pulumi.IntPtrInput
	// The number of instances of the task definition to place and keep running. Defaults to 0. Do not specify if using the `DAEMON` scheduling strategy.
	DesiredCount pulumi.IntPtrInput
	// Specifies whether to enable Amazon ECS managed tags for the tasks within the service.
	EnableEcsManagedTags pulumi.BoolPtrInput
	// Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Only valid for services configured to use load balancers.
	HealthCheckGracePeriodSeconds pulumi.IntPtrInput
	// ARN of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. This parameter is required if you are using a load balancer with your service, but only if your task definition does not use the `awsvpc` network mode. If using `awsvpc` network mode, do not specify this role. If your account has already created the Amazon ECS service-linked role, that role is used by default for your service unless you specify a role here.
	IamRole pulumi.StringPtrInput
	// The launch type on which to run your service. The valid values are `EC2` and `FARGATE`. Defaults to `EC2`.
	LaunchType pulumi.StringPtrInput
	// A load balancer block. Load balancers documented below.
	LoadBalancers ServiceLoadBalancerArrayInput
	// The name of the service (up to 255 letters, numbers, hyphens, and underscores)
	Name pulumi.StringPtrInput
	// The network configuration for the service. This parameter is required for task definitions that use the `awsvpc` network mode to receive their own Elastic Network Interface, and it is not supported for other network modes.
	NetworkConfiguration ServiceNetworkConfigurationPtrInput
	// Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. The maximum number of `orderedPlacementStrategy` blocks is `5`. Defined below.
	OrderedPlacementStrategies ServiceOrderedPlacementStrategyArrayInput
	// rules that are taken into consideration during task placement. Maximum number of
	// `placementConstraints` is `10`. Defined below.
	PlacementConstraints ServicePlacementConstraintArrayInput
	// The platform version on which to run your service. Only applicable for `launchType` set to `FARGATE`. Defaults to `LATEST`. More information about Fargate platform versions can be found in the [AWS ECS User Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
	PlatformVersion pulumi.StringPtrInput
	// Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are `SERVICE` and `TASK_DEFINITION`.
	PropagateTags pulumi.StringPtrInput
	// The scheduling strategy to use for the service. The valid values are `REPLICA` and `DAEMON`. Defaults to `REPLICA`. Note that [*Fargate tasks do not support the `DAEMON` scheduling strategy*](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html).
	SchedulingStrategy pulumi.StringPtrInput
	// The service discovery registries for the service. The maximum number of `serviceRegistries` blocks is `1`.
	ServiceRegistries ServiceServiceRegistriesPtrInput
	// Key-value mapping of resource tags
	Tags pulumi.MapInput
	// The family and revision (`family:revision`) or full ARN of the task definition that you want to run in your service.
	TaskDefinition pulumi.StringPtrInput
	// If `true`, this provider will wait for the service to reach a steady state (like [`aws ecs wait services-stable`](https://docs.aws.amazon.com/cli/latest/reference/ecs/wait/services-stable.html)) before continuing. Default `false`.
	WaitForSteadyState pulumi.BoolPtrInput
}

func (ServiceState) ElementType added in v1.19.0

func (ServiceState) ElementType() reflect.Type

type TaskDefinition

type TaskDefinition struct {
	pulumi.CustomResourceState

	// Full ARN of the Task Definition (including both `family` and `revision`).
	Arn pulumi.StringOutput `pulumi:"arn"`
	// A list of valid [container definitions]
	// (http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html) provided as a
	// single valid JSON document. Please note that you should only provide values that are part of the container
	// definition document. For a detailed description of what parameters are available, see the [Task Definition Parameters]
	// (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the
	// official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
	ContainerDefinitions pulumi.StringOutput `pulumi:"containerDefinitions"`
	// The number of cpu units used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
	Cpu pulumi.StringPtrOutput `pulumi:"cpu"`
	// The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
	ExecutionRoleArn pulumi.StringPtrOutput `pulumi:"executionRoleArn"`
	// A unique name for your task definition.
	Family pulumi.StringOutput `pulumi:"family"`
	// The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`.
	IpcMode pulumi.StringPtrOutput `pulumi:"ipcMode"`
	// The amount (in MiB) of memory used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
	Memory pulumi.StringPtrOutput `pulumi:"memory"`
	// The Docker networking mode to use for the containers in the task. The valid values are `none`, `bridge`, `awsvpc`, and `host`.
	NetworkMode pulumi.StringOutput `pulumi:"networkMode"`
	// The process namespace to use for the containers in the task. The valid values are `host` and `task`.
	PidMode pulumi.StringPtrOutput `pulumi:"pidMode"`
	// A set of placement constraints rules that are taken into consideration during task placement. Maximum number of `placementConstraints` is `10`.
	PlacementConstraints TaskDefinitionPlacementConstraintArrayOutput `pulumi:"placementConstraints"`
	// The proxy configuration details for the App Mesh proxy.
	ProxyConfiguration TaskDefinitionProxyConfigurationPtrOutput `pulumi:"proxyConfiguration"`
	// A set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
	RequiresCompatibilities pulumi.StringArrayOutput `pulumi:"requiresCompatibilities"`
	// The revision of the task in a particular family.
	Revision pulumi.IntOutput `pulumi:"revision"`
	// Key-value mapping of resource tags
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
	TaskRoleArn pulumi.StringPtrOutput `pulumi:"taskRoleArn"`
	// A set of volume blocks that containers in your task may use.
	Volumes TaskDefinitionVolumeArrayOutput `pulumi:"volumes"`
}

Manages a revision of an ECS task definition to be used in `ecs.Service`.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/ecs_task_definition.html.markdown.

func GetTaskDefinition

func GetTaskDefinition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TaskDefinitionState, opts ...pulumi.ResourceOption) (*TaskDefinition, error)

GetTaskDefinition gets an existing TaskDefinition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTaskDefinition

func NewTaskDefinition(ctx *pulumi.Context,
	name string, args *TaskDefinitionArgs, opts ...pulumi.ResourceOption) (*TaskDefinition, error)

NewTaskDefinition registers a new resource with the given unique name, arguments, and options.

type TaskDefinitionArgs

type TaskDefinitionArgs struct {
	// A list of valid [container definitions]
	// (http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html) provided as a
	// single valid JSON document. Please note that you should only provide values that are part of the container
	// definition document. For a detailed description of what parameters are available, see the [Task Definition Parameters]
	// (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the
	// official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
	ContainerDefinitions pulumi.StringInput
	// The number of cpu units used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
	Cpu pulumi.StringPtrInput
	// The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
	ExecutionRoleArn pulumi.StringPtrInput
	// A unique name for your task definition.
	Family pulumi.StringInput
	// The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`.
	IpcMode pulumi.StringPtrInput
	// The amount (in MiB) of memory used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
	Memory pulumi.StringPtrInput
	// The Docker networking mode to use for the containers in the task. The valid values are `none`, `bridge`, `awsvpc`, and `host`.
	NetworkMode pulumi.StringPtrInput
	// The process namespace to use for the containers in the task. The valid values are `host` and `task`.
	PidMode pulumi.StringPtrInput
	// A set of placement constraints rules that are taken into consideration during task placement. Maximum number of `placementConstraints` is `10`.
	PlacementConstraints TaskDefinitionPlacementConstraintArrayInput
	// The proxy configuration details for the App Mesh proxy.
	ProxyConfiguration TaskDefinitionProxyConfigurationPtrInput
	// A set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
	RequiresCompatibilities pulumi.StringArrayInput
	// Key-value mapping of resource tags
	Tags pulumi.MapInput
	// The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
	TaskRoleArn pulumi.StringPtrInput
	// A set of volume blocks that containers in your task may use.
	Volumes TaskDefinitionVolumeArrayInput
}

The set of arguments for constructing a TaskDefinition resource.

func (TaskDefinitionArgs) ElementType added in v1.19.0

func (TaskDefinitionArgs) ElementType() reflect.Type

type TaskDefinitionPlacementConstraint added in v1.19.0

type TaskDefinitionPlacementConstraint struct {
	// Cluster Query Language expression to apply to the constraint.
	// For more information, see [Cluster Query Language in the Amazon EC2 Container
	// Service Developer
	// Guide](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html).
	Expression *string `pulumi:"expression"`
	// The proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`.
	Type string `pulumi:"type"`
}

type TaskDefinitionPlacementConstraintArgs added in v1.19.0

type TaskDefinitionPlacementConstraintArgs struct {
	// Cluster Query Language expression to apply to the constraint.
	// For more information, see [Cluster Query Language in the Amazon EC2 Container
	// Service Developer
	// Guide](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html).
	Expression pulumi.StringPtrInput `pulumi:"expression"`
	// The proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (TaskDefinitionPlacementConstraintArgs) ElementType added in v1.19.0

func (TaskDefinitionPlacementConstraintArgs) ToTaskDefinitionPlacementConstraintOutput added in v1.19.0

func (i TaskDefinitionPlacementConstraintArgs) ToTaskDefinitionPlacementConstraintOutput() TaskDefinitionPlacementConstraintOutput

func (TaskDefinitionPlacementConstraintArgs) ToTaskDefinitionPlacementConstraintOutputWithContext added in v1.19.0

func (i TaskDefinitionPlacementConstraintArgs) ToTaskDefinitionPlacementConstraintOutputWithContext(ctx context.Context) TaskDefinitionPlacementConstraintOutput

type TaskDefinitionPlacementConstraintArray added in v1.19.0

type TaskDefinitionPlacementConstraintArray []TaskDefinitionPlacementConstraintInput

func (TaskDefinitionPlacementConstraintArray) ElementType added in v1.19.0

func (TaskDefinitionPlacementConstraintArray) ToTaskDefinitionPlacementConstraintArrayOutput added in v1.19.0

func (i TaskDefinitionPlacementConstraintArray) ToTaskDefinitionPlacementConstraintArrayOutput() TaskDefinitionPlacementConstraintArrayOutput

func (TaskDefinitionPlacementConstraintArray) ToTaskDefinitionPlacementConstraintArrayOutputWithContext added in v1.19.0

func (i TaskDefinitionPlacementConstraintArray) ToTaskDefinitionPlacementConstraintArrayOutputWithContext(ctx context.Context) TaskDefinitionPlacementConstraintArrayOutput

type TaskDefinitionPlacementConstraintArrayInput added in v1.19.0

type TaskDefinitionPlacementConstraintArrayInput interface {
	pulumi.Input

	ToTaskDefinitionPlacementConstraintArrayOutput() TaskDefinitionPlacementConstraintArrayOutput
	ToTaskDefinitionPlacementConstraintArrayOutputWithContext(context.Context) TaskDefinitionPlacementConstraintArrayOutput
}

type TaskDefinitionPlacementConstraintArrayOutput added in v1.19.0

type TaskDefinitionPlacementConstraintArrayOutput struct{ *pulumi.OutputState }

func (TaskDefinitionPlacementConstraintArrayOutput) ElementType added in v1.19.0

func (TaskDefinitionPlacementConstraintArrayOutput) Index added in v1.19.0

func (TaskDefinitionPlacementConstraintArrayOutput) ToTaskDefinitionPlacementConstraintArrayOutput added in v1.19.0

func (o TaskDefinitionPlacementConstraintArrayOutput) ToTaskDefinitionPlacementConstraintArrayOutput() TaskDefinitionPlacementConstraintArrayOutput

func (TaskDefinitionPlacementConstraintArrayOutput) ToTaskDefinitionPlacementConstraintArrayOutputWithContext added in v1.19.0

func (o TaskDefinitionPlacementConstraintArrayOutput) ToTaskDefinitionPlacementConstraintArrayOutputWithContext(ctx context.Context) TaskDefinitionPlacementConstraintArrayOutput

type TaskDefinitionPlacementConstraintInput added in v1.19.0

type TaskDefinitionPlacementConstraintInput interface {
	pulumi.Input

	ToTaskDefinitionPlacementConstraintOutput() TaskDefinitionPlacementConstraintOutput
	ToTaskDefinitionPlacementConstraintOutputWithContext(context.Context) TaskDefinitionPlacementConstraintOutput
}

type TaskDefinitionPlacementConstraintOutput added in v1.19.0

type TaskDefinitionPlacementConstraintOutput struct{ *pulumi.OutputState }

func (TaskDefinitionPlacementConstraintOutput) ElementType added in v1.19.0

func (TaskDefinitionPlacementConstraintOutput) Expression added in v1.19.0

Cluster Query Language expression to apply to the constraint. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html).

func (TaskDefinitionPlacementConstraintOutput) ToTaskDefinitionPlacementConstraintOutput added in v1.19.0

func (o TaskDefinitionPlacementConstraintOutput) ToTaskDefinitionPlacementConstraintOutput() TaskDefinitionPlacementConstraintOutput

func (TaskDefinitionPlacementConstraintOutput) ToTaskDefinitionPlacementConstraintOutputWithContext added in v1.19.0

func (o TaskDefinitionPlacementConstraintOutput) ToTaskDefinitionPlacementConstraintOutputWithContext(ctx context.Context) TaskDefinitionPlacementConstraintOutput

func (TaskDefinitionPlacementConstraintOutput) Type added in v1.19.0

The proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`.

type TaskDefinitionProxyConfiguration added in v1.19.0

type TaskDefinitionProxyConfiguration struct {
	// The name of the container that will serve as the App Mesh proxy.
	ContainerName string `pulumi:"containerName"`
	// The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping.
	Properties map[string]string `pulumi:"properties"`
	// The proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`.
	Type *string `pulumi:"type"`
}

type TaskDefinitionProxyConfigurationArgs added in v1.19.0

type TaskDefinitionProxyConfigurationArgs struct {
	// The name of the container that will serve as the App Mesh proxy.
	ContainerName pulumi.StringInput `pulumi:"containerName"`
	// The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping.
	Properties pulumi.StringMapInput `pulumi:"properties"`
	// The proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`.
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (TaskDefinitionProxyConfigurationArgs) ElementType added in v1.19.0

func (TaskDefinitionProxyConfigurationArgs) ToTaskDefinitionProxyConfigurationOutput added in v1.19.0

func (i TaskDefinitionProxyConfigurationArgs) ToTaskDefinitionProxyConfigurationOutput() TaskDefinitionProxyConfigurationOutput

func (TaskDefinitionProxyConfigurationArgs) ToTaskDefinitionProxyConfigurationOutputWithContext added in v1.19.0

func (i TaskDefinitionProxyConfigurationArgs) ToTaskDefinitionProxyConfigurationOutputWithContext(ctx context.Context) TaskDefinitionProxyConfigurationOutput

func (TaskDefinitionProxyConfigurationArgs) ToTaskDefinitionProxyConfigurationPtrOutput added in v1.19.0

func (i TaskDefinitionProxyConfigurationArgs) ToTaskDefinitionProxyConfigurationPtrOutput() TaskDefinitionProxyConfigurationPtrOutput

func (TaskDefinitionProxyConfigurationArgs) ToTaskDefinitionProxyConfigurationPtrOutputWithContext added in v1.19.0

func (i TaskDefinitionProxyConfigurationArgs) ToTaskDefinitionProxyConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionProxyConfigurationPtrOutput

type TaskDefinitionProxyConfigurationInput added in v1.19.0

type TaskDefinitionProxyConfigurationInput interface {
	pulumi.Input

	ToTaskDefinitionProxyConfigurationOutput() TaskDefinitionProxyConfigurationOutput
	ToTaskDefinitionProxyConfigurationOutputWithContext(context.Context) TaskDefinitionProxyConfigurationOutput
}

type TaskDefinitionProxyConfigurationOutput added in v1.19.0

type TaskDefinitionProxyConfigurationOutput struct{ *pulumi.OutputState }

func (TaskDefinitionProxyConfigurationOutput) ContainerName added in v1.19.0

The name of the container that will serve as the App Mesh proxy.

func (TaskDefinitionProxyConfigurationOutput) ElementType added in v1.19.0

func (TaskDefinitionProxyConfigurationOutput) Properties added in v1.19.0

The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping.

func (TaskDefinitionProxyConfigurationOutput) ToTaskDefinitionProxyConfigurationOutput added in v1.19.0

func (o TaskDefinitionProxyConfigurationOutput) ToTaskDefinitionProxyConfigurationOutput() TaskDefinitionProxyConfigurationOutput

func (TaskDefinitionProxyConfigurationOutput) ToTaskDefinitionProxyConfigurationOutputWithContext added in v1.19.0

func (o TaskDefinitionProxyConfigurationOutput) ToTaskDefinitionProxyConfigurationOutputWithContext(ctx context.Context) TaskDefinitionProxyConfigurationOutput

func (TaskDefinitionProxyConfigurationOutput) ToTaskDefinitionProxyConfigurationPtrOutput added in v1.19.0

func (o TaskDefinitionProxyConfigurationOutput) ToTaskDefinitionProxyConfigurationPtrOutput() TaskDefinitionProxyConfigurationPtrOutput

func (TaskDefinitionProxyConfigurationOutput) ToTaskDefinitionProxyConfigurationPtrOutputWithContext added in v1.19.0

func (o TaskDefinitionProxyConfigurationOutput) ToTaskDefinitionProxyConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionProxyConfigurationPtrOutput

func (TaskDefinitionProxyConfigurationOutput) Type added in v1.19.0

The proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`.

type TaskDefinitionProxyConfigurationPtrInput added in v1.19.0

type TaskDefinitionProxyConfigurationPtrInput interface {
	pulumi.Input

	ToTaskDefinitionProxyConfigurationPtrOutput() TaskDefinitionProxyConfigurationPtrOutput
	ToTaskDefinitionProxyConfigurationPtrOutputWithContext(context.Context) TaskDefinitionProxyConfigurationPtrOutput
}

type TaskDefinitionProxyConfigurationPtrOutput added in v1.19.0

type TaskDefinitionProxyConfigurationPtrOutput struct{ *pulumi.OutputState }

func (TaskDefinitionProxyConfigurationPtrOutput) ContainerName added in v1.19.0

The name of the container that will serve as the App Mesh proxy.

func (TaskDefinitionProxyConfigurationPtrOutput) Elem added in v1.19.0

func (TaskDefinitionProxyConfigurationPtrOutput) ElementType added in v1.19.0

func (TaskDefinitionProxyConfigurationPtrOutput) Properties added in v1.19.0

The set of network configuration parameters to provide the Container Network Interface (CNI) plugin, specified a key-value mapping.

func (TaskDefinitionProxyConfigurationPtrOutput) ToTaskDefinitionProxyConfigurationPtrOutput added in v1.19.0

func (o TaskDefinitionProxyConfigurationPtrOutput) ToTaskDefinitionProxyConfigurationPtrOutput() TaskDefinitionProxyConfigurationPtrOutput

func (TaskDefinitionProxyConfigurationPtrOutput) ToTaskDefinitionProxyConfigurationPtrOutputWithContext added in v1.19.0

func (o TaskDefinitionProxyConfigurationPtrOutput) ToTaskDefinitionProxyConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionProxyConfigurationPtrOutput

func (TaskDefinitionProxyConfigurationPtrOutput) Type added in v1.19.0

The proxy type. The default value is `APPMESH`. The only supported value is `APPMESH`.

type TaskDefinitionState

type TaskDefinitionState struct {
	// Full ARN of the Task Definition (including both `family` and `revision`).
	Arn pulumi.StringPtrInput
	// A list of valid [container definitions]
	// (http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html) provided as a
	// single valid JSON document. Please note that you should only provide values that are part of the container
	// definition document. For a detailed description of what parameters are available, see the [Task Definition Parameters]
	// (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the
	// official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
	ContainerDefinitions pulumi.StringPtrInput
	// The number of cpu units used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
	Cpu pulumi.StringPtrInput
	// The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
	ExecutionRoleArn pulumi.StringPtrInput
	// A unique name for your task definition.
	Family pulumi.StringPtrInput
	// The IPC resource namespace to be used for the containers in the task The valid values are `host`, `task`, and `none`.
	IpcMode pulumi.StringPtrInput
	// The amount (in MiB) of memory used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
	Memory pulumi.StringPtrInput
	// The Docker networking mode to use for the containers in the task. The valid values are `none`, `bridge`, `awsvpc`, and `host`.
	NetworkMode pulumi.StringPtrInput
	// The process namespace to use for the containers in the task. The valid values are `host` and `task`.
	PidMode pulumi.StringPtrInput
	// A set of placement constraints rules that are taken into consideration during task placement. Maximum number of `placementConstraints` is `10`.
	PlacementConstraints TaskDefinitionPlacementConstraintArrayInput
	// The proxy configuration details for the App Mesh proxy.
	ProxyConfiguration TaskDefinitionProxyConfigurationPtrInput
	// A set of launch types required by the task. The valid values are `EC2` and `FARGATE`.
	RequiresCompatibilities pulumi.StringArrayInput
	// The revision of the task in a particular family.
	Revision pulumi.IntPtrInput
	// Key-value mapping of resource tags
	Tags pulumi.MapInput
	// The ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
	TaskRoleArn pulumi.StringPtrInput
	// A set of volume blocks that containers in your task may use.
	Volumes TaskDefinitionVolumeArrayInput
}

func (TaskDefinitionState) ElementType added in v1.19.0

func (TaskDefinitionState) ElementType() reflect.Type

type TaskDefinitionVolume added in v1.19.0

type TaskDefinitionVolume struct {
	// Used to configure a docker volume
	DockerVolumeConfiguration *TaskDefinitionVolumeDockerVolumeConfiguration `pulumi:"dockerVolumeConfiguration"`
	// Used to configure a EFS volume. Can be used only with an EC2 type task.
	EfsVolumeConfiguration *TaskDefinitionVolumeEfsVolumeConfiguration `pulumi:"efsVolumeConfiguration"`
	// The path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished.
	HostPath *string `pulumi:"hostPath"`
	// The name of the volume. This name is referenced in the `sourceVolume`
	// parameter of container definition in the `mountPoints` section.
	Name string `pulumi:"name"`
}

type TaskDefinitionVolumeArgs added in v1.19.0

type TaskDefinitionVolumeArgs struct {
	// Used to configure a docker volume
	DockerVolumeConfiguration TaskDefinitionVolumeDockerVolumeConfigurationPtrInput `pulumi:"dockerVolumeConfiguration"`
	// Used to configure a EFS volume. Can be used only with an EC2 type task.
	EfsVolumeConfiguration TaskDefinitionVolumeEfsVolumeConfigurationPtrInput `pulumi:"efsVolumeConfiguration"`
	// The path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished.
	HostPath pulumi.StringPtrInput `pulumi:"hostPath"`
	// The name of the volume. This name is referenced in the `sourceVolume`
	// parameter of container definition in the `mountPoints` section.
	Name pulumi.StringInput `pulumi:"name"`
}

func (TaskDefinitionVolumeArgs) ElementType added in v1.19.0

func (TaskDefinitionVolumeArgs) ElementType() reflect.Type

func (TaskDefinitionVolumeArgs) ToTaskDefinitionVolumeOutput added in v1.19.0

func (i TaskDefinitionVolumeArgs) ToTaskDefinitionVolumeOutput() TaskDefinitionVolumeOutput

func (TaskDefinitionVolumeArgs) ToTaskDefinitionVolumeOutputWithContext added in v1.19.0

func (i TaskDefinitionVolumeArgs) ToTaskDefinitionVolumeOutputWithContext(ctx context.Context) TaskDefinitionVolumeOutput

type TaskDefinitionVolumeArray added in v1.19.0

type TaskDefinitionVolumeArray []TaskDefinitionVolumeInput

func (TaskDefinitionVolumeArray) ElementType added in v1.19.0

func (TaskDefinitionVolumeArray) ElementType() reflect.Type

func (TaskDefinitionVolumeArray) ToTaskDefinitionVolumeArrayOutput added in v1.19.0

func (i TaskDefinitionVolumeArray) ToTaskDefinitionVolumeArrayOutput() TaskDefinitionVolumeArrayOutput

func (TaskDefinitionVolumeArray) ToTaskDefinitionVolumeArrayOutputWithContext added in v1.19.0

func (i TaskDefinitionVolumeArray) ToTaskDefinitionVolumeArrayOutputWithContext(ctx context.Context) TaskDefinitionVolumeArrayOutput

type TaskDefinitionVolumeArrayInput added in v1.19.0

type TaskDefinitionVolumeArrayInput interface {
	pulumi.Input

	ToTaskDefinitionVolumeArrayOutput() TaskDefinitionVolumeArrayOutput
	ToTaskDefinitionVolumeArrayOutputWithContext(context.Context) TaskDefinitionVolumeArrayOutput
}

type TaskDefinitionVolumeArrayOutput added in v1.19.0

type TaskDefinitionVolumeArrayOutput struct{ *pulumi.OutputState }

func (TaskDefinitionVolumeArrayOutput) ElementType added in v1.19.0

func (TaskDefinitionVolumeArrayOutput) Index added in v1.19.0

func (TaskDefinitionVolumeArrayOutput) ToTaskDefinitionVolumeArrayOutput added in v1.19.0

func (o TaskDefinitionVolumeArrayOutput) ToTaskDefinitionVolumeArrayOutput() TaskDefinitionVolumeArrayOutput

func (TaskDefinitionVolumeArrayOutput) ToTaskDefinitionVolumeArrayOutputWithContext added in v1.19.0

func (o TaskDefinitionVolumeArrayOutput) ToTaskDefinitionVolumeArrayOutputWithContext(ctx context.Context) TaskDefinitionVolumeArrayOutput

type TaskDefinitionVolumeDockerVolumeConfiguration added in v1.19.0

type TaskDefinitionVolumeDockerVolumeConfiguration struct {
	// If this value is `true`, the Docker volume is created if it does not already exist. *Note*: This field is only used if the scope is `shared`.
	Autoprovision *bool `pulumi:"autoprovision"`
	// The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.
	Driver *string `pulumi:"driver"`
	// A map of Docker driver specific options.
	DriverOpts map[string]string `pulumi:"driverOpts"`
	// A map of custom metadata to add to your Docker volume.
	Labels map[string]string `pulumi:"labels"`
	// The scope for the Docker volume, which determines its lifecycle, either `task` or `shared`.  Docker volumes that are scoped to a `task` are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are `scoped` as shared persist after the task stops.
	Scope *string `pulumi:"scope"`
}

type TaskDefinitionVolumeDockerVolumeConfigurationArgs added in v1.19.0

type TaskDefinitionVolumeDockerVolumeConfigurationArgs struct {
	// If this value is `true`, the Docker volume is created if it does not already exist. *Note*: This field is only used if the scope is `shared`.
	Autoprovision pulumi.BoolPtrInput `pulumi:"autoprovision"`
	// The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.
	Driver pulumi.StringPtrInput `pulumi:"driver"`
	// A map of Docker driver specific options.
	DriverOpts pulumi.StringMapInput `pulumi:"driverOpts"`
	// A map of custom metadata to add to your Docker volume.
	Labels pulumi.StringMapInput `pulumi:"labels"`
	// The scope for the Docker volume, which determines its lifecycle, either `task` or `shared`.  Docker volumes that are scoped to a `task` are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are `scoped` as shared persist after the task stops.
	Scope pulumi.StringPtrInput `pulumi:"scope"`
}

func (TaskDefinitionVolumeDockerVolumeConfigurationArgs) ElementType added in v1.19.0

func (TaskDefinitionVolumeDockerVolumeConfigurationArgs) ToTaskDefinitionVolumeDockerVolumeConfigurationOutput added in v1.19.0

func (i TaskDefinitionVolumeDockerVolumeConfigurationArgs) ToTaskDefinitionVolumeDockerVolumeConfigurationOutput() TaskDefinitionVolumeDockerVolumeConfigurationOutput

func (TaskDefinitionVolumeDockerVolumeConfigurationArgs) ToTaskDefinitionVolumeDockerVolumeConfigurationOutputWithContext added in v1.19.0

func (i TaskDefinitionVolumeDockerVolumeConfigurationArgs) ToTaskDefinitionVolumeDockerVolumeConfigurationOutputWithContext(ctx context.Context) TaskDefinitionVolumeDockerVolumeConfigurationOutput

func (TaskDefinitionVolumeDockerVolumeConfigurationArgs) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutput added in v1.19.0

func (i TaskDefinitionVolumeDockerVolumeConfigurationArgs) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutput() TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput

func (TaskDefinitionVolumeDockerVolumeConfigurationArgs) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutputWithContext added in v1.19.0

func (i TaskDefinitionVolumeDockerVolumeConfigurationArgs) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput

type TaskDefinitionVolumeDockerVolumeConfigurationInput added in v1.19.0

type TaskDefinitionVolumeDockerVolumeConfigurationInput interface {
	pulumi.Input

	ToTaskDefinitionVolumeDockerVolumeConfigurationOutput() TaskDefinitionVolumeDockerVolumeConfigurationOutput
	ToTaskDefinitionVolumeDockerVolumeConfigurationOutputWithContext(context.Context) TaskDefinitionVolumeDockerVolumeConfigurationOutput
}

type TaskDefinitionVolumeDockerVolumeConfigurationOutput added in v1.19.0

type TaskDefinitionVolumeDockerVolumeConfigurationOutput struct{ *pulumi.OutputState }

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) Autoprovision added in v1.19.0

If this value is `true`, the Docker volume is created if it does not already exist. *Note*: This field is only used if the scope is `shared`.

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) Driver added in v1.19.0

The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) DriverOpts added in v1.19.0

A map of Docker driver specific options.

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) ElementType added in v1.19.0

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) Labels added in v1.19.0

A map of custom metadata to add to your Docker volume.

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) Scope added in v1.19.0

The scope for the Docker volume, which determines its lifecycle, either `task` or `shared`. Docker volumes that are scoped to a `task` are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are `scoped` as shared persist after the task stops.

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationOutput added in v1.19.0

func (o TaskDefinitionVolumeDockerVolumeConfigurationOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationOutput() TaskDefinitionVolumeDockerVolumeConfigurationOutput

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationOutputWithContext added in v1.19.0

func (o TaskDefinitionVolumeDockerVolumeConfigurationOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationOutputWithContext(ctx context.Context) TaskDefinitionVolumeDockerVolumeConfigurationOutput

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutput added in v1.19.0

func (o TaskDefinitionVolumeDockerVolumeConfigurationOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutput() TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput

func (TaskDefinitionVolumeDockerVolumeConfigurationOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutputWithContext added in v1.19.0

func (o TaskDefinitionVolumeDockerVolumeConfigurationOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput

type TaskDefinitionVolumeDockerVolumeConfigurationPtrInput added in v1.19.0

type TaskDefinitionVolumeDockerVolumeConfigurationPtrInput interface {
	pulumi.Input

	ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutput() TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput
	ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutputWithContext(context.Context) TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput
}

type TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput added in v1.19.0

type TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput struct{ *pulumi.OutputState }

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) Autoprovision added in v1.19.0

If this value is `true`, the Docker volume is created if it does not already exist. *Note*: This field is only used if the scope is `shared`.

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) Driver added in v1.19.0

The Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) DriverOpts added in v1.19.0

A map of Docker driver specific options.

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) Elem added in v1.19.0

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) ElementType added in v1.19.0

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) Labels added in v1.19.0

A map of custom metadata to add to your Docker volume.

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) Scope added in v1.19.0

The scope for the Docker volume, which determines its lifecycle, either `task` or `shared`. Docker volumes that are scoped to a `task` are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are `scoped` as shared persist after the task stops.

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutput added in v1.19.0

func (TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutputWithContext added in v1.19.0

func (o TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput) ToTaskDefinitionVolumeDockerVolumeConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionVolumeDockerVolumeConfigurationPtrOutput

type TaskDefinitionVolumeEfsVolumeConfiguration added in v1.19.0

type TaskDefinitionVolumeEfsVolumeConfiguration struct {
	// The ID of the EFS File System.
	FileSystemId string `pulumi:"fileSystemId"`
	// The path to mount on the host
	RootDirectory *string `pulumi:"rootDirectory"`
}

type TaskDefinitionVolumeEfsVolumeConfigurationArgs added in v1.19.0

type TaskDefinitionVolumeEfsVolumeConfigurationArgs struct {
	// The ID of the EFS File System.
	FileSystemId pulumi.StringInput `pulumi:"fileSystemId"`
	// The path to mount on the host
	RootDirectory pulumi.StringPtrInput `pulumi:"rootDirectory"`
}

func (TaskDefinitionVolumeEfsVolumeConfigurationArgs) ElementType added in v1.19.0

func (TaskDefinitionVolumeEfsVolumeConfigurationArgs) ToTaskDefinitionVolumeEfsVolumeConfigurationOutput added in v1.19.0

func (i TaskDefinitionVolumeEfsVolumeConfigurationArgs) ToTaskDefinitionVolumeEfsVolumeConfigurationOutput() TaskDefinitionVolumeEfsVolumeConfigurationOutput

func (TaskDefinitionVolumeEfsVolumeConfigurationArgs) ToTaskDefinitionVolumeEfsVolumeConfigurationOutputWithContext added in v1.19.0

func (i TaskDefinitionVolumeEfsVolumeConfigurationArgs) ToTaskDefinitionVolumeEfsVolumeConfigurationOutputWithContext(ctx context.Context) TaskDefinitionVolumeEfsVolumeConfigurationOutput

func (TaskDefinitionVolumeEfsVolumeConfigurationArgs) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutput added in v1.19.0

func (i TaskDefinitionVolumeEfsVolumeConfigurationArgs) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutput() TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput

func (TaskDefinitionVolumeEfsVolumeConfigurationArgs) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutputWithContext added in v1.19.0

func (i TaskDefinitionVolumeEfsVolumeConfigurationArgs) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput

type TaskDefinitionVolumeEfsVolumeConfigurationInput added in v1.19.0

type TaskDefinitionVolumeEfsVolumeConfigurationInput interface {
	pulumi.Input

	ToTaskDefinitionVolumeEfsVolumeConfigurationOutput() TaskDefinitionVolumeEfsVolumeConfigurationOutput
	ToTaskDefinitionVolumeEfsVolumeConfigurationOutputWithContext(context.Context) TaskDefinitionVolumeEfsVolumeConfigurationOutput
}

type TaskDefinitionVolumeEfsVolumeConfigurationOutput added in v1.19.0

type TaskDefinitionVolumeEfsVolumeConfigurationOutput struct{ *pulumi.OutputState }

func (TaskDefinitionVolumeEfsVolumeConfigurationOutput) ElementType added in v1.19.0

func (TaskDefinitionVolumeEfsVolumeConfigurationOutput) FileSystemId added in v1.19.0

The ID of the EFS File System.

func (TaskDefinitionVolumeEfsVolumeConfigurationOutput) RootDirectory added in v1.19.0

The path to mount on the host

func (TaskDefinitionVolumeEfsVolumeConfigurationOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationOutput added in v1.19.0

func (o TaskDefinitionVolumeEfsVolumeConfigurationOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationOutput() TaskDefinitionVolumeEfsVolumeConfigurationOutput

func (TaskDefinitionVolumeEfsVolumeConfigurationOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationOutputWithContext added in v1.19.0

func (o TaskDefinitionVolumeEfsVolumeConfigurationOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationOutputWithContext(ctx context.Context) TaskDefinitionVolumeEfsVolumeConfigurationOutput

func (TaskDefinitionVolumeEfsVolumeConfigurationOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutput added in v1.19.0

func (o TaskDefinitionVolumeEfsVolumeConfigurationOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutput() TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput

func (TaskDefinitionVolumeEfsVolumeConfigurationOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutputWithContext added in v1.19.0

func (o TaskDefinitionVolumeEfsVolumeConfigurationOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput

type TaskDefinitionVolumeEfsVolumeConfigurationPtrInput added in v1.19.0

type TaskDefinitionVolumeEfsVolumeConfigurationPtrInput interface {
	pulumi.Input

	ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutput() TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput
	ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutputWithContext(context.Context) TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput
}

type TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput added in v1.19.0

type TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput struct{ *pulumi.OutputState }

func (TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput) Elem added in v1.19.0

func (TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput) ElementType added in v1.19.0

func (TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput) FileSystemId added in v1.19.0

The ID of the EFS File System.

func (TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput) RootDirectory added in v1.19.0

The path to mount on the host

func (TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutput added in v1.19.0

func (o TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutput() TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput

func (TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutputWithContext added in v1.19.0

func (o TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput) ToTaskDefinitionVolumeEfsVolumeConfigurationPtrOutputWithContext(ctx context.Context) TaskDefinitionVolumeEfsVolumeConfigurationPtrOutput

type TaskDefinitionVolumeInput added in v1.19.0

type TaskDefinitionVolumeInput interface {
	pulumi.Input

	ToTaskDefinitionVolumeOutput() TaskDefinitionVolumeOutput
	ToTaskDefinitionVolumeOutputWithContext(context.Context) TaskDefinitionVolumeOutput
}

type TaskDefinitionVolumeOutput added in v1.19.0

type TaskDefinitionVolumeOutput struct{ *pulumi.OutputState }

func (TaskDefinitionVolumeOutput) DockerVolumeConfiguration added in v1.19.0

Used to configure a docker volume

func (TaskDefinitionVolumeOutput) EfsVolumeConfiguration added in v1.19.0

Used to configure a EFS volume. Can be used only with an EC2 type task.

func (TaskDefinitionVolumeOutput) ElementType added in v1.19.0

func (TaskDefinitionVolumeOutput) ElementType() reflect.Type

func (TaskDefinitionVolumeOutput) HostPath added in v1.19.0

The path on the host container instance that is presented to the container. If not set, ECS will create a nonpersistent data volume that starts empty and is deleted after the task has finished.

func (TaskDefinitionVolumeOutput) Name added in v1.19.0

The name of the volume. This name is referenced in the `sourceVolume` parameter of container definition in the `mountPoints` section.

func (TaskDefinitionVolumeOutput) ToTaskDefinitionVolumeOutput added in v1.19.0

func (o TaskDefinitionVolumeOutput) ToTaskDefinitionVolumeOutput() TaskDefinitionVolumeOutput

func (TaskDefinitionVolumeOutput) ToTaskDefinitionVolumeOutputWithContext added in v1.19.0

func (o TaskDefinitionVolumeOutput) ToTaskDefinitionVolumeOutputWithContext(ctx context.Context) TaskDefinitionVolumeOutput

Jump to

Keyboard shortcuts

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