package awscloudfront import ( "github.com/aws/aws-cdk-go/awscdk/v2" ) // Properties to define an Origin. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import cdk "github.com/aws/aws-cdk-go/awscdk" // import "github.com/aws/aws-cdk-go/awscdk" // // originProps := &OriginProps{ // ConnectionAttempts: jsii.Number(123), // ConnectionTimeout: cdk.Duration_Minutes(jsii.Number(30)), // CustomHeaders: map[string]*string{ // "customHeadersKey": jsii.String("customHeaders"), // }, // OriginId: jsii.String("originId"), // OriginPath: jsii.String("originPath"), // OriginShieldEnabled: jsii.Boolean(false), // OriginShieldRegion: jsii.String("originShieldRegion"), // } // type OriginProps struct { // The number of times that CloudFront attempts to connect to the origin; // // valid values are 1, 2, or 3 attempts. ConnectionAttempts *float64 `field:"optional" json:"connectionAttempts" yaml:"connectionAttempts"` // The number of seconds that CloudFront waits when trying to establish a connection to the origin. // // Valid values are 1-10 seconds, inclusive. ConnectionTimeout awscdk.Duration `field:"optional" json:"connectionTimeout" yaml:"connectionTimeout"` // A list of HTTP header names and values that CloudFront adds to requests it sends to the origin. CustomHeaders *map[string]*string `field:"optional" json:"customHeaders" yaml:"customHeaders"` // A unique identifier for the origin. // // This value must be unique within the distribution. OriginId *string `field:"optional" json:"originId" yaml:"originId"` // Origin Shield is enabled by setting originShieldRegion to a valid region, after this to disable Origin Shield again you must set this flag to false. OriginShieldEnabled *bool `field:"optional" json:"originShieldEnabled" yaml:"originShieldEnabled"` // When you enable Origin Shield in the AWS Region that has the lowest latency to your origin, you can get better network performance. // See: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html // OriginShieldRegion *string `field:"optional" json:"originShieldRegion" yaml:"originShieldRegion"` // An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. // // Must begin, but not end, with '/' (e.g., '/production/images'). OriginPath *string `field:"optional" json:"originPath" yaml:"originPath"` }