Show / Hide Table of Contents

Class ExternalTaskDefinitionAttributes

Attributes used to import an existing External task definition.

Inheritance
System.Object
ExternalTaskDefinitionAttributes
Implements
IExternalTaskDefinitionAttributes
ICommonTaskDefinitionAttributes
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class ExternalTaskDefinitionAttributes : Object, IExternalTaskDefinitionAttributes, ICommonTaskDefinitionAttributes
Syntax (vb)
Public Class ExternalTaskDefinitionAttributes
    Inherits Object
    Implements IExternalTaskDefinitionAttributes, ICommonTaskDefinitionAttributes
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
using Amazon.CDK.AWS.IAM;

Role role;

var externalTaskDefinitionAttributes = new ExternalTaskDefinitionAttributes {
    TaskDefinitionArn = "taskDefinitionArn",

    // the properties below are optional
    NetworkMode = NetworkMode.NONE,
    TaskRole = role
};

Synopsis

Constructors

ExternalTaskDefinitionAttributes()

Properties

NetworkMode

The networking mode to use for the containers in the task.

TaskDefinitionArn

The arn of the task definition.

TaskRole

The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.

Constructors

ExternalTaskDefinitionAttributes()

public ExternalTaskDefinitionAttributes()

Properties

NetworkMode

The networking mode to use for the containers in the task.

public Nullable<NetworkMode> NetworkMode { get; set; }
Property Value

System.Nullable<NetworkMode>

Remarks

Default: Network mode cannot be provided to the imported task.

TaskDefinitionArn

The arn of the task definition.

public string TaskDefinitionArn { get; set; }
Property Value

System.String

TaskRole

The name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.

public IRole TaskRole { get; set; }
Property Value

IRole

Remarks

Default: Permissions cannot be granted to the imported task.

Implements

IExternalTaskDefinitionAttributes
ICommonTaskDefinitionAttributes
Back to top Generated by DocFX