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

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

Introduction

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

Prototype


public java.util.List<ContainerDefinition> getContainerDefinitions() 

Source Link

Document

A list of container definitions in JSON format that describe the different containers that make up your task.

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;
}