com.pulumi.aws.ecs.outputs.GetTaskDefinitionResult Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ecs.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetTaskDefinitionResult {
/**
* @return ARN of the task definition.
*
*/
private String arn;
/**
* @return ARN of the Task Definition with the trailing `revision` removed. This may be useful for situations where the latest task definition is always desired. If a revision isn't specified, the latest ACTIVE revision is used. See the [AWS documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_StartTask.html#ECS-StartTask-request-taskDefinition) for details.
*
*/
private String arnWithoutRevision;
/**
* @return ARN of the task execution role that the Amazon ECS container agent and the Docker.
*
*/
private String executionRoleArn;
/**
* @return Family of this task definition.
*
*/
private String family;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Docker networking mode to use for the containers in this task.
*
*/
private String networkMode;
/**
* @return Revision of this task definition.
*
*/
private Integer revision;
/**
* @return Status of this task definition.
*
*/
private String status;
private String taskDefinition;
/**
* @return ARN of the IAM role that containers in this task can assume.
*
*/
private String taskRoleArn;
private GetTaskDefinitionResult() {}
/**
* @return ARN of the task definition.
*
*/
public String arn() {
return this.arn;
}
/**
* @return ARN of the Task Definition with the trailing `revision` removed. This may be useful for situations where the latest task definition is always desired. If a revision isn't specified, the latest ACTIVE revision is used. See the [AWS documentation](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_StartTask.html#ECS-StartTask-request-taskDefinition) for details.
*
*/
public String arnWithoutRevision() {
return this.arnWithoutRevision;
}
/**
* @return ARN of the task execution role that the Amazon ECS container agent and the Docker.
*
*/
public String executionRoleArn() {
return this.executionRoleArn;
}
/**
* @return Family of this task definition.
*
*/
public String family() {
return this.family;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Docker networking mode to use for the containers in this task.
*
*/
public String networkMode() {
return this.networkMode;
}
/**
* @return Revision of this task definition.
*
*/
public Integer revision() {
return this.revision;
}
/**
* @return Status of this task definition.
*
*/
public String status() {
return this.status;
}
public String taskDefinition() {
return this.taskDefinition;
}
/**
* @return ARN of the IAM role that containers in this task can assume.
*
*/
public String taskRoleArn() {
return this.taskRoleArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTaskDefinitionResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String arnWithoutRevision;
private String executionRoleArn;
private String family;
private String id;
private String networkMode;
private Integer revision;
private String status;
private String taskDefinition;
private String taskRoleArn;
public Builder() {}
public Builder(GetTaskDefinitionResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.arnWithoutRevision = defaults.arnWithoutRevision;
this.executionRoleArn = defaults.executionRoleArn;
this.family = defaults.family;
this.id = defaults.id;
this.networkMode = defaults.networkMode;
this.revision = defaults.revision;
this.status = defaults.status;
this.taskDefinition = defaults.taskDefinition;
this.taskRoleArn = defaults.taskRoleArn;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder arnWithoutRevision(String arnWithoutRevision) {
if (arnWithoutRevision == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "arnWithoutRevision");
}
this.arnWithoutRevision = arnWithoutRevision;
return this;
}
@CustomType.Setter
public Builder executionRoleArn(String executionRoleArn) {
if (executionRoleArn == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "executionRoleArn");
}
this.executionRoleArn = executionRoleArn;
return this;
}
@CustomType.Setter
public Builder family(String family) {
if (family == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "family");
}
this.family = family;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder networkMode(String networkMode) {
if (networkMode == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "networkMode");
}
this.networkMode = networkMode;
return this;
}
@CustomType.Setter
public Builder revision(Integer revision) {
if (revision == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "revision");
}
this.revision = revision;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder taskDefinition(String taskDefinition) {
if (taskDefinition == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "taskDefinition");
}
this.taskDefinition = taskDefinition;
return this;
}
@CustomType.Setter
public Builder taskRoleArn(String taskRoleArn) {
if (taskRoleArn == null) {
throw new MissingRequiredPropertyException("GetTaskDefinitionResult", "taskRoleArn");
}
this.taskRoleArn = taskRoleArn;
return this;
}
public GetTaskDefinitionResult build() {
final var _resultValue = new GetTaskDefinitionResult();
_resultValue.arn = arn;
_resultValue.arnWithoutRevision = arnWithoutRevision;
_resultValue.executionRoleArn = executionRoleArn;
_resultValue.family = family;
_resultValue.id = id;
_resultValue.networkMode = networkMode;
_resultValue.revision = revision;
_resultValue.status = status;
_resultValue.taskDefinition = taskDefinition;
_resultValue.taskRoleArn = taskRoleArn;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy