Skip to content
v2.278.0

VpcOriginEndpointConfigProperty Struct ​

An Amazon CloudFront VPC origin endpoint configuration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const vpcOriginEndpointConfigProperty: cloudfront.CfnVpcOrigin.VpcOriginEndpointConfigProperty = {
  arn: 'arn',
  name: 'name',

  // the properties below are optional
  httpPort: 123,
  httpsPort: 123,
  ipAddressType: 'ipAddressType',
  originProtocolPolicy: 'originProtocolPolicy',
  originSslProtocols: ['originSslProtocols'],
};
python
# 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

vpc_origin_endpoint_config_property = cloudfront.CfnVpcOrigin.VpcOriginEndpointConfigProperty(
    arn="arn",
    name="name",

    # the properties below are optional
    http_port=123,
    https_port=123,
    ip_address_type="ipAddressType",
    origin_protocol_policy="originProtocolPolicy",
    origin_ssl_protocols=["originSslProtocols"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

VpcOriginEndpointConfigProperty vpcOriginEndpointConfigProperty = VpcOriginEndpointConfigProperty.builder()
        .arn("arn")
        .name("name")

        // the properties below are optional
        .httpPort(123)
        .httpsPort(123)
        .ipAddressType("ipAddressType")
        .originProtocolPolicy("originProtocolPolicy")
        .originSslProtocols(List.of("originSslProtocols"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;

var vpcOriginEndpointConfigProperty = new VpcOriginEndpointConfigProperty {
    Arn = "arn",
    Name = "name",

    // the properties below are optional
    HttpPort = 123,
    HttpsPort = 123,
    IpAddressType = "ipAddressType",
    OriginProtocolPolicy = "originProtocolPolicy",
    OriginSslProtocols = new [] { "originSslProtocols" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

vpcOriginEndpointConfigProperty := &VpcOriginEndpointConfigProperty{
	Arn: jsii.String("arn"),
	Name: jsii.String("name"),

	// the properties below are optional
	HttpPort: jsii.Number(123),
	HttpsPort: jsii.Number(123),
	IpAddressType: jsii.String("ipAddressType"),
	OriginProtocolPolicy: jsii.String("originProtocolPolicy"),
	OriginSslProtocols: []*string{
		jsii.String("originSslProtocols"),
	},
}

Properties ​

arnstringarnstrarnStringArnstringArn*string required #
The ARN of the CloudFront VPC origin endpoint configuration.
httpPortoptionalnumberhttp_portoptionalint | floathttpPortoptionalNumberHttpPortoptionaldoubleHttpPortoptional*float64 = 80 #
The HTTP port for the CloudFront VPC origin endpoint configuration.

The default value is 80 .

httpsPortoptionalnumberhttps_portoptionalint | floathttpsPortoptionalNumberHttpsPortoptionaldoubleHttpsPortoptional*float64 = 443 #
The HTTPS port of the CloudFront VPC origin endpoint configuration.

The default value is 443 .

ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string = "ipv4" #
namestringnamestrnameStringNamestringName*string required #
The name of the CloudFront VPC origin endpoint configuration.
originProtocolPolicyoptionalstringorigin_protocol_policyoptionalstroriginProtocolPolicyoptionalStringOriginProtocolPolicyoptionalstringOriginProtocolPolicyoptional*string = "match-viewer" #
The origin protocol policy for the CloudFront VPC origin endpoint configuration.
originSslProtocolsoptionalstring[]origin_ssl_protocolsoptionaltyping.List[str]originSslProtocolsoptionalList<String>OriginSslProtocolsoptionalstring[]OriginSslProtocolsoptional*[]*string #
Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.
notes

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

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