altimeter.aws.resource.elbv2 package

Submodules

altimeter.aws.resource.elbv2.load_balancer module

Resource for load balancers

class LoadBalancerResourceSpec

Bases: altimeter.aws.resource.elbv2.ELBV2ResourceSpec

Resource for load balancer

classmethod get_lb_attrs(client, lb_arn)

Get lb attributes that Altimeter graphs.

Return type

Dict[str, str]

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘lb_1_arn’: {lb_1_dict},

‘lb_2_arn’: {lb_2_dict}, …}

Where the dicts represent results from describe_load_balancers.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'loadbalancer'

altimeter.aws.resource.elbv2.target_group module

Resource for target groups

exception TargetGroupAccessDeniedException

Bases: altimeter.core.exceptions.AltimeterException

class TargetGroupResourceSpec

Bases: altimeter.aws.resource.elbv2.ELBV2ResourceSpec

Resource for target group

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘target_group_1_arn’: {target_group_1_dict},

‘target_group_2_arn’: {target_group_2_dict}, …}

Where the dicts represent results from describe_target_groups.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'targetgroup'
get_target_group_health(client, target_group_arn)

Describes target health for a given target group

Return type

List[Dict[str, Any]]

Module contents

ResourceSpec classes for elbv2 resources.

class ELBV2ResourceSpec

Bases: altimeter.aws.resource.resource_spec.AWSResourceSpec

Abstract base for ResourceSpec classes for elbv2 resources.

classmethod get_client_name()

Get the boto3 client name to be used for scanning resources of this type. Generally this is the same as cls.service_name but in some cases it is not.

Return type

str

Returns

string of boto3 client name for cls.service

service_name: str = 'elbv2'