class_docstr: Creates a new object from `data` as string or bytes.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:S3CreateObjectOperator`
  
  :param s3_bucket: Name of the S3 bucket where to save the object. (templated)
      It should be omitted when ``s3_key`` is provided as a full s3:// url.
  :param s3_key: The key of the object to be created. (templated)
      It can be either full s3:// style url or relative path from root level.
      When it's specified as a full s3:// url, please omit ``s3_bucket``.
  :param data: string or bytes to save as content.
  :param replace: If True, it will overwrite the key if it already exists
  :param encrypt: If True, the file will be encrypted on the server-side
      by S3 and will be stored in an encrypted form while at rest in S3.
  :param acl_policy: String specifying the canned ACL policy for the file being
      uploaded to the S3 bucket.
  :param encoding: The string to byte encoding.
      It should be specified only when `data` is provided as string.
  :param compression: Type of compression to use, currently only gzip is supported.
      It can be specified only when `data` is provided as string.
  :param aws_conn_id: Connection id of the S3 connection to use
  :param verify: Whether or not to verify SSL certificates for S3 connection.
      By default SSL certificates are verified.
  
      You can provide the following values:
  
      - False: do not validate SSL certificates. SSL will still be used,
               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.
class_docstr_tok: ["Creates","a","new","object","from","`","data","`","as","string","or","bytes",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","S3CreateObjectOperator","`",":","param","s3_bucket",":","Name","of","the","S3","bucket","where","to","save","the","object",".","(","templated",")","It","should","be","omitted","when","``","s3_key","``","is","provided","as","a","full","s3",":","\/\/","url",".",":","param","s3_key",":","The","key","of","the","object","to","be","created",".","(","templated",")","It","can","be","either","full","s3",":","\/\/","style","url","or","relative","path","from","root","level",".","When","it","'s","specified","as","a","full","s3",":","\/\/","url",",","please","omit","``","s3_bucket","``",".",":","param","data",":","string","or","bytes","to","save","as","content",".",":","param","replace",":","If","True",",","it","will","overwrite","the","key","if","it","already","exists",":","param","encrypt",":","If","True",",","the","file","will","be","encrypted","on","the","server-side","by","S3","and","will","be","stored","in","an","encrypted","form","while","at","rest","in","S3",".",":","param","acl_policy",":","String","specifying","the","canned","ACL","policy","for","the","file","being","uploaded","to","the","S3","bucket",".",":","param","encoding",":","The","string","to","byte","encoding",".","It","should","be","specified","only","when","`","data","`","is","provided","as","string",".",":","param","compression",":","Type","of","compression","to","use",",","currently","only","gzip","is","supported",".","It","can","be","specified","only","when","`","data","`","is","provided","as","string",".",":","param","aws_conn_id",":","Connection","id","of","the","S3","connection","to","use",":","param","verify",":","Whether","or","not","to","verify","SSL","certificates","for","S3","connection",".","By","default","SSL","certificates","are","verified",".","You","can","provide","the","following","values",":","-","False",":","do","not","validate","SSL","certificates",".","SSL","will","still","be","used",",","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","."]
code: def __init__(
      self,
      *,
      s3_bucket: str | None = None,
      s3_key: str,
      data: str | bytes,
      replace: bool = False,
      encrypt: bool = False,
      acl_policy: str | None = None,
      encoding: str | None = None,
      compression: str | None = None,
      aws_conn_id: str = "aws_default",
      verify: str | bool | None = None,
      **kwargs,
  ):
      super().__init__(**kwargs)
  
      self.s3_bucket = s3_bucket
      self.s3_key = s3_key
      self.data = data
      self.replace = replace
      self.encrypt = encrypt
      self.acl_policy = acl_policy
      self.encoding = encoding
      self.compression = compression
      self.aws_conn_id = aws_conn_id
      self.verify = verify
  
imports: from __future__ import annotations
  import subprocess
  import sys
  from tempfile import NamedTemporaryFile
  from typing import TYPE_CHECKING, Sequence
  from airflow.exceptions import AirflowException
  from airflow.models import BaseOperator
  from airflow.providers.amazon.aws.hooks.s3 import S3Hook
  from airflow.utils.helpers import exactly_one
label_desc: Use image node_id 1 to create a new S3CreateObjectOperator object from inherited base classes: BaseOperator with example: obj = S3CreateObjectOperator()