IMonitorableFleet

class aws_rfdk.IMonitorableFleet(*args, **kwargs)

Bases: IConnectable, Protocol

Interface for the fleet which can be registered to Health Monitor.

This declares methods to be implemented by different kind of fleets like ASG, Spot etc.

Attributes

connections

The network connections associated with this resource.

target_capacity

This field expects the maximum instance count this fleet can have.

eg.: maxCapacity for an ASG

target_capacity_metric

This field expects the base capacity metric of the fleet against which, the healthy percent will be calculated.

eg.: GroupDesiredCapacity for an ASG

target_scope

This field expects the scope in which to create the monitoring resource like TargetGroups, Listener etc.

target_to_monitor

This field expects the component of type IApplicationLoadBalancerTarget which can be attached to Application Load Balancer for monitoring.

eg. An AutoScalingGroup

target_update_policy

This field expects a policy which can be attached to the lambda execution role so that it is capable of suspending the fleet.

eg.: autoscaling:UpdateAutoScalingGroup permission for an ASG