EC2¶
-
class
ec2.
classic_address
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="classic_address") for resource in resources: resource.load() print(resource.urn) print(resource.allocation_id) print(resource.association_id) print(resource.carrier_ip) print(resource.customer_owned_ip) print(resource.customer_owned_ipv4_pool) print(resource.domain) print(resource.instance_id) print(resource.network_border_group) print(resource.network_interface_id) print(resource.network_interface_owner_id) print(resource.private_ip_address) print(resource.public_ipv4_pool) print(resource.tags)
-
allocation_id
¶ The ID representing the allocation of the address for use with EC2-VPC.
-
association_id
¶ The ID representing the association of the address with an instance in a VPC.
-
carrier_ip
¶ The carrier IP address associated. This option is only available for network interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 instance).
-
customer_owned_ip
¶ The customer-owned IP address.
-
customer_owned_ipv4_pool
¶ The ID of the customer-owned address pool.
-
domain
¶ Indicates whether this Elastic IP address is for use with instances in EC2-Classic (
standard
) or instances in a VPC (vpc
).
-
instance_id
¶ The ID of the instance that the address is associated with (if any).
-
network_border_group
¶ The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses.
-
network_interface_id
¶ The ID of the network interface.
-
network_interface_owner_id
¶ The ID of the AWS account that owns the network interface.
-
private_ip_address
¶ The private IP address associated with the Elastic IP address.
-
public_ipv4_pool
¶ The ID of an address pool.
Any tags assigned to the Elastic IP address.
-
-
class
ec2.
customer_gateway
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="customer_gateway") for resource in resources: resource.load() print(resource.urn) print(resource.bgp_asn) print(resource.certificate_arn) print(resource.customer_gateway_id) print(resource.device_name) print(resource.ip_address) print(resource.state) print(resource.tags) print(resource.type)
-
bgp_asn
¶ The customer gateway’s Border Gateway Protocol (BGP) Autonomous System Number (ASN).
-
certificate_arn
¶ The Amazon Resource Name (ARN) for the customer gateway certificate.
-
customer_gateway_id
¶ The ID of the customer gateway.
-
device_name
¶ The name of customer gateway device.
-
ip_address
¶ The Internet-routable IP address of the customer gateway’s outside interface.
-
state
¶ The current state of the customer gateway (
pending | available | deleting | deleted
).
Any tags assigned to the customer gateway.
-
type
¶ The type of VPN connection the customer gateway supports (
ipsec.1
).
-
-
class
ec2.
dhcp_options
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="dhcp_options") for resource in resources: resource.load() print(resource.urn) print(resource.dhcp_configurations) print(resource.dhcp_options_id) print(resource.owner_id) print(resource.tags)
-
dhcp_configurations
¶ One or more DHCP options in the set.
-
dhcp_options_id
¶ The ID of the set of DHCP options.
-
owner_id
¶ The ID of the AWS account that owns the DHCP options set.
Any tags assigned to the DHCP options set.
-
-
class
ec2.
egress_only_internet_gateway
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="egress_only_internet_gateway") for resource in resources: resource.load() print(resource.urn) print(resource.attachments) print(resource.egress_only_internet_gateway_id) print(resource.tags)
-
attachments
¶ Information about the attachment of the egress-only internet gateway.
-
egress_only_internet_gateway_id
¶ The ID of the egress-only internet gateway.
The tags assigned to the egress-only internet gateway.
-
-
class
ec2.
elastic_ip
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="elastic_ip") for resource in resources: resource.load() print(resource.urn) print(resource.allocation_id) print(resource.association_id) print(resource.carrier_ip) print(resource.customer_owned_ip) print(resource.customer_owned_ipv4_pool) print(resource.domain) print(resource.instance_id) print(resource.network_border_group) print(resource.network_interface_id) print(resource.network_interface_owner_id) print(resource.private_ip_address) print(resource.public_ip) print(resource.public_ipv4_pool) print(resource.tags)
-
allocation_id
¶ The ID representing the allocation of the address for use with EC2-VPC.
-
association_id
¶ The ID representing the association of the address with an instance in a VPC.
-
carrier_ip
¶ The carrier IP address associated. This option is only available for network interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 instance).
-
customer_owned_ip
¶ The customer-owned IP address.
-
customer_owned_ipv4_pool
¶ The ID of the customer-owned address pool.
-
domain
¶ Indicates whether this Elastic IP address is for use with instances in EC2-Classic (
standard
) or instances in a VPC (vpc
).
-
instance_id
¶ The ID of the instance that the address is associated with (if any).
-
network_border_group
¶ The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses.
-
network_interface_id
¶ The ID of the network interface.
-
network_interface_owner_id
¶ The ID of the AWS account that owns the network interface.
-
private_ip_address
¶ The private IP address associated with the Elastic IP address.
-
public_ip
¶ The Elastic IP address.
-
public_ipv4_pool
¶ The ID of an address pool.
Any tags assigned to the Elastic IP address.
-
-
class
ec2.
image
¶ Default Filters:
When this resource is discovered the following filter will be applied.
.filter(Owners=['self'])
Example:
resources = storage_connector.read_resources( service="ec2", resource_type="image") for resource in resources: resource.load() print(resource.urn) print(resource.architecture) print(resource.block_device_mappings) print(resource.boot_mode) print(resource.creation_date) print(resource.description) print(resource.ena_support) print(resource.hypervisor) print(resource.image_id) print(resource.image_location) print(resource.image_owner_alias) print(resource.image_type) print(resource.kernel_id) print(resource.name) print(resource.owner_id) print(resource.platform) print(resource.platform_details) print(resource.product_codes) print(resource.public) print(resource.ramdisk_id) print(resource.root_device_name) print(resource.root_device_type) print(resource.sriov_net_support) print(resource.state) print(resource.state_reason) print(resource.tags) print(resource.usage_operation) print(resource.virtualization_type)
-
architecture
¶ The architecture of the image.
-
block_device_mappings
¶ Any block device mapping entries.
-
boot_mode
¶ The boot mode of the image. For more information, see Boot modes in the Amazon Elastic Compute Cloud User Guide .
-
creation_date
¶ The date and time the image was created.
-
description
¶ The description of the AMI that was provided during image creation.
-
ena_support
¶ Specifies whether enhanced networking with ENA is enabled.
-
hypervisor
¶ The hypervisor type of the image.
-
image_id
¶ The ID of the AMI.
-
image_location
¶ The location of the AMI.
-
image_owner_alias
¶ The AWS account alias (for example,
amazon
,self
) or the AWS account ID of the AMI owner.
-
image_type
¶ The type of image.
-
kernel_id
¶ The kernel associated with the image, if any. Only applicable for machine images.
-
name
¶ The name of the AMI that was provided during image creation.
-
owner_id
¶ The AWS account ID of the image owner.
-
platform
¶ This value is set to
windows
for Windows AMIs; otherwise, it is blank.
-
platform_details
¶ The platform details associated with the billing code of the AMI. For more information, see Obtaining Billing Information in the Amazon Elastic Compute Cloud User Guide .
-
product_codes
¶ Any product codes associated with the AMI.
-
public
¶ Indicates whether the image has public launch permissions. The value is
true
if this image has public launch permissions orfalse
if it has only implicit and explicit launch permissions.
-
ramdisk_id
¶ The RAM disk associated with the image, if any. Only applicable for machine images.
-
root_device_name
¶ The device name of the root device volume (for example,
/dev/sda1
).
-
root_device_type
¶ The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
-
sriov_net_support
¶ Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
-
state
¶ The current state of the AMI. If the state is
available
, the image is successfully registered and can be used to launch an instance.
-
state_reason
¶ The reason for the state change.
Any tags assigned to the image.
-
usage_operation
¶ The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
usageOperation
corresponds to the lineitem/Operation column on your AWS Cost and Usage Report and in the AWS Price List API . For the list ofUsageOperation
codes, see Platform Details and Usage Operation Billing Codes in the Amazon Elastic Compute Cloud User Guide .
-
virtualization_type
¶ The type of virtualization of the AMI.
-
-
class
ec2.
instance
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="instance") for resource in resources: resource.load() print(resource.urn) print(resource.ami_launch_index) print(resource.architecture) print(resource.block_device_mappings) print(resource.boot_mode) print(resource.capacity_reservation_id) print(resource.capacity_reservation_specification) print(resource.client_token) print(resource.cpu_options) print(resource.ebs_optimized) print(resource.elastic_gpu_associations) print(resource.elastic_inference_accelerator_associations) print(resource.ena_support) print(resource.enclave_options) print(resource.hibernation_options) print(resource.hypervisor) print(resource.iam_instance_profile) print(resource.image_id) print(resource.instance_id) print(resource.instance_lifecycle) print(resource.instance_type) print(resource.kernel_id) print(resource.key_name) print(resource.launch_time) print(resource.licenses) print(resource.metadata_options) print(resource.monitoring) print(resource.network_interfaces_attribute) print(resource.outpost_arn) print(resource.placement) print(resource.platform) print(resource.private_dns_name) print(resource.private_ip_address) print(resource.product_codes) print(resource.public_dns_name) print(resource.public_ip_address) print(resource.ramdisk_id) print(resource.root_device_name) print(resource.root_device_type) print(resource.security_groups) print(resource.source_dest_check) print(resource.spot_instance_request_id) print(resource.sriov_net_support) print(resource.state) print(resource.state_reason) print(resource.state_transition_reason) print(resource.subnet_id) print(resource.tags) print(resource.virtualization_type) print(resource.vpc_id)
-
ami_launch_index
¶ The AMI launch index, which can be used to find this instance in the launch group.
-
architecture
¶ The architecture of the image.
-
block_device_mappings
¶ Any block device mapping entries for the instance.
-
boot_mode
¶ The boot mode of the instance. For more information, see Boot modes in the Amazon EC2 User Guide .
-
capacity_reservation_id
¶ The ID of the Capacity Reservation.
-
capacity_reservation_specification
¶ Information about the Capacity Reservation targeting option.
-
client_token
¶ The idempotency token you provided when you launched the instance, if applicable.
-
cpu_options
¶ The CPU options for the instance.
-
ebs_optimized
¶ Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn’t available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
-
elastic_gpu_associations
¶ The Elastic GPU associated with the instance.
-
elastic_inference_accelerator_associations
¶ The elastic inference accelerator associated with the instance.
-
ena_support
¶ Specifies whether enhanced networking with ENA is enabled.
-
enclave_options
¶ Indicates whether the instance is enabled for AWS Nitro Enclaves.
-
hibernation_options
¶ Indicates whether the instance is enabled for hibernation.
-
hypervisor
¶ The hypervisor type of the instance. The value
xen
is used for both Xen and Nitro hypervisors.
-
iam_instance_profile
¶ The IAM instance profile associated with the instance, if applicable.
-
image_id
¶ The ID of the AMI used to launch the instance.
-
instance_id
¶ The ID of the instance.
-
instance_lifecycle
¶ Indicates whether this is a Spot Instance or a Scheduled Instance.
-
instance_type
¶ The instance type.
-
kernel_id
¶ The kernel associated with this instance, if applicable.
-
key_name
¶ The name of the key pair, if this instance was launched with an associated key pair.
-
launch_time
¶ The time the instance was launched.
-
licenses
¶ The license configurations.
-
metadata_options
¶ The metadata options for the instance.
-
monitoring
¶ The monitoring for the instance.
-
network_interfaces_attribute
¶ [EC2-VPC] The network interfaces for the instance.
-
outpost_arn
¶ The Amazon Resource Name (ARN) of the Outpost.
-
placement
¶ The location where the instance launched, if applicable.
-
platform
¶ The value is
Windows
for Windows instances; otherwise blank.
-
private_dns_name
¶ (IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the
running
state. [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you’ve enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
-
private_ip_address
¶ The private IPv4 address assigned to the instance.
-
product_codes
¶ The product codes attached to this instance, if applicable.
-
public_dns_name
¶ (IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance enters the
running
state. For EC2-VPC, this name is only available if you’ve enabled DNS hostnames for your VPC.
-
public_ip_address
¶ The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable. A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
-
ramdisk_id
¶ The RAM disk associated with this instance, if applicable.
-
root_device_name
¶ The device name of the root device volume (for example,
/dev/sda1
).
-
root_device_type
¶ The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
-
security_groups
¶ The security groups for the instance.
-
source_dest_check
¶ Indicates whether source/destination checking is enabled.
-
spot_instance_request_id
¶ If the request is a Spot Instance request, the ID of the request.
-
sriov_net_support
¶ Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
-
state
¶ The current state of the instance.
-
state_reason
¶ The reason for the most recent state transition.
-
state_transition_reason
¶ The reason for the most recent state transition. This might be an empty string.
-
subnet_id
¶ [EC2-VPC] The ID of the subnet in which the instance is running.
Any tags assigned to the instance.
-
virtualization_type
¶ The virtualization type of the instance.
-
vpc_id
¶ [EC2-VPC] The ID of the VPC in which the instance is running.
-
-
class
ec2.
internet_gateway
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="internet_gateway") for resource in resources: resource.load() print(resource.urn) print(resource.attachments) print(resource.internet_gateway_id) print(resource.owner_id) print(resource.tags)
-
attachments
¶ Any VPCs attached to the internet gateway.
-
internet_gateway_id
¶ The ID of the internet gateway.
-
owner_id
¶ The ID of the AWS account that owns the internet gateway.
Any tags assigned to the internet gateway.
-
-
class
ec2.
key_pair_info
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="key_pair_info") for resource in resources: resource.load() print(resource.urn) print(resource.key_fingerprint) print(resource.key_name) print(resource.key_pair_id) print(resource.tags)
-
key_fingerprint
¶ If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key fingerprint as specified in section 4 of RFC4716.
-
key_name
¶ The name of the key pair.
-
key_pair_id
¶ The ID of the key pair.
Any tags applied to the key pair.
-
-
class
ec2.
nat_gateway
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="nat_gateway") for resource in resources: resource.load() print(resource.urn) print(resource.create_time) print(resource.delete_time) print(resource.failure_code) print(resource.failure_message) print(resource.nat_gateway_addresses) print(resource.nat_gateway_id) print(resource.provisioned_bandwidth) print(resource.state) print(resource.subnet_id) print(resource.tags) print(resource.vpc_id)
-
create_time
¶ The date and time the NAT gateway was created.
-
delete_time
¶ The date and time the NAT gateway was deleted, if applicable.
-
failure_code
¶ If the NAT gateway could not be created, specifies the error code for the failure. (
InsufficientFreeAddressesInSubnet
|Gateway.NotAttached
|InvalidAllocationID.NotFound
|Resource.AlreadyAssociated
|InternalError
|InvalidSubnetID.NotFound
)
-
failure_message
¶ If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code. * For InsufficientFreeAddressesInSubnet: “Subnet has insufficient free addresses to create this NAT gateway” * For Gateway.NotAttached: “Network vpc-xxxxxxxx has no Internet gateway attached” * For InvalidAllocationID.NotFound: “Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway” * For Resource.AlreadyAssociated: “Elastic IP address eipalloc-xxxxxxxx is already associated” * For InternalError: “Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again.” * For InvalidSubnetID.NotFound: “The specified subnet subnet-xxxxxxxx does not exist or could not be found.”
-
nat_gateway_addresses
¶ Information about the IP addresses and network interface associated with the NAT gateway.
-
nat_gateway_id
¶ The ID of the NAT gateway.
-
provisioned_bandwidth
¶ Reserved. If you need to sustain traffic greater than the documented limits , contact us through the Support Center .
-
state
¶ The state of the NAT gateway. *
pending
: The NAT gateway is being created and is not ready to process traffic. *failed
: The NAT gateway could not be created. Check thefailureCode
andfailureMessage
fields for the reason. *available
: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway. *deleting
: The NAT gateway is in the process of being terminated and may still be processing traffic. *deleted
: The NAT gateway has been terminated and is no longer processing traffic.
-
subnet_id
¶ The ID of the subnet in which the NAT gateway is located.
The tags for the NAT gateway.
-
vpc_id
¶ The ID of the VPC in which the NAT gateway is located.
-
-
class
ec2.
network_acl
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="network_acl") for resource in resources: resource.load() print(resource.urn) print(resource.associations) print(resource.entries) print(resource.is_default) print(resource.network_acl_id) print(resource.owner_id) print(resource.tags) print(resource.vpc_id)
-
associations
¶ Any associations between the network ACL and one or more subnets
-
entries
¶ One or more entries (rules) in the network ACL.
-
is_default
¶ Indicates whether this is the default network ACL for the VPC.
-
network_acl_id
¶ The ID of the network ACL.
-
owner_id
¶ The ID of the AWS account that owns the network ACL.
Any tags assigned to the network ACL.
-
vpc_id
¶ The ID of the VPC for the network ACL.
-
-
class
ec2.
network_interface
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="network_interface") for resource in resources: resource.load() print(resource.urn) print(resource.association_attribute) print(resource.attachment) print(resource.availability_zone) print(resource.description) print(resource.groups) print(resource.interface_type) print(resource.ipv6_addresses) print(resource.mac_address) print(resource.network_interface_id) print(resource.outpost_arn) print(resource.owner_id) print(resource.private_dns_name) print(resource.private_ip_address) print(resource.private_ip_addresses) print(resource.requester_id) print(resource.requester_managed) print(resource.source_dest_check) print(resource.status) print(resource.subnet_id) print(resource.tag_set) print(resource.vpc_id)
-
association_attribute
¶ The association information for an Elastic IP address (IPv4) associated with the network interface.
-
attachment
¶ The network interface attachment.
-
availability_zone
¶ The Availability Zone.
-
description
¶ A description.
-
groups
¶ Any security groups for the network interface.
-
interface_type
¶ The type of network interface.
-
ipv6_addresses
¶ The IPv6 addresses associated with the network interface.
-
mac_address
¶ The MAC address.
-
network_interface_id
¶ The ID of the network interface.
-
outpost_arn
¶ The Amazon Resource Name (ARN) of the Outpost.
-
owner_id
¶ The AWS account ID of the owner of the network interface.
-
private_dns_name
¶ The private DNS name.
-
private_ip_address
¶ The IPv4 address of the network interface within the subnet.
-
private_ip_addresses
¶ The private IPv4 addresses associated with the network interface.
-
requester_id
¶ The alias or AWS account ID of the principal or service that created the network interface.
-
requester_managed
¶ Indicates whether the network interface is being managed by AWS.
-
source_dest_check
¶ Indicates whether source/destination checking is enabled.
-
status
¶ The status of the network interface.
-
subnet_id
¶ The ID of the subnet.
-
tag_set
¶ Any tags assigned to the network interface.
-
vpc_id
¶ The ID of the VPC.
-
-
class
ec2.
placement_group
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="placement_group") for resource in resources: resource.load() print(resource.urn) print(resource.group_id) print(resource.group_name) print(resource.partition_count) print(resource.state) print(resource.strategy) print(resource.tags)
-
group_id
¶ The ID of the placement group.
-
group_name
¶ The name of the placement group.
-
partition_count
¶ The number of partitions. Valid only if strategy is set to
partition
.
-
state
¶ The state of the placement group.
-
strategy
¶ The placement strategy.
Any tags applied to the placement group.
-
-
class
ec2.
route_table
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="route_table") for resource in resources: resource.load() print(resource.urn) print(resource.associations_attribute) print(resource.owner_id) print(resource.propagating_vgws) print(resource.route_table_id) print(resource.routes_attribute) print(resource.tags) print(resource.vpc_id)
-
associations_attribute
¶ The associations between the route table and one or more subnets or a gateway.
-
owner_id
¶ The ID of the AWS account that owns the route table.
-
propagating_vgws
¶ Any virtual private gateway (VGW) propagating routes.
-
route_table_id
¶ The ID of the route table.
-
routes_attribute
¶ The routes in the route table.
Any tags assigned to the route table.
-
vpc_id
¶ The ID of the VPC.
-
-
class
ec2.
security_group
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="security_group") for resource in resources: resource.load() print(resource.urn) print(resource.description) print(resource.group_id) print(resource.group_name) print(resource.ip_permissions) print(resource.ip_permissions_egress) print(resource.owner_id) print(resource.tags) print(resource.vpc_id)
-
description
¶ A description of the security group.
-
group_id
¶ The ID of the security group.
-
group_name
¶ The name of the security group.
-
ip_permissions
¶ The inbound rules associated with the security group.
-
ip_permissions_egress
¶ [VPC only] The outbound rules associated with the security group.
-
owner_id
¶ The AWS account ID of the owner of the security group.
Any tags assigned to the security group.
-
vpc_id
¶ [VPC only] The ID of the VPC for the security group.
-
-
class
ec2.
snapshot
¶ Default Filters:
When this resource is discovered the following filter will be applied.
.filter(OwnerIds=['self'])
Example:
resources = storage_connector.read_resources( service="ec2", resource_type="snapshot") for resource in resources: resource.load() print(resource.urn) print(resource.data_encryption_key_id) print(resource.description) print(resource.encrypted) print(resource.kms_key_id) print(resource.outpost_arn) print(resource.owner_alias) print(resource.owner_id) print(resource.progress) print(resource.snapshot_id) print(resource.start_time) print(resource.state) print(resource.state_message) print(resource.tags) print(resource.volume_id) print(resource.volume_size)
-
data_encryption_key_id
¶ The data encryption key identifier for the snapshot. This value is a unique identifier that corresponds to the data encryption key that was used to encrypt the original volume or snapshot copy. Because data encryption keys are inherited by volumes created from snapshots, and vice versa, if snapshots share the same data encryption key identifier, then they belong to the same volume/snapshot lineage. This parameter is only returned by DescribeSnapshots .
-
description
¶ The description for the snapshot.
-
encrypted
¶ Indicates whether the snapshot is encrypted.
-
kms_key_id
¶ The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the parent volume.
-
outpost_arn
¶ The ARN of the AWS Outpost on which the snapshot is stored. For more information, see EBS Local Snapshot on Outposts in the Amazon Elastic Compute Cloud User Guide .
-
owner_alias
¶ The AWS owner alias, from an Amazon-maintained list (
amazon
). This is not the user-configured AWS account alias set using the IAM console.
-
owner_id
¶ The AWS account ID of the EBS snapshot owner.
-
progress
¶ The progress of the snapshot, as a percentage.
-
snapshot_id
¶ The ID of the snapshot. Each snapshot receives a unique identifier when it is created.
-
start_time
¶ The time stamp when the snapshot was initiated.
-
state
¶ The snapshot state.
-
state_message
¶ Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the proper AWS Key Management Service (AWS KMS) permissions are not obtained) this field displays error state details to help you diagnose why the error occurred. This parameter is only returned by DescribeSnapshots .
Any tags assigned to the snapshot.
-
volume_id
¶ The ID of the volume that was used to create the snapshot. Snapshots created by the CopySnapshot action have an arbitrary volume ID that should not be used for any purpose.
-
volume_size
¶ The size of the volume, in GiB.
-
-
class
ec2.
subnet
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="subnet") for resource in resources: resource.load() print(resource.urn) print(resource.assign_ipv6_address_on_creation) print(resource.availability_zone) print(resource.availability_zone_id) print(resource.available_ip_address_count) print(resource.cidr_block) print(resource.customer_owned_ipv4_pool) print(resource.default_for_az) print(resource.ipv6_cidr_block_association_set) print(resource.map_customer_owned_ip_on_launch) print(resource.map_public_ip_on_launch) print(resource.outpost_arn) print(resource.owner_id) print(resource.state) print(resource.subnet_arn) print(resource.subnet_id) print(resource.tags) print(resource.vpc_id)
-
assign_ipv6_address_on_creation
¶ Indicates whether a network interface created in this subnet (including a network interface created by RunInstances ) receives an IPv6 address.
-
availability_zone
¶ The Availability Zone of the subnet.
-
availability_zone_id
¶ The AZ ID of the subnet.
-
available_ip_address_count
¶ The number of unused private IPv4 addresses in the subnet. The IPv4 addresses for any stopped instances are considered unavailable.
-
cidr_block
¶ The IPv4 CIDR block assigned to the subnet.
-
customer_owned_ipv4_pool
¶ The customer-owned IPv4 address pool associated with the subnet.
-
default_for_az
¶ Indicates whether this is the default subnet for the Availability Zone.
-
ipv6_cidr_block_association_set
¶ Information about the IPv6 CIDR blocks associated with the subnet.
-
map_customer_owned_ip_on_launch
¶ Indicates whether a network interface created in this subnet (including a network interface created by RunInstances ) receives a customer-owned IPv4 address.
-
map_public_ip_on_launch
¶ Indicates whether instances launched in this subnet receive a public IPv4 address.
-
outpost_arn
¶ The Amazon Resource Name (ARN) of the Outpost.
-
owner_id
¶ The ID of the AWS account that owns the subnet.
-
state
¶ The current state of the subnet.
-
subnet_arn
¶ The Amazon Resource Name (ARN) of the subnet.
-
subnet_id
¶ The ID of the subnet.
Any tags assigned to the subnet.
-
vpc_id
¶ The ID of the VPC the subnet is in.
-
-
class
ec2.
volume
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="volume") for resource in resources: resource.load() print(resource.urn) print(resource.attachments) print(resource.availability_zone) print(resource.create_time) print(resource.encrypted) print(resource.fast_restored) print(resource.iops) print(resource.kms_key_id) print(resource.multi_attach_enabled) print(resource.outpost_arn) print(resource.size) print(resource.snapshot_id) print(resource.state) print(resource.tags) print(resource.throughput) print(resource.volume_id) print(resource.volume_type)
-
attachments
¶ Information about the volume attachments.
-
availability_zone
¶ The Availability Zone for the volume.
-
create_time
¶ The time stamp when volume creation was initiated.
-
encrypted
¶ Indicates whether the volume is encrypted.
-
fast_restored
¶ Indicates whether the volume was created using fast snapshot restore.
-
iops
¶ The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
-
kms_key_id
¶ The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to protect the volume encryption key for the volume.
-
multi_attach_enabled
¶ Indicates whether Amazon EBS Multi-Attach is enabled.
-
outpost_arn
¶ The Amazon Resource Name (ARN) of the Outpost.
-
size
¶ The size of the volume, in GiBs.
-
snapshot_id
¶ The snapshot from which the volume was created, if applicable.
-
state
¶ The volume state.
Any tags assigned to the volume.
-
throughput
¶ The throughput that the volume supports, in MiB/s.
-
volume_id
¶ The ID of the volume.
-
volume_type
¶ The volume type.
-
-
class
ec2.
vpc
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="vpc") for resource in resources: resource.load() print(resource.urn) print(resource.cidr_block) print(resource.cidr_block_association_set) print(resource.dhcp_options_id) print(resource.instance_tenancy) print(resource.ipv6_cidr_block_association_set) print(resource.is_default) print(resource.owner_id) print(resource.state) print(resource.tags) print(resource.vpc_id)
-
cidr_block
¶ The primary IPv4 CIDR block for the VPC.
-
cidr_block_association_set
¶ Information about the IPv4 CIDR blocks associated with the VPC.
-
dhcp_options_id
¶ The ID of the set of DHCP options you’ve associated with the VPC.
-
instance_tenancy
¶ The allowed tenancy of instances launched into the VPC.
-
ipv6_cidr_block_association_set
¶ Information about the IPv6 CIDR blocks associated with the VPC.
-
is_default
¶ Indicates whether the VPC is the default VPC.
-
owner_id
¶ The ID of the AWS account that owns the VPC.
-
state
¶ The current state of the VPC.
Any tags assigned to the VPC.
-
vpc_id
¶ The ID of the VPC.
-
-
class
ec2.vpc.
vpc_enable_dns_support
¶ A secondary attribute for the
ec2.vpc
resource type.Example:
resources = storage_connector.read_resources( service="ec2", resource_type="vpc") for resource in resources: resource.get_secondary_attribute(name="vpc_enable_dns_support")
-
class
ec2.
vpc_address
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="vpc_address") for resource in resources: resource.load() print(resource.urn) print(resource.association_id) print(resource.carrier_ip) print(resource.customer_owned_ip) print(resource.customer_owned_ipv4_pool) print(resource.domain) print(resource.instance_id) print(resource.network_border_group) print(resource.network_interface_id) print(resource.network_interface_owner_id) print(resource.private_ip_address) print(resource.public_ip) print(resource.public_ipv4_pool) print(resource.tags)
-
association_id
¶ The ID representing the association of the address with an instance in a VPC.
-
carrier_ip
¶ The carrier IP address associated. This option is only available for network interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 instance).
-
customer_owned_ip
¶ The customer-owned IP address.
-
customer_owned_ipv4_pool
¶ The ID of the customer-owned address pool.
-
domain
¶ Indicates whether this Elastic IP address is for use with instances in EC2-Classic (
standard
) or instances in a VPC (vpc
).
-
instance_id
¶ The ID of the instance that the address is associated with (if any).
-
network_border_group
¶ The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses.
-
network_interface_id
¶ The ID of the network interface.
-
network_interface_owner_id
¶ The ID of the AWS account that owns the network interface.
-
private_ip_address
¶ The private IP address associated with the Elastic IP address.
-
public_ip
¶ The Elastic IP address.
-
public_ipv4_pool
¶ The ID of an address pool.
Any tags assigned to the Elastic IP address.
-
-
class
ec2.
vpc_endpoint
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="vpc_endpoint") for resource in resources: resource.load() print(resource.urn) print(resource.creation_timestamp) print(resource.dns_entries) print(resource.groups) print(resource.last_error) print(resource.network_interface_ids) print(resource.owner_id) print(resource.policy_document) print(resource.private_dns_enabled) print(resource.requester_managed) print(resource.route_table_ids) print(resource.service_name) print(resource.state) print(resource.subnet_ids) print(resource.tags) print(resource.vpc_endpoint_id) print(resource.vpc_endpoint_type) print(resource.vpc_id)
-
creation_timestamp
¶ The date and time that the VPC endpoint was created.
-
dns_entries
¶ (Interface endpoint) The DNS entries for the endpoint.
-
groups
¶ (Interface endpoint) Information about the security groups that are associated with the network interface.
-
last_error
¶ The last error that occurred for VPC endpoint.
-
network_interface_ids
¶ (Interface endpoint) One or more network interfaces for the endpoint.
-
owner_id
¶ The ID of the AWS account that owns the VPC endpoint.
-
policy_document
¶ The policy document associated with the endpoint, if applicable.
-
private_dns_enabled
¶ (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
-
requester_managed
¶ Indicates whether the VPC endpoint is being managed by its service.
-
route_table_ids
¶ (Gateway endpoint) One or more route tables associated with the endpoint.
-
service_name
¶ The name of the service to which the endpoint is associated.
-
state
¶ The state of the VPC endpoint.
-
subnet_ids
¶ (Interface endpoint) One or more subnets in which the endpoint is located.
Any tags assigned to the VPC endpoint.
-
vpc_endpoint_id
¶ The ID of the VPC endpoint.
-
vpc_endpoint_type
¶ The type of endpoint.
-
vpc_id
¶ The ID of the VPC to which the endpoint is associated.
-
-
class
ec2.
vpc_endpoint_service
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="vpc_endpoint_service") for resource in resources: resource.load() print(resource.urn) print(resource.acceptance_required) print(resource.availability_zones) print(resource.base_endpoint_dns_names) print(resource.manages_vpc_endpoints) print(resource.owner) print(resource.private_dns_name) print(resource.private_dns_name_verification_state) print(resource.private_dns_names) print(resource.service_id) print(resource.service_name) print(resource.service_type) print(resource.tags) print(resource.vpc_endpoint_policy_supported)
-
acceptance_required
¶ Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner.
-
availability_zones
¶ The Availability Zones in which the service is available.
-
base_endpoint_dns_names
¶ The DNS names for the service.
-
manages_vpc_endpoints
¶ Indicates whether the service manages its VPC endpoints. Management of the service VPC endpoints using the VPC endpoint API is restricted.
-
owner
¶ The AWS account ID of the service owner.
-
private_dns_name
¶ The private DNS name for the service.
-
private_dns_name_verification_state
¶ The verification state of the VPC endpoint service. Consumers of the endpoint service cannot use the private name when the state is not
verified
.
-
private_dns_names
¶ The private DNS names assigned to the VPC endpoint service.
-
service_id
¶ The ID of the endpoint service.
-
service_name
¶ The Amazon Resource Name (ARN) of the service.
-
service_type
¶ The type of service.
Any tags assigned to the service.
-
vpc_endpoint_policy_supported
¶ Indicates whether the service supports endpoint policies.
-
-
class
ec2.
vpc_peering_connection
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="vpc_peering_connection") for resource in resources: resource.load() print(resource.urn) print(resource.accepter_vpc_info) print(resource.expiration_time) print(resource.requester_vpc_info) print(resource.status) print(resource.tags) print(resource.vpc_peering_connection_id)
-
accepter_vpc_info
¶ Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
-
expiration_time
¶ The time that an unaccepted VPC peering connection will expire.
-
requester_vpc_info
¶ Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
-
status
¶ The status of the VPC peering connection.
Any tags assigned to the resource.
-
vpc_peering_connection_id
¶ The ID of the VPC peering connection.
-
-
class
ec2.
vpn_connection
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="vpn_connection") for resource in resources: resource.load() print(resource.urn) print(resource.category) print(resource.customer_gateway_configuration) print(resource.customer_gateway_id) print(resource.options) print(resource.routes) print(resource.state) print(resource.tags) print(resource.transit_gateway_id) print(resource.type) print(resource.vgw_telemetry) print(resource.vpn_connection_id) print(resource.vpn_gateway_id)
-
category
¶ The category of the VPN connection. A value of
VPN
indicates an AWS VPN connection. A value ofVPN-Classic
indicates an AWS Classic VPN connection.
-
customer_gateway_configuration
¶ The configuration information for the VPN connection’s customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it’s present in the DescribeVpnConnections response only if the VPN connection is in the
pending
oravailable
state.
-
customer_gateway_id
¶ The ID of the customer gateway at your end of the VPN connection.
-
options
¶ The VPN connection options.
-
routes
¶ The static routes associated with the VPN connection.
-
state
¶ The current state of the VPN connection.
Any tags assigned to the VPN connection.
-
transit_gateway_id
¶ The ID of the transit gateway associated with the VPN connection.
-
type
¶ The type of VPN connection.
-
vgw_telemetry
¶ Information about the VPN tunnel.
-
vpn_connection_id
¶ The ID of the VPN connection.
-
vpn_gateway_id
¶ The ID of the virtual private gateway at the AWS side of the VPN connection.
-
-
class
ec2.
vpn_gateway
¶ Example:
resources = storage_connector.read_resources( service="ec2", resource_type="vpn_gateway") for resource in resources: resource.load() print(resource.urn) print(resource.amazon_side_asn) print(resource.availability_zone) print(resource.state) print(resource.tags) print(resource.type) print(resource.vpc_attachments) print(resource.vpn_gateway_id)
-
amazon_side_asn
¶ The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
-
availability_zone
¶ The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.
-
state
¶ The current state of the virtual private gateway.
Any tags assigned to the virtual private gateway.
-
type
¶ The type of VPN connection the virtual private gateway supports.
-
vpc_attachments
¶ Any VPCs attached to the virtual private gateway.
-
vpn_gateway_id
¶ The ID of the virtual private gateway.
-