altimeter.aws.resource.ec2 package

Submodules

altimeter.aws.resource.ec2.flow_log module

Resource for VPC Flow Logs

class FlowLogResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for VPC Flow Logs

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘fl_1_arn’: {fl_1_dict},

‘fl_2_arn’: {fl_2_dict}, …}

Where the dicts represent results from describe_flow_logs.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'flow-log'

altimeter.aws.resource.ec2.image module

Resource for EC2Images (AMIs)

class EC2ImageResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for EC2Images (AMIs)

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘image_1_arn’: {image_1_dict},

‘image_2_arn’: {image_2_dict}, …}

Where the dicts represent results from describe_images.

Return type

ListFromAWSResult

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

altimeter.aws.resource.ec2.instance module

Resource for EC2Instances

class EC2InstanceResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for EC2Instances

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘instance_1_arn’: {instance_1_dict},

‘instance_2_arn’: {instance_2_dict}, …}

Where the dicts represent results from describe_instances.

Return type

ListFromAWSResult

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

altimeter.aws.resource.ec2.internet_gateway module

Resource for Internet Gateways

class InternetGatewayResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for InternetGateways

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘igw_1_arn’: {igw_1_dict},

‘igw_2_arn’: {igw_2_dict}, …}

Where the dicts represent results from describe_internet_gateways.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'internet-gateway'

altimeter.aws.resource.ec2.network_interface module

Resource for EC2 Network Interfaces.

class EC2NetworkInterfaceResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for EC2NetworkInterfaces

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘network_interface_1_arn’: {network_interface_1_dict},

‘network_interface_2_arn’: {network_interface_2_dict}, …}

Where the dicts represent results from describe_network_interfaces.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'network-interface'

altimeter.aws.resource.ec2.region module

Resource representing an AWS Region

class RegionResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource representing an AWS Region

classmethod get_full_type_name()

Get the fully qualified type name for this class, generally something like aws:ec2:instance, aws:iam:role, etc.

Returns

ec2:instance”

Return type

string of full type name, generally something like “aws

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘region_1_arn’: {region_1_dict},

‘region_2_arn’: {region_2_dict}, …}

Where the dicts represent results from describe_regions.

Return type

ListFromAWSResult

scan_granularity: altimeter.aws.resource.resource_spec.ScanGranularity = 2
schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'region'

altimeter.aws.resource.ec2.route_table module

Resource for Route Tables

class EC2RouteTableResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for Route Tables

classmethod list_from_aws(client, account_id, region)

Return a ListFromAWSResult object by calling the appropriate AWS API calls to list/describe the resource represented by this class.

Parameters
  • client (BaseClient) – boto3 Client

  • account_id (str) – aws account id

  • region (str) – aws region

Return type

ListFromAWSResult

Returns

ListFromAWSResult object

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'route-table'

altimeter.aws.resource.ec2.security_group module

Resource for SecurityGroups

class SecurityGroupResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for SecurityGroups

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘security_group_1_arn’: {security_group_1_dict},

‘security_group_2_arn’: {security_group_2_dict}, …}

Where the dicts represent results from describe_subnets.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'security-group'

altimeter.aws.resource.ec2.snapshot module

Resource for EBSSnapshots

class EBSSnapshotResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for EBSSnapshots

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘snapshot_1_arn’: {snapshot_1_dict},

‘snapshot_2_arn’: {snapshot_2_dict}, …}

Where the dicts represent results from describe_snapshots.

Return type

ListFromAWSResult

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

altimeter.aws.resource.ec2.subnet module

Resource for Subnets

class SubnetResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for Subnets

classmethod list_from_aws(client, account_id, region)

Return a ListFromAWSResult object by calling the appropriate AWS API calls to list/describe the resource represented by this class.

Parameters
  • client (BaseClient) – boto3 Client

  • account_id (str) – aws account id

  • region (str) – aws region

Return type

ListFromAWSResult

Returns

ListFromAWSResult object

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

altimeter.aws.resource.ec2.transit_gateway module

Resource for Transit Gateways

class TransitGatewayResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for TransitGateways

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘tgw_1_arn’: {tgw_1_dict},

‘tgw_2_arn’: {tgw_2_dict}, …}

Where the dicts represent results from describe_transit_gateways.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'transit-gateway'

altimeter.aws.resource.ec2.transit_gateway_vpc_attachment module

Resource for Transit Gateway VPC Attachments

class TransitGatewayVpcAttachmentResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for Transit Gateway VPC Attachments

classmethod list_from_aws(client, account_id, region)

Return a ListFromAWSResult object by calling the appropriate AWS API calls to list/describe the resource represented by this class.

Parameters
  • client (BaseClient) – boto3 Client

  • account_id (str) – aws account id

  • region (str) – aws region

Return type

ListFromAWSResult

Returns

ListFromAWSResult object

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'transit-gateway-vpc-attachment'

altimeter.aws.resource.ec2.volume module

Resource for EBSVolumes

class EBSVolumeResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for EBSVolumes

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘volume_1_arn’: {volume_1_dict},

‘volume_2_arn’: {volume_2_dict}, …}

Where the dicts represent results from describe_volumes.

Return type

ListFromAWSResult

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

altimeter.aws.resource.ec2.vpc module

Resource for VPCs

class VPCResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for VPCs

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘vpc_1_arn’: {vpc_1_dict},

‘vpc_2_arn’: {vpc_2_dict}, …}

Where the dicts represent results from describe_vpcs.

Return type

ListFromAWSResult

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

altimeter.aws.resource.ec2.vpc_endpoint module

Resource for VPC Endpoints

class VpcEndpointResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for VPC Endpoints

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘vpc_endpoint_1_arn’: {vpc_endpoint_1_dict},

‘vpc_endpoint_1_arn’: {vpc_endpoint_2_dict}, …}

Where the dicts represent results from describe_vpc_endpoints.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'vpc-endpoint'

altimeter.aws.resource.ec2.vpc_endpoint_service module

Resource for VPC Endpoint Services

class VpcEndpointServiceResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for VPC Endpoint Services

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘vpc_endpoint_svc_1_arn’: {vpc_endpoint_svc_1_dict},

‘vpc_endpoint_svc_2_arn’: {vpc_endpoint_svc_2_dict}, …}

Where the dicts represent results from describe_vpc_endpoint_service_configurations.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'vpc-endpoint-service'

altimeter.aws.resource.ec2.vpc_peering_connection module

Resource for VPC Peering Connections.

class VPCPeeringConnectionResourceSpec

Bases: altimeter.aws.resource.ec2.EC2ResourceSpec

Resource for VPC Peering Connections.

classmethod list_from_aws(client, account_id, region)

Return a dict of dicts of the format:

{‘vpc_peering_connection_1_arn’: {vpc_peering_connection_1_dict},

‘vpc_peering_connection_2_arn’: {vpc_peering_connection_2_dict}, …}

Where the dicts represent results from describe_vpc_peering_connections.

Return type

ListFromAWSResult

schema: Schema = <altimeter.core.graph.schema.Schema object>
type_name: str = 'vpc-peering-connection'

Module contents

AWSResourceSpec subclass for ec2 resources.

class EC2ResourceSpec

Bases: altimeter.aws.resource.resource_spec.AWSResourceSpec

AWSResourceSpec subclass for ec2 resources.

service_name: str = 'ec2'