Interface InstanceLaunchTemplate.Builder

    • Method Detail

      • ec2InstanceProfileArn

        InstanceLaunchTemplate.Builder ec2InstanceProfileArn​(String ec2InstanceProfileArn)

        The Amazon Resource Name (ARN) of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances. This instance profile must include the necessary permissions for your tasks to access Amazon Web Services services and resources.

        For more information, see Amazon ECS instance profile for Managed Instances in the Amazon ECS Developer Guide.

        Parameters:
        ec2InstanceProfileArn - The Amazon Resource Name (ARN) of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances. This instance profile must include the necessary permissions for your tasks to access Amazon Web Services services and resources.

        For more information, see Amazon ECS instance profile for Managed Instances in the Amazon ECS Developer Guide.

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

        InstanceLaunchTemplate.Builder networkConfiguration​(ManagedInstancesNetworkConfiguration networkConfiguration)

        The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.

        Parameters:
        networkConfiguration - The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • storageConfiguration

        InstanceLaunchTemplate.Builder storageConfiguration​(ManagedInstancesStorageConfiguration storageConfiguration)

        The storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances.

        Parameters:
        storageConfiguration - The storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • monitoring

        InstanceLaunchTemplate.Builder monitoring​(String monitoring)

        CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.

        Parameters:
        monitoring - CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ManagedInstancesMonitoringOptions, ManagedInstancesMonitoringOptions
      • monitoring

        InstanceLaunchTemplate.Builder monitoring​(ManagedInstancesMonitoringOptions monitoring)

        CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.

        Parameters:
        monitoring - CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ManagedInstancesMonitoringOptions, ManagedInstancesMonitoringOptions
      • capacityOptionType

        InstanceLaunchTemplate.Builder capacityOptionType​(String capacityOptionType)

        The capacity option type. This determines whether Amazon ECS launches On-Demand or Spot Instances for your managed instance capacity provider.

        Valid values are:

        • ON_DEMAND - Launches standard On-Demand Instances. On-Demand Instances provide predictable pricing and availability.

        • SPOT - Launches Spot Instances that use spare Amazon EC2 capacity at reduced cost. Spot Instances can be interrupted by Amazon EC2 with a two-minute notification when the capacity is needed back.

        The default is On-Demand

        For more information about Amazon EC2 capacity options, see Instance purchasing options in the Amazon EC2 User Guide.

        Parameters:
        capacityOptionType - The capacity option type. This determines whether Amazon ECS launches On-Demand or Spot Instances for your managed instance capacity provider.

        Valid values are:

        • ON_DEMAND - Launches standard On-Demand Instances. On-Demand Instances provide predictable pricing and availability.

        • SPOT - Launches Spot Instances that use spare Amazon EC2 capacity at reduced cost. Spot Instances can be interrupted by Amazon EC2 with a two-minute notification when the capacity is needed back.

        The default is On-Demand

        For more information about Amazon EC2 capacity options, see Instance purchasing options in the Amazon EC2 User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CapacityOptionType, CapacityOptionType
      • capacityOptionType

        InstanceLaunchTemplate.Builder capacityOptionType​(CapacityOptionType capacityOptionType)

        The capacity option type. This determines whether Amazon ECS launches On-Demand or Spot Instances for your managed instance capacity provider.

        Valid values are:

        • ON_DEMAND - Launches standard On-Demand Instances. On-Demand Instances provide predictable pricing and availability.

        • SPOT - Launches Spot Instances that use spare Amazon EC2 capacity at reduced cost. Spot Instances can be interrupted by Amazon EC2 with a two-minute notification when the capacity is needed back.

        The default is On-Demand

        For more information about Amazon EC2 capacity options, see Instance purchasing options in the Amazon EC2 User Guide.

        Parameters:
        capacityOptionType - The capacity option type. This determines whether Amazon ECS launches On-Demand or Spot Instances for your managed instance capacity provider.

        Valid values are:

        • ON_DEMAND - Launches standard On-Demand Instances. On-Demand Instances provide predictable pricing and availability.

        • SPOT - Launches Spot Instances that use spare Amazon EC2 capacity at reduced cost. Spot Instances can be interrupted by Amazon EC2 with a two-minute notification when the capacity is needed back.

        The default is On-Demand

        For more information about Amazon EC2 capacity options, see Instance purchasing options in the Amazon EC2 User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CapacityOptionType, CapacityOptionType
      • instanceRequirements

        InstanceLaunchTemplate.Builder instanceRequirements​(InstanceRequirementsRequest instanceRequirements)

        The instance requirements. You can specify:

        • The instance types

        • Instance requirements such as vCPU count, memory, network performance, and accelerator specifications

        Amazon ECS automatically selects the instances that match the specified criteria.

        Parameters:
        instanceRequirements - The instance requirements. You can specify:

        • The instance types

        • Instance requirements such as vCPU count, memory, network performance, and accelerator specifications

        Amazon ECS automatically selects the instances that match the specified criteria.

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

        InstanceLaunchTemplate.Builder fipsEnabled​(Boolean fipsEnabled)

        Determines whether to enable FIPS 140-2 validated cryptographic modules on EC2 instances launched by the capacity provider. If true, instances use FIPS-compliant cryptographic algorithms and modules for enhanced security compliance. If false, instances use standard cryptographic implementations.

        If not specified, instances are launched with FIPS enabled in AWS GovCloud (US) regions and FIPS disabled in other regions.

        Parameters:
        fipsEnabled - Determines whether to enable FIPS 140-2 validated cryptographic modules on EC2 instances launched by the capacity provider. If true, instances use FIPS-compliant cryptographic algorithms and modules for enhanced security compliance. If false, instances use standard cryptographic implementations.

        If not specified, instances are launched with FIPS enabled in AWS GovCloud (US) regions and FIPS disabled in other regions.

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