Current File : //usr/lib/python3/dist-packages/boto3/resources/__pycache__/collection.cpython-312.pyc |
�
��e*K � � � d dl Z d dlZd dlmZ d dlmZ ddlmZ ddlm Z ddl
mZ dd lm
Z
ej e� Z G d
� d� Z G d� d
� Z G d� d� Zy)� N)�
xform_name)�merge_dicts� )� docstring� )�BatchAction)�create_request_parameters)�ResourceHandlerc �F � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zy)�ResourceCollectiona�
Represents a collection of resources, which can be iterated through,
optionally with filtering. Collections automatically handle pagination
for you.
See :ref:`guide_collections` for a high-level overview of collections,
including when remote service requests are performed.
:type model: :py:class:`~boto3.resources.model.Collection`
:param model: Collection model
:type parent: :py:class:`~boto3.resources.base.ServiceResource`
:param parent: The collection's parent resource
:type handler: :py:class:`~boto3.resources.response.ResourceHandler`
:param handler: The resource response handler used to create resource
instances
c � � || _ || _ t |j j � | _ || _ t j |� | _ y �N)
�_model�_parentr �request� operation�_py_operation_name�_handler�copy�deepcopy�_params)�self�model�parent�handler�kwargss �</usr/lib/python3/dist-packages/boto3/resources/collection.py�__init__zResourceCollection.__init__. s>