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

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
== Example ==
 
== Example ==
 
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html
 
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html
<pre>
+
 
AWSTemplateFormatVersion: 2010-09-09
+
AWSTemplateFormatVersion: 2010-09-09
Resources:
+
Resources:
  cloudfrontdistribution:
+
  cloudfrontdistribution:
    Type: AWS::CloudFront::Distribution
+
    Type: AWS::CloudFront::Distribution
    Properties:
+
    Properties:
      DistributionConfig:
+
      DistributionConfig:
        CacheBehaviors:
+
        [[CacheBehaviors:]]
          - LambdaFunctionAssociations:
+
          - LambdaFunctionAssociations:
              - EventType: string-value
+
              - EventType: string-value
                LambdaFunctionARN: string-value
+
                LambdaFunctionARN: string-value
        DefaultCacheBehavior:
+
        DefaultCacheBehavior:
          LambdaFunctionAssociations:
+
          LambdaFunctionAssociations:
            - EventType: string-value
+
            - EventType: string-value
              LambdaFunctionARN: string-value
+
              LambdaFunctionARN: string-value
        IPV6Enabled: boolean-value
+
        IPV6Enabled: boolean-value
        Origins:
+
        Origins:
          - CustomOriginConfig:
+
          - CustomOriginConfig:
              OriginKeepaliveTimeout: integer-value
+
              OriginKeepaliveTimeout: integer-value
              OriginReadTimeout: integer-value
+
              OriginReadTimeout: integer-value
      Tags:
+
      Tags:
        - Key: string-value
+
        - Key: string-value
          Value: string-value
+
          Value: string-value
</pre>
 
  
 
== Related terms ==
 
== Related terms ==

Revision as of 11:12, 22 February 2022

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

Example

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

See also

Advertising: