DistributionState constructor

const DistributionState({
  1. Input<List<String>?>? aliases,
  2. Input<String?>? anycastIpListId,
  3. Input<String?>? arn,
  4. Input<DistributionCacheTagConfig?>? cacheTagConfig,
  5. Input<String?>? callerReference,
  6. Input<String?>? comment,
  7. Input<DistributionConnectionFunctionAssociation?>? connectionFunctionAssociation,
  8. Input<String?>? continuousDeploymentPolicyId,
  9. Input<List<DistributionCustomErrorResponse>?>? customErrorResponses,
  10. Input<DistributionDefaultCacheBehavior?>? defaultCacheBehavior,
  11. Input<String?>? defaultRootObject,
  12. Input<String?>? domainName,
  13. Input<bool?>? enabled,
  14. Input<String?>? etag,
  15. Input<String?>? hostedZoneId,
  16. Input<String?>? httpVersion,
  17. Input<int?>? inProgressValidationBatches,
  18. Input<bool?>? isIpv6Enabled,
  19. Input<String?>? lastModifiedTime,
  20. Input<DistributionLoggingConfig?>? loggingConfig,
  21. Input<bool?>? loggingV1Enabled,
  22. Input<List<DistributionOrderedCacheBehavior>?>? orderedCacheBehaviors,
  23. Input<List<DistributionOriginGroup>?>? originGroups,
  24. Input<List<DistributionOrigin>?>? origins,
  25. Input<String?>? priceClass,
  26. Input<DistributionRestrictions?>? restrictions,
  27. Input<bool?>? retainOnDelete,
  28. Input<bool?>? staging,
  29. Input<String?>? status,
  30. Input<Map<String, String>?>? tags,
  31. Input<Map<String, String>?>? tagsAll,
  32. Input<List<DistributionTrustedKeyGroup>?>? trustedKeyGroups,
  33. Input<List<DistributionTrustedSigner>?>? trustedSigners,
  34. Input<DistributionViewerCertificate?>? viewerCertificate,
  35. Input<DistributionViewerMtlsConfig?>? viewerMtlsConfig,
  36. Input<bool?>? waitForDeployment,
  37. Input<String?>? webAclId,
})

Creates a new DistributionState. aliases Extra CNAMEs (alternate domain names), if any, for this distribution. anycastIpListId ID of the Anycast static IP list that is associated with the distribution. arn ARN for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID. cacheTagConfig Cache tag configuration block for cache tag extraction from origin responses (maximum one). See the AWS documentation for more information about cache tags. callerReference Internal value used by CloudFront to allow future updates to the distribution configuration. comment Any comments you want to include about the distribution. connectionFunctionAssociation A connection function association configuration block (maximum one). continuousDeploymentPolicyId Identifier of a continuous deployment policy. This argument should only be set on a production distribution. See the aws.cloudfront.ContinuousDeploymentPolicy resource for additional details. customErrorResponses One or more custom error response elements (multiples allowed). defaultCacheBehavior Default cache behavior for this distribution (maximum one). Requires either cachePolicyId (preferred) or forwardedValues (deprecated) be set. defaultRootObject Object that you want CloudFront to return (for example, index.html) when an end user requests the root URL. domainName Domain name corresponding to the distribution. For example: d604721fxaaqy9.cloudfront.net. enabled Whether the distribution is enabled to accept end user requests for content. etag Current version of the distribution's information. For example: E2QWRUHAPOMQZL. hostedZoneId CloudFront Route 53 zone ID that can be used to route an Alias Resource Record Set to. This attribute is simply an alias for the zone ID Z2FDTNDATAQYW2. httpVersion Maximum HTTP version to support on the distribution. Allowed values are http1.1, http2, http2and3 and http3. The default is http2. inProgressValidationBatches Number of invalidation batches currently in progress. isIpv6Enabled Whether the IPv6 is enabled for the distribution. lastModifiedTime Date and time the distribution was last modified. loggingConfig The logging configuration that controls how logs are written to your distribution (maximum one). AWS provides two versions of access logs for CloudFront: Legacy and v2. This argument configures legacy version standard logs. loggingV1Enabled Whether V1 logging is enabled for the distribution. orderedCacheBehaviors Ordered list of cache behaviors resource for this distribution. List from top to bottom in order of precedence. The topmost cache behavior will have precedence 0. originGroups One or more originGroup for this distribution (multiples allowed). origins One or more origins for this distribution (multiples allowed). priceClass Price class for this distribution. One of PriceClass_All, PriceClass_200, PriceClass_100. restrictions The restriction configuration for this distribution (maximum one). retainOnDelete Disables the distribution instead of deleting it when destroying the resource through the provider. If this is set, the distribution needs to be deleted manually afterwards. Default: false. staging A Boolean that indicates whether this is a staging distribution. Defaults to false. status Current status of the distribution. Deployed if the distribution's information is fully propagated throughout the Amazon CloudFront system. tags A map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. trustedKeyGroups List of nested attributes for active trusted key groups, if the distribution is set up to serve private content with signed URLs. trustedSigners List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs. viewerCertificate The SSL configuration for this distribution (maximum one). viewerMtlsConfig The viewer mTLS configuration for this distribution (maximum one). waitForDeployment If enabled, the resource will wait for the distribution status to change from InProgress to Deployed. Setting this tofalse will skip the process. Default: true. webAclId Unique identifier that specifies the AWS WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of AWS WAF (WAFv2), use the ACL ARN, for example aws_wafv2_web_acl.example.arn. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example aws_waf_web_acl.example.id. The WAF Web ACL must exist in the WAF Global (CloudFront) region and the credentials configuring this argument must have waf:GetWebACL permissions assigned.

Implementation

const DistributionState({
  this.aliases,
  this.anycastIpListId,
  this.arn,
  this.cacheTagConfig,
  this.callerReference,
  this.comment,
  this.connectionFunctionAssociation,
  this.continuousDeploymentPolicyId,
  this.customErrorResponses,
  this.defaultCacheBehavior,
  this.defaultRootObject,
  this.domainName,
  this.enabled,
  this.etag,
  this.hostedZoneId,
  this.httpVersion,
  this.inProgressValidationBatches,
  this.isIpv6Enabled,
  this.lastModifiedTime,
  this.loggingConfig,
  this.loggingV1Enabled,
  this.orderedCacheBehaviors,
  this.originGroups,
  this.origins,
  this.priceClass,
  this.restrictions,
  this.retainOnDelete,
  this.staging,
  this.status,
  this.tags,
  this.tagsAll,
  this.trustedKeyGroups,
  this.trustedSigners,
  this.viewerCertificate,
  this.viewerMtlsConfig,
  this.waitForDeployment,
  this.webAclId,
});