Interface ManagedInstancesProvider.Builder

  • Method Details

    • infrastructureRoleArn

      ManagedInstancesProvider.Builder infrastructureRoleArn(String infrastructureRoleArn)

      The Amazon Resource Name (ARN) of the infrastructure role that Amazon ECS assumes to manage instances. This role must include permissions for Amazon EC2 instance lifecycle management, networking, and any additional Amazon Web Services services required for your workloads.

      For more information, see Amazon ECS infrastructure IAM role in the Amazon ECS Developer Guide.

      Parameters:
      infrastructureRoleArn - The Amazon Resource Name (ARN) of the infrastructure role that Amazon ECS assumes to manage instances. This role must include permissions for Amazon EC2 instance lifecycle management, networking, and any additional Amazon Web Services services required for your workloads.

      For more information, see Amazon ECS infrastructure IAM role in the Amazon ECS Developer Guide.

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

      ManagedInstancesProvider.Builder instanceLaunchTemplate(InstanceLaunchTemplate instanceLaunchTemplate)

      The launch template that defines how Amazon ECS launches Amazon ECS Managed Instances. This includes the instance profile for your tasks, network and storage configuration, and instance requirements that determine which Amazon EC2 instance types can be used.

      For more information, see Store instance launch parameters in Amazon EC2 launch templates in the Amazon EC2 User Guide.

      Parameters:
      instanceLaunchTemplate - The launch template that defines how Amazon ECS launches Amazon ECS Managed Instances. This includes the instance profile for your tasks, network and storage configuration, and instance requirements that determine which Amazon EC2 instance types can be used.

      For more information, see Store instance launch parameters in Amazon EC2 launch templates in the Amazon EC2 User Guide.

      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 launch template that defines how Amazon ECS launches Amazon ECS Managed Instances. This includes the instance profile for your tasks, network and storage configuration, and instance requirements that determine which Amazon EC2 instance types can be used.

      For more information, see Store instance launch parameters in Amazon EC2 launch templates in the Amazon EC2 User Guide.

      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:
    • propagateTags

      ManagedInstancesProvider.Builder propagateTags(String propagateTags)

      Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.

      Parameters:
      propagateTags - Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • propagateTags

      ManagedInstancesProvider.Builder propagateTags(PropagateMITags propagateTags)

      Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.

      Parameters:
      propagateTags - Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: