List of usage examples for com.amazonaws.services.ecs.model TaskDefinition getTaskRoleArn
public String getTaskRoleArn()
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.
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; }