UNPKG

158 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {CloudFrontCustomizations} from '../lib/services/cloudfront';
5import {WaiterConfiguration} from '../lib/service';
6import {ServiceConfigurationOptions} from '../lib/service';
7import {ConfigBase as Config} from '../lib/config';
8import {Signer as signer} from '../lib/cloudfront/signer';
9interface Blob {}
10declare class CloudFront extends CloudFrontCustomizations {
11 /**
12 * Constructs a service object. This object has one method for each API operation.
13 */
14 constructor(options?: CloudFront.Types.ClientConfiguration)
15 config: Config & CloudFront.Types.ClientConfiguration;
16 /**
17 * Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
18 */
19 createCloudFrontOriginAccessIdentity(params: CloudFront.Types.CreateCloudFrontOriginAccessIdentityRequest, callback?: (err: AWSError, data: CloudFront.Types.CreateCloudFrontOriginAccessIdentityResult) => void): Request<CloudFront.Types.CreateCloudFrontOriginAccessIdentityResult, AWSError>;
20 /**
21 * Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
22 */
23 createCloudFrontOriginAccessIdentity(callback?: (err: AWSError, data: CloudFront.Types.CreateCloudFrontOriginAccessIdentityResult) => void): Request<CloudFront.Types.CreateCloudFrontOriginAccessIdentityResult, AWSError>;
24 /**
25 * Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. Send a POST request to the /CloudFront API version/distribution/distribution ID resource. When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.
26 */
27 createDistribution(params: CloudFront.Types.CreateDistributionRequest, callback?: (err: AWSError, data: CloudFront.Types.CreateDistributionResult) => void): Request<CloudFront.Types.CreateDistributionResult, AWSError>;
28 /**
29 * Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. Send a POST request to the /CloudFront API version/distribution/distribution ID resource. When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.
30 */
31 createDistribution(callback?: (err: AWSError, data: CloudFront.Types.CreateDistributionResult) => void): Request<CloudFront.Types.CreateDistributionResult, AWSError>;
32 /**
33 * Create a new distribution with tags.
34 */
35 createDistributionWithTags(params: CloudFront.Types.CreateDistributionWithTagsRequest, callback?: (err: AWSError, data: CloudFront.Types.CreateDistributionWithTagsResult) => void): Request<CloudFront.Types.CreateDistributionWithTagsResult, AWSError>;
36 /**
37 * Create a new distribution with tags.
38 */
39 createDistributionWithTags(callback?: (err: AWSError, data: CloudFront.Types.CreateDistributionWithTagsResult) => void): Request<CloudFront.Types.CreateDistributionWithTagsResult, AWSError>;
40 /**
41 * Create a new field-level encryption configuration.
42 */
43 createFieldLevelEncryptionConfig(params: CloudFront.Types.CreateFieldLevelEncryptionConfigRequest, callback?: (err: AWSError, data: CloudFront.Types.CreateFieldLevelEncryptionConfigResult) => void): Request<CloudFront.Types.CreateFieldLevelEncryptionConfigResult, AWSError>;
44 /**
45 * Create a new field-level encryption configuration.
46 */
47 createFieldLevelEncryptionConfig(callback?: (err: AWSError, data: CloudFront.Types.CreateFieldLevelEncryptionConfigResult) => void): Request<CloudFront.Types.CreateFieldLevelEncryptionConfigResult, AWSError>;
48 /**
49 * Create a field-level encryption profile.
50 */
51 createFieldLevelEncryptionProfile(params: CloudFront.Types.CreateFieldLevelEncryptionProfileRequest, callback?: (err: AWSError, data: CloudFront.Types.CreateFieldLevelEncryptionProfileResult) => void): Request<CloudFront.Types.CreateFieldLevelEncryptionProfileResult, AWSError>;
52 /**
53 * Create a field-level encryption profile.
54 */
55 createFieldLevelEncryptionProfile(callback?: (err: AWSError, data: CloudFront.Types.CreateFieldLevelEncryptionProfileResult) => void): Request<CloudFront.Types.CreateFieldLevelEncryptionProfileResult, AWSError>;
56 /**
57 * Create a new invalidation.
58 */
59 createInvalidation(params: CloudFront.Types.CreateInvalidationRequest, callback?: (err: AWSError, data: CloudFront.Types.CreateInvalidationResult) => void): Request<CloudFront.Types.CreateInvalidationResult, AWSError>;
60 /**
61 * Create a new invalidation.
62 */
63 createInvalidation(callback?: (err: AWSError, data: CloudFront.Types.CreateInvalidationResult) => void): Request<CloudFront.Types.CreateInvalidationResult, AWSError>;
64 /**
65 * Add a new public key to CloudFront to use, for example, for field-level encryption. You can add a maximum of 10 public keys with one AWS account.
66 */
67 createPublicKey(params: CloudFront.Types.CreatePublicKeyRequest, callback?: (err: AWSError, data: CloudFront.Types.CreatePublicKeyResult) => void): Request<CloudFront.Types.CreatePublicKeyResult, AWSError>;
68 /**
69 * Add a new public key to CloudFront to use, for example, for field-level encryption. You can add a maximum of 10 public keys with one AWS account.
70 */
71 createPublicKey(callback?: (err: AWSError, data: CloudFront.Types.CreatePublicKeyResult) => void): Request<CloudFront.Types.CreatePublicKeyResult, AWSError>;
72 /**
73 * Creates a new RTMP distribution. An RTMP distribution is similar to a web distribution, but an RTMP distribution streams media files using the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files using HTTP. To create a new distribution, submit a POST request to the CloudFront API version/distribution resource. The request body must include a document with a StreamingDistributionConfig element. The response echoes the StreamingDistributionConfig element and returns other information about the RTMP distribution. To get the status of your request, use the GET StreamingDistribution API action. When the value of Enabled is true and the value of Status is Deployed, your distribution is ready. A distribution usually deploys in less than 15 minutes. For more information about web distributions, see Working with RTMP Distributions in the Amazon CloudFront Developer Guide. Beginning with the 2012-05-05 version of the CloudFront API, we made substantial changes to the format of the XML document that you include in the request body when you create or update a web distribution or an RTMP distribution, and when you invalidate objects. With previous versions of the API, we discovered that it was too easy to accidentally delete one or more values for an element that accepts multiple values, for example, CNAMEs and trusted signers. Our changes for the 2012-05-05 release are intended to prevent these accidental deletions and to notify you when there's a mismatch between the number of values you say you're specifying in the Quantity element and the number of values specified.
74 */
75 createStreamingDistribution(params: CloudFront.Types.CreateStreamingDistributionRequest, callback?: (err: AWSError, data: CloudFront.Types.CreateStreamingDistributionResult) => void): Request<CloudFront.Types.CreateStreamingDistributionResult, AWSError>;
76 /**
77 * Creates a new RTMP distribution. An RTMP distribution is similar to a web distribution, but an RTMP distribution streams media files using the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files using HTTP. To create a new distribution, submit a POST request to the CloudFront API version/distribution resource. The request body must include a document with a StreamingDistributionConfig element. The response echoes the StreamingDistributionConfig element and returns other information about the RTMP distribution. To get the status of your request, use the GET StreamingDistribution API action. When the value of Enabled is true and the value of Status is Deployed, your distribution is ready. A distribution usually deploys in less than 15 minutes. For more information about web distributions, see Working with RTMP Distributions in the Amazon CloudFront Developer Guide. Beginning with the 2012-05-05 version of the CloudFront API, we made substantial changes to the format of the XML document that you include in the request body when you create or update a web distribution or an RTMP distribution, and when you invalidate objects. With previous versions of the API, we discovered that it was too easy to accidentally delete one or more values for an element that accepts multiple values, for example, CNAMEs and trusted signers. Our changes for the 2012-05-05 release are intended to prevent these accidental deletions and to notify you when there's a mismatch between the number of values you say you're specifying in the Quantity element and the number of values specified.
78 */
79 createStreamingDistribution(callback?: (err: AWSError, data: CloudFront.Types.CreateStreamingDistributionResult) => void): Request<CloudFront.Types.CreateStreamingDistributionResult, AWSError>;
80 /**
81 * Create a new streaming distribution with tags.
82 */
83 createStreamingDistributionWithTags(params: CloudFront.Types.CreateStreamingDistributionWithTagsRequest, callback?: (err: AWSError, data: CloudFront.Types.CreateStreamingDistributionWithTagsResult) => void): Request<CloudFront.Types.CreateStreamingDistributionWithTagsResult, AWSError>;
84 /**
85 * Create a new streaming distribution with tags.
86 */
87 createStreamingDistributionWithTags(callback?: (err: AWSError, data: CloudFront.Types.CreateStreamingDistributionWithTagsResult) => void): Request<CloudFront.Types.CreateStreamingDistributionWithTagsResult, AWSError>;
88 /**
89 * Delete an origin access identity.
90 */
91 deleteCloudFrontOriginAccessIdentity(params: CloudFront.Types.DeleteCloudFrontOriginAccessIdentityRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
92 /**
93 * Delete an origin access identity.
94 */
95 deleteCloudFrontOriginAccessIdentity(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
96 /**
97 * Delete a distribution.
98 */
99 deleteDistribution(params: CloudFront.Types.DeleteDistributionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
100 /**
101 * Delete a distribution.
102 */
103 deleteDistribution(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
104 /**
105 * Remove a field-level encryption configuration.
106 */
107 deleteFieldLevelEncryptionConfig(params: CloudFront.Types.DeleteFieldLevelEncryptionConfigRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
108 /**
109 * Remove a field-level encryption configuration.
110 */
111 deleteFieldLevelEncryptionConfig(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
112 /**
113 * Remove a field-level encryption profile.
114 */
115 deleteFieldLevelEncryptionProfile(params: CloudFront.Types.DeleteFieldLevelEncryptionProfileRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
116 /**
117 * Remove a field-level encryption profile.
118 */
119 deleteFieldLevelEncryptionProfile(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
120 /**
121 * Remove a public key you previously added to CloudFront.
122 */
123 deletePublicKey(params: CloudFront.Types.DeletePublicKeyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
124 /**
125 * Remove a public key you previously added to CloudFront.
126 */
127 deletePublicKey(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
128 /**
129 * Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps. To delete an RTMP distribution using the CloudFront API: Disable the RTMP distribution. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution. Update the XML document that was returned in the response to your GET Streaming Distribution Config request to change the value of Enabled to false. Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2. Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled. Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed. Submit a DELETE Streaming Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2. Review the response to your DELETE Streaming Distribution request to confirm that the distribution was successfully deleted. For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.
130 */
131 deleteStreamingDistribution(params: CloudFront.Types.DeleteStreamingDistributionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
132 /**
133 * Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps. To delete an RTMP distribution using the CloudFront API: Disable the RTMP distribution. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution. Update the XML document that was returned in the response to your GET Streaming Distribution Config request to change the value of Enabled to false. Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2. Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled. Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed. Submit a DELETE Streaming Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2. Review the response to your DELETE Streaming Distribution request to confirm that the distribution was successfully deleted. For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.
134 */
135 deleteStreamingDistribution(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
136 /**
137 * Get the information about an origin access identity.
138 */
139 getCloudFrontOriginAccessIdentity(params: CloudFront.Types.GetCloudFrontOriginAccessIdentityRequest, callback?: (err: AWSError, data: CloudFront.Types.GetCloudFrontOriginAccessIdentityResult) => void): Request<CloudFront.Types.GetCloudFrontOriginAccessIdentityResult, AWSError>;
140 /**
141 * Get the information about an origin access identity.
142 */
143 getCloudFrontOriginAccessIdentity(callback?: (err: AWSError, data: CloudFront.Types.GetCloudFrontOriginAccessIdentityResult) => void): Request<CloudFront.Types.GetCloudFrontOriginAccessIdentityResult, AWSError>;
144 /**
145 * Get the configuration information about an origin access identity.
146 */
147 getCloudFrontOriginAccessIdentityConfig(params: CloudFront.Types.GetCloudFrontOriginAccessIdentityConfigRequest, callback?: (err: AWSError, data: CloudFront.Types.GetCloudFrontOriginAccessIdentityConfigResult) => void): Request<CloudFront.Types.GetCloudFrontOriginAccessIdentityConfigResult, AWSError>;
148 /**
149 * Get the configuration information about an origin access identity.
150 */
151 getCloudFrontOriginAccessIdentityConfig(callback?: (err: AWSError, data: CloudFront.Types.GetCloudFrontOriginAccessIdentityConfigResult) => void): Request<CloudFront.Types.GetCloudFrontOriginAccessIdentityConfigResult, AWSError>;
152 /**
153 * Get the information about a distribution.
154 */
155 getDistribution(params: CloudFront.Types.GetDistributionRequest, callback?: (err: AWSError, data: CloudFront.Types.GetDistributionResult) => void): Request<CloudFront.Types.GetDistributionResult, AWSError>;
156 /**
157 * Get the information about a distribution.
158 */
159 getDistribution(callback?: (err: AWSError, data: CloudFront.Types.GetDistributionResult) => void): Request<CloudFront.Types.GetDistributionResult, AWSError>;
160 /**
161 * Get the configuration information about a distribution.
162 */
163 getDistributionConfig(params: CloudFront.Types.GetDistributionConfigRequest, callback?: (err: AWSError, data: CloudFront.Types.GetDistributionConfigResult) => void): Request<CloudFront.Types.GetDistributionConfigResult, AWSError>;
164 /**
165 * Get the configuration information about a distribution.
166 */
167 getDistributionConfig(callback?: (err: AWSError, data: CloudFront.Types.GetDistributionConfigResult) => void): Request<CloudFront.Types.GetDistributionConfigResult, AWSError>;
168 /**
169 * Get the field-level encryption configuration information.
170 */
171 getFieldLevelEncryption(params: CloudFront.Types.GetFieldLevelEncryptionRequest, callback?: (err: AWSError, data: CloudFront.Types.GetFieldLevelEncryptionResult) => void): Request<CloudFront.Types.GetFieldLevelEncryptionResult, AWSError>;
172 /**
173 * Get the field-level encryption configuration information.
174 */
175 getFieldLevelEncryption(callback?: (err: AWSError, data: CloudFront.Types.GetFieldLevelEncryptionResult) => void): Request<CloudFront.Types.GetFieldLevelEncryptionResult, AWSError>;
176 /**
177 * Get the field-level encryption configuration information.
178 */
179 getFieldLevelEncryptionConfig(params: CloudFront.Types.GetFieldLevelEncryptionConfigRequest, callback?: (err: AWSError, data: CloudFront.Types.GetFieldLevelEncryptionConfigResult) => void): Request<CloudFront.Types.GetFieldLevelEncryptionConfigResult, AWSError>;
180 /**
181 * Get the field-level encryption configuration information.
182 */
183 getFieldLevelEncryptionConfig(callback?: (err: AWSError, data: CloudFront.Types.GetFieldLevelEncryptionConfigResult) => void): Request<CloudFront.Types.GetFieldLevelEncryptionConfigResult, AWSError>;
184 /**
185 * Get the field-level encryption profile information.
186 */
187 getFieldLevelEncryptionProfile(params: CloudFront.Types.GetFieldLevelEncryptionProfileRequest, callback?: (err: AWSError, data: CloudFront.Types.GetFieldLevelEncryptionProfileResult) => void): Request<CloudFront.Types.GetFieldLevelEncryptionProfileResult, AWSError>;
188 /**
189 * Get the field-level encryption profile information.
190 */
191 getFieldLevelEncryptionProfile(callback?: (err: AWSError, data: CloudFront.Types.GetFieldLevelEncryptionProfileResult) => void): Request<CloudFront.Types.GetFieldLevelEncryptionProfileResult, AWSError>;
192 /**
193 * Get the field-level encryption profile configuration information.
194 */
195 getFieldLevelEncryptionProfileConfig(params: CloudFront.Types.GetFieldLevelEncryptionProfileConfigRequest, callback?: (err: AWSError, data: CloudFront.Types.GetFieldLevelEncryptionProfileConfigResult) => void): Request<CloudFront.Types.GetFieldLevelEncryptionProfileConfigResult, AWSError>;
196 /**
197 * Get the field-level encryption profile configuration information.
198 */
199 getFieldLevelEncryptionProfileConfig(callback?: (err: AWSError, data: CloudFront.Types.GetFieldLevelEncryptionProfileConfigResult) => void): Request<CloudFront.Types.GetFieldLevelEncryptionProfileConfigResult, AWSError>;
200 /**
201 * Get the information about an invalidation.
202 */
203 getInvalidation(params: CloudFront.Types.GetInvalidationRequest, callback?: (err: AWSError, data: CloudFront.Types.GetInvalidationResult) => void): Request<CloudFront.Types.GetInvalidationResult, AWSError>;
204 /**
205 * Get the information about an invalidation.
206 */
207 getInvalidation(callback?: (err: AWSError, data: CloudFront.Types.GetInvalidationResult) => void): Request<CloudFront.Types.GetInvalidationResult, AWSError>;
208 /**
209 * Get the public key information.
210 */
211 getPublicKey(params: CloudFront.Types.GetPublicKeyRequest, callback?: (err: AWSError, data: CloudFront.Types.GetPublicKeyResult) => void): Request<CloudFront.Types.GetPublicKeyResult, AWSError>;
212 /**
213 * Get the public key information.
214 */
215 getPublicKey(callback?: (err: AWSError, data: CloudFront.Types.GetPublicKeyResult) => void): Request<CloudFront.Types.GetPublicKeyResult, AWSError>;
216 /**
217 * Return public key configuration informaation
218 */
219 getPublicKeyConfig(params: CloudFront.Types.GetPublicKeyConfigRequest, callback?: (err: AWSError, data: CloudFront.Types.GetPublicKeyConfigResult) => void): Request<CloudFront.Types.GetPublicKeyConfigResult, AWSError>;
220 /**
221 * Return public key configuration informaation
222 */
223 getPublicKeyConfig(callback?: (err: AWSError, data: CloudFront.Types.GetPublicKeyConfigResult) => void): Request<CloudFront.Types.GetPublicKeyConfigResult, AWSError>;
224 /**
225 * Gets information about a specified RTMP distribution, including the distribution configuration.
226 */
227 getStreamingDistribution(params: CloudFront.Types.GetStreamingDistributionRequest, callback?: (err: AWSError, data: CloudFront.Types.GetStreamingDistributionResult) => void): Request<CloudFront.Types.GetStreamingDistributionResult, AWSError>;
228 /**
229 * Gets information about a specified RTMP distribution, including the distribution configuration.
230 */
231 getStreamingDistribution(callback?: (err: AWSError, data: CloudFront.Types.GetStreamingDistributionResult) => void): Request<CloudFront.Types.GetStreamingDistributionResult, AWSError>;
232 /**
233 * Get the configuration information about a streaming distribution.
234 */
235 getStreamingDistributionConfig(params: CloudFront.Types.GetStreamingDistributionConfigRequest, callback?: (err: AWSError, data: CloudFront.Types.GetStreamingDistributionConfigResult) => void): Request<CloudFront.Types.GetStreamingDistributionConfigResult, AWSError>;
236 /**
237 * Get the configuration information about a streaming distribution.
238 */
239 getStreamingDistributionConfig(callback?: (err: AWSError, data: CloudFront.Types.GetStreamingDistributionConfigResult) => void): Request<CloudFront.Types.GetStreamingDistributionConfigResult, AWSError>;
240 /**
241 * Lists origin access identities.
242 */
243 listCloudFrontOriginAccessIdentities(params: CloudFront.Types.ListCloudFrontOriginAccessIdentitiesRequest, callback?: (err: AWSError, data: CloudFront.Types.ListCloudFrontOriginAccessIdentitiesResult) => void): Request<CloudFront.Types.ListCloudFrontOriginAccessIdentitiesResult, AWSError>;
244 /**
245 * Lists origin access identities.
246 */
247 listCloudFrontOriginAccessIdentities(callback?: (err: AWSError, data: CloudFront.Types.ListCloudFrontOriginAccessIdentitiesResult) => void): Request<CloudFront.Types.ListCloudFrontOriginAccessIdentitiesResult, AWSError>;
248 /**
249 * List CloudFront distributions.
250 */
251 listDistributions(params: CloudFront.Types.ListDistributionsRequest, callback?: (err: AWSError, data: CloudFront.Types.ListDistributionsResult) => void): Request<CloudFront.Types.ListDistributionsResult, AWSError>;
252 /**
253 * List CloudFront distributions.
254 */
255 listDistributions(callback?: (err: AWSError, data: CloudFront.Types.ListDistributionsResult) => void): Request<CloudFront.Types.ListDistributionsResult, AWSError>;
256 /**
257 * List the distributions that are associated with a specified AWS WAF web ACL.
258 */
259 listDistributionsByWebACLId(params: CloudFront.Types.ListDistributionsByWebACLIdRequest, callback?: (err: AWSError, data: CloudFront.Types.ListDistributionsByWebACLIdResult) => void): Request<CloudFront.Types.ListDistributionsByWebACLIdResult, AWSError>;
260 /**
261 * List the distributions that are associated with a specified AWS WAF web ACL.
262 */
263 listDistributionsByWebACLId(callback?: (err: AWSError, data: CloudFront.Types.ListDistributionsByWebACLIdResult) => void): Request<CloudFront.Types.ListDistributionsByWebACLIdResult, AWSError>;
264 /**
265 * List all field-level encryption configurations that have been created in CloudFront for this account.
266 */
267 listFieldLevelEncryptionConfigs(params: CloudFront.Types.ListFieldLevelEncryptionConfigsRequest, callback?: (err: AWSError, data: CloudFront.Types.ListFieldLevelEncryptionConfigsResult) => void): Request<CloudFront.Types.ListFieldLevelEncryptionConfigsResult, AWSError>;
268 /**
269 * List all field-level encryption configurations that have been created in CloudFront for this account.
270 */
271 listFieldLevelEncryptionConfigs(callback?: (err: AWSError, data: CloudFront.Types.ListFieldLevelEncryptionConfigsResult) => void): Request<CloudFront.Types.ListFieldLevelEncryptionConfigsResult, AWSError>;
272 /**
273 * Request a list of field-level encryption profiles that have been created in CloudFront for this account.
274 */
275 listFieldLevelEncryptionProfiles(params: CloudFront.Types.ListFieldLevelEncryptionProfilesRequest, callback?: (err: AWSError, data: CloudFront.Types.ListFieldLevelEncryptionProfilesResult) => void): Request<CloudFront.Types.ListFieldLevelEncryptionProfilesResult, AWSError>;
276 /**
277 * Request a list of field-level encryption profiles that have been created in CloudFront for this account.
278 */
279 listFieldLevelEncryptionProfiles(callback?: (err: AWSError, data: CloudFront.Types.ListFieldLevelEncryptionProfilesResult) => void): Request<CloudFront.Types.ListFieldLevelEncryptionProfilesResult, AWSError>;
280 /**
281 * Lists invalidation batches.
282 */
283 listInvalidations(params: CloudFront.Types.ListInvalidationsRequest, callback?: (err: AWSError, data: CloudFront.Types.ListInvalidationsResult) => void): Request<CloudFront.Types.ListInvalidationsResult, AWSError>;
284 /**
285 * Lists invalidation batches.
286 */
287 listInvalidations(callback?: (err: AWSError, data: CloudFront.Types.ListInvalidationsResult) => void): Request<CloudFront.Types.ListInvalidationsResult, AWSError>;
288 /**
289 * List all public keys that have been added to CloudFront for this account.
290 */
291 listPublicKeys(params: CloudFront.Types.ListPublicKeysRequest, callback?: (err: AWSError, data: CloudFront.Types.ListPublicKeysResult) => void): Request<CloudFront.Types.ListPublicKeysResult, AWSError>;
292 /**
293 * List all public keys that have been added to CloudFront for this account.
294 */
295 listPublicKeys(callback?: (err: AWSError, data: CloudFront.Types.ListPublicKeysResult) => void): Request<CloudFront.Types.ListPublicKeysResult, AWSError>;
296 /**
297 * List streaming distributions.
298 */
299 listStreamingDistributions(params: CloudFront.Types.ListStreamingDistributionsRequest, callback?: (err: AWSError, data: CloudFront.Types.ListStreamingDistributionsResult) => void): Request<CloudFront.Types.ListStreamingDistributionsResult, AWSError>;
300 /**
301 * List streaming distributions.
302 */
303 listStreamingDistributions(callback?: (err: AWSError, data: CloudFront.Types.ListStreamingDistributionsResult) => void): Request<CloudFront.Types.ListStreamingDistributionsResult, AWSError>;
304 /**
305 * List tags for a CloudFront resource.
306 */
307 listTagsForResource(params: CloudFront.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: CloudFront.Types.ListTagsForResourceResult) => void): Request<CloudFront.Types.ListTagsForResourceResult, AWSError>;
308 /**
309 * List tags for a CloudFront resource.
310 */
311 listTagsForResource(callback?: (err: AWSError, data: CloudFront.Types.ListTagsForResourceResult) => void): Request<CloudFront.Types.ListTagsForResourceResult, AWSError>;
312 /**
313 * Add tags to a CloudFront resource.
314 */
315 tagResource(params: CloudFront.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
316 /**
317 * Add tags to a CloudFront resource.
318 */
319 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
320 /**
321 * Remove tags from a CloudFront resource.
322 */
323 untagResource(params: CloudFront.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
324 /**
325 * Remove tags from a CloudFront resource.
326 */
327 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
328 /**
329 * Update an origin access identity.
330 */
331 updateCloudFrontOriginAccessIdentity(params: CloudFront.Types.UpdateCloudFrontOriginAccessIdentityRequest, callback?: (err: AWSError, data: CloudFront.Types.UpdateCloudFrontOriginAccessIdentityResult) => void): Request<CloudFront.Types.UpdateCloudFrontOriginAccessIdentityResult, AWSError>;
332 /**
333 * Update an origin access identity.
334 */
335 updateCloudFrontOriginAccessIdentity(callback?: (err: AWSError, data: CloudFront.Types.UpdateCloudFrontOriginAccessIdentityResult) => void): Request<CloudFront.Types.UpdateCloudFrontOriginAccessIdentityResult, AWSError>;
336 /**
337 * Updates the configuration for a web distribution. When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using this API action, follow the steps here to get the current configuration and then make your updates, to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide. The update process includes getting the current distribution configuration, updating the XML document that is returned to make your changes, and then submitting an UpdateDistribution request to make the updates. For information about updating a distribution using the CloudFront console instead, see Creating a Distribution in the Amazon CloudFront Developer Guide. To update a web distribution using the CloudFront API Submit a GetDistributionConfig request to get the current configuration and an Etag header for the distribution. If you update the distribution again, you must get a new Etag header. Update the XML document that was returned in the response to your GetDistributionConfig request to include your changes. When you edit the XML file, be aware of the following: You must strip out the ETag parameter that is returned. Additional fields are required when you update a distribution. There may be fields included in the XML file for features that you haven't configured for your distribution. This is expected and required to successfully update the distribution. You can't change the value of CallerReference. If you try to change this value, CloudFront returns an IllegalUpdate error. The new configuration replaces the existing configuration; the values that you specify in an UpdateDistribution request are not merged into your existing configuration. When you add, delete, or replace values in an element that allows multiple values (for example, CNAME), you must specify all of the values that you want to appear in the updated distribution. In addition, you must update the corresponding Quantity element. Submit an UpdateDistribution request to update the configuration for your distribution: In the request body, include the XML document that you updated in Step 2. The request body must include an XML document with a DistributionConfig element. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GetDistributionConfig request in Step 1. Review the response to the UpdateDistribution request to confirm that the configuration was successfully updated. Optional: Submit a GetDistribution request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.
338 */
339 updateDistribution(params: CloudFront.Types.UpdateDistributionRequest, callback?: (err: AWSError, data: CloudFront.Types.UpdateDistributionResult) => void): Request<CloudFront.Types.UpdateDistributionResult, AWSError>;
340 /**
341 * Updates the configuration for a web distribution. When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using this API action, follow the steps here to get the current configuration and then make your updates, to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide. The update process includes getting the current distribution configuration, updating the XML document that is returned to make your changes, and then submitting an UpdateDistribution request to make the updates. For information about updating a distribution using the CloudFront console instead, see Creating a Distribution in the Amazon CloudFront Developer Guide. To update a web distribution using the CloudFront API Submit a GetDistributionConfig request to get the current configuration and an Etag header for the distribution. If you update the distribution again, you must get a new Etag header. Update the XML document that was returned in the response to your GetDistributionConfig request to include your changes. When you edit the XML file, be aware of the following: You must strip out the ETag parameter that is returned. Additional fields are required when you update a distribution. There may be fields included in the XML file for features that you haven't configured for your distribution. This is expected and required to successfully update the distribution. You can't change the value of CallerReference. If you try to change this value, CloudFront returns an IllegalUpdate error. The new configuration replaces the existing configuration; the values that you specify in an UpdateDistribution request are not merged into your existing configuration. When you add, delete, or replace values in an element that allows multiple values (for example, CNAME), you must specify all of the values that you want to appear in the updated distribution. In addition, you must update the corresponding Quantity element. Submit an UpdateDistribution request to update the configuration for your distribution: In the request body, include the XML document that you updated in Step 2. The request body must include an XML document with a DistributionConfig element. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GetDistributionConfig request in Step 1. Review the response to the UpdateDistribution request to confirm that the configuration was successfully updated. Optional: Submit a GetDistribution request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.
342 */
343 updateDistribution(callback?: (err: AWSError, data: CloudFront.Types.UpdateDistributionResult) => void): Request<CloudFront.Types.UpdateDistributionResult, AWSError>;
344 /**
345 * Update a field-level encryption configuration.
346 */
347 updateFieldLevelEncryptionConfig(params: CloudFront.Types.UpdateFieldLevelEncryptionConfigRequest, callback?: (err: AWSError, data: CloudFront.Types.UpdateFieldLevelEncryptionConfigResult) => void): Request<CloudFront.Types.UpdateFieldLevelEncryptionConfigResult, AWSError>;
348 /**
349 * Update a field-level encryption configuration.
350 */
351 updateFieldLevelEncryptionConfig(callback?: (err: AWSError, data: CloudFront.Types.UpdateFieldLevelEncryptionConfigResult) => void): Request<CloudFront.Types.UpdateFieldLevelEncryptionConfigResult, AWSError>;
352 /**
353 * Update a field-level encryption profile.
354 */
355 updateFieldLevelEncryptionProfile(params: CloudFront.Types.UpdateFieldLevelEncryptionProfileRequest, callback?: (err: AWSError, data: CloudFront.Types.UpdateFieldLevelEncryptionProfileResult) => void): Request<CloudFront.Types.UpdateFieldLevelEncryptionProfileResult, AWSError>;
356 /**
357 * Update a field-level encryption profile.
358 */
359 updateFieldLevelEncryptionProfile(callback?: (err: AWSError, data: CloudFront.Types.UpdateFieldLevelEncryptionProfileResult) => void): Request<CloudFront.Types.UpdateFieldLevelEncryptionProfileResult, AWSError>;
360 /**
361 * Update public key information. Note that the only value you can change is the comment.
362 */
363 updatePublicKey(params: CloudFront.Types.UpdatePublicKeyRequest, callback?: (err: AWSError, data: CloudFront.Types.UpdatePublicKeyResult) => void): Request<CloudFront.Types.UpdatePublicKeyResult, AWSError>;
364 /**
365 * Update public key information. Note that the only value you can change is the comment.
366 */
367 updatePublicKey(callback?: (err: AWSError, data: CloudFront.Types.UpdatePublicKeyResult) => void): Request<CloudFront.Types.UpdatePublicKeyResult, AWSError>;
368 /**
369 * Update a streaming distribution.
370 */
371 updateStreamingDistribution(params: CloudFront.Types.UpdateStreamingDistributionRequest, callback?: (err: AWSError, data: CloudFront.Types.UpdateStreamingDistributionResult) => void): Request<CloudFront.Types.UpdateStreamingDistributionResult, AWSError>;
372 /**
373 * Update a streaming distribution.
374 */
375 updateStreamingDistribution(callback?: (err: AWSError, data: CloudFront.Types.UpdateStreamingDistributionResult) => void): Request<CloudFront.Types.UpdateStreamingDistributionResult, AWSError>;
376 /**
377 * Waits for the distributionDeployed state by periodically calling the underlying CloudFront.getDistributionoperation every 60 seconds (at most 35 times). Wait until a distribution is deployed.
378 */
379 waitFor(state: "distributionDeployed", params: CloudFront.Types.GetDistributionRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: CloudFront.Types.GetDistributionResult) => void): Request<CloudFront.Types.GetDistributionResult, AWSError>;
380 /**
381 * Waits for the distributionDeployed state by periodically calling the underlying CloudFront.getDistributionoperation every 60 seconds (at most 35 times). Wait until a distribution is deployed.
382 */
383 waitFor(state: "distributionDeployed", callback?: (err: AWSError, data: CloudFront.Types.GetDistributionResult) => void): Request<CloudFront.Types.GetDistributionResult, AWSError>;
384 /**
385 * Waits for the invalidationCompleted state by periodically calling the underlying CloudFront.getInvalidationoperation every 20 seconds (at most 30 times). Wait until an invalidation has completed.
386 */
387 waitFor(state: "invalidationCompleted", params: CloudFront.Types.GetInvalidationRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: CloudFront.Types.GetInvalidationResult) => void): Request<CloudFront.Types.GetInvalidationResult, AWSError>;
388 /**
389 * Waits for the invalidationCompleted state by periodically calling the underlying CloudFront.getInvalidationoperation every 20 seconds (at most 30 times). Wait until an invalidation has completed.
390 */
391 waitFor(state: "invalidationCompleted", callback?: (err: AWSError, data: CloudFront.Types.GetInvalidationResult) => void): Request<CloudFront.Types.GetInvalidationResult, AWSError>;
392 /**
393 * Waits for the streamingDistributionDeployed state by periodically calling the underlying CloudFront.getStreamingDistributionoperation every 60 seconds (at most 25 times). Wait until a streaming distribution is deployed.
394 */
395 waitFor(state: "streamingDistributionDeployed", params: CloudFront.Types.GetStreamingDistributionRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: CloudFront.Types.GetStreamingDistributionResult) => void): Request<CloudFront.Types.GetStreamingDistributionResult, AWSError>;
396 /**
397 * Waits for the streamingDistributionDeployed state by periodically calling the underlying CloudFront.getStreamingDistributionoperation every 60 seconds (at most 25 times). Wait until a streaming distribution is deployed.
398 */
399 waitFor(state: "streamingDistributionDeployed", callback?: (err: AWSError, data: CloudFront.Types.GetStreamingDistributionResult) => void): Request<CloudFront.Types.GetStreamingDistributionResult, AWSError>;
400}
401declare namespace CloudFront {
402 export import Signer = signer;
403}
404declare namespace CloudFront {
405 export interface ActiveTrustedSigners {
406 /**
407 * Enabled is true if any of the AWS accounts listed in the TrustedSigners complex type for this distribution have active CloudFront key pairs. If not, Enabled is false.
408 */
409 Enabled: boolean;
410 /**
411 * The number of trusted signers specified in the TrustedSigners complex type.
412 */
413 Quantity: integer;
414 /**
415 * A complex type that contains one Signer complex type for each trusted signer that is specified in the TrustedSigners complex type.
416 */
417 Items?: SignerList;
418 }
419 export interface AliasICPRecordal {
420 /**
421 * A domain name associated with a distribution.
422 */
423 CNAME?: string;
424 /**
425 * The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus is set to APPROVED for all CNAMEs (aliases) in regions outside of China. The status values returned are the following: APPROVED indicates that the associated CNAME has a valid ICP recordal number. Multiple CNAMEs can be associated with a distribution, and CNAMEs can correspond to different ICP recordals. To be marked as APPROVED, that is, valid to use with China region, a CNAME must have one ICP recordal number associated with it. SUSPENDED indicates that the associated CNAME does not have a valid ICP recordal number. PENDING indicates that CloudFront can't determine the ICP recordal status of the CNAME associated with the distribution because there was an error in trying to determine the status. You can try again to see if the error is resolved in which case CloudFront returns an APPROVED or SUSPENDED status.
426 */
427 ICPRecordalStatus?: ICPRecordalStatus;
428 }
429 export type AliasICPRecordals = AliasICPRecordal[];
430 export type AliasList = string[];
431 export interface Aliases {
432 /**
433 * The number of CNAME aliases, if any, that you want to associate with this distribution.
434 */
435 Quantity: integer;
436 /**
437 * A complex type that contains the CNAME aliases, if any, that you want to associate with this distribution.
438 */
439 Items?: AliasList;
440 }
441 export interface AllowedMethods {
442 /**
443 * The number of HTTP methods that you want CloudFront to forward to your origin. Valid values are 2 (for GET and HEAD requests), 3 (for GET, HEAD, and OPTIONS requests) and 7 (for GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE requests).
444 */
445 Quantity: integer;
446 /**
447 * A complex type that contains the HTTP methods that you want CloudFront to process and forward to your origin.
448 */
449 Items: MethodsList;
450 CachedMethods?: CachedMethods;
451 }
452 export type AwsAccountNumberList = string[];
453 export interface CacheBehavior {
454 /**
455 * The pattern (for example, images/*.jpg) that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution. You can optionally include a slash (/) at the beginning of the path pattern. For example, /images/*.jpg. CloudFront behavior is the same with or without the leading /. The path pattern for the default cache behavior is * and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior. For more information, see Path Pattern in the Amazon CloudFront Developer Guide.
456 */
457 PathPattern: string;
458 /**
459 * The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior in your distribution.
460 */
461 TargetOriginId: string;
462 /**
463 * A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
464 */
465 ForwardedValues: ForwardedValues;
466 /**
467 * A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
468 */
469 TrustedSigners: TrustedSigners;
470 /**
471 * The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. You can specify the following options: allow-all: Viewers can use HTTP or HTTPS. redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL. https-only: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden). For more information about requiring the HTTPS protocol, see Using an HTTPS Connection to Access Your Objects in the Amazon CloudFront Developer Guide. The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
472 */
473 ViewerProtocolPolicy: ViewerProtocolPolicy;
474 /**
475 * The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide. You must specify 0 for MinTTL if you configure CloudFront to forward all headers to your origin (under Headers, if you specify 1 for Quantity and * for Name).
476 */
477 MinTTL: long;
478 AllowedMethods?: AllowedMethods;
479 /**
480 * Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false. If you specify true for SmoothStreaming, you can still distribute other content using this cache behavior if the content matches the value of PathPattern.
481 */
482 SmoothStreaming?: boolean;
483 /**
484 * The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
485 */
486 DefaultTTL?: long;
487 /**
488 * The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
489 */
490 MaxTTL?: long;
491 /**
492 * Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.
493 */
494 Compress?: boolean;
495 /**
496 * A complex type that contains zero or more Lambda function associations for a cache behavior.
497 */
498 LambdaFunctionAssociations?: LambdaFunctionAssociations;
499 /**
500 * The value of ID for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for a cache behavior or for the default cache behavior in your distribution.
501 */
502 FieldLevelEncryptionId?: string;
503 }
504 export type CacheBehaviorList = CacheBehavior[];
505 export interface CacheBehaviors {
506 /**
507 * The number of cache behaviors for this distribution.
508 */
509 Quantity: integer;
510 /**
511 * Optional: A complex type that contains cache behaviors for this distribution. If Quantity is 0, you can omit Items.
512 */
513 Items?: CacheBehaviorList;
514 }
515 export interface CachedMethods {
516 /**
517 * The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2 (for caching responses to GET and HEAD requests) and 3 (for caching responses to GET, HEAD, and OPTIONS requests).
518 */
519 Quantity: integer;
520 /**
521 * A complex type that contains the HTTP methods that you want CloudFront to cache responses to.
522 */
523 Items: MethodsList;
524 }
525 export type CertificateSource = "cloudfront"|"iam"|"acm"|string;
526 export interface CloudFrontOriginAccessIdentity {
527 /**
528 * The ID for the origin access identity, for example, E74FTE3AJFJ256A.
529 */
530 Id: string;
531 /**
532 * The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.
533 */
534 S3CanonicalUserId: string;
535 /**
536 * The current configuration information for the identity.
537 */
538 CloudFrontOriginAccessIdentityConfig?: CloudFrontOriginAccessIdentityConfig;
539 }
540 export interface CloudFrontOriginAccessIdentityConfig {
541 /**
542 * A unique value (for example, a date-time stamp) that ensures that the request can't be replayed. If the value of CallerReference is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.
543 */
544 CallerReference: string;
545 /**
546 * Any comments you want to include about the origin access identity.
547 */
548 Comment: string;
549 }
550 export interface CloudFrontOriginAccessIdentityList {
551 /**
552 * Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).
553 */
554 Marker: string;
555 /**
556 * If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your origin access identities where they left off.
557 */
558 NextMarker?: string;
559 /**
560 * The maximum number of origin access identities you want in the response body.
561 */
562 MaxItems: integer;
563 /**
564 * A flag that indicates whether more origin access identities remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more items in the list.
565 */
566 IsTruncated: boolean;
567 /**
568 * The number of CloudFront origin access identities that were created by the current AWS account.
569 */
570 Quantity: integer;
571 /**
572 * A complex type that contains one CloudFrontOriginAccessIdentitySummary element for each origin access identity that was created by the current AWS account.
573 */
574 Items?: CloudFrontOriginAccessIdentitySummaryList;
575 }
576 export interface CloudFrontOriginAccessIdentitySummary {
577 /**
578 * The ID for the origin access identity. For example: E74FTE3AJFJ256A.
579 */
580 Id: string;
581 /**
582 * The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
583 */
584 S3CanonicalUserId: string;
585 /**
586 * The comment for this origin access identity, as originally specified when created.
587 */
588 Comment: string;
589 }
590 export type CloudFrontOriginAccessIdentitySummaryList = CloudFrontOriginAccessIdentitySummary[];
591 export type CommentType = string;
592 export interface ContentTypeProfile {
593 /**
594 * The format for a field-level encryption content type-profile mapping.
595 */
596 Format: Format;
597 /**
598 * The profile ID for a field-level encryption content type-profile mapping.
599 */
600 ProfileId?: string;
601 /**
602 * The content type for a field-level encryption content type-profile mapping.
603 */
604 ContentType: string;
605 }
606 export interface ContentTypeProfileConfig {
607 /**
608 * The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown.
609 */
610 ForwardWhenContentTypeIsUnknown: boolean;
611 /**
612 * The configuration for a field-level encryption content type-profile.
613 */
614 ContentTypeProfiles?: ContentTypeProfiles;
615 }
616 export type ContentTypeProfileList = ContentTypeProfile[];
617 export interface ContentTypeProfiles {
618 /**
619 * The number of field-level encryption content type-profile mappings.
620 */
621 Quantity: integer;
622 /**
623 * Items in a field-level encryption content type-profile mapping.
624 */
625 Items?: ContentTypeProfileList;
626 }
627 export type CookieNameList = string[];
628 export interface CookieNames {
629 /**
630 * The number of different cookies that you want CloudFront to forward to the origin for this cache behavior. The value must equal the number of items that are in the Items field. When you set Forward = whitelist (in the CookiePreferences object), this value must be 1 or higher.
631 */
632 Quantity: integer;
633 /**
634 * A complex type that contains one Name element for each cookie that you want CloudFront to forward to the origin for this cache behavior. It must contain the same number of items that is specified in the Quantity field. When you set Forward = whitelist (in the CookiePreferences object), this field must contain at least one item.
635 */
636 Items?: CookieNameList;
637 }
638 export interface CookiePreference {
639 /**
640 * Specifies which cookies to forward to the origin for this cache behavior: all, none, or the list of cookies specified in the WhitelistedNames complex type. Amazon S3 doesn't process cookies. When the cache behavior is forwarding requests to an Amazon S3 origin, specify none for the Forward element.
641 */
642 Forward: ItemSelection;
643 /**
644 * Required if you specify whitelist for the value of Forward. A complex type that specifies how many different cookies you want CloudFront to forward to the origin for this cache behavior and, if you want to forward selected cookies, the names of those cookies. If you specify all or none for the value of Forward, omit WhitelistedNames. If you change the value of Forward from whitelist to all or none and you don't delete the WhitelistedNames element and its child elements, CloudFront deletes them automatically. For the current limit on the number of cookie names that you can whitelist for each cache behavior, see CloudFront Limits in the AWS General Reference.
645 */
646 WhitelistedNames?: CookieNames;
647 }
648 export interface CreateCloudFrontOriginAccessIdentityRequest {
649 /**
650 * The current configuration information for the identity.
651 */
652 CloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig;
653 }
654 export interface CreateCloudFrontOriginAccessIdentityResult {
655 /**
656 * The origin access identity's information.
657 */
658 CloudFrontOriginAccessIdentity?: CloudFrontOriginAccessIdentity;
659 /**
660 * The fully qualified URI of the new origin access identity just created. For example: https://cloudfront.amazonaws.com/2010-11-01/origin-access-identity/cloudfront/E74FTE3AJFJ256A.
661 */
662 Location?: string;
663 /**
664 * The current version of the origin access identity created.
665 */
666 ETag?: string;
667 }
668 export interface CreateDistributionRequest {
669 /**
670 * The distribution's configuration information.
671 */
672 DistributionConfig: DistributionConfig;
673 }
674 export interface CreateDistributionResult {
675 /**
676 * The distribution's information.
677 */
678 Distribution?: Distribution;
679 /**
680 * The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5.
681 */
682 Location?: string;
683 /**
684 * The current version of the distribution created.
685 */
686 ETag?: string;
687 }
688 export interface CreateDistributionWithTagsRequest {
689 /**
690 * The distribution's configuration information.
691 */
692 DistributionConfigWithTags: DistributionConfigWithTags;
693 }
694 export interface CreateDistributionWithTagsResult {
695 /**
696 * The distribution's information.
697 */
698 Distribution?: Distribution;
699 /**
700 * The fully qualified URI of the new distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/distribution/EDFDVBD632BHDS5.
701 */
702 Location?: string;
703 /**
704 * The current version of the distribution created.
705 */
706 ETag?: string;
707 }
708 export interface CreateFieldLevelEncryptionConfigRequest {
709 /**
710 * The request to create a new field-level encryption configuration.
711 */
712 FieldLevelEncryptionConfig: FieldLevelEncryptionConfig;
713 }
714 export interface CreateFieldLevelEncryptionConfigResult {
715 /**
716 * Returned when you create a new field-level encryption configuration.
717 */
718 FieldLevelEncryption?: FieldLevelEncryption;
719 /**
720 * The fully qualified URI of the new configuration resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/field-level-encryption-config/EDFDVBD632BHDS5.
721 */
722 Location?: string;
723 /**
724 * The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.
725 */
726 ETag?: string;
727 }
728 export interface CreateFieldLevelEncryptionProfileRequest {
729 /**
730 * The request to create a field-level encryption profile.
731 */
732 FieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig;
733 }
734 export interface CreateFieldLevelEncryptionProfileResult {
735 /**
736 * Returned when you create a new field-level encryption profile.
737 */
738 FieldLevelEncryptionProfile?: FieldLevelEncryptionProfile;
739 /**
740 * The fully qualified URI of the new profile resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/field-level-encryption-profile/EDFDVBD632BHDS5.
741 */
742 Location?: string;
743 /**
744 * The current version of the field level encryption profile. For example: E2QWRUHAPOMQZL.
745 */
746 ETag?: string;
747 }
748 export interface CreateInvalidationRequest {
749 /**
750 * The distribution's id.
751 */
752 DistributionId: string;
753 /**
754 * The batch information for the invalidation.
755 */
756 InvalidationBatch: InvalidationBatch;
757 }
758 export interface CreateInvalidationResult {
759 /**
760 * The fully qualified URI of the distribution and invalidation batch request, including the Invalidation ID.
761 */
762 Location?: string;
763 /**
764 * The invalidation's information.
765 */
766 Invalidation?: Invalidation;
767 }
768 export interface CreatePublicKeyRequest {
769 /**
770 * The request to add a public key to CloudFront.
771 */
772 PublicKeyConfig: PublicKeyConfig;
773 }
774 export interface CreatePublicKeyResult {
775 /**
776 * Returned when you add a public key.
777 */
778 PublicKey?: PublicKey;
779 /**
780 * The fully qualified URI of the new public key resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/cloudfront-public-key/EDFDVBD632BHDS5.
781 */
782 Location?: string;
783 /**
784 * The current version of the public key. For example: E2QWRUHAPOMQZL.
785 */
786 ETag?: string;
787 }
788 export interface CreateStreamingDistributionRequest {
789 /**
790 * The streaming distribution's configuration information.
791 */
792 StreamingDistributionConfig: StreamingDistributionConfig;
793 }
794 export interface CreateStreamingDistributionResult {
795 /**
796 * The streaming distribution's information.
797 */
798 StreamingDistribution?: StreamingDistribution;
799 /**
800 * The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.
801 */
802 Location?: string;
803 /**
804 * The current version of the streaming distribution created.
805 */
806 ETag?: string;
807 }
808 export interface CreateStreamingDistributionWithTagsRequest {
809 /**
810 * The streaming distribution's configuration information.
811 */
812 StreamingDistributionConfigWithTags: StreamingDistributionConfigWithTags;
813 }
814 export interface CreateStreamingDistributionWithTagsResult {
815 /**
816 * The streaming distribution's information.
817 */
818 StreamingDistribution?: StreamingDistribution;
819 /**
820 * The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.
821 */
822 Location?: string;
823 /**
824 * The current version of the distribution created.
825 */
826 ETag?: string;
827 }
828 export interface CustomErrorResponse {
829 /**
830 * The HTTP status code for which you want to specify a custom error page and/or a caching duration.
831 */
832 ErrorCode: integer;
833 /**
834 * The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by ErrorCode, for example, /4xx-errors/403-forbidden.html. If you want to store your objects and your custom error pages in different locations, your distribution must include a cache behavior for which the following is true: The value of PathPattern matches the path to your custom error messages. For example, suppose you saved custom error pages for 4xx errors in an Amazon S3 bucket in a directory named /4xx-errors. Your distribution must include a cache behavior for which the path pattern routes requests for your custom error pages to that location, for example, /4xx-errors/*. The value of TargetOriginId specifies the value of the ID element for the origin that contains your custom error pages. If you specify a value for ResponsePagePath, you must also specify a value for ResponseCode. We recommend that you store custom error pages in an Amazon S3 bucket. If you store custom error pages on an HTTP server and the server starts to return 5xx errors, CloudFront can't get the files that you want to return to viewers because the origin server is unavailable.
835 */
836 ResponsePagePath?: string;
837 /**
838 * The HTTP status code that you want CloudFront to return to the viewer along with the custom error page. There are a variety of reasons that you might want CloudFront to return a status code different from the status code that your origin returned to CloudFront, for example: Some Internet devices (some firewalls and corporate proxies, for example) intercept HTTP 4xx and 5xx and prevent the response from being returned to the viewer. If you substitute 200, the response typically won't be intercepted. If you don't care about distinguishing among different client errors or server errors, you can specify 400 or 500 as the ResponseCode for all 4xx or 5xx errors. You might want to return a 200 status code (OK) and static website so your customers don't know that your website is down. If you specify a value for ResponseCode, you must also specify a value for ResponsePagePath.
839 */
840 ResponseCode?: string;
841 /**
842 * The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode. When this time period has elapsed, CloudFront queries your origin to see whether the problem that caused the error has been resolved and the requested object is now available. For more information, see Customizing Error Responses in the Amazon CloudFront Developer Guide.
843 */
844 ErrorCachingMinTTL?: long;
845 }
846 export type CustomErrorResponseList = CustomErrorResponse[];
847 export interface CustomErrorResponses {
848 /**
849 * The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If Quantity is 0, you can omit Items.
850 */
851 Quantity: integer;
852 /**
853 * A complex type that contains a CustomErrorResponse element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.
854 */
855 Items?: CustomErrorResponseList;
856 }
857 export interface CustomHeaders {
858 /**
859 * The number of custom headers, if any, for this distribution.
860 */
861 Quantity: integer;
862 /**
863 * Optional: A list that contains one OriginCustomHeader element for each custom header that you want CloudFront to forward to the origin. If Quantity is 0, omit Items.
864 */
865 Items?: OriginCustomHeadersList;
866 }
867 export interface CustomOriginConfig {
868 /**
869 * The HTTP port the custom origin listens on.
870 */
871 HTTPPort: integer;
872 /**
873 * The HTTPS port the custom origin listens on.
874 */
875 HTTPSPort: integer;
876 /**
877 * The origin protocol policy to apply to your origin.
878 */
879 OriginProtocolPolicy: OriginProtocolPolicy;
880 /**
881 * The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.
882 */
883 OriginSslProtocols?: OriginSslProtocols;
884 /**
885 * You can create a custom origin read timeout. All timeout units are in seconds. The default origin read timeout is 30 seconds, but you can configure custom timeout lengths using the CloudFront API. The minimum timeout length is 4 seconds; the maximum is 60 seconds. If you need to increase the maximum time limit, contact the AWS Support Center.
886 */
887 OriginReadTimeout?: integer;
888 /**
889 * You can create a custom keep-alive timeout. All timeout units are in seconds. The default keep-alive timeout is 5 seconds, but you can configure custom timeout lengths using the CloudFront API. The minimum timeout length is 1 second; the maximum is 60 seconds. If you need to increase the maximum time limit, contact the AWS Support Center.
890 */
891 OriginKeepaliveTimeout?: integer;
892 }
893 export interface DefaultCacheBehavior {
894 /**
895 * The value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior in your distribution.
896 */
897 TargetOriginId: string;
898 /**
899 * A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers.
900 */
901 ForwardedValues: ForwardedValues;
902 /**
903 * A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
904 */
905 TrustedSigners: TrustedSigners;
906 /**
907 * The protocol that viewers can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. You can specify the following options: allow-all: Viewers can use HTTP or HTTPS. redirect-to-https: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL. https-only: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden). For more information about requiring the HTTPS protocol, see Using an HTTPS Connection to Access Your Objects in the Amazon CloudFront Developer Guide. The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects' cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
908 */
909 ViewerProtocolPolicy: ViewerProtocolPolicy;
910 /**
911 * The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide. You must specify 0 for MinTTL if you configure CloudFront to forward all headers to your origin (under Headers, if you specify 1 for Quantity and * for Name).
912 */
913 MinTTL: long;
914 AllowedMethods?: AllowedMethods;
915 /**
916 * Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true; if not, specify false. If you specify true for SmoothStreaming, you can still distribute other content using this cache behavior if the content matches the value of PathPattern.
917 */
918 SmoothStreaming?: boolean;
919 /**
920 * The default amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
921 */
922 DefaultTTL?: long;
923 /**
924 * The maximum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. The value that you specify applies only when your origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects. For more information, see Managing How Long Content Stays in an Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
925 */
926 MaxTTL?: long;
927 /**
928 * Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true; if not, specify false. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.
929 */
930 Compress?: boolean;
931 /**
932 * A complex type that contains zero or more Lambda function associations for a cache behavior.
933 */
934 LambdaFunctionAssociations?: LambdaFunctionAssociations;
935 /**
936 * The value of ID for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for a cache behavior or for the default cache behavior in your distribution.
937 */
938 FieldLevelEncryptionId?: string;
939 }
940 export interface DeleteCloudFrontOriginAccessIdentityRequest {
941 /**
942 * The origin access identity's ID.
943 */
944 Id: string;
945 /**
946 * The value of the ETag header you received from a previous GET or PUT request. For example: E2QWRUHAPOMQZL.
947 */
948 IfMatch?: string;
949 }
950 export interface DeleteDistributionRequest {
951 /**
952 * The distribution ID.
953 */
954 Id: string;
955 /**
956 * The value of the ETag header that you received when you disabled the distribution. For example: E2QWRUHAPOMQZL.
957 */
958 IfMatch?: string;
959 }
960 export interface DeleteFieldLevelEncryptionConfigRequest {
961 /**
962 * The ID of the configuration you want to delete from CloudFront.
963 */
964 Id: string;
965 /**
966 * The value of the ETag header that you received when retrieving the configuration identity to delete. For example: E2QWRUHAPOMQZL.
967 */
968 IfMatch?: string;
969 }
970 export interface DeleteFieldLevelEncryptionProfileRequest {
971 /**
972 * Request the ID of the profile you want to delete from CloudFront.
973 */
974 Id: string;
975 /**
976 * The value of the ETag header that you received when retrieving the profile to delete. For example: E2QWRUHAPOMQZL.
977 */
978 IfMatch?: string;
979 }
980 export interface DeletePublicKeyRequest {
981 /**
982 * The ID of the public key you want to remove from CloudFront.
983 */
984 Id: string;
985 /**
986 * The value of the ETag header that you received when retrieving the public key identity to delete. For example: E2QWRUHAPOMQZL.
987 */
988 IfMatch?: string;
989 }
990 export interface DeleteStreamingDistributionRequest {
991 /**
992 * The distribution ID.
993 */
994 Id: string;
995 /**
996 * The value of the ETag header that you received when you disabled the streaming distribution. For example: E2QWRUHAPOMQZL.
997 */
998 IfMatch?: string;
999 }
1000 export interface Distribution {
1001 /**
1002 * The identifier for the distribution. For example: EDFDVBD632BHDS5.
1003 */
1004 Id: string;
1005 /**
1006 * The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
1007 */
1008 ARN: string;
1009 /**
1010 * This response element indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated to all CloudFront edge locations.
1011 */
1012 Status: string;
1013 /**
1014 * The date and time the distribution was last modified.
1015 */
1016 LastModifiedTime: timestamp;
1017 /**
1018 * The number of invalidation batches currently in progress.
1019 */
1020 InProgressInvalidationBatches: integer;
1021 /**
1022 * The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net.
1023 */
1024 DomainName: string;
1025 /**
1026 * CloudFront automatically adds this element to the response only if you've set up the distribution to serve private content with signed URLs. The element lists the key pair IDs that CloudFront is aware of for each trusted signer. The Signer child element lists the AWS account number of the trusted signer (or an empty Self element if the signer is you). The Signer element also includes the IDs of any active key pairs associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create working signed URLs.
1027 */
1028 ActiveTrustedSigners: ActiveTrustedSigners;
1029 /**
1030 * The current configuration information for the distribution. Send a GET request to the /CloudFront API version/distribution ID/config resource.
1031 */
1032 DistributionConfig: DistributionConfig;
1033 /**
1034 * AWS services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions. For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with AWS services in China.
1035 */
1036 AliasICPRecordals?: AliasICPRecordals;
1037 }
1038 export interface DistributionConfig {
1039 /**
1040 * A unique value (for example, a date-time stamp) that ensures that the request can't be replayed. If the value of CallerReference is new (regardless of the content of the DistributionConfig object), CloudFront creates a new distribution. If CallerReference is a value that you already sent in a previous request to create a distribution, CloudFront returns a DistributionAlreadyExists error.
1041 */
1042 CallerReference: string;
1043 /**
1044 * A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
1045 */
1046 Aliases?: Aliases;
1047 /**
1048 * The object that you want CloudFront to request from your origin (for example, index.html) when a viewer requests the root URL for your distribution (http://www.example.com) instead of an object in your distribution (http://www.example.com/product-description.html). Specifying a default root object avoids exposing the contents of your distribution. Specify only the object name, for example, index.html. Don't add a / before the object name. If you don't want to specify a default root object when you create a distribution, include an empty DefaultRootObject element. To delete the default root object from an existing distribution, update the distribution configuration and include an empty DefaultRootObject element. To replace the default root object, update the distribution configuration and specify the new object. For more information about the default root object, see Creating a Default Root Object in the Amazon CloudFront Developer Guide.
1049 */
1050 DefaultRootObject?: string;
1051 /**
1052 * A complex type that contains information about origins for this distribution.
1053 */
1054 Origins: Origins;
1055 /**
1056 * A complex type that contains information about origin groups for this distribution.
1057 */
1058 OriginGroups?: OriginGroups;
1059 /**
1060 * 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.
1061 */
1062 DefaultCacheBehavior: DefaultCacheBehavior;
1063 /**
1064 * A complex type that contains zero or more CacheBehavior elements.
1065 */
1066 CacheBehaviors?: CacheBehaviors;
1067 /**
1068 * A complex type that controls the following: Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer. How long CloudFront caches HTTP status codes in the 4xx and 5xx range. For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.
1069 */
1070 CustomErrorResponses?: CustomErrorResponses;
1071 /**
1072 * Any comments you want to include about the distribution. If you don't want to specify a comment, include an empty Comment element. To delete an existing comment, update the distribution configuration and include an empty Comment element. To add or change a comment, update the distribution configuration and specify the new comment.
1073 */
1074 Comment: CommentType;
1075 /**
1076 * A complex type that controls whether access logs are written for the distribution. For more information about logging, see Access Logs in the Amazon CloudFront Developer Guide.
1077 */
1078 Logging?: LoggingConfig;
1079 /**
1080 * 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. If you specify a price class other than PriceClass_All, CloudFront serves your objects from the CloudFront edge location that has the lowest latency among the edge locations in your price class. Viewers who are in or near regions that are excluded from your specified price class may encounter slower performance. For more information about price classes, see Choosing the Price Class for a CloudFront Distribution in the Amazon CloudFront Developer Guide. For information about CloudFront pricing, including how price classes (such as Price Class 100) map to CloudFront regions, see Amazon CloudFront Pricing. For price class information, scroll down to see the table at the bottom of the page.
1081 */
1082 PriceClass?: PriceClass;
1083 /**
1084 * From this field, you can enable or disable the selected distribution.
1085 */
1086 Enabled: boolean;
1087 /**
1088 * A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers.
1089 */
1090 ViewerCertificate?: ViewerCertificate;
1091 /**
1092 * A complex type that identifies ways in which you want to restrict distribution of your content.
1093 */
1094 Restrictions?: Restrictions;
1095 /**
1096 * A 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, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example 473e64fd-f30b-4765-81a0-62ad96dd167a. AWS 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 AWS WAF, see the AWS WAF Developer Guide.
1097 */
1098 WebACLId?: string;
1099 /**
1100 * (Optional) Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 automatically use an earlier HTTP version. For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must support Server Name Identification (SNI). In general, configuring CloudFront to communicate with viewers using HTTP/2 reduces latency. You can improve performance by optimizing for HTTP/2. For more information, do an Internet search for "http/2 optimization."
1101 */
1102 HttpVersion?: HttpVersion;
1103 /**
1104 * If you want CloudFront to respond to IPv6 DNS requests with an IPv6 address for your distribution, specify true. If you specify false, CloudFront responds to IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution. In general, you should enable IPv6 if you have users on IPv6 networks who want to access your content. However, if you're using signed URLs or signed cookies to restrict access to your content, and if you're using a custom policy that includes the IpAddress parameter to restrict the IP addresses that can access your content, don't enable IPv6. If you want to restrict access to some content by IP address and not restrict access to other content (or restrict access but not by IP address), you can create two distributions. For more information, see Creating a Signed URL Using a Custom Policy in the Amazon CloudFront Developer Guide. If you're using an Amazon Route 53 alias resource record set to route traffic to your CloudFront distribution, you need to create a second alias resource record set when both of the following are true: You enable IPv6 for the distribution You're using alternate domain names in the URLs for your objects For more information, see Routing Traffic to an Amazon CloudFront Web Distribution by Using Your Domain Name in the Amazon Route 53 Developer Guide. If you created a CNAME resource record set, either with Amazon Route 53 or with another DNS service, you don't need to make any changes. A CNAME record will route traffic to your distribution regardless of the IP address format of the viewer request.
1105 */
1106 IsIPV6Enabled?: boolean;
1107 }
1108 export interface DistributionConfigWithTags {
1109 /**
1110 * A distribution configuration.
1111 */
1112 DistributionConfig: DistributionConfig;
1113 /**
1114 * A complex type that contains zero or more Tag elements.
1115 */
1116 Tags: Tags;
1117 }
1118 export interface DistributionList {
1119 /**
1120 * The value you provided for the Marker request parameter.
1121 */
1122 Marker: string;
1123 /**
1124 * If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your distributions where they left off.
1125 */
1126 NextMarker?: string;
1127 /**
1128 * The value you provided for the MaxItems request parameter.
1129 */
1130 MaxItems: integer;
1131 /**
1132 * A flag that indicates whether more distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.
1133 */
1134 IsTruncated: boolean;
1135 /**
1136 * The number of distributions that were created by the current AWS account.
1137 */
1138 Quantity: integer;
1139 /**
1140 * A complex type that contains one DistributionSummary element for each distribution that was created by the current AWS account.
1141 */
1142 Items?: DistributionSummaryList;
1143 }
1144 export interface DistributionSummary {
1145 /**
1146 * The identifier for the distribution. For example: EDFDVBD632BHDS5.
1147 */
1148 Id: string;
1149 /**
1150 * The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
1151 */
1152 ARN: string;
1153 /**
1154 * The current status of the distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.
1155 */
1156 Status: string;
1157 /**
1158 * The date and time the distribution was last modified.
1159 */
1160 LastModifiedTime: timestamp;
1161 /**
1162 * The domain name that corresponds to the distribution, for example, d111111abcdef8.cloudfront.net.
1163 */
1164 DomainName: string;
1165 /**
1166 * A complex type that contains information about CNAMEs (alternate domain names), if any, for this distribution.
1167 */
1168 Aliases: Aliases;
1169 /**
1170 * A complex type that contains information about origins for this distribution.
1171 */
1172 Origins: Origins;
1173 /**
1174 * A complex type that contains information about origin groups for this distribution.
1175 */
1176 OriginGroups?: OriginGroups;
1177 /**
1178 * 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.
1179 */
1180 DefaultCacheBehavior: DefaultCacheBehavior;
1181 /**
1182 * A complex type that contains zero or more CacheBehavior elements.
1183 */
1184 CacheBehaviors: CacheBehaviors;
1185 /**
1186 * A complex type that contains zero or more CustomErrorResponses elements.
1187 */
1188 CustomErrorResponses: CustomErrorResponses;
1189 /**
1190 * The comment originally specified when this distribution was created.
1191 */
1192 Comment: string;
1193 /**
1194 * A complex type that contains information about price class for this streaming distribution.
1195 */
1196 PriceClass: PriceClass;
1197 /**
1198 * Whether the distribution is enabled to accept user requests for content.
1199 */
1200 Enabled: boolean;
1201 /**
1202 * A complex type that determines the distribution’s SSL/TLS configuration for communicating with viewers.
1203 */
1204 ViewerCertificate: ViewerCertificate;
1205 /**
1206 * A complex type that identifies ways in which you want to restrict distribution of your content.
1207 */
1208 Restrictions: Restrictions;
1209 /**
1210 * The Web ACL Id (if any) associated with the distribution.
1211 */
1212 WebACLId: string;
1213 /**
1214 * Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront. The default value for new web distributions is http2. Viewers that don't support HTTP/2 will automatically use an earlier version.
1215 */
1216 HttpVersion: HttpVersion;
1217 /**
1218 * Whether CloudFront responds to IPv6 DNS requests with an IPv6 address for your distribution.
1219 */
1220 IsIPV6Enabled: boolean;
1221 /**
1222 * AWS services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions. For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with AWS services in China.
1223 */
1224 AliasICPRecordals?: AliasICPRecordals;
1225 }
1226 export type DistributionSummaryList = DistributionSummary[];
1227 export interface EncryptionEntities {
1228 /**
1229 * Number of field pattern items in a field-level encryption content type-profile mapping.
1230 */
1231 Quantity: integer;
1232 /**
1233 * An array of field patterns in a field-level encryption content type-profile mapping.
1234 */
1235 Items?: EncryptionEntityList;
1236 }
1237 export interface EncryptionEntity {
1238 /**
1239 * The public key associated with a set of field-level encryption patterns, to be used when encrypting the fields that match the patterns.
1240 */
1241 PublicKeyId: string;
1242 /**
1243 * The provider associated with the public key being used for encryption. This value must also be provided with the private key for applications to be able to decrypt data.
1244 */
1245 ProviderId: string;
1246 /**
1247 * Field patterns in a field-level encryption content type profile specify the fields that you want to be encrypted. You can provide the full field name, or any beginning characters followed by a wildcard (*). You can't overlap field patterns. For example, you can't have both ABC* and AB*. Note that field patterns are case-sensitive.
1248 */
1249 FieldPatterns: FieldPatterns;
1250 }
1251 export type EncryptionEntityList = EncryptionEntity[];
1252 export type EventType = "viewer-request"|"viewer-response"|"origin-request"|"origin-response"|string;
1253 export interface FieldLevelEncryption {
1254 /**
1255 * The configuration ID for a field-level encryption configuration which includes a set of profiles that specify certain selected data fields to be encrypted by specific public keys.
1256 */
1257 Id: string;
1258 /**
1259 * The last time the field-level encryption configuration was changed.
1260 */
1261 LastModifiedTime: timestamp;
1262 /**
1263 * A complex data type that includes the profile configurations specified for field-level encryption.
1264 */
1265 FieldLevelEncryptionConfig: FieldLevelEncryptionConfig;
1266 }
1267 export interface FieldLevelEncryptionConfig {
1268 /**
1269 * A unique number that ensures the request can't be replayed.
1270 */
1271 CallerReference: string;
1272 /**
1273 * An optional comment about the configuration.
1274 */
1275 Comment?: string;
1276 /**
1277 * A complex data type that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
1278 */
1279 QueryArgProfileConfig?: QueryArgProfileConfig;
1280 /**
1281 * A complex data type that specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
1282 */
1283 ContentTypeProfileConfig?: ContentTypeProfileConfig;
1284 }
1285 export interface FieldLevelEncryptionList {
1286 /**
1287 * If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your configurations where you left off.
1288 */
1289 NextMarker?: string;
1290 /**
1291 * The maximum number of elements you want in the response body.
1292 */
1293 MaxItems: integer;
1294 /**
1295 * The number of field-level encryption items.
1296 */
1297 Quantity: integer;
1298 /**
1299 * An array of field-level encryption items.
1300 */
1301 Items?: FieldLevelEncryptionSummaryList;
1302 }
1303 export interface FieldLevelEncryptionProfile {
1304 /**
1305 * The ID for a field-level encryption profile configuration which includes a set of profiles that specify certain selected data fields to be encrypted by specific public keys.
1306 */
1307 Id: string;
1308 /**
1309 * The last time the field-level encryption profile was updated.
1310 */
1311 LastModifiedTime: timestamp;
1312 /**
1313 * A complex data type that includes the profile name and the encryption entities for the field-level encryption profile.
1314 */
1315 FieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig;
1316 }
1317 export interface FieldLevelEncryptionProfileConfig {
1318 /**
1319 * Profile name for the field-level encryption profile.
1320 */
1321 Name: string;
1322 /**
1323 * A unique number that ensures that the request can't be replayed.
1324 */
1325 CallerReference: string;
1326 /**
1327 * An optional comment for the field-level encryption profile.
1328 */
1329 Comment?: string;
1330 /**
1331 * A complex data type of encryption entities for the field-level encryption profile that include the public key ID, provider, and field patterns for specifying which fields to encrypt with this key.
1332 */
1333 EncryptionEntities: EncryptionEntities;
1334 }
1335 export interface FieldLevelEncryptionProfileList {
1336 /**
1337 * If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your profiles where you left off.
1338 */
1339 NextMarker?: string;
1340 /**
1341 * The maximum number of field-level encryption profiles you want in the response body.
1342 */
1343 MaxItems: integer;
1344 /**
1345 * The number of field-level encryption profiles.
1346 */
1347 Quantity: integer;
1348 /**
1349 * The field-level encryption profile items.
1350 */
1351 Items?: FieldLevelEncryptionProfileSummaryList;
1352 }
1353 export interface FieldLevelEncryptionProfileSummary {
1354 /**
1355 * ID for the field-level encryption profile summary.
1356 */
1357 Id: string;
1358 /**
1359 * The time when the the field-level encryption profile summary was last updated.
1360 */
1361 LastModifiedTime: timestamp;
1362 /**
1363 * Name for the field-level encryption profile summary.
1364 */
1365 Name: string;
1366 /**
1367 * A complex data type of encryption entities for the field-level encryption profile that include the public key ID, provider, and field patterns for specifying which fields to encrypt with this key.
1368 */
1369 EncryptionEntities: EncryptionEntities;
1370 /**
1371 * An optional comment for the field-level encryption profile summary.
1372 */
1373 Comment?: string;
1374 }
1375 export type FieldLevelEncryptionProfileSummaryList = FieldLevelEncryptionProfileSummary[];
1376 export interface FieldLevelEncryptionSummary {
1377 /**
1378 * The unique ID of a field-level encryption item.
1379 */
1380 Id: string;
1381 /**
1382 * The last time that the summary of field-level encryption items was modified.
1383 */
1384 LastModifiedTime: timestamp;
1385 /**
1386 * An optional comment about the field-level encryption item.
1387 */
1388 Comment?: string;
1389 /**
1390 * A summary of a query argument-profile mapping.
1391 */
1392 QueryArgProfileConfig?: QueryArgProfileConfig;
1393 /**
1394 * A summary of a content type-profile mapping.
1395 */
1396 ContentTypeProfileConfig?: ContentTypeProfileConfig;
1397 }
1398 export type FieldLevelEncryptionSummaryList = FieldLevelEncryptionSummary[];
1399 export type FieldPatternList = string[];
1400 export interface FieldPatterns {
1401 /**
1402 * The number of field-level encryption field patterns.
1403 */
1404 Quantity: integer;
1405 /**
1406 * An array of the field-level encryption field patterns.
1407 */
1408 Items?: FieldPatternList;
1409 }
1410 export type Format = "URLEncoded"|string;
1411 export interface ForwardedValues {
1412 /**
1413 * Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of QueryString and on the values that you specify for QueryStringCacheKeys, if any: If you specify true for QueryString and you don't specify any values for QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin and caches based on all query string parameters. Depending on how many query string parameters and values you have, this can adversely affect performance because CloudFront must forward more requests to the origin. If you specify true for QueryString and you specify one or more values for QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin, but it only caches based on the query string parameters that you specify. If you specify false for QueryString, CloudFront doesn't forward any query string parameters to the origin, and doesn't cache based on query string parameters. For more information, see Configuring CloudFront to Cache Based on Query String Parameters in the Amazon CloudFront Developer Guide.
1414 */
1415 QueryString: boolean;
1416 /**
1417 * A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide.
1418 */
1419 Cookies: CookiePreference;
1420 /**
1421 * A complex type that specifies the Headers, if any, that you want CloudFront to forward to the origin for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront also caches separate versions of a specified object that is based on the header values in viewer requests. For more information, see Caching Content Based on Request Headers in the Amazon CloudFront Developer Guide.
1422 */
1423 Headers?: Headers;
1424 /**
1425 * A complex type that contains information about the query string parameters that you want CloudFront to use for caching for this cache behavior.
1426 */
1427 QueryStringCacheKeys?: QueryStringCacheKeys;
1428 }
1429 export interface GeoRestriction {
1430 /**
1431 * The method that you want to use to restrict distribution of your content by country: none: No geo restriction is enabled, meaning access to content is not restricted by client geo location. blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content. whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.
1432 */
1433 RestrictionType: GeoRestrictionType;
1434 /**
1435 * When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.
1436 */
1437 Quantity: integer;
1438 /**
1439 * A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list on the CloudFront console, which includes both country names and codes.
1440 */
1441 Items?: LocationList;
1442 }
1443 export type GeoRestrictionType = "blacklist"|"whitelist"|"none"|string;
1444 export interface GetCloudFrontOriginAccessIdentityConfigRequest {
1445 /**
1446 * The identity's ID.
1447 */
1448 Id: string;
1449 }
1450 export interface GetCloudFrontOriginAccessIdentityConfigResult {
1451 /**
1452 * The origin access identity's configuration information.
1453 */
1454 CloudFrontOriginAccessIdentityConfig?: CloudFrontOriginAccessIdentityConfig;
1455 /**
1456 * The current version of the configuration. For example: E2QWRUHAPOMQZL.
1457 */
1458 ETag?: string;
1459 }
1460 export interface GetCloudFrontOriginAccessIdentityRequest {
1461 /**
1462 * The identity's ID.
1463 */
1464 Id: string;
1465 }
1466 export interface GetCloudFrontOriginAccessIdentityResult {
1467 /**
1468 * The origin access identity's information.
1469 */
1470 CloudFrontOriginAccessIdentity?: CloudFrontOriginAccessIdentity;
1471 /**
1472 * The current version of the origin access identity's information. For example: E2QWRUHAPOMQZL.
1473 */
1474 ETag?: string;
1475 }
1476 export interface GetDistributionConfigRequest {
1477 /**
1478 * The distribution's ID. If the ID is empty, an empty distribution configuration is returned.
1479 */
1480 Id: string;
1481 }
1482 export interface GetDistributionConfigResult {
1483 /**
1484 * The distribution's configuration information.
1485 */
1486 DistributionConfig?: DistributionConfig;
1487 /**
1488 * The current version of the configuration. For example: E2QWRUHAPOMQZL.
1489 */
1490 ETag?: string;
1491 }
1492 export interface GetDistributionRequest {
1493 /**
1494 * The distribution's ID. If the ID is empty, an empty distribution configuration is returned.
1495 */
1496 Id: string;
1497 }
1498 export interface GetDistributionResult {
1499 /**
1500 * The distribution's information.
1501 */
1502 Distribution?: Distribution;
1503 /**
1504 * The current version of the distribution's information. For example: E2QWRUHAPOMQZL.
1505 */
1506 ETag?: string;
1507 }
1508 export interface GetFieldLevelEncryptionConfigRequest {
1509 /**
1510 * Request the ID for the field-level encryption configuration information.
1511 */
1512 Id: string;
1513 }
1514 export interface GetFieldLevelEncryptionConfigResult {
1515 /**
1516 * Return the field-level encryption configuration information.
1517 */
1518 FieldLevelEncryptionConfig?: FieldLevelEncryptionConfig;
1519 /**
1520 * The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.
1521 */
1522 ETag?: string;
1523 }
1524 export interface GetFieldLevelEncryptionProfileConfigRequest {
1525 /**
1526 * Get the ID for the field-level encryption profile configuration information.
1527 */
1528 Id: string;
1529 }
1530 export interface GetFieldLevelEncryptionProfileConfigResult {
1531 /**
1532 * Return the field-level encryption profile configuration information.
1533 */
1534 FieldLevelEncryptionProfileConfig?: FieldLevelEncryptionProfileConfig;
1535 /**
1536 * The current version of the field-level encryption profile configuration result. For example: E2QWRUHAPOMQZL.
1537 */
1538 ETag?: string;
1539 }
1540 export interface GetFieldLevelEncryptionProfileRequest {
1541 /**
1542 * Get the ID for the field-level encryption profile information.
1543 */
1544 Id: string;
1545 }
1546 export interface GetFieldLevelEncryptionProfileResult {
1547 /**
1548 * Return the field-level encryption profile information.
1549 */
1550 FieldLevelEncryptionProfile?: FieldLevelEncryptionProfile;
1551 /**
1552 * The current version of the field level encryption profile. For example: E2QWRUHAPOMQZL.
1553 */
1554 ETag?: string;
1555 }
1556 export interface GetFieldLevelEncryptionRequest {
1557 /**
1558 * Request the ID for the field-level encryption configuration information.
1559 */
1560 Id: string;
1561 }
1562 export interface GetFieldLevelEncryptionResult {
1563 /**
1564 * Return the field-level encryption configuration information.
1565 */
1566 FieldLevelEncryption?: FieldLevelEncryption;
1567 /**
1568 * The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.
1569 */
1570 ETag?: string;
1571 }
1572 export interface GetInvalidationRequest {
1573 /**
1574 * The distribution's ID.
1575 */
1576 DistributionId: string;
1577 /**
1578 * The identifier for the invalidation request, for example, IDFDVBD632BHDS5.
1579 */
1580 Id: string;
1581 }
1582 export interface GetInvalidationResult {
1583 /**
1584 * The invalidation's information. For more information, see Invalidation Complex Type.
1585 */
1586 Invalidation?: Invalidation;
1587 }
1588 export interface GetPublicKeyConfigRequest {
1589 /**
1590 * Request the ID for the public key configuration.
1591 */
1592 Id: string;
1593 }
1594 export interface GetPublicKeyConfigResult {
1595 /**
1596 * Return the result for the public key configuration.
1597 */
1598 PublicKeyConfig?: PublicKeyConfig;
1599 /**
1600 * The current version of the public key configuration. For example: E2QWRUHAPOMQZL.
1601 */
1602 ETag?: string;
1603 }
1604 export interface GetPublicKeyRequest {
1605 /**
1606 * Request the ID for the public key.
1607 */
1608 Id: string;
1609 }
1610 export interface GetPublicKeyResult {
1611 /**
1612 * Return the public key.
1613 */
1614 PublicKey?: PublicKey;
1615 /**
1616 * The current version of the public key. For example: E2QWRUHAPOMQZL.
1617 */
1618 ETag?: string;
1619 }
1620 export interface GetStreamingDistributionConfigRequest {
1621 /**
1622 * The streaming distribution's ID.
1623 */
1624 Id: string;
1625 }
1626 export interface GetStreamingDistributionConfigResult {
1627 /**
1628 * The streaming distribution's configuration information.
1629 */
1630 StreamingDistributionConfig?: StreamingDistributionConfig;
1631 /**
1632 * The current version of the configuration. For example: E2QWRUHAPOMQZL.
1633 */
1634 ETag?: string;
1635 }
1636 export interface GetStreamingDistributionRequest {
1637 /**
1638 * The streaming distribution's ID.
1639 */
1640 Id: string;
1641 }
1642 export interface GetStreamingDistributionResult {
1643 /**
1644 * The streaming distribution's information.
1645 */
1646 StreamingDistribution?: StreamingDistribution;
1647 /**
1648 * The current version of the streaming distribution's information. For example: E2QWRUHAPOMQZL.
1649 */
1650 ETag?: string;
1651 }
1652 export type HeaderList = string[];
1653 export interface Headers {
1654 /**
1655 * The number of different headers that you want CloudFront to base caching on for this cache behavior. You can configure each cache behavior in a web distribution to do one of the following: Forward all headers to your origin: Specify 1 for Quantity and * for Name. CloudFront doesn't cache the objects that are associated with this cache behavior. Instead, CloudFront sends every request to the origin. Forward a whitelist of headers you specify: Specify the number of headers that you want CloudFront to base caching on. Then specify the header names in Name elements. CloudFront caches your objects based on the values in the specified headers. Forward only the default headers: Specify 0 for Quantity and omit Items. In this configuration, CloudFront doesn't cache based on the values in the request headers. Regardless of which option you choose, CloudFront forwards headers to your origin based on whether the origin is an S3 bucket or a custom origin. See the following documentation: S3 bucket: See HTTP Request Headers That CloudFront Removes or Updates Custom origin: See HTTP Request Headers and CloudFront Behavior
1656 */
1657 Quantity: integer;
1658 /**
1659 * A list that contains one Name element for each header that you want CloudFront to use for caching in this cache behavior. If Quantity is 0, omit Items.
1660 */
1661 Items?: HeaderList;
1662 }
1663 export type HttpVersion = "http1.1"|"http2"|string;
1664 export type ICPRecordalStatus = "APPROVED"|"SUSPENDED"|"PENDING"|string;
1665 export interface Invalidation {
1666 /**
1667 * The identifier for the invalidation request. For example: IDFDVBD632BHDS5.
1668 */
1669 Id: string;
1670 /**
1671 * The status of the invalidation request. When the invalidation batch is finished, the status is Completed.
1672 */
1673 Status: string;
1674 /**
1675 * The date and time the invalidation request was first made.
1676 */
1677 CreateTime: timestamp;
1678 /**
1679 * The current invalidation information for the batch request.
1680 */
1681 InvalidationBatch: InvalidationBatch;
1682 }
1683 export interface InvalidationBatch {
1684 /**
1685 * A complex type that contains information about the objects that you want to invalidate. For more information, see Specifying the Objects to Invalidate in the Amazon CloudFront Developer Guide.
1686 */
1687 Paths: Paths;
1688 /**
1689 * A value that you specify to uniquely identify an invalidation request. CloudFront uses the value to prevent you from accidentally resubmitting an identical request. Whenever you create a new invalidation request, you must specify a new value for CallerReference and change other values in the request as applicable. One way to ensure that the value of CallerReference is unique is to use a timestamp, for example, 20120301090000. If you make a second invalidation request with the same value for CallerReference, and if the rest of the request is the same, CloudFront doesn't create a new invalidation request. Instead, CloudFront returns information about the invalidation request that you previously created with the same CallerReference. If CallerReference is a value you already sent in a previous invalidation batch request but the content of any Path is different from the original request, CloudFront returns an InvalidationBatchAlreadyExists error.
1690 */
1691 CallerReference: string;
1692 }
1693 export interface InvalidationList {
1694 /**
1695 * The value that you provided for the Marker request parameter.
1696 */
1697 Marker: string;
1698 /**
1699 * If IsTruncated is true, this element is present and contains the value that you can use for the Marker request parameter to continue listing your invalidation batches where they left off.
1700 */
1701 NextMarker?: string;
1702 /**
1703 * The value that you provided for the MaxItems request parameter.
1704 */
1705 MaxItems: integer;
1706 /**
1707 * A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.
1708 */
1709 IsTruncated: boolean;
1710 /**
1711 * The number of invalidation batches that were created by the current AWS account.
1712 */
1713 Quantity: integer;
1714 /**
1715 * A complex type that contains one InvalidationSummary element for each invalidation batch created by the current AWS account.
1716 */
1717 Items?: InvalidationSummaryList;
1718 }
1719 export interface InvalidationSummary {
1720 /**
1721 * The unique ID for an invalidation request.
1722 */
1723 Id: string;
1724 /**
1725 * The time that an invalidation request was created.
1726 */
1727 CreateTime: timestamp;
1728 /**
1729 * The status of an invalidation request.
1730 */
1731 Status: string;
1732 }
1733 export type InvalidationSummaryList = InvalidationSummary[];
1734 export type ItemSelection = "none"|"whitelist"|"all"|string;
1735 export type KeyPairIdList = string[];
1736 export interface KeyPairIds {
1737 /**
1738 * The number of active CloudFront key pairs for AwsAccountNumber. For more information, see ActiveTrustedSigners.
1739 */
1740 Quantity: integer;
1741 /**
1742 * A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber. For more information, see ActiveTrustedSigners.
1743 */
1744 Items?: KeyPairIdList;
1745 }
1746 export type LambdaFunctionARN = string;
1747 export interface LambdaFunctionAssociation {
1748 /**
1749 * The ARN of the Lambda function. You must specify the ARN of a function version; you can't specify a Lambda alias or $LATEST.
1750 */
1751 LambdaFunctionARN: LambdaFunctionARN;
1752 /**
1753 * Specifies the event type that triggers a Lambda function invocation. You can specify the following values: viewer-request: The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache. origin-request: The function executes only when CloudFront forwards a request to your origin. When the requested object is in the edge cache, the function doesn't execute. origin-response: The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute. viewer-response: The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache. If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.
1754 */
1755 EventType: EventType;
1756 /**
1757 * A flag that allows a Lambda function to have read access to the body content. For more information, see Accessing the Request Body by Choosing the Include Body Option in the Amazon CloudFront Developer Guide.
1758 */
1759 IncludeBody?: boolean;
1760 }
1761 export type LambdaFunctionAssociationList = LambdaFunctionAssociation[];
1762 export interface LambdaFunctionAssociations {
1763 /**
1764 * The number of Lambda function associations for this cache behavior.
1765 */
1766 Quantity: integer;
1767 /**
1768 * Optional: A complex type that contains LambdaFunctionAssociation items for this cache behavior. If Quantity is 0, you can omit Items.
1769 */
1770 Items?: LambdaFunctionAssociationList;
1771 }
1772 export interface ListCloudFrontOriginAccessIdentitiesRequest {
1773 /**
1774 * Use this when paginating results to indicate where to begin in your list of origin access identities. The results include identities in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last identity on that page).
1775 */
1776 Marker?: string;
1777 /**
1778 * The maximum number of origin access identities you want in the response body.
1779 */
1780 MaxItems?: string;
1781 }
1782 export interface ListCloudFrontOriginAccessIdentitiesResult {
1783 /**
1784 * The CloudFrontOriginAccessIdentityList type.
1785 */
1786 CloudFrontOriginAccessIdentityList?: CloudFrontOriginAccessIdentityList;
1787 }
1788 export interface ListDistributionsByWebACLIdRequest {
1789 /**
1790 * Use Marker and MaxItems to control pagination of results. If you have more than MaxItems distributions that satisfy the request, the response includes a NextMarker element. To get the next page of results, submit another request. For the value of Marker, specify the value of NextMarker from the last response. (For the first request, omit Marker.)
1791 */
1792 Marker?: string;
1793 /**
1794 * The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.
1795 */
1796 MaxItems?: string;
1797 /**
1798 * The ID of the AWS WAF web ACL that you want to list the associated distributions. If you specify "null" for the ID, the request returns a list of the distributions that aren't associated with a web ACL.
1799 */
1800 WebACLId: string;
1801 }
1802 export interface ListDistributionsByWebACLIdResult {
1803 /**
1804 * The DistributionList type.
1805 */
1806 DistributionList?: DistributionList;
1807 }
1808 export interface ListDistributionsRequest {
1809 /**
1810 * Use this when paginating results to indicate where to begin in your list of distributions. The results include distributions in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last distribution on that page).
1811 */
1812 Marker?: string;
1813 /**
1814 * The maximum number of distributions you want in the response body.
1815 */
1816 MaxItems?: string;
1817 }
1818 export interface ListDistributionsResult {
1819 /**
1820 * The DistributionList type.
1821 */
1822 DistributionList?: DistributionList;
1823 }
1824 export interface ListFieldLevelEncryptionConfigsRequest {
1825 /**
1826 * Use this when paginating results to indicate where to begin in your list of configurations. The results include configurations in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last configuration on that page).
1827 */
1828 Marker?: string;
1829 /**
1830 * The maximum number of field-level encryption configurations you want in the response body.
1831 */
1832 MaxItems?: string;
1833 }
1834 export interface ListFieldLevelEncryptionConfigsResult {
1835 /**
1836 * Returns a list of all field-level encryption configurations that have been created in CloudFront for this account.
1837 */
1838 FieldLevelEncryptionList?: FieldLevelEncryptionList;
1839 }
1840 export interface ListFieldLevelEncryptionProfilesRequest {
1841 /**
1842 * Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last profile on that page).
1843 */
1844 Marker?: string;
1845 /**
1846 * The maximum number of field-level encryption profiles you want in the response body.
1847 */
1848 MaxItems?: string;
1849 }
1850 export interface ListFieldLevelEncryptionProfilesResult {
1851 /**
1852 * Returns a list of the field-level encryption profiles that have been created in CloudFront for this account.
1853 */
1854 FieldLevelEncryptionProfileList?: FieldLevelEncryptionProfileList;
1855 }
1856 export interface ListInvalidationsRequest {
1857 /**
1858 * The distribution's ID.
1859 */
1860 DistributionId: string;
1861 /**
1862 * Use this parameter when paginating results to indicate where to begin in your list of invalidation batches. Because the results are returned in decreasing order from most recent to oldest, the most recent results are on the first page, the second page will contain earlier results, and so on. To get the next page of results, set Marker to the value of the NextMarker from the current page's response. This value is the same as the ID of the last invalidation batch on that page.
1863 */
1864 Marker?: string;
1865 /**
1866 * The maximum number of invalidation batches that you want in the response body.
1867 */
1868 MaxItems?: string;
1869 }
1870 export interface ListInvalidationsResult {
1871 /**
1872 * Information about invalidation batches.
1873 */
1874 InvalidationList?: InvalidationList;
1875 }
1876 export interface ListPublicKeysRequest {
1877 /**
1878 * Use this when paginating results to indicate where to begin in your list of public keys. The results include public keys in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last public key on that page).
1879 */
1880 Marker?: string;
1881 /**
1882 * The maximum number of public keys you want in the response body.
1883 */
1884 MaxItems?: string;
1885 }
1886 export interface ListPublicKeysResult {
1887 /**
1888 * Returns a list of all public keys that have been added to CloudFront for this account.
1889 */
1890 PublicKeyList?: PublicKeyList;
1891 }
1892 export interface ListStreamingDistributionsRequest {
1893 /**
1894 * The value that you provided for the Marker request parameter.
1895 */
1896 Marker?: string;
1897 /**
1898 * The value that you provided for the MaxItems request parameter.
1899 */
1900 MaxItems?: string;
1901 }
1902 export interface ListStreamingDistributionsResult {
1903 /**
1904 * The StreamingDistributionList type.
1905 */
1906 StreamingDistributionList?: StreamingDistributionList;
1907 }
1908 export interface ListTagsForResourceRequest {
1909 /**
1910 * An ARN of a CloudFront resource.
1911 */
1912 Resource: ResourceARN;
1913 }
1914 export interface ListTagsForResourceResult {
1915 /**
1916 * A complex type that contains zero or more Tag elements.
1917 */
1918 Tags: Tags;
1919 }
1920 export type LocationList = string[];
1921 export interface LoggingConfig {
1922 /**
1923 * Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a distribution or if you want to disable logging for an existing distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket, prefix, and IncludeCookies, the values are automatically deleted.
1924 */
1925 Enabled: boolean;
1926 /**
1927 * Specifies whether you want CloudFront to include cookies in access logs, specify true for IncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specify false for IncludeCookies.
1928 */
1929 IncludeCookies: boolean;
1930 /**
1931 * The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
1932 */
1933 Bucket: string;
1934 /**
1935 * An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element.
1936 */
1937 Prefix: string;
1938 }
1939 export type Method = "GET"|"HEAD"|"POST"|"PUT"|"PATCH"|"OPTIONS"|"DELETE"|string;
1940 export type MethodsList = Method[];
1941 export type MinimumProtocolVersion = "SSLv3"|"TLSv1"|"TLSv1_2016"|"TLSv1.1_2016"|"TLSv1.2_2018"|string;
1942 export interface Origin {
1943 /**
1944 * A unique identifier for the origin or origin group. The value of Id must be unique within the distribution. When you specify the value of TargetOriginId for the default cache behavior or for another cache behavior, you indicate the origin to which you want the cache behavior to route requests by specifying the value of the Id element for that origin. When a request matches the path pattern for that cache behavior, CloudFront routes the request to the specified origin. For more information, see Cache Behavior Settings in the Amazon CloudFront Developer Guide.
1945 */
1946 Id: string;
1947 /**
1948 * Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, myawsbucket.s3.amazonaws.com. If you set up your bucket to be configured as a website endpoint, enter the Amazon S3 static website hosting endpoint for the bucket. For more information about specifying this value for different types of origins, see Origin Domain Name in the Amazon CloudFront Developer Guide. Constraints for Amazon S3 origins: If you configured Amazon S3 Transfer Acceleration for your bucket, don't specify the s3-accelerate endpoint for DomainName. The bucket name must be between 3 and 63 characters long (inclusive). The bucket name must contain only lowercase characters, numbers, periods, underscores, and dashes. The bucket name must not contain adjacent periods. Custom Origins: The DNS domain name for the HTTP server from which you want CloudFront to get objects for this origin, for example, www.example.com. Constraints for custom origins: DomainName must be a valid DNS name that contains only a-z, A-Z, 0-9, dot (.), hyphen (-), or underscore (_) characters. The name cannot exceed 128 characters.
1949 */
1950 DomainName: string;
1951 /**
1952 * An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin. When you include the OriginPath element, specify the directory name, beginning with a /. CloudFront appends the directory name to the value of DomainName, for example, example.com/production. Do not include a / at the end of the directory name. For example, suppose you've specified the following values for your distribution: DomainName: An Amazon S3 bucket named myawsbucket. OriginPath: /production CNAME: example.com When a user enters example.com/index.html in a browser, CloudFront sends a request to Amazon S3 for myawsbucket/production/index.html. When a user enters example.com/acme/index.html in a browser, CloudFront sends a request to Amazon S3 for myawsbucket/production/acme/index.html.
1953 */
1954 OriginPath?: string;
1955 /**
1956 * A complex type that contains names and values for the custom headers that you want.
1957 */
1958 CustomHeaders?: CustomHeaders;
1959 /**
1960 * A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.
1961 */
1962 S3OriginConfig?: S3OriginConfig;
1963 /**
1964 * A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.
1965 */
1966 CustomOriginConfig?: CustomOriginConfig;
1967 }
1968 export interface OriginCustomHeader {
1969 /**
1970 * The name of a header that you want CloudFront to forward to your origin. For more information, see Forwarding Custom Headers to Your Origin (Web Distributions Only) in the Amazon CloudFront Developer Guide.
1971 */
1972 HeaderName: string;
1973 /**
1974 * The value for the header that you specified in the HeaderName field.
1975 */
1976 HeaderValue: string;
1977 }
1978 export type OriginCustomHeadersList = OriginCustomHeader[];
1979 export interface OriginGroup {
1980 /**
1981 * The origin group's ID.
1982 */
1983 Id: string;
1984 /**
1985 * A complex type that contains information about the failover criteria for an origin group.
1986 */
1987 FailoverCriteria: OriginGroupFailoverCriteria;
1988 /**
1989 * A complex type that contains information about the origins in an origin group.
1990 */
1991 Members: OriginGroupMembers;
1992 }
1993 export interface OriginGroupFailoverCriteria {
1994 /**
1995 * The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
1996 */
1997 StatusCodes: StatusCodes;
1998 }
1999 export type OriginGroupList = OriginGroup[];
2000 export interface OriginGroupMember {
2001 /**
2002 * The ID for an origin in an origin group.
2003 */
2004 OriginId: string;
2005 }
2006 export type OriginGroupMemberList = OriginGroupMember[];
2007 export interface OriginGroupMembers {
2008 /**
2009 * The number of origins in an origin group.
2010 */
2011 Quantity: integer;
2012 /**
2013 * Items (origins) in an origin group.
2014 */
2015 Items: OriginGroupMemberList;
2016 }
2017 export interface OriginGroups {
2018 /**
2019 * The number of origin groups.
2020 */
2021 Quantity: integer;
2022 /**
2023 * The items (origin groups) in a distribution.
2024 */
2025 Items?: OriginGroupList;
2026 }
2027 export type OriginList = Origin[];
2028 export type OriginProtocolPolicy = "http-only"|"match-viewer"|"https-only"|string;
2029 export interface OriginSslProtocols {
2030 /**
2031 * The number of SSL/TLS protocols that you want to allow CloudFront to use when establishing an HTTPS connection with this origin.
2032 */
2033 Quantity: integer;
2034 /**
2035 * A list that contains allowed SSL/TLS protocols for this distribution.
2036 */
2037 Items: SslProtocolsList;
2038 }
2039 export interface Origins {
2040 /**
2041 * The number of origins or origin groups for this distribution.
2042 */
2043 Quantity: integer;
2044 /**
2045 * A complex type that contains origins or origin groups for this distribution.
2046 */
2047 Items: OriginList;
2048 }
2049 export type PathList = string[];
2050 export interface Paths {
2051 /**
2052 * The number of invalidation paths specified for the objects that you want to invalidate.
2053 */
2054 Quantity: integer;
2055 /**
2056 * A complex type that contains a list of the paths that you want to invalidate.
2057 */
2058 Items?: PathList;
2059 }
2060 export type PriceClass = "PriceClass_100"|"PriceClass_200"|"PriceClass_All"|string;
2061 export interface PublicKey {
2062 /**
2063 * A unique ID assigned to a public key you've added to CloudFront.
2064 */
2065 Id: string;
2066 /**
2067 * A time you added a public key to CloudFront.
2068 */
2069 CreatedTime: timestamp;
2070 /**
2071 * A complex data type for a public key you add to CloudFront to use with features like field-level encryption.
2072 */
2073 PublicKeyConfig: PublicKeyConfig;
2074 }
2075 export interface PublicKeyConfig {
2076 /**
2077 * A unique number that ensures that the request can't be replayed.
2078 */
2079 CallerReference: string;
2080 /**
2081 * The name for a public key you add to CloudFront to use with features like field-level encryption.
2082 */
2083 Name: string;
2084 /**
2085 * The encoded public key that you want to add to CloudFront to use with features like field-level encryption.
2086 */
2087 EncodedKey: string;
2088 /**
2089 * An optional comment about a public key.
2090 */
2091 Comment?: string;
2092 }
2093 export interface PublicKeyList {
2094 /**
2095 * If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your public keys where you left off.
2096 */
2097 NextMarker?: string;
2098 /**
2099 * The maximum number of public keys you want in the response body.
2100 */
2101 MaxItems: integer;
2102 /**
2103 * The number of public keys you added to CloudFront to use with features like field-level encryption.
2104 */
2105 Quantity: integer;
2106 /**
2107 * An array of information about a public key you add to CloudFront to use with features like field-level encryption.
2108 */
2109 Items?: PublicKeySummaryList;
2110 }
2111 export interface PublicKeySummary {
2112 /**
2113 * ID for public key information summary.
2114 */
2115 Id: string;
2116 /**
2117 * Name for public key information summary.
2118 */
2119 Name: string;
2120 /**
2121 * Creation time for public key information summary.
2122 */
2123 CreatedTime: timestamp;
2124 /**
2125 * Encoded key for public key information summary.
2126 */
2127 EncodedKey: string;
2128 /**
2129 * Comment for public key information summary.
2130 */
2131 Comment?: string;
2132 }
2133 export type PublicKeySummaryList = PublicKeySummary[];
2134 export interface QueryArgProfile {
2135 /**
2136 * Query argument for field-level encryption query argument-profile mapping.
2137 */
2138 QueryArg: string;
2139 /**
2140 * ID of profile to use for field-level encryption query argument-profile mapping
2141 */
2142 ProfileId: string;
2143 }
2144 export interface QueryArgProfileConfig {
2145 /**
2146 * Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown.
2147 */
2148 ForwardWhenQueryArgProfileIsUnknown: boolean;
2149 /**
2150 * Profiles specified for query argument-profile mapping for field-level encryption.
2151 */
2152 QueryArgProfiles?: QueryArgProfiles;
2153 }
2154 export type QueryArgProfileList = QueryArgProfile[];
2155 export interface QueryArgProfiles {
2156 /**
2157 * Number of profiles for query argument-profile mapping for field-level encryption.
2158 */
2159 Quantity: integer;
2160 /**
2161 * Number of items for query argument-profile mapping for field-level encryption.
2162 */
2163 Items?: QueryArgProfileList;
2164 }
2165 export interface QueryStringCacheKeys {
2166 /**
2167 * The number of whitelisted query string parameters for a cache behavior.
2168 */
2169 Quantity: integer;
2170 /**
2171 * A list that contains the query string parameters that you want CloudFront to use as a basis for caching for a cache behavior. If Quantity is 0, you can omit Items.
2172 */
2173 Items?: QueryStringCacheKeysList;
2174 }
2175 export type QueryStringCacheKeysList = string[];
2176 export type ResourceARN = string;
2177 export interface Restrictions {
2178 /**
2179 * A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.
2180 */
2181 GeoRestriction: GeoRestriction;
2182 }
2183 export interface S3Origin {
2184 /**
2185 * The DNS name of the Amazon S3 origin.
2186 */
2187 DomainName: string;
2188 /**
2189 * The CloudFront 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 Amazon S3 bucket through CloudFront. If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.
2190 */
2191 OriginAccessIdentity: string;
2192 }
2193 export interface S3OriginConfig {
2194 /**
2195 * 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: origin-access-identity/cloudfront/ID-of-origin-access-identity where ID-of-origin-access-identity is the value that CloudFront returned in the ID element when you created the origin access identity. 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. To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element. To replace the origin access identity, update the distribution configuration and specify the new origin access identity. For more information about the origin access identity, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
2196 */
2197 OriginAccessIdentity: string;
2198 }
2199 export type SSLSupportMethod = "sni-only"|"vip"|string;
2200 export interface _Signer {
2201 /**
2202 * An AWS account that is included in the TrustedSigners complex type for this distribution. Valid values include: self, which is the AWS account used to create the distribution. An AWS account number.
2203 */
2204 AwsAccountNumber?: string;
2205 /**
2206 * A complex type that lists the active CloudFront key pairs, if any, that are associated with AwsAccountNumber.
2207 */
2208 KeyPairIds?: KeyPairIds;
2209 }
2210 export type SignerList = _Signer[];
2211 export type SslProtocol = "SSLv3"|"TLSv1"|"TLSv1.1"|"TLSv1.2"|string;
2212 export type SslProtocolsList = SslProtocol[];
2213 export type StatusCodeList = integer[];
2214 export interface StatusCodes {
2215 /**
2216 * The number of status codes.
2217 */
2218 Quantity: integer;
2219 /**
2220 * The items (status codes) for an origin group.
2221 */
2222 Items: StatusCodeList;
2223 }
2224 export interface StreamingDistribution {
2225 /**
2226 * The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE.
2227 */
2228 Id: string;
2229 /**
2230 * The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
2231 */
2232 ARN: string;
2233 /**
2234 * The current status of the RTMP distribution. When the status is Deployed, the distribution's information is propagated to all CloudFront edge locations.
2235 */
2236 Status: string;
2237 /**
2238 * The date and time that the distribution was last modified.
2239 */
2240 LastModifiedTime?: timestamp;
2241 /**
2242 * The domain name that corresponds to the streaming distribution, for example, s5c39gqb8ow64r.cloudfront.net.
2243 */
2244 DomainName: string;
2245 /**
2246 * A complex type that lists the AWS accounts, if any, that you included in the TrustedSigners complex type for this distribution. These are the accounts that you want to allow to create signed URLs for private content. The Signer complex type lists the AWS account number of the trusted signer or self if the signer is the AWS account that created the distribution. The Signer element also includes the IDs of any active CloudFront key pairs that are associated with the trusted signer's AWS account. If no KeyPairId element appears for a Signer, that signer can't create signed URLs. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
2247 */
2248 ActiveTrustedSigners: ActiveTrustedSigners;
2249 /**
2250 * The current configuration information for the RTMP distribution.
2251 */
2252 StreamingDistributionConfig: StreamingDistributionConfig;
2253 }
2254 export interface StreamingDistributionConfig {
2255 /**
2256 * A unique value (for example, a date-time stamp) that ensures that the request can't be replayed. If the value of CallerReference is new (regardless of the content of the StreamingDistributionConfig object), CloudFront creates a new distribution. If CallerReference is a value that you already sent in a previous request to create a distribution, CloudFront returns a DistributionAlreadyExists error.
2257 */
2258 CallerReference: string;
2259 /**
2260 * A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
2261 */
2262 S3Origin: S3Origin;
2263 /**
2264 * A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
2265 */
2266 Aliases?: Aliases;
2267 /**
2268 * Any comments you want to include about the streaming distribution.
2269 */
2270 Comment: string;
2271 /**
2272 * A complex type that controls whether access logs are written for the streaming distribution.
2273 */
2274 Logging?: StreamingLoggingConfig;
2275 /**
2276 * A complex type that specifies any AWS accounts that you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use public URLs, remove this element. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
2277 */
2278 TrustedSigners: TrustedSigners;
2279 /**
2280 * A complex type that contains information about price class for this streaming distribution.
2281 */
2282 PriceClass?: PriceClass;
2283 /**
2284 * Whether the streaming distribution is enabled to accept user requests for content.
2285 */
2286 Enabled: boolean;
2287 }
2288 export interface StreamingDistributionConfigWithTags {
2289 /**
2290 * A streaming distribution Configuration.
2291 */
2292 StreamingDistributionConfig: StreamingDistributionConfig;
2293 /**
2294 * A complex type that contains zero or more Tag elements.
2295 */
2296 Tags: Tags;
2297 }
2298 export interface StreamingDistributionList {
2299 /**
2300 * The value you provided for the Marker request parameter.
2301 */
2302 Marker: string;
2303 /**
2304 * If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your RTMP distributions where they left off.
2305 */
2306 NextMarker?: string;
2307 /**
2308 * The value you provided for the MaxItems request parameter.
2309 */
2310 MaxItems: integer;
2311 /**
2312 * A flag that indicates whether more streaming distributions remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more distributions in the list.
2313 */
2314 IsTruncated: boolean;
2315 /**
2316 * The number of streaming distributions that were created by the current AWS account.
2317 */
2318 Quantity: integer;
2319 /**
2320 * A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.
2321 */
2322 Items?: StreamingDistributionSummaryList;
2323 }
2324 export interface StreamingDistributionSummary {
2325 /**
2326 * The identifier for the distribution, for example, EDFDVBD632BHDS5.
2327 */
2328 Id: string;
2329 /**
2330 * The ARN (Amazon Resource Name) for the streaming distribution. For example: arn:aws:cloudfront::123456789012:streaming-distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.
2331 */
2332 ARN: string;
2333 /**
2334 * Indicates the current status of the distribution. When the status is Deployed, the distribution's information is fully propagated throughout the Amazon CloudFront system.
2335 */
2336 Status: string;
2337 /**
2338 * The date and time the distribution was last modified.
2339 */
2340 LastModifiedTime: timestamp;
2341 /**
2342 * The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net.
2343 */
2344 DomainName: string;
2345 /**
2346 * A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
2347 */
2348 S3Origin: S3Origin;
2349 /**
2350 * A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
2351 */
2352 Aliases: Aliases;
2353 /**
2354 * A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items.If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution. For more information, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.
2355 */
2356 TrustedSigners: TrustedSigners;
2357 /**
2358 * The comment originally specified when this distribution was created.
2359 */
2360 Comment: string;
2361 /**
2362 * A complex type that contains information about price class for this streaming distribution.
2363 */
2364 PriceClass: PriceClass;
2365 /**
2366 * Whether the distribution is enabled to accept end user requests for content.
2367 */
2368 Enabled: boolean;
2369 }
2370 export type StreamingDistributionSummaryList = StreamingDistributionSummary[];
2371 export interface StreamingLoggingConfig {
2372 /**
2373 * Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false for Enabled, and specify empty Bucket and Prefix elements. If you specify false for Enabled but you specify values for Bucket and Prefix, the values are automatically deleted.
2374 */
2375 Enabled: boolean;
2376 /**
2377 * The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
2378 */
2379 Bucket: string;
2380 /**
2381 * An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix element in the Logging element.
2382 */
2383 Prefix: string;
2384 }
2385 export interface Tag {
2386 /**
2387 * A string that contains Tag key. The string length should be between 1 and 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
2388 */
2389 Key: TagKey;
2390 /**
2391 * A string that contains an optional Tag value. The string length should be between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, and the special characters _ - . : / = + @.
2392 */
2393 Value?: TagValue;
2394 }
2395 export type TagKey = string;
2396 export type TagKeyList = TagKey[];
2397 export interface TagKeys {
2398 /**
2399 * A complex type that contains Tag key elements.
2400 */
2401 Items?: TagKeyList;
2402 }
2403 export type TagList = Tag[];
2404 export interface TagResourceRequest {
2405 /**
2406 * An ARN of a CloudFront resource.
2407 */
2408 Resource: ResourceARN;
2409 /**
2410 * A complex type that contains zero or more Tag elements.
2411 */
2412 Tags: Tags;
2413 }
2414 export type TagValue = string;
2415 export interface Tags {
2416 /**
2417 * A complex type that contains Tag elements.
2418 */
2419 Items?: TagList;
2420 }
2421 export interface TrustedSigners {
2422 /**
2423 * Specifies whether you want to require viewers to use signed URLs to access the files specified by PathPattern and TargetOriginId.
2424 */
2425 Enabled: boolean;
2426 /**
2427 * The number of trusted signers for this cache behavior.
2428 */
2429 Quantity: integer;
2430 /**
2431 * Optional: A complex type that contains trusted signers for this cache behavior. If Quantity is 0, you can omit Items.
2432 */
2433 Items?: AwsAccountNumberList;
2434 }
2435 export interface UntagResourceRequest {
2436 /**
2437 * An ARN of a CloudFront resource.
2438 */
2439 Resource: ResourceARN;
2440 /**
2441 * A complex type that contains zero or more Tag key elements.
2442 */
2443 TagKeys: TagKeys;
2444 }
2445 export interface UpdateCloudFrontOriginAccessIdentityRequest {
2446 /**
2447 * The identity's configuration information.
2448 */
2449 CloudFrontOriginAccessIdentityConfig: CloudFrontOriginAccessIdentityConfig;
2450 /**
2451 * The identity's id.
2452 */
2453 Id: string;
2454 /**
2455 * The value of the ETag header that you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL.
2456 */
2457 IfMatch?: string;
2458 }
2459 export interface UpdateCloudFrontOriginAccessIdentityResult {
2460 /**
2461 * The origin access identity's information.
2462 */
2463 CloudFrontOriginAccessIdentity?: CloudFrontOriginAccessIdentity;
2464 /**
2465 * The current version of the configuration. For example: E2QWRUHAPOMQZL.
2466 */
2467 ETag?: string;
2468 }
2469 export interface UpdateDistributionRequest {
2470 /**
2471 * The distribution's configuration information.
2472 */
2473 DistributionConfig: DistributionConfig;
2474 /**
2475 * The distribution's id.
2476 */
2477 Id: string;
2478 /**
2479 * The value of the ETag header that you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.
2480 */
2481 IfMatch?: string;
2482 }
2483 export interface UpdateDistributionResult {
2484 /**
2485 * The distribution's information.
2486 */
2487 Distribution?: Distribution;
2488 /**
2489 * The current version of the configuration. For example: E2QWRUHAPOMQZL.
2490 */
2491 ETag?: string;
2492 }
2493 export interface UpdateFieldLevelEncryptionConfigRequest {
2494 /**
2495 * Request to update a field-level encryption configuration.
2496 */
2497 FieldLevelEncryptionConfig: FieldLevelEncryptionConfig;
2498 /**
2499 * The ID of the configuration you want to update.
2500 */
2501 Id: string;
2502 /**
2503 * The value of the ETag header that you received when retrieving the configuration identity to update. For example: E2QWRUHAPOMQZL.
2504 */
2505 IfMatch?: string;
2506 }
2507 export interface UpdateFieldLevelEncryptionConfigResult {
2508 /**
2509 * Return the results of updating the configuration.
2510 */
2511 FieldLevelEncryption?: FieldLevelEncryption;
2512 /**
2513 * The value of the ETag header that you received when updating the configuration. For example: E2QWRUHAPOMQZL.
2514 */
2515 ETag?: string;
2516 }
2517 export interface UpdateFieldLevelEncryptionProfileRequest {
2518 /**
2519 * Request to update a field-level encryption profile.
2520 */
2521 FieldLevelEncryptionProfileConfig: FieldLevelEncryptionProfileConfig;
2522 /**
2523 * The ID of the field-level encryption profile request.
2524 */
2525 Id: string;
2526 /**
2527 * The value of the ETag header that you received when retrieving the profile identity to update. For example: E2QWRUHAPOMQZL.
2528 */
2529 IfMatch?: string;
2530 }
2531 export interface UpdateFieldLevelEncryptionProfileResult {
2532 /**
2533 * Return the results of updating the profile.
2534 */
2535 FieldLevelEncryptionProfile?: FieldLevelEncryptionProfile;
2536 /**
2537 * The result of the field-level encryption profile request.
2538 */
2539 ETag?: string;
2540 }
2541 export interface UpdatePublicKeyRequest {
2542 /**
2543 * Request to update public key information.
2544 */
2545 PublicKeyConfig: PublicKeyConfig;
2546 /**
2547 * ID of the public key to be updated.
2548 */
2549 Id: string;
2550 /**
2551 * The value of the ETag header that you received when retrieving the public key to update. For example: E2QWRUHAPOMQZL.
2552 */
2553 IfMatch?: string;
2554 }
2555 export interface UpdatePublicKeyResult {
2556 /**
2557 * Return the results of updating the public key.
2558 */
2559 PublicKey?: PublicKey;
2560 /**
2561 * The current version of the update public key result. For example: E2QWRUHAPOMQZL.
2562 */
2563 ETag?: string;
2564 }
2565 export interface UpdateStreamingDistributionRequest {
2566 /**
2567 * The streaming distribution's configuration information.
2568 */
2569 StreamingDistributionConfig: StreamingDistributionConfig;
2570 /**
2571 * The streaming distribution's id.
2572 */
2573 Id: string;
2574 /**
2575 * The value of the ETag header that you received when retrieving the streaming distribution's configuration. For example: E2QWRUHAPOMQZL.
2576 */
2577 IfMatch?: string;
2578 }
2579 export interface UpdateStreamingDistributionResult {
2580 /**
2581 * The streaming distribution's information.
2582 */
2583 StreamingDistribution?: StreamingDistribution;
2584 /**
2585 * The current version of the configuration. For example: E2QWRUHAPOMQZL.
2586 */
2587 ETag?: string;
2588 }
2589 export interface ViewerCertificate {
2590 /**
2591 * If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net, set this field to true. If the distribution uses Aliases (alternate domain names or CNAMEs), set this field to false and specify values for the following fields: ACMCertificateArn or IAMCertificateId (specify a value for one, not both) MinimumProtocolVersion SSLSupportMethod
2592 */
2593 CloudFrontDefaultCertificate?: boolean;
2594 /**
2595 * If the distribution uses Aliases (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in AWS Identity and Access Management (AWS IAM), provide the ID of the IAM certificate. If you specify an IAM certificate ID, you must also specify values for MinimumProtocolVerison and SSLSupportMethod.
2596 */
2597 IAMCertificateId?: string;
2598 /**
2599 * If the distribution uses Aliases (alternate domain names or CNAMEs) and the SSL/TLS certificate is stored in AWS Certificate Manager (ACM), provide the Amazon Resource Name (ARN) of the ACM certificate. CloudFront only supports ACM certificates in the US East (N. Virginia) Region (us-east-1). If you specify an ACM certificate ARN, you must also specify values for MinimumProtocolVerison and SSLSupportMethod.
2600 */
2601 ACMCertificateArn?: string;
2602 /**
2603 * If the distribution uses Aliases (alternate domain names or CNAMEs), specify which viewers the distribution accepts HTTPS connections from. sni-only – The distribution accepts HTTPS connections from only viewers that support server name indication (SNI). This is recommended. Most browsers and clients released after 2010 support SNI. vip – The distribution accepts HTTPS connections from all viewers including those that don’t support SNI. This is not recommended, and results in additional monthly charges from CloudFront. If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net, don’t set a value for this field.
2604 */
2605 SSLSupportMethod?: SSLSupportMethod;
2606 /**
2607 * If the distribution uses Aliases (alternate domain names or CNAMEs), specify the security policy that you want CloudFront to use for HTTPS connections with viewers. The security policy determines two settings: The minimum SSL/TLS protocol that CloudFront can use to communicate with viewers. The ciphers that CloudFront can use to encrypt the content that it returns to viewers. For more information, see Security Policy and Supported Protocols and Ciphers Between Viewers and CloudFront in the Amazon CloudFront Developer Guide. On the CloudFront console, this setting is called Security Policy. We recommend that you specify TLSv1.2_2018 unless your viewers are using browsers or devices that don’t support TLSv1.2. When you’re using SNI only (you set SSLSupportMethod to sni-only), you must specify TLSv1 or higher. If the distribution uses the CloudFront domain name such as d111111abcdef8.cloudfront.net (you set CloudFrontDefaultCertificate to true), CloudFront automatically sets the security policy to TLSv1 regardless of the value that you set here.
2608 */
2609 MinimumProtocolVersion?: MinimumProtocolVersion;
2610 /**
2611 * This field is deprecated. Use one of the following fields instead: ACMCertificateArn IAMCertificateId CloudFrontDefaultCertificate
2612 */
2613 Certificate?: string;
2614 /**
2615 * This field is deprecated. Use one of the following fields instead: ACMCertificateArn IAMCertificateId CloudFrontDefaultCertificate
2616 */
2617 CertificateSource?: CertificateSource;
2618 }
2619 export type ViewerProtocolPolicy = "allow-all"|"https-only"|"redirect-to-https"|string;
2620 export type integer = number;
2621 export type long = number;
2622 export type timestamp = Date;
2623 /**
2624 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
2625 */
2626 export type apiVersion = "2013-05-12"|"2013-11-11"|"2014-05-31"|"2014-10-21"|"2014-11-06"|"2015-04-17"|"2015-07-27"|"2015-09-17"|"2016-01-13"|"2016-01-28"|"2016-08-01"|"2016-08-20"|"2016-09-07"|"2016-09-29"|"2016-11-25"|"2016-11-25"|"2017-03-25"|"2017-03-25"|"2017-10-30"|"2017-10-30"|"2018-06-18"|"2018-06-18"|"2018-11-05"|"2018-11-05"|"2019-03-26"|"latest"|string;
2627 export interface ClientApiVersions {
2628 /**
2629 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
2630 */
2631 apiVersion?: apiVersion;
2632 }
2633 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
2634 /**
2635 * Contains interfaces for use with the CloudFront client.
2636 */
2637 export import Types = CloudFront;
2638}
2639export = CloudFront;