Example usage for com.amazonaws.services.ecs.model TaskDefinition getTaskRoleArn

List of usage examples for com.amazonaws.services.ecs.model TaskDefinition getTaskRoleArn

Introduction

In this page you can find the example usage for com.amazonaws.services.ecs.model TaskDefinition getTaskRoleArn.

Prototype


public String getTaskRoleArn() 

Source Link

Document

The short name or full Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants containers in the task permission to call AWS APIs on your behalf.

Usage

From source file:com.netflix.spinnaker.clouddriver.ecs.provider.agent.TaskDefinitionCachingAgent.java

License:Apache License

public static Map<String, Object> convertTaskDefinitionToAttributes(TaskDefinition taskDefinition) {
    Map<String, Object> attributes = new HashMap<>();
    attributes.put("taskDefinitionArn", taskDefinition.getTaskDefinitionArn());
    attributes.put("containerDefinitions", taskDefinition.getContainerDefinitions());
    attributes.put("taskRoleArn", taskDefinition.getTaskRoleArn());
    return attributes;
}