CfnVpcOriginPropsMixin

class aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnVpcOriginPropsMixin(props, *, strategy=None)

Bases: Mixin

An Amazon CloudFront VPC origin.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-vpcorigin.html

CloudformationResource:

AWS::CloudFront::VpcOrigin

Mixin:

true

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_cloudfront import mixins as cloudfront_mixins

cfn_vpc_origin_props_mixin = cloudfront_mixins.CfnVpcOriginPropsMixin(cloudfront_mixins.CfnVpcOriginMixinProps(
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_origin_endpoint_config=cloudfront_mixins.CfnVpcOriginPropsMixin.VpcOriginEndpointConfigProperty(
        arn="arn",
        http_port=123,
        https_port=123,
        name="name",
        origin_protocol_policy="originProtocolPolicy",
        origin_ssl_protocols=["originSslProtocols"]
    )
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::CloudFront::VpcOrigin.

Parameters:
  • props (Union[CfnVpcOriginMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['tags', 'vpcOriginEndpointConfig']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

VpcOriginEndpointConfigProperty

class CfnVpcOriginPropsMixin.VpcOriginEndpointConfigProperty(*, arn=None, http_port=None, https_port=None, name=None, origin_protocol_policy=None, origin_ssl_protocols=None)

Bases: object

An Amazon CloudFront VPC origin endpoint configuration.

Parameters:
  • arn (Optional[str]) – The ARN of the CloudFront VPC origin endpoint configuration.

  • http_port (Union[int, float, None]) – The HTTP port for the CloudFront VPC origin endpoint configuration. The default value is 80 . Default: - 80

  • https_port (Union[int, float, None]) – The HTTPS port of the CloudFront VPC origin endpoint configuration. The default value is 443 . Default: - 443

  • name (Optional[str]) – The name of the CloudFront VPC origin endpoint configuration.

  • origin_protocol_policy (Optional[str]) – The origin protocol policy for the CloudFront VPC origin endpoint configuration. Default: - “match-viewer”

  • origin_ssl_protocols (Optional[Sequence[str]]) – Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid values include SSLv3 , TLSv1 , TLSv1.1 , and TLSv1.2 . For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html

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.mixins_preview.aws_cloudfront import mixins as cloudfront_mixins

vpc_origin_endpoint_config_property = cloudfront_mixins.CfnVpcOriginPropsMixin.VpcOriginEndpointConfigProperty(
    arn="arn",
    http_port=123,
    https_port=123,
    name="name",
    origin_protocol_policy="originProtocolPolicy",
    origin_ssl_protocols=["originSslProtocols"]
)

Attributes

arn

The ARN of the CloudFront VPC origin endpoint configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html#cfn-cloudfront-vpcorigin-vpcoriginendpointconfig-arn

http_port

The HTTP port for the CloudFront VPC origin endpoint configuration.

The default value is 80 .

Default:
  • 80

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html#cfn-cloudfront-vpcorigin-vpcoriginendpointconfig-httpport

https_port

The HTTPS port of the CloudFront VPC origin endpoint configuration.

The default value is 443 .

Default:
  • 443

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html#cfn-cloudfront-vpcorigin-vpcoriginendpointconfig-httpsport

name

The name of the CloudFront VPC origin endpoint configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html#cfn-cloudfront-vpcorigin-vpcoriginendpointconfig-name

origin_protocol_policy

The origin protocol policy for the CloudFront VPC origin endpoint configuration.

Default:
  • “match-viewer”

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html#cfn-cloudfront-vpcorigin-vpcoriginendpointconfig-originprotocolpolicy

origin_ssl_protocols

Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.

Valid values include SSLv3 , TLSv1 , TLSv1.1 , and TLSv1.2 .

For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-vpcorigin-vpcoriginendpointconfig.html#cfn-cloudfront-vpcorigin-vpcoriginendpointconfig-originsslprotocols