VpcOriginAttributes Struct
The properties to import from the VPC origin.
| Source | aws-cloudfront/lib/vpc-origin.ts |
|---|---|
| Type last changed |
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 vpcOriginAttributes: cloudfront.VpcOriginAttributes = {
domainName: 'domainName',
vpcOriginArn: 'vpcOriginArn',
vpcOriginId: 'vpcOriginId',
};
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_attributes = cloudfront.VpcOriginAttributes(
domain_name="domainName",
vpc_origin_arn="vpcOriginArn",
vpc_origin_id="vpcOriginId"
)
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.*;
VpcOriginAttributes vpcOriginAttributes = VpcOriginAttributes.builder()
.domainName("domainName")
.vpcOriginArn("vpcOriginArn")
.vpcOriginId("vpcOriginId")
.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 vpcOriginAttributes = new VpcOriginAttributes {
DomainName = "domainName",
VpcOriginArn = "vpcOriginArn",
VpcOriginId = "vpcOriginId"
};
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"
vpcOriginAttributes := &VpcOriginAttributes{
DomainName: jsii.String("domainName"),
VpcOriginArn: jsii.String("vpcOriginArn"),
VpcOriginId: jsii.String("vpcOriginId"),
}
Properties
domainNameoptionalstringdomain_nameoptionalstrdomainNameoptionalStringDomainNameoptionalstringDomainNameoptional*string #The domain name of the CloudFront VPC origin endpoint configuration.
Default: No domain name configured
vpcOriginArnoptionalstringvpc_origin_arnoptionalstrvpcOriginArnoptionalStringVpcOriginArnoptionalstringVpcOriginArnoptional*string #The ARN of the VPC origin.
Default: derived from vpcOriginId.
At least one of vpcOriginArn and vpcOriginId must be provided.
vpcOriginIdoptionalstringvpc_origin_idoptionalstrvpcOriginIdoptionalStringVpcOriginIdoptionalstringVpcOriginIdoptional*string #The ID of the VPC origin.
Default: derived from vpcOriginArn.
At least one of vpcOriginArn and vpcOriginId must be provided.