Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/boto3/__pycache__/session.cpython-37.pyc

247 lines
15 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>[<5B>]<5D>L<00>@stddlZddlZddlZddlmZddlmZmZddl Z ddl
Z ddl m Z m Z ddlmZGdd<08>de<10>ZdS) <09>N)<01>Config)<02>DataNotFoundError<6F>UnknownServiceError)<02>ResourceNotExistsError<6F>UnknownAPIVersionError<6F>)<01>ResourceFactoryc @s<>eZdZdZd$dd<04>Zdd<06>Zedd<08><00>Zed d
<EFBFBD><00>Zed d <0C><00>Z ed d<0E><00>Z
dd<10>Z dd<12>Z dd<14>Z dd<16>Zd%dd<1A>Zdd<1C>Zd&dd<1F>Zd'd d!<21>Zd"d#<23>ZdS)(<28>Sessiona/
A session stores configuration state and allows you to create service
clients and resources.
:type aws_access_key_id: string
:param aws_access_key_id: AWS access key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: AWS secret access key
:type aws_session_token: string
:param aws_session_token: AWS temporary session token
:type region_name: string
:param region_name: Default region when creating new connections
:type botocore_session: botocore.session.Session
:param botocore_session: Use this Botocore session instead of creating
a new default one.
:type profile_name: string
:param profile_name: The name of a profile to use. If not given, then
the default profile is used.
NcCs<>|dk r||_n tj<02><03>|_|jjdkrnd<02>|jj<06>}|jjrT|jjd|7_n||j_d|j_tj |j_|dk r<>|j<00>
d|<06>|s<>|s<>|r<>|j<00> |||<03>|dk r<>|j<00>
d|<04>t |j<00> d<07><01>|_|<00><0F>|<00><10>dS)NZBotocorez Botocore/{0}<7D> ZBoto3<6F>profile<6C>region<6F> event_emitter)<11>_session<6F>botocore<72>sessionZ get_sessionZuser_agent_name<6D>formatZuser_agent_version<6F>user_agent_extra<72>boto3<6F> __version__Zset_config_variableZset_credentialsr<00> get_component<6E>resource_factory<72> _setup_loader<65>_register_default_handlers)<08>self<6C>aws_access_key_id<69>aws_secret_access_key<65>aws_session_token<65> region_nameZbotocore_session<6F> profile_nameZ botocore_info<66>r<00>0/tmp/pip-install-u_6_z2pz/boto3/boto3/session.py<70>__init__0s,  

 
zSession.__init__cCsd<01>|jjt|j<04>d<02><01><01>S)Nz{0}(region_name={1})r )r<00> __class__<5F>__name__<5F>reprr<00>get_config_variable)rrrr <00>__repr__SszSession.__repr__cCs |jjp
dS)z1
The **read-only** profile name.
<20>default)rr )rrrr rXszSession.profile_namecCs |j<00>d<01>S)z0
The **read-only** region name.
r )rr%)rrrr r_szSession.region_namecCs |j<00>d<01>S)z1
The event emitter for a session
r )rr)rrrr <00>eventsfszSession.eventscCs|jjS)zC
The profiles available to the session credentials
)r<00>available_profiles)rrrr r)mszSession.available_profilescCs2|j<00>d<01>|_|jj<03>tj<06>tj<06>t <09>d<02><02>dS)zC
Setup loader paths so that we can load resources.
Z data_loader<65>dataN)
rr<00>_loaderZ search_paths<68>append<6E>os<6F>path<74>join<69>dirname<6D>__file__)rrrr rtszSession._setup_loadercCs
|j<00><01>S)z<>
Get a list of available services that can be loaded as low-level
clients via :py:meth:`Session.client`.
:rtype: list
:return: List of service names
)r<00>get_available_services)rrrr r2|szSession.get_available_servicescCs|jjdd<02>S)z<>
Get a list of available services that can be loaded as resource
clients via :py:meth:`Session.resource`.
:rtype: list
:return: List of service names
z resources-1)<01> type_name)r+Zlist_available_services)rrrr <00>get_available_resources<65>szSession.get_available_resourcescCs
|j<00><01>S)z<>Lists the available partitions
:rtype: list
:return: Returns a list of partition names (e.g., ["aws", "aws-cn"])
)r<00>get_available_partitions)rrrr r5<00>sz Session.get_available_partitions<6E>awsFcCs|jj|||d<01>S)a<>Lists the region and endpoint names of a particular partition.
:type service_name: string
:param service_name: Name of a service to list endpoint for (e.g., s3).
:type partition_name: string
:param partition_name: Name of the partition to limit endpoints to.
(e.g., aws for the public AWS endpoints, aws-cn for AWS China
endpoints, aws-us-gov for AWS GovCloud (US) Endpoints, etc.)
:type allow_non_regional: bool
:param allow_non_regional: Set to True to include endpoints that are
not regional endpoints (e.g., s3-external-1,
fips-us-gov-west-1, etc).
:return: Returns a list of endpoint names (e.g., ["us-east-1"]).
)<03> service_name<6D>partition_name<6D>allow_non_regional)r<00>get_available_regions)rr7r8r9rrr r:<00>szSession.get_available_regionscCs
|j<00><01>S)a#
Return the :class:`botocore.credential.Credential` object
associated with this session. If the credentials have not
yet been loaded, this will attempt to load them. If they
have already been loaded, this will return the cached
credentials.
)r<00>get_credentials)rrrr r;<00>szSession.get_credentialsTc Cs |jj||||||||| |
d<01>
S)a<>
Create a low-level service client by name.
:type service_name: string
:param service_name: The name of a service, e.g. 's3' or 'ec2'. You
can get a list of available services via
:py:meth:`get_available_services`.
:type region_name: string
:param region_name: The name of the region associated with the client.
A client is associated with a single region.
:type api_version: string
:param api_version: The API version to use. By default, botocore will
use the latest API version when creating a client. You only need
to specify this parameter if you want to use a previous API version
of the client.
:type use_ssl: boolean
:param use_ssl: Whether or not to use SSL. By default, SSL is used.
Note that not all services support non-ssl connections.
:type verify: boolean/string
:param verify: Whether or not to verify SSL certificates. By default
SSL certificates are verified. You can provide the following
values:
* False - do not validate SSL certificates. SSL will still be
used (unless use_ssl is False), but SSL certificates
will not be verified.
* path/to/cert/bundle.pem - A filename of the CA cert bundle to
uses. You can specify this argument if you want to use a
different CA cert bundle than the one used by botocore.
:type endpoint_url: string
:param endpoint_url: The complete URL to use for the constructed
client. Normally, botocore will automatically construct the
appropriate URL to use when communicating with a service. You
can specify a complete URL (including the "http/https" scheme)
to override this behavior. If this value is provided,
then ``use_ssl`` is ignored.
:type aws_access_key_id: string
:param aws_access_key_id: The access key to use when creating
the client. This is entirely optional, and if not provided,
the credentials configured for the session will automatically
be used. You only need to provide this argument if you want
to override the credentials used for this specific client.
:type aws_secret_access_key: string
:param aws_secret_access_key: The secret key to use when creating
the client. Same semantics as aws_access_key_id above.
:type aws_session_token: string
:param aws_session_token: The session token to use when creating
the client. Same semantics as aws_access_key_id above.
:type config: botocore.client.Config
:param config: Advanced client configuration options. If region_name
is specified in the client config, its value will take precedence
over environment variables and configuration values, but not over
a region_name value passed explicitly to the method. See
`botocore config documentation
<https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html>`_
for more details.
:return: Service client instance
) r<00> api_version<6F>use_ssl<73>verify<66> endpoint_urlrrr<00>config)rZ create_client) rr7rr<r=r>r?rrrr@rrr <00>client<6E>s IzSession.clientc  Cs,y|j<00>|d|<03>} Wnftk
rH|<00><03>} ||<00><04>k} t|| | <0A><03>Yn4tk
rz|j<00>|d<01>}t||d<02> |<0E><01><03>YnX|dkr<>|j<00>
|d<01>}|
dk r<>|
j dkr<>t <0C> |
<EFBFBD>}
d|
_ n
tdd<05>}
|j||||||||| |
d<06>
}|jj}tjj||| dtj<13>|j||<03>d<08>}|jj|| d |d
<EFBFBD>}||d <0B>S) a<>
Create a resource service client by name.
:type service_name: string
:param service_name: The name of a service, e.g. 's3' or 'ec2'. You
can get a list of available services via
:py:meth:`get_available_resources`.
:type region_name: string
:param region_name: The name of the region associated with the client.
A client is associated with a single region.
:type api_version: string
:param api_version: The API version to use. By default, botocore will
use the latest API version when creating a client. You only need
to specify this parameter if you want to use a previous API version
of the client.
:type use_ssl: boolean
:param use_ssl: Whether or not to use SSL. By default, SSL is used.
Note that not all services support non-ssl connections.
:type verify: boolean/string
:param verify: Whether or not to verify SSL certificates. By default
SSL certificates are verified. You can provide the following
values:
* False - do not validate SSL certificates. SSL will still be
used (unless use_ssl is False), but SSL certificates
will not be verified.
* path/to/cert/bundle.pem - A filename of the CA cert bundle to
uses. You can specify this argument if you want to use a
different CA cert bundle than the one used by botocore.
:type endpoint_url: string
:param endpoint_url: The complete URL to use for the constructed
client. Normally, botocore will automatically construct the
appropriate URL to use when communicating with a service. You
can specify a complete URL (including the "http/https" scheme)
to override this behavior. If this value is provided,
then ``use_ssl`` is ignored.
:type aws_access_key_id: string
:param aws_access_key_id: The access key to use when creating
the client. This is entirely optional, and if not provided,
the credentials configured for the session will automatically
be used. You only need to provide this argument if you want
to override the credentials used for this specific client.
:type aws_secret_access_key: string
:param aws_secret_access_key: The secret key to use when creating
the client. Same semantics as aws_access_key_id above.
:type aws_session_token: string
:param aws_session_token: The session token to use when creating
the client. Same semantics as aws_access_key_id above.
:type config: botocore.client.Config
:param config: Advanced client configuration options. If region_name
is specified in the client config, its value will take precedence
over environment variables and configuration values, but not over
a region_name value passed explicitly to the method. If
user_agent_extra is specified in the client config, it overrides
the default user_agent_extra provided by the resource API. See
`botocore config documentation
<https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html>`_
for more details.
:return: Subclass of :py:class:`~boto3.resources.base.ServiceResource`
z resources-1z, N<>Resource)r) rr<r=r>r?rrrr@<00> resources)r7<00> service_modelZresource_json_definitionsZservice_waiter_modelZservice)<03> resource_nameZsingle_resource_json_definition<6F>service_context)rA)r+Zload_service_modelrr4r2rrZlist_api_versionsrr/Zdetermine_latest_versionr<00>copy<70>deepcopyrrA<00>metarDr<00>utilsZServiceContextZLazyLoadedWaiterModelrrZload_from_definition)rr7rr<r=r>r?rrrr@Zresource_model<65> availableZhas_low_level_clientZavailable_api_versionsrArDrF<00>clsrrr <00>resource sLJ 




