Interface CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty.Jsii$Proxy
Enclosing class:
CfnCapacityProviderPropsMixin

@Stability(Stable) public static interface CfnCapacityProviderPropsMixin.ManagedInstancesProviderProperty extends software.amazon.jsii.JsiiSerializable
The configuration for a Amazon ECS Managed Instances provider.

Amazon ECS uses this configuration to automatically launch, manage, and terminate Amazon EC2 instances on your behalf. Managed instances provide access to the full range of Amazon EC2 instance types and features while offloading infrastructure management to AWS .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.ecs.*;
 ManagedInstancesProviderProperty managedInstancesProviderProperty = ManagedInstancesProviderProperty.builder()
         .infrastructureOptimization(InfrastructureOptimizationProperty.builder()
                 .scaleInAfter(123)
                 .build())
         .infrastructureRoleArn("infrastructureRoleArn")
         .instanceLaunchTemplate(InstanceLaunchTemplateProperty.builder()
                 .capacityOptionType("capacityOptionType")
                 .capacityReservations(CapacityReservationRequestProperty.builder()
                         .reservationGroupArn("reservationGroupArn")
                         .reservationPreference("reservationPreference")
                         .build())
                 .ec2InstanceProfileArn("ec2InstanceProfileArn")
                 .fipsEnabled(false)
                 .instanceRequirements(InstanceRequirementsRequestProperty.builder()
                         .acceleratorCount(AcceleratorCountRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .acceleratorManufacturers(List.of("acceleratorManufacturers"))
                         .acceleratorNames(List.of("acceleratorNames"))
                         .acceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .acceleratorTypes(List.of("acceleratorTypes"))
                         .allowedInstanceTypes(List.of("allowedInstanceTypes"))
                         .bareMetal("bareMetal")
                         .baselineEbsBandwidthMbps(BaselineEbsBandwidthMbpsRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .burstablePerformance("burstablePerformance")
                         .cpuManufacturers(List.of("cpuManufacturers"))
                         .excludedInstanceTypes(List.of("excludedInstanceTypes"))
                         .instanceGenerations(List.of("instanceGenerations"))
                         .localStorage("localStorage")
                         .localStorageTypes(List.of("localStorageTypes"))
                         .maxSpotPriceAsPercentageOfOptimalOnDemandPrice(123)
                         .memoryGiBPerVCpu(MemoryGiBPerVCpuRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .memoryMiB(MemoryMiBRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .networkBandwidthGbps(NetworkBandwidthGbpsRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .networkInterfaceCount(NetworkInterfaceCountRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .onDemandMaxPricePercentageOverLowestPrice(123)
                         .requireHibernateSupport(false)
                         .spotMaxPricePercentageOverLowestPrice(123)
                         .totalLocalStorageGb(TotalLocalStorageGBRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .vCpuCount(VCpuCountRangeRequestProperty.builder()
                                 .max(123)
                                 .min(123)
                                 .build())
                         .build())
                 .monitoring("monitoring")
                 .networkConfiguration(ManagedInstancesNetworkConfigurationProperty.builder()
                         .securityGroups(List.of("securityGroups"))
                         .subnets(List.of("subnets"))
                         .build())
                 .storageConfiguration(ManagedInstancesStorageConfigurationProperty.builder()
                         .storageSizeGiB(123)
                         .build())
                 .build())
         .propagateTags("propagateTags")
         .build();
 

See Also: