Aws.ecsListTaskDefinitions()

Return a list of task definitions that are registered to your account.

Usage

Hover over inputs/exits for more info.

var Aws = require('machinepack-aws');


// Return a list of task definitions that are registered to your account.

Aws.ecsListTaskDefinitions({

accessKeyId: 'akid',

secretAccessKey: 'secret',

region: 'us-west-2',

apiVersion: '2014-11-13',

familyPrefix: 'aFamily',

nextToken: 'aTokenValue',

maxResults: 100,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

accessKeyId required

AWS IAM user access key id.

'akid'
secretAccessKey required

AWS IAM user secret access key

'secret'
region

Which region to use. Defaults to us-west-2

'us-west-2'
apiVersion

Which api version to use. Defaults to: latest

'2014-11-13'
familyPrefix

The full family name that you want to filter the ListTaskDefinitions results with.

'aFamily'
nextToken

The nextToken value returned from a previous paginated ListTaskDefinitions request where maxResults was used and the results exceeded the value of that parameter.

'aTokenValue'
maxResults

The maximum number of task definition results returned by ListTaskDefinitions in paginated output.

100

Exits

error

An unexpected error occurred.

success

OK.

{ taskDefinitionArns: [ 'arn:aws:ecs:us-west-2:573433844230:task-definition/taskName:1' ] }