Difference between revisions of "AWS::CloudFront::Distribution"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
* <code>[[AWS::CloudFront]]</code>
 
* <code>[[AWS::CloudFront]]</code>
 +
* [[AWS::CloudFront::Distribution Origin]]
  
 
== Example ==
 
== Example ==
<pre>
+
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html
AWSTemplateFormatVersion: 2010-09-09
+
 
Resources:
+
AWSTemplateFormatVersion: 2010-09-09
  cloudfrontdistribution:
+
Resources:
    Type: AWS::CloudFront::Distribution
+
  cloudfrontdistribution:
    Properties:
+
    Type: AWS::CloudFront::Distribution
      DistributionConfig:
+
    Properties:
        CacheBehaviors:
+
      DistributionConfig:
          - LambdaFunctionAssociations:
+
        [[CacheBehaviors:]]
              - EventType: string-value
+
          - LambdaFunctionAssociations:
                LambdaFunctionARN: string-value
+
              - EventType: string-value
        DefaultCacheBehavior:
+
                LambdaFunctionARN: string-value
          LambdaFunctionAssociations:
+
        DefaultCacheBehavior:
            - EventType: string-value
+
          LambdaFunctionAssociations:
              LambdaFunctionARN: string-value
+
            - EventType: string-value
        IPV6Enabled: boolean-value
+
              LambdaFunctionARN: string-value
        Origins:
+
        IPV6Enabled: boolean-value
          - CustomOriginConfig:
+
        Origins:
              OriginKeepaliveTimeout: integer-value
+
          - CustomOriginConfig:
              OriginReadTimeout: integer-value
+
              OriginKeepaliveTimeout: integer-value
      Tags:
+
              OriginReadTimeout: integer-value
        - Key: string-value
+
      Tags:
          Value: string-value
+
        - Key: string-value
</pre>
+
          Value: string-value
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[Fn::GetAtt]]</code>
 
* <code>[[Fn::GetAtt]]</code>
 +
* [[OriginCustomHeaders]]
  
 
==See also==
 
==See also==

Latest revision as of 12:37, 24 May 2023

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html

Example[edit]

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html

AWSTemplateFormatVersion: 2010-09-09
Resources:
  cloudfrontdistribution:
    Type: AWS::CloudFront::Distribution
    Properties:
      DistributionConfig:
        CacheBehaviors:
          - LambdaFunctionAssociations:
              - EventType: string-value
                LambdaFunctionARN: string-value
        DefaultCacheBehavior:
          LambdaFunctionAssociations:
            - EventType: string-value
              LambdaFunctionARN: string-value
        IPV6Enabled: boolean-value
        Origins:
          - CustomOriginConfig:
              OriginKeepaliveTimeout: integer-value
              OriginReadTimeout: integer-value
      Tags:
        - Key: string-value
          Value: string-value

Related terms[edit]

See also[edit]

Advertising: