@awboost/cfn-resource-types 0.1.197 → 0.1.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AWS-ApiGateway-BasePathMappingV2.d.ts +43 -0
- package/lib/AWS-ApiGateway-BasePathMappingV2.js +12 -0
- package/lib/AWS-ApiGateway-DomainNameAccessAssociation.d.ts +51 -0
- package/lib/AWS-ApiGateway-DomainNameAccessAssociation.js +12 -0
- package/lib/AWS-ApiGateway-DomainNameV2.d.ts +50 -0
- package/lib/AWS-ApiGateway-DomainNameV2.js +12 -0
- package/lib/AWS-ApplicationAutoScaling-ScalingPolicy.d.ts +146 -0
- package/lib/AWS-AutoScaling-AutoScalingGroup.d.ts +17 -0
- package/lib/AWS-CloudFront-CachePolicy.d.ts +105 -12
- package/lib/AWS-CloudFront-CachePolicy.js +7 -1
- package/lib/AWS-CloudFront-CloudFrontOriginAccessIdentity.d.ts +11 -2
- package/lib/AWS-CloudFront-CloudFrontOriginAccessIdentity.js +2 -1
- package/lib/AWS-CloudFront-ContinuousDeploymentPolicy.d.ts +52 -2
- package/lib/AWS-CloudFront-ContinuousDeploymentPolicy.js +4 -1
- package/lib/AWS-CloudFront-Distribution.d.ts +53 -11
- package/lib/AWS-CloudFront-Function.d.ts +42 -2
- package/lib/AWS-CloudFront-Function.js +5 -1
- package/lib/AWS-CloudFront-KeyGroup.d.ts +20 -2
- package/lib/AWS-CloudFront-KeyGroup.js +3 -1
- package/lib/AWS-CloudFront-KeyValueStore.d.ts +20 -2
- package/lib/AWS-CloudFront-KeyValueStore.js +2 -1
- package/lib/AWS-CloudFront-MonitoringSubscription.d.ts +18 -2
- package/lib/AWS-CloudFront-MonitoringSubscription.js +2 -1
- package/lib/AWS-CloudFront-OriginAccessControl.d.ts +29 -4
- package/lib/AWS-CloudFront-OriginAccessControl.js +4 -1
- package/lib/AWS-CloudFront-OriginRequestPolicy.d.ts +75 -8
- package/lib/AWS-CloudFront-OriginRequestPolicy.js +8 -1
- package/lib/AWS-CloudFront-PublicKey.d.ts +20 -2
- package/lib/AWS-CloudFront-PublicKey.js +2 -1
- package/lib/AWS-CloudFront-RealtimeLogConfig.d.ts +28 -4
- package/lib/AWS-CloudFront-RealtimeLogConfig.js +2 -1
- package/lib/AWS-CloudFront-ResponseHeadersPolicy.d.ts +213 -6
- package/lib/AWS-CloudFront-ResponseHeadersPolicy.js +5 -1
- package/lib/AWS-CloudTrail-Dashboard.d.ts +129 -0
- package/lib/AWS-CloudTrail-Dashboard.js +13 -0
- package/lib/AWS-Connect-EmailAddress.d.ts +79 -0
- package/lib/AWS-Connect-EmailAddress.js +12 -0
- package/lib/AWS-Connect-HoursOfOperation.d.ts +82 -0
- package/lib/AWS-CustomerProfiles-SegmentDefinition.d.ts +424 -0
- package/lib/AWS-CustomerProfiles-SegmentDefinition.js +13 -0
- package/lib/AWS-DynamoDB-Table.d.ts +9 -0
- package/lib/AWS-EC2-LaunchTemplate.d.ts +28 -0
- package/lib/AWS-IVS-IngestConfiguration.d.ts +92 -0
- package/lib/AWS-IVS-IngestConfiguration.js +12 -0
- package/lib/AWS-IoTFleetWise-DecoderManifest.d.ts +63 -2
- package/lib/AWS-IoTFleetWise-StateTemplate.d.ts +75 -0
- package/lib/AWS-IoTFleetWise-StateTemplate.js +12 -0
- package/lib/AWS-IoTSiteWise-Portal.d.ts +25 -0
- package/lib/AWS-Lambda-EventSourceMapping.d.ts +19 -0
- package/lib/AWS-M2-Deployment.d.ts +48 -0
- package/lib/AWS-M2-Deployment.js +13 -0
- package/lib/AWS-OpenSearchServerless-SecurityConfig.d.ts +41 -1
- package/lib/AWS-RDS-GlobalCluster.d.ts +11 -0
- package/lib/AWS-ResourceGroups-TagSyncTask.d.ts +78 -0
- package/lib/AWS-ResourceGroups-TagSyncTask.js +13 -0
- package/lib/AWS-S3Express-DirectoryBucket.d.ts +54 -0
- package/lib/AWS-SageMaker-Cluster.d.ts +1 -0
- package/lib/AWS-SageMaker-Domain.d.ts +1 -1
- package/lib/AWS-SageMaker-ModelPackage.d.ts +1 -1
- package/lib/AWS-SageMaker-UserProfile.d.ts +1 -1
- package/lib/AWS-Synthetics-Canary.d.ts +4 -0
- package/lib/AWS-Wisdom-MessageTemplate.d.ts +668 -0
- package/lib/AWS-Wisdom-MessageTemplate.js +12 -0
- package/lib/AWS-Wisdom-MessageTemplateVersion.d.ts +45 -0
- package/lib/AWS-Wisdom-MessageTemplateVersion.js +13 -0
- package/lib/AWS-WorkSpacesWeb-DataProtectionSettings.d.ts +182 -0
- package/lib/AWS-WorkSpacesWeb-DataProtectionSettings.js +12 -0
- package/lib/AWS-WorkSpacesWeb-Portal.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
|
-
* Resource
|
|
4
|
+
* Resource type definition for `AWS::CloudFront::ContinuousDeploymentPolicy`.
|
|
5
|
+
* Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
|
|
6
|
+
After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This enables you to test changes to a distribution's configuration before moving all of your production traffic to the new configuration.
|
|
7
|
+
For more information, see [Using CloudFront continuous deployment to safely test CDN configuration changes](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/continuous-deployment.html) in the *Amazon CloudFront Developer Guide*.
|
|
5
8
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-continuousdeploymentpolicy.html}
|
|
6
9
|
*/
|
|
7
10
|
export type CloudFrontContinuousDeploymentPolicyProperties = {
|
|
11
|
+
/**
|
|
12
|
+
* Contains the configuration for a continuous deployment policy.
|
|
13
|
+
*/
|
|
8
14
|
ContinuousDeploymentPolicyConfig: ContinuousDeploymentPolicyConfig;
|
|
9
15
|
};
|
|
10
16
|
/**
|
|
@@ -17,10 +23,17 @@ export type CloudFrontContinuousDeploymentPolicyAttributes = {
|
|
|
17
23
|
};
|
|
18
24
|
/**
|
|
19
25
|
* Type definition for `AWS::CloudFront::ContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfig`.
|
|
26
|
+
* Contains the configuration for a continuous deployment policy.
|
|
20
27
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-continuousdeploymentpolicyconfig.html}
|
|
21
28
|
*/
|
|
22
29
|
export type ContinuousDeploymentPolicyConfig = {
|
|
30
|
+
/**
|
|
31
|
+
* A Boolean that indicates whether this continuous deployment policy is enabled (in effect). When this value is ``true``, this policy is enabled and in effect. When this value is ``false``, this policy is not enabled and has no effect.
|
|
32
|
+
*/
|
|
23
33
|
Enabled: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* This configuration determines which HTTP requests are sent to the staging distribution. If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.
|
|
36
|
+
*/
|
|
24
37
|
SingleHeaderPolicyConfig?: {
|
|
25
38
|
/**
|
|
26
39
|
* @minLength `1`
|
|
@@ -33,7 +46,13 @@ export type ContinuousDeploymentPolicyConfig = {
|
|
|
33
46
|
*/
|
|
34
47
|
Value: string;
|
|
35
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
|
|
51
|
+
*/
|
|
36
52
|
SingleWeightPolicyConfig?: {
|
|
53
|
+
/**
|
|
54
|
+
* Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
|
|
55
|
+
*/
|
|
37
56
|
SessionStickinessConfig?: SessionStickinessConfig;
|
|
38
57
|
/**
|
|
39
58
|
* @min `0`
|
|
@@ -42,23 +61,33 @@ export type ContinuousDeploymentPolicyConfig = {
|
|
|
42
61
|
Weight: number;
|
|
43
62
|
};
|
|
44
63
|
/**
|
|
64
|
+
* The CloudFront domain name of the staging distribution. For example: ``d111111abcdef8.cloudfront.net``.
|
|
45
65
|
* @minLength `1`
|
|
46
66
|
*/
|
|
47
67
|
StagingDistributionDnsNames: string[];
|
|
68
|
+
/**
|
|
69
|
+
* Contains the parameters for routing production traffic from your primary to staging distributions.
|
|
70
|
+
*/
|
|
48
71
|
TrafficConfig?: TrafficConfig;
|
|
72
|
+
/**
|
|
73
|
+
* The type of traffic configuration.
|
|
74
|
+
*/
|
|
49
75
|
Type?: "SingleWeight" | "SingleHeader";
|
|
50
76
|
};
|
|
51
77
|
/**
|
|
52
78
|
* Type definition for `AWS::CloudFront::ContinuousDeploymentPolicy.SessionStickinessConfig`.
|
|
79
|
+
* Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
|
|
53
80
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-sessionstickinessconfig.html}
|
|
54
81
|
*/
|
|
55
82
|
export type SessionStickinessConfig = {
|
|
56
83
|
/**
|
|
84
|
+
* The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
|
|
57
85
|
* @min `300`
|
|
58
86
|
* @max `3600`
|
|
59
87
|
*/
|
|
60
88
|
IdleTTL: number;
|
|
61
89
|
/**
|
|
90
|
+
* The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
|
|
62
91
|
* @min `300`
|
|
63
92
|
* @max `3600`
|
|
64
93
|
*/
|
|
@@ -66,15 +95,18 @@ export type SessionStickinessConfig = {
|
|
|
66
95
|
};
|
|
67
96
|
/**
|
|
68
97
|
* Type definition for `AWS::CloudFront::ContinuousDeploymentPolicy.SingleHeaderConfig`.
|
|
98
|
+
* Determines which HTTP requests are sent to the staging distribution.
|
|
69
99
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleheaderconfig.html}
|
|
70
100
|
*/
|
|
71
101
|
export type SingleHeaderConfig = {
|
|
72
102
|
/**
|
|
103
|
+
* The request header name that you want CloudFront to send to your staging distribution. The header must contain the prefix ``aws-cf-cd-``.
|
|
73
104
|
* @minLength `1`
|
|
74
105
|
* @maxLength `256`
|
|
75
106
|
*/
|
|
76
107
|
Header: string;
|
|
77
108
|
/**
|
|
109
|
+
* The request header value.
|
|
78
110
|
* @minLength `1`
|
|
79
111
|
* @maxLength `1783`
|
|
80
112
|
*/
|
|
@@ -82,11 +114,16 @@ export type SingleHeaderConfig = {
|
|
|
82
114
|
};
|
|
83
115
|
/**
|
|
84
116
|
* Type definition for `AWS::CloudFront::ContinuousDeploymentPolicy.SingleWeightConfig`.
|
|
117
|
+
* This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
|
|
85
118
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightconfig.html}
|
|
86
119
|
*/
|
|
87
120
|
export type SingleWeightConfig = {
|
|
121
|
+
/**
|
|
122
|
+
* Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
|
|
123
|
+
*/
|
|
88
124
|
SessionStickinessConfig?: SessionStickinessConfig;
|
|
89
125
|
/**
|
|
126
|
+
* The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
|
|
90
127
|
* @min `0`
|
|
91
128
|
* @max `1`
|
|
92
129
|
*/
|
|
@@ -94,15 +131,28 @@ export type SingleWeightConfig = {
|
|
|
94
131
|
};
|
|
95
132
|
/**
|
|
96
133
|
* Type definition for `AWS::CloudFront::ContinuousDeploymentPolicy.TrafficConfig`.
|
|
134
|
+
* The traffic configuration of your continuous deployment.
|
|
97
135
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html}
|
|
98
136
|
*/
|
|
99
137
|
export type TrafficConfig = {
|
|
138
|
+
/**
|
|
139
|
+
* Determines which HTTP requests are sent to the staging distribution.
|
|
140
|
+
*/
|
|
100
141
|
SingleHeaderConfig?: SingleHeaderConfig;
|
|
142
|
+
/**
|
|
143
|
+
* Contains the percentage of traffic to send to the staging distribution.
|
|
144
|
+
*/
|
|
101
145
|
SingleWeightConfig?: SingleWeightConfig;
|
|
146
|
+
/**
|
|
147
|
+
* The type of traffic configuration.
|
|
148
|
+
*/
|
|
102
149
|
Type: "SingleWeight" | "SingleHeader";
|
|
103
150
|
};
|
|
104
151
|
/**
|
|
105
|
-
* Resource
|
|
152
|
+
* Resource type definition for `AWS::CloudFront::ContinuousDeploymentPolicy`.
|
|
153
|
+
* Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
|
|
154
|
+
After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This enables you to test changes to a distribution's configuration before moving all of your production traffic to the new configuration.
|
|
155
|
+
For more information, see [Using CloudFront continuous deployment to safely test CDN configuration changes](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/continuous-deployment.html) in the *Amazon CloudFront Developer Guide*.
|
|
106
156
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-continuousdeploymentpolicy.html}
|
|
107
157
|
*/
|
|
108
158
|
export declare class CloudFrontContinuousDeploymentPolicy extends $Resource<"AWS::CloudFront::ContinuousDeploymentPolicy", CloudFrontContinuousDeploymentPolicyProperties, CloudFrontContinuousDeploymentPolicyAttributes> {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
* Resource
|
|
3
|
+
* Resource type definition for `AWS::CloudFront::ContinuousDeploymentPolicy`.
|
|
4
|
+
* Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
|
|
5
|
+
After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This enables you to test changes to a distribution's configuration before moving all of your production traffic to the new configuration.
|
|
6
|
+
For more information, see [Using CloudFront continuous deployment to safely test CDN configuration changes](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/continuous-deployment.html) in the *Amazon CloudFront Developer Guide*.
|
|
4
7
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-continuousdeploymentpolicy.html}
|
|
5
8
|
*/
|
|
6
9
|
export class CloudFrontContinuousDeploymentPolicy extends $Resource {
|
|
@@ -28,7 +28,7 @@ export type CloudFrontDistributionAttributes = {
|
|
|
28
28
|
* A complex type that describes how CloudFront processes requests.
|
|
29
29
|
You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to serve objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used.
|
|
30
30
|
For the current quota (formerly known as limit) on the number of cache behaviors that you can add to a distribution, see [Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) in the *Amazon CloudFront Developer Guide*.
|
|
31
|
-
If you don't want to specify any cache behaviors, include only an empty ``CacheBehaviors`` element. Don't
|
|
31
|
+
If you don't want to specify any cache behaviors, include only an empty ``CacheBehaviors`` element. Don't specify an empty individual ``CacheBehavior`` element, because this is invalid. For more information, see [CacheBehaviors](https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehaviors.html).
|
|
32
32
|
To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty ``CacheBehaviors`` element.
|
|
33
33
|
To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.
|
|
34
34
|
For more information about cache behaviors, see [Cache Behavior Settings](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior) in the *Amazon CloudFront Developer Guide*.
|
|
@@ -298,7 +298,7 @@ export type DefaultCacheBehavior = {
|
|
|
298
298
|
*/
|
|
299
299
|
ForwardedValues?: ForwardedValues;
|
|
300
300
|
/**
|
|
301
|
-
* A list of CloudFront functions that are associated with this cache behavior.
|
|
301
|
+
* A list of CloudFront functions that are associated with this cache behavior. Your functions must be published to the ``LIVE`` stage to associate them with a cache behavior.
|
|
302
302
|
*/
|
|
303
303
|
FunctionAssociations?: FunctionAssociation[];
|
|
304
304
|
/**
|
|
@@ -368,6 +368,10 @@ export type DistributionConfig = {
|
|
|
368
368
|
* A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
|
|
369
369
|
*/
|
|
370
370
|
Aliases?: string[];
|
|
371
|
+
/**
|
|
372
|
+
* An alias for the CF distribution's domain name.
|
|
373
|
+
This property is legacy. We recommend that you use [Aliases](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html#cfn-cloudfront-distribution-distributionconfig-aliases) instead.
|
|
374
|
+
*/
|
|
371
375
|
CNAMEs?: string[];
|
|
372
376
|
/**
|
|
373
377
|
* A complex type that contains zero or more ``CacheBehavior`` elements.
|
|
@@ -389,6 +393,10 @@ export type DistributionConfig = {
|
|
|
389
393
|
For more information about custom error pages, see [Customizing Error Responses](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) in the *Amazon CloudFront Developer Guide*.
|
|
390
394
|
*/
|
|
391
395
|
CustomErrorResponses?: CustomErrorResponse[];
|
|
396
|
+
/**
|
|
397
|
+
* The user-defined HTTP server that serves as the origin for content that CF distributes.
|
|
398
|
+
This property is legacy. We recommend that you use [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) instead.
|
|
399
|
+
*/
|
|
392
400
|
CustomOrigin?: LegacyCustomOrigin;
|
|
393
401
|
/**
|
|
394
402
|
* A complex type that describes the default cache behavior if you don't specify a ``CacheBehavior`` element or if files don't match any of the values of ``PathPattern`` in ``CacheBehavior`` elements. You must create exactly one default cache behavior.
|
|
@@ -408,7 +416,7 @@ export type DistributionConfig = {
|
|
|
408
416
|
*/
|
|
409
417
|
Enabled: boolean;
|
|
410
418
|
/**
|
|
411
|
-
* (Optional) Specify the
|
|
419
|
+
* (Optional) Specify the HTTP version(s) that you want viewers to use to communicate with CF. The default value for new distributions is ``http1.1``.
|
|
412
420
|
For viewers and CF to use HTTP/2, viewers must support TLSv1.2 or later, and must support Server Name Indication (SNI).
|
|
413
421
|
For viewers and CF to use HTTP/3, viewers must support TLSv1.3 and Server Name Indication (SNI). CF supports HTTP/3 connection migration to allow the viewer to switch networks without losing connection. For more information about connection migration, see [Connection Migration](https://docs.aws.amazon.com/https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration) at RFC 9000. For more information about supported TLSv1.3 ciphers, see [Supported protocols and ciphers between viewers and CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html).
|
|
414
422
|
*/
|
|
@@ -430,12 +438,14 @@ export type DistributionConfig = {
|
|
|
430
438
|
*/
|
|
431
439
|
Logging?: Logging;
|
|
432
440
|
/**
|
|
433
|
-
|
|
434
|
-
|
|
441
|
+
* A complex type that contains information about origin groups for this distribution.
|
|
442
|
+
Specify a value for either the ``Origins`` or ``OriginGroups`` property.
|
|
443
|
+
*/
|
|
435
444
|
OriginGroups?: OriginGroups;
|
|
436
445
|
/**
|
|
437
|
-
|
|
438
|
-
|
|
446
|
+
* A complex type that contains information about origins for this distribution.
|
|
447
|
+
Specify a value for either the ``Origins`` or ``OriginGroups`` property.
|
|
448
|
+
*/
|
|
439
449
|
Origins?: Origin[];
|
|
440
450
|
/**
|
|
441
451
|
* The price class that corresponds with the maximum price that you want to pay for CloudFront service. If you specify ``PriceClass_All``, CloudFront responds to requests for your objects from all CloudFront edge locations.
|
|
@@ -447,6 +457,10 @@ export type DistributionConfig = {
|
|
|
447
457
|
* A complex type that identifies ways in which you want to restrict distribution of your content.
|
|
448
458
|
*/
|
|
449
459
|
Restrictions?: Restrictions;
|
|
460
|
+
/**
|
|
461
|
+
* The origin as an S3 bucket.
|
|
462
|
+
This property is legacy. We recommend that you use [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) instead.
|
|
463
|
+
*/
|
|
450
464
|
S3Origin?: LegacyS3Origin;
|
|
451
465
|
/**
|
|
452
466
|
* A Boolean that indicates whether this is a staging distribution. When this value is ``true``, this is a staging distribution. When this value is ``false``, this is not a staging distribution.
|
|
@@ -457,7 +471,7 @@ export type DistributionConfig = {
|
|
|
457
471
|
*/
|
|
458
472
|
ViewerCertificate?: ViewerCertificate;
|
|
459
473
|
/**
|
|
460
|
-
* A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example ``arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/
|
|
474
|
+
* A unique identifier that specifies the WAF web ACL, if any, to associate with this distribution. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example ``arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111``. To specify a web ACL created using WAF Classic, use the ACL ID, for example ``a1b2c3d4-5678-90ab-cdef-EXAMPLE11111``.
|
|
461
475
|
WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudFront, and lets you control access to your content. Based on conditions that you specify, such as the IP addresses that requests originate from or the values of query strings, CloudFront responds to requests either with the requested content or with an HTTP 403 status code (Forbidden). You can also configure CloudFront to return a custom error page when a request is blocked. For more information about WAF, see the [Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html).
|
|
462
476
|
*/
|
|
463
477
|
WebACLId?: string;
|
|
@@ -566,21 +580,48 @@ export type LambdaFunctionAssociation = {
|
|
|
566
580
|
};
|
|
567
581
|
/**
|
|
568
582
|
* Type definition for `AWS::CloudFront::Distribution.LegacyCustomOrigin`.
|
|
583
|
+
* A custom origin. A custom origin is any origin that is *not* an S3 bucket, with one exception. An S3 bucket that is [configured with static website hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) *is* a custom origin.
|
|
584
|
+
This property is legacy. We recommend that you use [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) instead.
|
|
569
585
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacycustomorigin.html}
|
|
570
586
|
*/
|
|
571
587
|
export type LegacyCustomOrigin = {
|
|
588
|
+
/**
|
|
589
|
+
* The domain name assigned to your CF distribution.
|
|
590
|
+
*/
|
|
572
591
|
DNSName: string;
|
|
592
|
+
/**
|
|
593
|
+
* The HTTP port that CF uses to connect to the origin. Specify the HTTP port that the origin listens on.
|
|
594
|
+
*/
|
|
573
595
|
HTTPPort?: number;
|
|
596
|
+
/**
|
|
597
|
+
* The HTTPS port that CF uses to connect to the origin. Specify the HTTPS port that the origin listens on.
|
|
598
|
+
*/
|
|
574
599
|
HTTPSPort?: number;
|
|
600
|
+
/**
|
|
601
|
+
* Specifies the protocol (HTTP or HTTPS) that CF uses to connect to the origin.
|
|
602
|
+
*/
|
|
575
603
|
OriginProtocolPolicy: string;
|
|
604
|
+
/**
|
|
605
|
+
* The minimum SSL/TLS protocol version that CF uses when communicating with your origin server over HTTPs.
|
|
606
|
+
For more information, see [Minimum Origin SSL Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) in the *Developer Guide*.
|
|
607
|
+
*/
|
|
576
608
|
OriginSSLProtocols: string[];
|
|
577
609
|
};
|
|
578
610
|
/**
|
|
579
611
|
* Type definition for `AWS::CloudFront::Distribution.LegacyS3Origin`.
|
|
612
|
+
* The origin as an S3 bucket.
|
|
613
|
+
This property is legacy. We recommend that you use [Origin](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html) instead.
|
|
580
614
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-legacys3origin.html}
|
|
581
615
|
*/
|
|
582
616
|
export type LegacyS3Origin = {
|
|
617
|
+
/**
|
|
618
|
+
* The domain name assigned to your CF distribution.
|
|
619
|
+
*/
|
|
583
620
|
DNSName: string;
|
|
621
|
+
/**
|
|
622
|
+
* The CF origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an S3 through CF.
|
|
623
|
+
This property is legacy. We recommend that you use [OriginAccessControl](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html) instead.
|
|
624
|
+
*/
|
|
584
625
|
OriginAccessIdentity?: string;
|
|
585
626
|
};
|
|
586
627
|
/**
|
|
@@ -792,9 +833,10 @@ export type Restrictions = {
|
|
|
792
833
|
*/
|
|
793
834
|
export type S3OriginConfig = {
|
|
794
835
|
/**
|
|
795
|
-
*
|
|
796
|
-
|
|
797
|
-
|
|
836
|
+
* If you're using origin access control (OAC) instead of origin access identity, specify an empty ``OriginAccessIdentity`` element. For more information, see [Restricting access to an](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-origin.html) in the *Amazon CloudFront Developer Guide*.
|
|
837
|
+
The CloudFront origin access identity to associate with the origin. Use an origin access identity to configure the origin so that viewers can *only* access objects in an Amazon S3 bucket through CloudFront. The format of the value is:
|
|
838
|
+
``origin-access-identity/cloudfront/ID-of-origin-access-identity``
|
|
839
|
+
The ``ID-of-origin-access-identity`` is the value that CloudFront returned in the ``ID`` element when you created the origin access identity.
|
|
798
840
|
If you want viewers to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty ``OriginAccessIdentity`` element.
|
|
799
841
|
To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty ``OriginAccessIdentity`` element.
|
|
800
842
|
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
|
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Creates a CF function.
|
|
5
|
+
To create a function, you provide the function code and some configuration information about the function. The response contains an Amazon Resource Name (ARN) that uniquely identifies the function, and the function’s stage.
|
|
6
|
+
By default, when you create a function, it’s in the ``DEVELOPMENT`` stage. In this stage, you can [test the function](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/test-function.html) in the CF console (or with ``TestFunction`` in the CF API).
|
|
7
|
+
When you’re ready to use your function with a CF distribution, publish the function to the ``LIVE`` stage. You can do this in the CF console, with ``PublishFunction`` in the CF API, or by updating the ``AWS::CloudFront::Function`` resource with the ``AutoPublish`` property set to ``true``. When the function is published to the ``LIVE`` stage, you can attach it to a distribution’s cache behavior, using the function’s ARN.
|
|
8
|
+
To automatically publish the function to the ``LIVE`` stage when it’s created, set the ``AutoPublish`` property to ``true``.
|
|
5
9
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html}
|
|
6
10
|
*/
|
|
7
11
|
export type CloudFrontFunctionProperties = {
|
|
12
|
+
/**
|
|
13
|
+
* A flag that determines whether to automatically publish the function to the ``LIVE`` stage when it’s created. To automatically publish to the ``LIVE`` stage, set this property to ``true``.
|
|
14
|
+
*/
|
|
8
15
|
AutoPublish?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The function code. For more information about writing a CloudFront function, see [Writing function code for CloudFront Functions](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html) in the *Amazon CloudFront Developer Guide*.
|
|
18
|
+
*/
|
|
9
19
|
FunctionCode: string;
|
|
20
|
+
/**
|
|
21
|
+
* Contains configuration information about a CloudFront function.
|
|
22
|
+
*/
|
|
10
23
|
FunctionConfig: FunctionConfig;
|
|
24
|
+
/**
|
|
25
|
+
* A name to identify the function.
|
|
26
|
+
*/
|
|
11
27
|
Name: string;
|
|
12
28
|
};
|
|
13
29
|
/**
|
|
@@ -16,29 +32,53 @@ export type CloudFrontFunctionProperties = {
|
|
|
16
32
|
*/
|
|
17
33
|
export type CloudFrontFunctionAttributes = {
|
|
18
34
|
FunctionARN: string;
|
|
35
|
+
/**
|
|
36
|
+
* Contains metadata about a CloudFront function.
|
|
37
|
+
*/
|
|
19
38
|
FunctionMetadata: {
|
|
39
|
+
/**
|
|
40
|
+
* The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.
|
|
41
|
+
*/
|
|
20
42
|
FunctionARN: string;
|
|
21
43
|
};
|
|
22
44
|
Stage: string;
|
|
23
45
|
};
|
|
24
46
|
/**
|
|
25
47
|
* Type definition for `AWS::CloudFront::Function.FunctionConfig`.
|
|
48
|
+
* Contains configuration information about a CloudFront function.
|
|
26
49
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-functionconfig.html}
|
|
27
50
|
*/
|
|
28
51
|
export type FunctionConfig = {
|
|
52
|
+
/**
|
|
53
|
+
* A comment to describe the function.
|
|
54
|
+
*/
|
|
29
55
|
Comment: string;
|
|
56
|
+
/**
|
|
57
|
+
* The configuration for the key value store associations.
|
|
58
|
+
*/
|
|
30
59
|
KeyValueStoreAssociations?: KeyValueStoreAssociation[];
|
|
60
|
+
/**
|
|
61
|
+
* The function's runtime environment version.
|
|
62
|
+
*/
|
|
31
63
|
Runtime: string;
|
|
32
64
|
};
|
|
33
65
|
/**
|
|
34
66
|
* Type definition for `AWS::CloudFront::Function.KeyValueStoreAssociation`.
|
|
67
|
+
* The key value store association.
|
|
35
68
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-function-keyvaluestoreassociation.html}
|
|
36
69
|
*/
|
|
37
70
|
export type KeyValueStoreAssociation = {
|
|
71
|
+
/**
|
|
72
|
+
* The Amazon Resource Name (ARN) of the key value store association.
|
|
73
|
+
*/
|
|
38
74
|
KeyValueStoreARN: string;
|
|
39
75
|
};
|
|
40
76
|
/**
|
|
41
|
-
*
|
|
77
|
+
* Creates a CF function.
|
|
78
|
+
To create a function, you provide the function code and some configuration information about the function. The response contains an Amazon Resource Name (ARN) that uniquely identifies the function, and the function’s stage.
|
|
79
|
+
By default, when you create a function, it’s in the ``DEVELOPMENT`` stage. In this stage, you can [test the function](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/test-function.html) in the CF console (or with ``TestFunction`` in the CF API).
|
|
80
|
+
When you’re ready to use your function with a CF distribution, publish the function to the ``LIVE`` stage. You can do this in the CF console, with ``PublishFunction`` in the CF API, or by updating the ``AWS::CloudFront::Function`` resource with the ``AutoPublish`` property set to ``true``. When the function is published to the ``LIVE`` stage, you can attach it to a distribution’s cache behavior, using the function’s ARN.
|
|
81
|
+
To automatically publish the function to the ``LIVE`` stage when it’s created, set the ``AutoPublish`` property to ``true``.
|
|
42
82
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html}
|
|
43
83
|
*/
|
|
44
84
|
export declare class CloudFrontFunction extends $Resource<"AWS::CloudFront::Function", CloudFrontFunctionProperties, CloudFrontFunctionAttributes> {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Creates a CF function.
|
|
4
|
+
To create a function, you provide the function code and some configuration information about the function. The response contains an Amazon Resource Name (ARN) that uniquely identifies the function, and the function’s stage.
|
|
5
|
+
By default, when you create a function, it’s in the ``DEVELOPMENT`` stage. In this stage, you can [test the function](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/test-function.html) in the CF console (or with ``TestFunction`` in the CF API).
|
|
6
|
+
When you’re ready to use your function with a CF distribution, publish the function to the ``LIVE`` stage. You can do this in the CF console, with ``PublishFunction`` in the CF API, or by updating the ``AWS::CloudFront::Function`` resource with the ``AutoPublish`` property set to ``true``. When the function is published to the ``LIVE`` stage, you can attach it to a distribution’s cache behavior, using the function’s ARN.
|
|
7
|
+
To automatically publish the function to the ``LIVE`` stage when it’s created, set the ``AutoPublish`` property to ``true``.
|
|
4
8
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-function.html}
|
|
5
9
|
*/
|
|
6
10
|
export class CloudFrontFunction extends $Resource {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
|
-
* Resource
|
|
4
|
+
* Resource type definition for `AWS::CloudFront::KeyGroup`.
|
|
5
|
+
* A key group.
|
|
6
|
+
A key group contains a list of public keys that you can use with [CloudFront signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).
|
|
5
7
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html}
|
|
6
8
|
*/
|
|
7
9
|
export type CloudFrontKeyGroupProperties = {
|
|
10
|
+
/**
|
|
11
|
+
* The key group configuration.
|
|
12
|
+
*/
|
|
8
13
|
KeyGroupConfig: KeyGroupConfig;
|
|
9
14
|
};
|
|
10
15
|
/**
|
|
@@ -17,15 +22,28 @@ export type CloudFrontKeyGroupAttributes = {
|
|
|
17
22
|
};
|
|
18
23
|
/**
|
|
19
24
|
* Type definition for `AWS::CloudFront::KeyGroup.KeyGroupConfig`.
|
|
25
|
+
* A key group configuration.
|
|
26
|
+
A key group contains a list of public keys that you can use with [CloudFront signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).
|
|
20
27
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keygroup-keygroupconfig.html}
|
|
21
28
|
*/
|
|
22
29
|
export type KeyGroupConfig = {
|
|
30
|
+
/**
|
|
31
|
+
* A comment to describe the key group. The comment cannot be longer than 128 characters.
|
|
32
|
+
*/
|
|
23
33
|
Comment?: string;
|
|
34
|
+
/**
|
|
35
|
+
* A list of the identifiers of the public keys in the key group.
|
|
36
|
+
*/
|
|
24
37
|
Items: string[];
|
|
38
|
+
/**
|
|
39
|
+
* A name to identify the key group.
|
|
40
|
+
*/
|
|
25
41
|
Name: string;
|
|
26
42
|
};
|
|
27
43
|
/**
|
|
28
|
-
* Resource
|
|
44
|
+
* Resource type definition for `AWS::CloudFront::KeyGroup`.
|
|
45
|
+
* A key group.
|
|
46
|
+
A key group contains a list of public keys that you can use with [CloudFront signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).
|
|
29
47
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html}
|
|
30
48
|
*/
|
|
31
49
|
export declare class CloudFrontKeyGroup extends $Resource<"AWS::CloudFront::KeyGroup", CloudFrontKeyGroupProperties, CloudFrontKeyGroupAttributes> {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
* Resource
|
|
3
|
+
* Resource type definition for `AWS::CloudFront::KeyGroup`.
|
|
4
|
+
* A key group.
|
|
5
|
+
A key group contains a list of public keys that you can use with [CloudFront signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html).
|
|
4
6
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keygroup.html}
|
|
5
7
|
*/
|
|
6
8
|
export class CloudFrontKeyGroup extends $Resource {
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
|
-
* Resource
|
|
4
|
+
* Resource type definition for `AWS::CloudFront::KeyValueStore`.
|
|
5
|
+
* The key value store. Use this to separate data from function code, allowing you to update data without having to publish a new version of a function. The key value store holds keys and their corresponding values.
|
|
5
6
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keyvaluestore.html}
|
|
6
7
|
*/
|
|
7
8
|
export type CloudFrontKeyValueStoreProperties = {
|
|
9
|
+
/**
|
|
10
|
+
* A comment for the key value store.
|
|
11
|
+
*/
|
|
8
12
|
Comment?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The import source for the key value store.
|
|
15
|
+
*/
|
|
9
16
|
ImportSource?: ImportSource;
|
|
17
|
+
/**
|
|
18
|
+
* The name of the key value store.
|
|
19
|
+
*/
|
|
10
20
|
Name: string;
|
|
11
21
|
};
|
|
12
22
|
/**
|
|
@@ -20,14 +30,22 @@ export type CloudFrontKeyValueStoreAttributes = {
|
|
|
20
30
|
};
|
|
21
31
|
/**
|
|
22
32
|
* Type definition for `AWS::CloudFront::KeyValueStore.ImportSource`.
|
|
33
|
+
* The import source for the key value store.
|
|
23
34
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-keyvaluestore-importsource.html}
|
|
24
35
|
*/
|
|
25
36
|
export type ImportSource = {
|
|
37
|
+
/**
|
|
38
|
+
* The Amazon Resource Name (ARN) of the import source for the key value store.
|
|
39
|
+
*/
|
|
26
40
|
SourceArn: string;
|
|
41
|
+
/**
|
|
42
|
+
* The source type of the import source for the key value store.
|
|
43
|
+
*/
|
|
27
44
|
SourceType: string;
|
|
28
45
|
};
|
|
29
46
|
/**
|
|
30
|
-
* Resource
|
|
47
|
+
* Resource type definition for `AWS::CloudFront::KeyValueStore`.
|
|
48
|
+
* The key value store. Use this to separate data from function code, allowing you to update data without having to publish a new version of a function. The key value store holds keys and their corresponding values.
|
|
31
49
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keyvaluestore.html}
|
|
32
50
|
*/
|
|
33
51
|
export declare class CloudFrontKeyValueStore extends $Resource<"AWS::CloudFront::KeyValueStore", CloudFrontKeyValueStoreProperties, CloudFrontKeyValueStoreAttributes> {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
* Resource
|
|
3
|
+
* Resource type definition for `AWS::CloudFront::KeyValueStore`.
|
|
4
|
+
* The key value store. Use this to separate data from function code, allowing you to update data without having to publish a new version of a function. The key value store holds keys and their corresponding values.
|
|
4
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-keyvaluestore.html}
|
|
5
6
|
*/
|
|
6
7
|
export class CloudFrontKeyValueStore extends $Resource {
|
|
@@ -1,29 +1,45 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
|
|
3
3
|
/**
|
|
4
|
-
* Resource
|
|
4
|
+
* Resource type definition for `AWS::CloudFront::MonitoringSubscription`.
|
|
5
|
+
* A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
|
|
5
6
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html}
|
|
6
7
|
*/
|
|
7
8
|
export type CloudFrontMonitoringSubscriptionProperties = {
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the distribution that you are enabling metrics for.
|
|
11
|
+
*/
|
|
8
12
|
DistributionId: string;
|
|
13
|
+
/**
|
|
14
|
+
* A subscription configuration for additional CloudWatch metrics.
|
|
15
|
+
*/
|
|
9
16
|
MonitoringSubscription: MonitoringSubscription;
|
|
10
17
|
};
|
|
11
18
|
/**
|
|
12
19
|
* Type definition for `AWS::CloudFront::MonitoringSubscription.MonitoringSubscription`.
|
|
20
|
+
* A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
|
|
13
21
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-monitoringsubscription.html}
|
|
14
22
|
*/
|
|
15
23
|
export type MonitoringSubscription = {
|
|
24
|
+
/**
|
|
25
|
+
* A subscription configuration for additional CloudWatch metrics.
|
|
26
|
+
*/
|
|
16
27
|
RealtimeMetricsSubscriptionConfig?: RealtimeMetricsSubscriptionConfig;
|
|
17
28
|
};
|
|
18
29
|
/**
|
|
19
30
|
* Type definition for `AWS::CloudFront::MonitoringSubscription.RealtimeMetricsSubscriptionConfig`.
|
|
31
|
+
* A subscription configuration for additional CloudWatch metrics.
|
|
20
32
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-monitoringsubscription-realtimemetricssubscriptionconfig.html}
|
|
21
33
|
*/
|
|
22
34
|
export type RealtimeMetricsSubscriptionConfig = {
|
|
35
|
+
/**
|
|
36
|
+
* A flag that indicates whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
|
|
37
|
+
*/
|
|
23
38
|
RealtimeMetricsSubscriptionStatus: "Enabled" | "Disabled";
|
|
24
39
|
};
|
|
25
40
|
/**
|
|
26
|
-
* Resource
|
|
41
|
+
* Resource type definition for `AWS::CloudFront::MonitoringSubscription`.
|
|
42
|
+
* A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
|
|
27
43
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html}
|
|
28
44
|
*/
|
|
29
45
|
export declare class CloudFrontMonitoringSubscription extends $Resource<"AWS::CloudFront::MonitoringSubscription", CloudFrontMonitoringSubscriptionProperties, Record<string, never>> {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
|
|
2
2
|
/**
|
|
3
|
-
* Resource
|
|
3
|
+
* Resource type definition for `AWS::CloudFront::MonitoringSubscription`.
|
|
4
|
+
* A monitoring subscription. This structure contains information about whether additional CloudWatch metrics are enabled for a given CloudFront distribution.
|
|
4
5
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-monitoringsubscription.html}
|
|
5
6
|
*/
|
|
6
7
|
export class CloudFrontMonitoringSubscription extends $Resource {
|