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

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

multipart_body_options = ec2.MultipartBodyOptions(
    content_type="contentType",

    # the properties below are optional
    body="body",
    transfer_encoding="transferEncoding"
)

Attributes

body

The body of message.

Default:

undefined - body will not be added to part

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.

transfer_encoding

Content-Transfer-Encoding header specifying part encoding.

Default:

undefined - body is not encoded