CfnVpcOriginPropsMixin
- class aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnVpcOriginPropsMixin(props, *, strategy=None)
Bases:
MixinAn 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:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- 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:
objectAn 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 is80. Default: - 80https_port (
Union[int,float,None]) – The HTTPS port of the CloudFront VPC origin endpoint configuration. The default value is443. Default: - 443name (
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 includeSSLv3,TLSv1,TLSv1.1, andTLSv1.2. For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .
- See:
- 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.
- http_port
The HTTP port for the CloudFront VPC origin endpoint configuration.
The default value is
80.
- https_port
The HTTPS port of the CloudFront VPC origin endpoint configuration.
The default value is
443.
- name
The name of the CloudFront VPC origin endpoint configuration.
- origin_protocol_policy
The origin protocol policy for the CloudFront VPC origin endpoint configuration.
- 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, andTLSv1.2.For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide .