software.amazon.awscdk.services.ecs.ITaskDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecs Show documentation
Show all versions of ecs Show documentation
The CDK Construct Library for AWS::ECS
package software.amazon.awscdk.services.ecs;
/**
* The interface for all task definitions.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.20.2 (build faba0be)", date = "2019-11-11T17:18:01.450Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.ecs.$Module.class, fqn = "@aws-cdk/aws-ecs.ITaskDefinition")
@software.amazon.jsii.Jsii.Proxy(ITaskDefinition.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface ITaskDefinition extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.core.IResource {
/**
* What launch types this task definition should be compatible with.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
software.amazon.awscdk.services.ecs.Compatibility getCompatibility();
/**
* Return true if the task definition can be run on an EC2 cluster.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
java.lang.Boolean getIsEc2Compatible();
/**
* Return true if the task definition can be run on a Fargate cluster.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
java.lang.Boolean getIsFargateCompatible();
/**
* ARN of this task definition.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
java.lang.String getTaskDefinitionArn();
/**
* Execution role for this task definition.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default software.amazon.awscdk.services.iam.IRole getExecutionRole() {
return null;
}
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.ecs.ITaskDefinition {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
/**
* What launch types this task definition should be compatible with.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public software.amazon.awscdk.services.ecs.Compatibility getCompatibility() {
return this.jsiiGet("compatibility", software.amazon.awscdk.services.ecs.Compatibility.class);
}
/**
* Return true if the task definition can be run on an EC2 cluster.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public java.lang.Boolean getIsEc2Compatible() {
return this.jsiiGet("isEc2Compatible", java.lang.Boolean.class);
}
/**
* Return true if the task definition can be run on a Fargate cluster.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public java.lang.Boolean getIsFargateCompatible() {
return this.jsiiGet("isFargateCompatible", java.lang.Boolean.class);
}
/**
* ARN of this task definition.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public java.lang.String getTaskDefinitionArn() {
return this.jsiiGet("taskDefinitionArn", java.lang.String.class);
}
/**
* Execution role for this task definition.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public software.amazon.awscdk.services.iam.IRole getExecutionRole() {
return this.jsiiGet("executionRole", software.amazon.awscdk.services.iam.IRole.class);
}
/**
* The stack in which this resource is defined.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public software.amazon.awscdk.core.Stack getStack() {
return this.jsiiGet("stack", software.amazon.awscdk.core.Stack.class);
}
/**
* The construct node in the tree.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public software.amazon.awscdk.core.ConstructNode getNode() {
return this.jsiiGet("node", software.amazon.awscdk.core.ConstructNode.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy