Class EcsTaskProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.EcsTaskProps.Jsii$Proxy
All Implemented Interfaces:
EcsTaskProps, TargetBaseProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
EcsTaskProps

@Stability(Stable) @Internal public static final class EcsTaskProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EcsTaskProps
An implementation for EcsTaskProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(EcsTaskProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the EcsTaskProps.Builder.
  • Method Details

    • getCluster

      public final ICluster getCluster()
      Description copied from interface: EcsTaskProps
      Cluster where service will be deployed.
      Specified by:
      getCluster in interface EcsTaskProps
    • getTaskDefinition

      public final ITaskDefinition getTaskDefinition()
      Description copied from interface: EcsTaskProps
      Task Definition of the task that should be started.
      Specified by:
      getTaskDefinition in interface EcsTaskProps
    • getAssignPublicIp

      public final Boolean getAssignPublicIp()
      Description copied from interface: EcsTaskProps
      Specifies whether the task's elastic network interface receives a public IP address.

      You can specify true only when LaunchType is set to FARGATE.

      Default: - true if the subnet type is PUBLIC, otherwise false

      Specified by:
      getAssignPublicIp in interface EcsTaskProps
    • getContainerOverrides

      public final List<ContainerOverride> getContainerOverrides()
      Description copied from interface: EcsTaskProps
      Container setting overrides.

      Key is the name of the container to override, value is the values you want to override.

      Specified by:
      getContainerOverrides in interface EcsTaskProps
    • getEnableExecuteCommand

      public final Boolean getEnableExecuteCommand()
      Description copied from interface: EcsTaskProps
      Whether or not to enable the execute command functionality for the containers in this task.

      If true, this enables execute command functionality on all containers in the task.

      Default: - false

      Specified by:
      getEnableExecuteCommand in interface EcsTaskProps
    • getLaunchType

      public final LaunchType getLaunchType()
      Description copied from interface: EcsTaskProps
      Specifies the launch type on which your task is running.

      The launch type that you specify here must match one of the launch type (compatibilities) of the target task.

      Default: - 'EC2' if `isEc2Compatible` for the `taskDefinition` is true, otherwise 'FARGATE'

      Specified by:
      getLaunchType in interface EcsTaskProps
    • getPlatformVersion

      public final FargatePlatformVersion getPlatformVersion()
      Description copied from interface: EcsTaskProps
      The platform version on which to run your task.

      Unless you have specific compatibility requirements, you don't need to specify this.

      Default: - ECS will set the Fargate platform version to 'LATEST'

      Specified by:
      getPlatformVersion in interface EcsTaskProps
      See Also:
    • getPropagateTags

      public final PropagatedTagSource getPropagateTags()
      Description copied from interface: EcsTaskProps
      Specifies whether to propagate the tags from the task definition to the task.

      If no value is specified, the tags are not propagated.

      Default: - Tags will not be propagated

      Specified by:
      getPropagateTags in interface EcsTaskProps
    • getRole

      public final IRole getRole()
      Description copied from interface: EcsTaskProps
      Existing IAM role to run the ECS task.

      Default: A new IAM role is created

      Specified by:
      getRole in interface EcsTaskProps
    • getSecurityGroups

      public final List<ISecurityGroup> getSecurityGroups()
      Description copied from interface: EcsTaskProps
      Existing security groups to use for the task's ENIs.

      (Only applicable in case the TaskDefinition is configured for AwsVpc networking)

      Default: A new security group is created

      Specified by:
      getSecurityGroups in interface EcsTaskProps
    • getSubnetSelection

      public final SubnetSelection getSubnetSelection()
      Description copied from interface: EcsTaskProps
      In what subnets to place the task's ENIs.

      (Only applicable in case the TaskDefinition is configured for AwsVpc networking)

      Default: Private subnets

      Specified by:
      getSubnetSelection in interface EcsTaskProps
    • getTags

      public final List<Tag> getTags()
      Description copied from interface: EcsTaskProps
      The metadata that you apply to the task to help you categorize and organize them.

      Each tag consists of a key and an optional value, both of which you define.

      Default: - No additional tags are applied to the task

      Specified by:
      getTags in interface EcsTaskProps
    • getTaskCount

      public final Number getTaskCount()
      Description copied from interface: EcsTaskProps
      How many tasks should be started when this event is triggered.

      Default: 1

      Specified by:
      getTaskCount in interface EcsTaskProps
    • getDeadLetterQueue

      public final IQueue getDeadLetterQueue()
      Description copied from interface: TargetBaseProps
      The SQS queue to be used as deadLetterQueue. Check out the considerations for using a dead-letter queue.

      The events not successfully delivered are automatically retried for a specified period of time, depending on the retry policy of the target. If an event is not delivered before all retry attempts are exhausted, it will be sent to the dead letter queue.

      Default: - no dead-letter queue

      Specified by:
      getDeadLetterQueue in interface TargetBaseProps
    • getMaxEventAge

      public final Duration getMaxEventAge()
      Description copied from interface: TargetBaseProps
      The maximum age of a request that Lambda sends to a function for processing.

      Minimum value of 60. Maximum value of 86400.

      Default: Duration.hours(24)

      Specified by:
      getMaxEventAge in interface TargetBaseProps
    • getRetryAttempts

      public final Number getRetryAttempts()
      Description copied from interface: TargetBaseProps
      The maximum number of times to retry when the function returns an error.

      Minimum value of 0. Maximum value of 185.

      Default: 185

      Specified by:
      getRetryAttempts in interface TargetBaseProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object