Skip to content
v2.278.0

CfnVpcOriginProps Struct ​

Properties for defining a CfnVpcOrigin.

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 cfnVpcOriginProps: cloudfront.CfnVpcOriginProps = {
  vpcOriginEndpointConfig: {
    arn: 'arn',
    name: 'name',

    // the properties below are optional
    httpPort: 123,
    httpsPort: 123,
    ipAddressType: 'ipAddressType',
    originProtocolPolicy: 'originProtocolPolicy',
    originSslProtocols: ['originSslProtocols'],
  },

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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

cfn_vpc_origin_props = cloudfront.CfnVpcOriginProps(
    vpc_origin_endpoint_config=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"]
    ),

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnVpcOriginProps cfnVpcOriginProps = CfnVpcOriginProps.builder()
        .vpcOriginEndpointConfig(VpcOriginEndpointConfigProperty.builder()
                .arn("arn")
                .name("name")

                // the properties below are optional
                .httpPort(123)
                .httpsPort(123)
                .ipAddressType("ipAddressType")
                .originProtocolPolicy("originProtocolPolicy")
                .originSslProtocols(List.of("originSslProtocols"))
                .build())

        // the properties below are optional
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnVpcOriginProps = new CfnVpcOriginProps {
    VpcOriginEndpointConfig = new VpcOriginEndpointConfigProperty {
        Arn = "arn",
        Name = "name",

        // the properties below are optional
        HttpPort = 123,
        HttpsPort = 123,
        IpAddressType = "ipAddressType",
        OriginProtocolPolicy = "originProtocolPolicy",
        OriginSslProtocols = new [] { "originSslProtocols" }
    },

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnVpcOriginProps := &CfnVpcOriginProps{
	VpcOriginEndpointConfig: &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"),
		},
	},

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A complex type that contains zero or more `Tag` elements.
vpcOriginEndpointConfigIResolvable | CfnVpcOrigin.VpcOriginEndpointConfigPropertyvpc_origin_endpoint_configtyping.Union[IResolvable, VpcOriginEndpointConfigProperty]vpcOriginEndpointConfigIResolvableVpcOriginEndpointConfigIResolvableVpcOriginEndpointConfiginterface{} required #
The VPC origin endpoint configuration.