MCPcopy Index your code
hub / github.com/aws/aws-cli / create_client

Method create_client

awscli/botocore/session.py:789–965  ·  view source on GitHub ↗

Create a botocore client. :type service_name: string :param service_name: The name of the service for which a client will be created. You can use the ``Session.get_available_services()`` method to get a list of all available service names. :type reg

(
        self,
        service_name,
        region_name=None,
        use_ssl=True,
        verify=None,
        endpoint_url=None,
        aws_access_key_id=None,
        aws_secret_access_key=None,
        aws_session_token=None,
        config=None,
        aws_account_id=None,
    )

Source from the content-addressed store, hash-verified

787
788 @with_current_context()
789 def create_client(
790 self,
791 service_name,
792 region_name=None,
793 use_ssl=True,
794 verify=None,
795 endpoint_url=None,
796 aws_access_key_id=None,
797 aws_secret_access_key=None,
798 aws_session_token=None,
799 config=None,
800 aws_account_id=None,
801 ):
802 """Create a botocore client.
803
804 :type service_name: string
805 :param service_name: The name of the service for which a client will
806 be created. You can use the ``Session.get_available_services()``
807 method to get a list of all available service names.
808
809 :type region_name: string
810 :param region_name: The name of the region associated with the client.
811 A client is associated with a single region.
812
813 :type use_ssl: boolean
814 :param use_ssl: Whether or not to use SSL. By default, SSL is used.
815 Note that not all services support non-ssl connections.
816
817 :type verify: boolean/string
818 :param verify: Whether or not to verify SSL certificates.
819 By default SSL certificates are verified. You can provide the
820 following values:
821
822 * False - do not validate SSL certificates. SSL will still be
823 used (unless use_ssl is False), but SSL certificates
824 will not be verified.
825 * path/to/cert/bundle.pem - A filename of the CA cert bundle to
826 uses. You can specify this argument if you want to use a
827 different CA cert bundle than the one used by botocore.
828
829 :type endpoint_url: string
830 :param endpoint_url: The complete URL to use for the constructed
831 client. Normally, botocore will automatically construct the
832 appropriate URL to use when communicating with a service. You can
833 specify a complete URL (including the "http/https" scheme) to
834 override this behavior. If this value is provided, then
835 ``use_ssl`` is ignored.
836
837 :type aws_access_key_id: string
838 :param aws_access_key_id: The access key to use when creating
839 the client. This is entirely optional, and if not provided,
840 the credentials configured for the session will automatically
841 be used. You only need to provide this argument if you want
842 to override the credentials used for this specific client.
843
844 :type aws_secret_access_key: string
845 :param aws_secret_access_key: The secret key to use when creating
846 the client. Same semantics as aws_access_key_id above.

Calls 15

emitMethod · 0.95
_resolve_region_nameMethod · 0.95
get_config_variableMethod · 0.95
get_componentMethod · 0.95
_missing_cred_varsMethod · 0.95
get_credentialsMethod · 0.95
get_auth_tokenMethod · 0.95
user_agentMethod · 0.95

Tested by 13

_public_apisFunction · 0.76
default_s3_clientFunction · 0.76
create_bucketFunction · 0.36
create_dir_bucketFunction · 0.36
setUpMethod · 0.36