DistributionOrigin constructor

const DistributionOrigin({
  1. Input<int?>? connectionAttempts,
  2. Input<int?>? connectionTimeout,
  3. Input<List<DistributionOriginCustomHeader>?>? customHeaders,
  4. Input<DistributionOriginCustomOriginConfig?>? customOriginConfig,
  5. required Input<String> domainName,
  6. Input<String?>? originAccessControlId,
  7. required Input<String> originId,
  8. Input<String?>? originPath,
  9. Input<DistributionOriginOriginShield?>? originShield,
  10. Input<int?>? responseCompletionTimeout,
  11. Input<DistributionOriginS3OriginConfig?>? s3OriginConfig,
  12. Input<DistributionOriginVpcOriginConfig?>? vpcOriginConfig,
})

Creates a new DistributionOrigin. connectionAttempts Number of times that CloudFront attempts to connect to the origin. Must be between 1-3. Defaults to 3. connectionTimeout Number of seconds that CloudFront waits when trying to establish a connection to the origin. Must be between 1-10. Defaults to 10. customHeaders One or more sub-resources with name and value parameters that specify header data that will be sent to the origin (multiples allowed). customOriginConfig The CloudFront custom origin configuration information. If an S3 origin is required, use originAccessControlId or s3OriginConfig instead. domainName Domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net. originAccessControlId Unique identifier of a CloudFront origin access control for this origin. originId Required. originPath Optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. originShield CloudFront Origin Shield configuration information. Using Origin Shield can help reduce the load on your origin. For more information, see Using Origin Shield in the Amazon CloudFront Developer Guide. responseCompletionTimeout Time (in seconds) that a request from CloudFront to the origin can stay open and wait for a response. Must be integer greater than or equal to the value of originReadTimeout. If omitted or explicitly set to 0, no maximum value is enforced. s3OriginConfig CloudFront S3 origin configuration information. If a custom origin is required, use customOriginConfig instead. vpcOriginConfig The VPC origin configuration.

Implementation

const DistributionOrigin({
  this.connectionAttempts,
  this.connectionTimeout,
  this.customHeaders,
  this.customOriginConfig,
  required this.domainName,
  this.originAccessControlId,
  required this.originId,
  this.originPath,
  this.originShield,
  this.responseCompletionTimeout,
  this.s3OriginConfig,
  this.vpcOriginConfig,
});