Interface CapacityProviderProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CapacityProviderProps.Jsii$Proxy
Example:
import software.amazon.awscdk.services.ec2.*;
Vpc vpc = new Vpc(this, "MyVpc");
SecurityGroup securityGroup = SecurityGroup.Builder.create(this, "SecurityGroup").vpc(vpc).build();
CapacityProvider capacityProvider = CapacityProvider.Builder.create(this, "MyCapacityProvider")
.subnets(vpc.getPrivateSubnets())
.securityGroups(List.of(securityGroup))
.scalingOptions(ScalingOptions.manual(List.of(TargetTrackingScalingPolicy.cpuUtilization(70))))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCapacityProviderPropsstatic final classAn implementation forCapacityProviderProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default List<Architecture> The instruction set architecture required for compute instances.default StringThe name of the capacity provider.default InstanceTypeFilterConfiguration for filtering instance types that the capacity provider can use.default IKeyThe AWS Key Management Service (KMS) key used to encrypt data associated with the capacity provider.default NumberThe maximum number of vCPUs that the capacity provider can scale up to.default IRoleThe IAM role that the Lambda service assumes to manage the capacity provider.default ScalingOptionsThe options for scaling a capacity provider, including scaling policies.A list of security group IDs to associate with EC2 instances launched by the capacity provider.A list of subnets where the capacity provider can launch EC2 instances.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSecurityGroups
A list of security group IDs to associate with EC2 instances launched by the capacity provider.Up to 5 security groups can be specified.
-
getSubnets
A list of subnets where the capacity provider can launch EC2 instances.At least one subnet must be specified, and up to 16 subnets are supported.
-
getArchitectures
The instruction set architecture required for compute instances.Only one architecture can be specified per capacity provider.
Default: - No architecture constraints specified
-
getCapacityProviderName
The name of the capacity provider.The name must be unique within the AWS account and region.
Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the capacity provider's name.
-
getInstanceTypeFilter
Configuration for filtering instance types that the capacity provider can use.Default: - No instance type filtering applied
-
getKmsKey
The AWS Key Management Service (KMS) key used to encrypt data associated with the capacity provider.Default: - No KMS key specified, uses an AWS-managed key instead
-
getMaxVCpuCount
The maximum number of vCPUs that the capacity provider can scale up to.Default: - No maximum limit specified, service default is 400
-
getOperatorRole
The IAM role that the Lambda service assumes to manage the capacity provider.Default: - A role will be generated containing the AWSLambdaManagedEC2ResourceOperator managed policy
-
getScalingOptions
The options for scaling a capacity provider, including scaling policies.Default: - The `Auto` option is applied by default
-
builder
- Returns:
- a
CapacityProviderProps.BuilderofCapacityProviderProps
-