Interface ManagedInstancesProvider.Builder

  • Method Details

    • propagateTags

      ManagedInstancesProvider.Builder propagateTags(String propagateTags)

      Specifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches. Valid values:

      • CAPACITY_PROVIDER — Propagates tags to instances.

      • NONE (default) — Does not propagate tags to instances.

      Parameters:
      propagateTags - Specifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches. Valid values:

      • CAPACITY_PROVIDER — Propagates tags to instances.

      • NONE (default) — Does not propagate tags to instances.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • infrastructureRoleArn

      ManagedInstancesProvider.Builder infrastructureRoleArn(String infrastructureRoleArn)

      The Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf. This role must have a trust policy for ecs.amazonaws.com. You must have the iam:PassRole permission for this role with the condition iam:PassedToService: ecs.amazonaws.com.

      Parameters:
      infrastructureRoleArn - The Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf. This role must have a trust policy for ecs.amazonaws.com. You must have the iam:PassRole permission for this role with the condition iam:PassedToService: ecs.amazonaws.com.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceLaunchTemplate

      ManagedInstancesProvider.Builder instanceLaunchTemplate(InstanceLaunchTemplate instanceLaunchTemplate)

      The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.

      Parameters:
      instanceLaunchTemplate - The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceLaunchTemplate

      default ManagedInstancesProvider.Builder instanceLaunchTemplate(Consumer<InstanceLaunchTemplate.Builder> instanceLaunchTemplate)

      The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.

      This is a convenience method that creates an instance of the InstanceLaunchTemplate.Builder avoiding the need to create one manually via InstanceLaunchTemplate.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instanceLaunchTemplate(InstanceLaunchTemplate).

      Parameters:
      instanceLaunchTemplate - a consumer that will call methods on InstanceLaunchTemplate.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • infrastructureOptimization

      ManagedInstancesProvider.Builder infrastructureOptimization(InfrastructureOptimization infrastructureOptimization)

      The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.

      Parameters:
      infrastructureOptimization - The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • infrastructureOptimization

      default ManagedInstancesProvider.Builder infrastructureOptimization(Consumer<InfrastructureOptimization.Builder> infrastructureOptimization)

      The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.

      This is a convenience method that creates an instance of the InfrastructureOptimization.Builder avoiding the need to create one manually via InfrastructureOptimization.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to infrastructureOptimization(InfrastructureOptimization).

      Parameters:
      infrastructureOptimization - a consumer that will call methods on InfrastructureOptimization.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: