Uses of Class
software.amazon.awscdk.services.autoscaling.AutoScalingGroup.Builder
Packages that use AutoScalingGroup.Builder
Package
Description
Amazon EC2 Auto Scaling Construct Library
-
Uses of AutoScalingGroup.Builder in software.amazon.awscdk.services.autoscaling
Methods in software.amazon.awscdk.services.autoscaling that return AutoScalingGroup.BuilderModifier and TypeMethodDescriptionAutoScalingGroup.Builder.allowAllOutbound
(Boolean allowAllOutbound) Whether the instances can initiate connections to anywhere by default.AutoScalingGroup.Builder.associatePublicIpAddress
(Boolean associatePublicIpAddress) Whether instances in the Auto Scaling Group should have public IP addresses associated with them.AutoScalingGroup.Builder.autoScalingGroupName
(String autoScalingGroupName) The name of the Auto Scaling group.AutoScalingGroup.Builder.azCapacityDistributionStrategy
(CapacityDistributionStrategy azCapacityDistributionStrategy) The strategy for distributing instances across Availability Zones.AutoScalingGroup.Builder.blockDevices
(List<? extends BlockDevice> blockDevices) Specifies how block devices are exposed to the instance.AutoScalingGroup.Builder.capacityRebalance
(Boolean capacityRebalance) Indicates whether Capacity Rebalancing is enabled.Default scaling cooldown for this AutoScalingGroup.static AutoScalingGroup.Builder
AutoScalingGroup.Builder.defaultInstanceWarmup
(Duration defaultInstanceWarmup) The amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics.AutoScalingGroup.Builder.desiredCapacity
(Number desiredCapacity) Initial amount of instances in the fleet.AutoScalingGroup.Builder.groupMetrics
(List<? extends GroupMetrics> groupMetrics) Enable monitoring for group metrics, these metrics describe the group rather than any of its instances.AutoScalingGroup.Builder.healthCheck
(HealthCheck healthCheck) Deprecated.AutoScalingGroup.Builder.healthChecks
(HealthChecks healthChecks) Configuration for EC2 or additional health checks.AutoScalingGroup.Builder.ignoreUnmodifiedSizeProperties
(Boolean ignoreUnmodifiedSizeProperties) If the ASG has scheduled actions, don't reset unchanged group sizes.AutoScalingGroup.Builder.init
(CloudFormationInit init) Apply the given CloudFormation Init configuration to the instances in the AutoScalingGroup at startup.AutoScalingGroup.Builder.initOptions
(ApplyCloudFormationInitOptions initOptions) Use the given options for applying CloudFormation Init.AutoScalingGroup.Builder.instanceMonitoring
(Monitoring instanceMonitoring) Controls whether instances in this group are launched with detailed or basic monitoring.AutoScalingGroup.Builder.instanceType
(InstanceType instanceType) Type of instance to launch.Deprecated.UsekeyPair
instead - https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2-readme.html#using-an-existing-ec2-key-pairThe SSH keypair to grant access to the instance.AutoScalingGroup.Builder.launchTemplate
(ILaunchTemplate launchTemplate) Launch template to use.AutoScalingGroup.Builder.machineImage
(IMachineImage machineImage) AMI to launch.AutoScalingGroup.Builder.maxCapacity
(Number maxCapacity) Maximum number of instances in the fleet.AutoScalingGroup.Builder.maxHealthyPercentage
(Number maxHealthyPercentage) Specifies the upper threshold as a percentage of the desired capacity of the Auto Scaling group.AutoScalingGroup.Builder.maxInstanceLifetime
(Duration maxInstanceLifetime) The maximum amount of time that an instance can be in service.AutoScalingGroup.Builder.minCapacity
(Number minCapacity) Minimum number of instances in the fleet.AutoScalingGroup.Builder.minHealthyPercentage
(Number minHealthyPercentage) Specifies the lower threshold as a percentage of the desired capacity of the Auto Scaling group.AutoScalingGroup.Builder.mixedInstancesPolicy
(MixedInstancesPolicy mixedInstancesPolicy) Mixed Instances Policy to use.AutoScalingGroup.Builder.newInstancesProtectedFromScaleIn
(Boolean newInstancesProtectedFromScaleIn) Whether newly-launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.AutoScalingGroup.Builder.notifications
(List<? extends NotificationConfiguration> notifications) Configure autoscaling group to send notifications about fleet changes to an SNS topic(s).AutoScalingGroup.Builder.requireImdsv2
(Boolean requireImdsv2) Whether IMDSv2 should be required on launched instances.An IAM role to associate with the instance profile assigned to this Auto Scaling Group.AutoScalingGroup.Builder.securityGroup
(ISecurityGroup securityGroup) Security group to launch the instances in.Configure waiting for signals during deployment.The maximum hourly price (in USD) to be paid for any Spot Instance launched to fulfill the request.AutoScalingGroup.Builder.ssmSessionPermissions
(Boolean ssmSessionPermissions) Add SSM session permissions to the instance role.AutoScalingGroup.Builder.terminationPolicies
(List<? extends TerminationPolicy> terminationPolicies) A policy or a list of policies that are used to select the instances to terminate.AutoScalingGroup.Builder.terminationPolicyCustomLambdaFunctionArn
(String terminationPolicyCustomLambdaFunctionArn) A lambda function Arn that can be used as a custom termination policy to select the instances to terminate.AutoScalingGroup.Builder.updatePolicy
(UpdatePolicy updatePolicy) What to do when an AutoScalingGroup's instance configuration is changed.Specific UserData to use.VPC to launch these instances in.AutoScalingGroup.Builder.vpcSubnets
(SubnetSelection vpcSubnets) Where to place instances within the VPC.
healthChecks
instead