Class EcsTaskProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.EcsTaskProps.Jsii$Proxy
All Implemented Interfaces:
EcsTaskProps, 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
    • 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
    • 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:
    • 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
    • getSecurityGroup

      public final ISecurityGroup getSecurityGroup()
      Description copied from interface: EcsTaskProps
      (deprecated) Existing security group 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:
      getSecurityGroup 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
    • 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
    • $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