zSession.resourcecCs<>|j<00>dtj<03>d<02><01>|j<00>dtj<03>d<04><01>|j<00>dtj<03>d<06><01>|j<00>dtj<03>d<08><01>|jjd tj<03>d
<EFBFBD>d d <0C>|jjd tj<03>d<0E>dd <0C>|j<00>dtj<03>d<11><01>|j<00>dtjjd|jd<14><02>dS)Nzcreating-client-class.s3z*boto3.s3.inject.inject_s3_transfer_methodsz!creating-resource-class.s3.Bucketz%boto3.s3.inject.inject_bucket_methodsz!creating-resource-class.s3.Objectz%boto3.s3.inject.inject_object_methodsz(creating-resource-class.s3.ObjectSummaryz-boto3.s3.inject.inject_object_summary_methodsz creating-resource-class.dynamodbz6boto3.dynamodb.transform.register_high_level_interfacezhigh-level-dynamodb)Z unique_idz&creating-resource-class.dynamodb.Tablez+boto3.dynamodb.table.register_table_methodszhigh-level-dynamodb-tablez+creating-resource-class.ec2.ServiceResourcez'boto3.ec2.createtags.inject_create_tagsz$creating-resource-class.ec2.Instancez'boto3.ec2.deletetags.inject_delete_tags)r )r<00>registerrrJZ lazy_callr()rrrr r<00>sFz"Session._register_default_handlers)NNNNNN)r6F) NNTNNNNNN) NNTNNNNNN)r#<00>
__module__<EFBFBD> __qualname__<5F>__doc__r!r&<00>propertyrrr(r)rr2r4r5r:r;rArMrrrrr r s4
!    




M
r )rGr-Zbotocore.sessionrZbotocore.clientrZbotocore.exceptionsrrrZ boto3.utilsZboto3.exceptionsrrZresources.factoryr<00>objectr rrrr <00><module>s