OriginBindOptions

class aws_cdk.aws_cloudfront.OriginBindOptions(*, origin_id, distribution_id=None)

Bases: object

Options passed to Origin.bind().

Parameters:
  • origin_id (str) – The identifier of this Origin, as assigned by the Distribution this Origin has been used added to.

  • distribution_id (Optional[str]) – The identifier of the Distribution this Origin is used for. This is used to grant origin access permissions to the distribution for origin access control. Default: - no distribution id

ExampleMetadata:

fixture=_generated

Example:

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

origin_bind_options = cloudfront.OriginBindOptions(
    origin_id="originId",

    # the properties below are optional
    distribution_id="distributionId"
)

Attributes

distribution_id

The identifier of the Distribution this Origin is used for.

This is used to grant origin access permissions to the distribution for origin access control.

Default:
  • no distribution id

origin_id

The identifier of this Origin, as assigned by the Distribution this Origin has been used added to.