// getIdFromArn gets the aws String value of the input arn and returns the id part of the arn func getIdFromArn(arn *string) string { return composeutils.GetIdFromArn(aws.StringValue(arn)) }
// Name returns the task's UUID with the container // ECS doesn't have a describe container API so providing the task's UUID in the name enables users // to easily look up this container in the ecs world by invoking DescribeTask func (c *Container) Name() string { taskId := utils.GetIdFromArn(aws.StringValue(c.task.TaskArn)) return utils.GetFormattedContainerName(taskId, aws.StringValue(c.ecsContainer.Name)) }
// TaskDefinition returns the ECS task definition id which encompasses the container definition, with // which this container was created func (c *Container) TaskDefinition() string { return utils.GetIdFromArn(aws.StringValue(c.task.TaskDefinitionArn)) }
// Id returns the ECS container's UUID func (c *Container) Id() string { return utils.GetIdFromArn(aws.StringValue(c.ecsContainer.ContainerArn)) }