MultipartBodyOptions

class aws_cdk.aws_ec2.MultipartBodyOptions(*, content_type, body=None, transfer_encoding=None)

Bases: object

Options when creating MultipartBody.

Parameters
  • content_type (str) – Content-Type header of this part. Some examples of content types: - text/x-shellscript; charset="utf-8" (shell script) - text/cloud-boothook; charset="utf-8" (shell script executed during boot phase) For Linux shell scripts use text/x-shellscript.

  • body (Optional[str]) – The body of message. Default: undefined - body will not be added to part

  • transfer_encoding (Optional[str]) – Content-Transfer-Encoding header specifying part encoding. Default: undefined - body is not encoded

Attributes

body

The body of message.

Default

undefined - body will not be added to part

Return type

Optional[str]

content_type

Content-Type header of this part.

Some examples of content types:

  • text/x-shellscript; charset="utf-8" (shell script)

  • text/cloud-boothook; charset="utf-8" (shell script executed during boot phase)

For Linux shell scripts use text/x-shellscript.

Return type

str

transfer_encoding

Content-Transfer-Encoding header specifying part encoding.

Default

undefined - body is not encoded

Return type

Optional[str]