docstr: Setup S3 upload options.
  
  :param bucket: AWS bucket name
  :param subdir: Subdirectory in the AWS bucket
  :param host: Hostname. Only required in case a Non-AWS S3 solution such as a local Minio server is used)
  :param key: AWS access key. If not provided, we'll attempt to obtain the key from the
      configuration file (bucket-specific, than global)
  :param secret: AWS secret key. If not provided, we'll attempt to obtain the secret from the
      configuration file (bucket-specific, than global)
  :param token: AWS 2FA token
  :param region: Bucket region. Required if the bucket doesn't reside in the default region (us-east-1)
  :param multipart: Server supports multipart. Only required when using a Non-AWS S3 solution that doesn't support
      multipart.
  :param secure: Server supports HTTPS. Only required when using a Non-AWS S3 solution that only supports HTTPS.
  :param verify: Whether or not to verify SSL certificates.
      Only required when using a Non-AWS S3 solution that only supports HTTPS with self-signed certificate.
docstr_tok: ["Setup","S3","upload","options",".",":","param","bucket",":","AWS","bucket","name",":","param","subdir",":","Subdirectory","in","the","AWS","bucket",":","param","host",":","Hostname",".","Only","required","in","case","a","Non-AWS","S3","solution","such","as","a","local","Minio","server","is","used",")",":","param","key",":","AWS","access","key",".","If","not","provided",",","we","'ll","attempt","to","obtain","the","key","from","the","configuration","file","(","bucket-specific",",","than","global",")",":","param","secret",":","AWS","secret","key",".","If","not","provided",",","we","'ll","attempt","to","obtain","the","secret","from","the","configuration","file","(","bucket-specific",",","than","global",")",":","param","token",":","AWS","2FA","token",":","param","region",":","Bucket","region",".","Required","if","the","bucket","does","n't","reside","in","the","default","region","(","us-east-1",")",":","param","multipart",":","Server","supports","multipart",".","Only","required","when","using","a","Non-AWS","S3","solution","that","does","n't","support","multipart",".",":","param","secure",":","Server","supports","HTTPS",".","Only","required","when","using","a","Non-AWS","S3","solution","that","only","supports","HTTPS",".",":","param","verify",":","Whether","or","not","to","verify","SSL","certificates",".","Only","required","when","using","a","Non-AWS","S3","solution","that","only","supports","HTTPS","with","self-signed","certificate","."]
code: def setup_aws_upload(
      self,
      bucket,  # str
      subdir=None,  # Optional[str]
      host=None,  # Optional[str]
      key=None,  # Optional[str]
      secret=None,  # Optional[str]
      token=None,  # Optional[str]
      region=None,  # Optional[str]
      multipart=True,  # bool
      secure=True,  # bool
      verify=True,  # bool
  ):
      # type: (...) -> None
      """
      Setup S3 upload options.
  
      :param bucket: AWS bucket name
      :param subdir: Subdirectory in the AWS bucket
      :param host: Hostname. Only required in case a Non-AWS S3 solution such as a local Minio server is used)
      :param key: AWS access key. If not provided, we'll attempt to obtain the key from the
          configuration file (bucket-specific, than global)
      :param secret: AWS secret key. If not provided, we'll attempt to obtain the secret from the
          configuration file (bucket-specific, than global)
      :param token: AWS 2FA token
      :param region: Bucket region. Required if the bucket doesn't reside in the default region (us-east-1)
      :param multipart: Server supports multipart. Only required when using a Non-AWS S3 solution that doesn't support
          multipart.
      :param secure: Server supports HTTPS. Only required when using a Non-AWS S3 solution that only supports HTTPS.
      :param verify: Whether or not to verify SSL certificates.
          Only required when using a Non-AWS S3 solution that only supports HTTPS with self-signed certificate.
      """
      self._bucket_config = S3BucketConfig(  # noqa
          bucket=bucket,
          subdir=subdir,
          host=host,
          key=key,
          secret=secret,
          token=token,
          region=region,
          multipart=multipart,
          secure=secure,
          verify=verify,
      )
      StorageHelper.add_aws_configuration(
          self._bucket_config, log=self.log
      )
      self.storage_uri = StorageHelper.get_aws_storage_uri_from_config(
          self._bucket_config
      )
  
file_path: clearml/clearml/backend_interface/setupuploadmixin.py
imports: from abc import abstractproperty
  from typing import Optional
  import warnings
  from ..backend_config.bucket_config import S3BucketConfig, AzureContainerConfig, GSBucketConfig
  from ..storage.helper import StorageHelper
label_desc: Use image node_id 2 for calling the SetupUploadMixin obj's underlying member method code with example usage: obj.setup_aws_upload(bucket, subdir, host, key, secret, token, region, multipart, secure, verify) without return types