boto3.resources.base

Module Contents

logger
class ResourceMeta(service_name, identifiers=None, client=None, data=None, resource_model=None)

Bases:object

An object containing metadata about a resource.

__repr__(self)
__eq__(self, other)
copy(self)

Create a copy of this metadata object.

class ServiceResource(*args, **kwargs)

Bases:object

A base class for resources.

Parameters:client (botocore.client) – A low-level Botocore client instance
meta

Stores metadata about this resource instance, such as the service_name, the low-level client and any cached data from when the instance was hydrated. For example:

# Get a low-level client from a resource instance
client = resource.meta.client
response = client.operation(Param='foo')

# Print the resource instance's service short name
print(resource.meta.service_name)

See ResourceMeta for more information.

__repr__(self)
__eq__(self, other)
__hash__(self)