@aws-sdk/client-cloudfront 3.922.0 → 3.925.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +329 -16
  3. package/dist-es/CloudFront.js +10 -0
  4. package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -0
  5. package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
  6. package/dist-es/commands/ListDistributionsByOwnedResourceCommand.js +22 -0
  7. package/dist-es/commands/PutResourcePolicyCommand.js +22 -0
  8. package/dist-es/commands/UpdateAnycastIpListCommand.js +22 -0
  9. package/dist-es/commands/index.js +6 -1
  10. package/dist-es/models/models_0.js +5 -5
  11. package/dist-es/models/models_1.js +0 -4
  12. package/dist-es/models/models_2.js +4 -0
  13. package/dist-es/protocols/Aws_restXml.js +225 -7
  14. package/dist-types/CloudFront.d.ts +35 -0
  15. package/dist-types/CloudFrontClient.d.ts +7 -2
  16. package/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  17. package/dist-types/commands/CopyDistributionCommand.d.ts +1 -0
  18. package/dist-types/commands/CreateAnycastIpListCommand.d.ts +2 -0
  19. package/dist-types/commands/CreateDistributionCommand.d.ts +2 -0
  20. package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +2 -0
  21. package/dist-types/commands/CreateVpcOriginCommand.d.ts +1 -0
  22. package/dist-types/commands/DeleteDistributionCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +90 -0
  24. package/dist-types/commands/DeleteVpcOriginCommand.d.ts +1 -0
  25. package/dist-types/commands/GetAnycastIpListCommand.d.ts +1 -0
  26. package/dist-types/commands/GetDistributionCommand.d.ts +1 -0
  27. package/dist-types/commands/GetDistributionConfigCommand.d.ts +1 -0
  28. package/dist-types/commands/GetResourcePolicyCommand.d.ts +87 -0
  29. package/dist-types/commands/GetVpcOriginCommand.d.ts +1 -0
  30. package/dist-types/commands/ListAnycastIpListsCommand.d.ts +2 -0
  31. package/dist-types/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +1 -0
  32. package/dist-types/commands/ListDistributionsByConnectionModeCommand.d.ts +1 -0
  33. package/dist-types/commands/ListDistributionsByOwnedResourceCommand.d.ts +100 -0
  34. package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +1 -0
  35. package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +1 -0
  36. package/dist-types/commands/ListDistributionsCommand.d.ts +1 -0
  37. package/dist-types/commands/ListRealtimeLogConfigsCommand.d.ts +2 -1
  38. package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +1 -1
  39. package/dist-types/commands/ListStreamingDistributionsCommand.d.ts +1 -2
  40. package/dist-types/commands/ListVpcOriginsCommand.d.ts +1 -0
  41. package/dist-types/commands/PutResourcePolicyCommand.d.ts +93 -0
  42. package/dist-types/commands/UpdateAnycastIpListCommand.d.ts +106 -0
  43. package/dist-types/commands/UpdateDistributionCommand.d.ts +2 -0
  44. package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +1 -0
  45. package/dist-types/commands/UpdateVpcOriginCommand.d.ts +1 -0
  46. package/dist-types/commands/index.d.ts +6 -1
  47. package/dist-types/models/models_0.d.ts +38 -13
  48. package/dist-types/models/models_1.d.ts +122 -110
  49. package/dist-types/models/models_2.d.ts +177 -2
  50. package/dist-types/protocols/Aws_restXml.d.ts +45 -0
  51. package/dist-types/ts3.4/CloudFront.d.ts +85 -0
  52. package/dist-types/ts3.4/CloudFrontClient.d.ts +30 -0
  53. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +46 -0
  54. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/ListDistributionsByOwnedResourceCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/ListRealtimeLogConfigsCommand.d.ts +2 -4
  57. package/dist-types/ts3.4/commands/ListResponseHeadersPoliciesCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/ListStreamingDistributionsCommand.d.ts +4 -2
  59. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/UpdateAnycastIpListCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +6 -1
  62. package/dist-types/ts3.4/models/models_0.d.ts +11 -6
  63. package/dist-types/ts3.4/models/models_1.d.ts +31 -31
  64. package/dist-types/ts3.4/models/models_2.d.ts +51 -0
  65. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +60 -0
  66. package/package.json +5 -5
@@ -47,6 +47,7 @@ declare const CreateAnycastIpListCommand_base: {
47
47
  * },
48
48
  * ],
49
49
  * },
50
+ * IpAddressType: "ipv4" || "ipv6" || "dualstack",
50
51
  * };
51
52
  * const command = new CreateAnycastIpListCommand(input);
52
53
  * const response = await client.send(command);
@@ -56,6 +57,7 @@ declare const CreateAnycastIpListCommand_base: {
56
57
  * // Name: "STRING_VALUE", // required
57
58
  * // Status: "STRING_VALUE", // required
58
59
  * // Arn: "STRING_VALUE", // required
60
+ * // IpAddressType: "ipv4" || "ipv6" || "dualstack",
59
61
  * // AnycastIps: [ // AnycastIps // required
60
62
  * // "STRING_VALUE",
61
63
  * // ],
@@ -82,6 +82,7 @@ declare const CreateDistributionCommand_base: {
82
82
  * },
83
83
  * VpcOriginConfig: { // VpcOriginConfig
84
84
  * VpcOriginId: "STRING_VALUE", // required
85
+ * OwnerAccountId: "STRING_VALUE",
85
86
  * OriginReadTimeout: Number("int"),
86
87
  * OriginKeepaliveTimeout: Number("int"),
87
88
  * },
@@ -441,6 +442,7 @@ declare const CreateDistributionCommand_base: {
441
442
  * // },
442
443
  * // VpcOriginConfig: { // VpcOriginConfig
443
444
  * // VpcOriginId: "STRING_VALUE", // required
445
+ * // OwnerAccountId: "STRING_VALUE",
444
446
  * // OriginReadTimeout: Number("int"),
445
447
  * // OriginKeepaliveTimeout: Number("int"),
446
448
  * // },
@@ -83,6 +83,7 @@ declare const CreateDistributionWithTagsCommand_base: {
83
83
  * },
84
84
  * VpcOriginConfig: { // VpcOriginConfig
85
85
  * VpcOriginId: "STRING_VALUE", // required
86
+ * OwnerAccountId: "STRING_VALUE",
86
87
  * OriginReadTimeout: Number("int"),
87
88
  * OriginKeepaliveTimeout: Number("int"),
88
89
  * },
@@ -451,6 +452,7 @@ declare const CreateDistributionWithTagsCommand_base: {
451
452
  * // },
452
453
  * // VpcOriginConfig: { // VpcOriginConfig
453
454
  * // VpcOriginId: "STRING_VALUE", // required
455
+ * // OwnerAccountId: "STRING_VALUE",
454
456
  * // OriginReadTimeout: Number("int"),
455
457
  * // OriginKeepaliveTimeout: Number("int"),
456
458
  * // },
@@ -65,6 +65,7 @@ declare const CreateVpcOriginCommand_base: {
65
65
  * // VpcOrigin: { // VpcOrigin
66
66
  * // Id: "STRING_VALUE", // required
67
67
  * // Arn: "STRING_VALUE", // required
68
+ * // AccountId: "STRING_VALUE",
68
69
  * // Status: "STRING_VALUE", // required
69
70
  * // CreatedTime: new Date("TIMESTAMP"), // required
70
71
  * // LastModifiedTime: new Date("TIMESTAMP"), // required
@@ -27,7 +27,7 @@ declare const DeleteDistributionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Delete a distribution.</p>
30
+ * <p>Delete a distribution.</p> <important> <p>Before you can delete a distribution, you must disable it, which requires permission to update the distribution. Once deleted, a distribution cannot be recovered.</p> </important>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -0,0 +1,90 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { DeleteResourcePolicyRequest } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteResourcePolicyCommand}.
14
+ */
15
+ export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteResourcePolicyCommand}.
21
+ */
22
+ export interface DeleteResourcePolicyCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteResourcePolicyCommand_base: {
25
+ new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes the resource policy attached to the CloudFront resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront";
37
+ * const config = {}; // type is CloudFrontClientConfig
38
+ * const client = new CloudFrontClient(config);
39
+ * const input = { // DeleteResourcePolicyRequest
40
+ * ResourceArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteResourcePolicyCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
49
+ * @returns {@link DeleteResourcePolicyCommandOutput}
50
+ * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
52
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDenied} (client fault)
55
+ * <p>Access denied.</p>
56
+ *
57
+ * @throws {@link EntityNotFound} (client fault)
58
+ * <p>The entity was not found.</p>
59
+ *
60
+ * @throws {@link IllegalDelete} (client fault)
61
+ * <p>Deletion is not allowed for this entity.</p>
62
+ *
63
+ * @throws {@link InvalidArgument} (client fault)
64
+ * <p>An argument is invalid.</p>
65
+ *
66
+ * @throws {@link PreconditionFailed} (client fault)
67
+ * <p>The precondition in one or more of the request fields evaluated to <code>false</code>.</p>
68
+ *
69
+ * @throws {@link UnsupportedOperation} (client fault)
70
+ * <p>This operation is not supported in this Amazon Web Services Region.</p>
71
+ *
72
+ * @throws {@link CloudFrontServiceException}
73
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
74
+ *
75
+ *
76
+ * @public
77
+ */
78
+ export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: DeleteResourcePolicyRequest;
83
+ output: {};
84
+ };
85
+ sdk: {
86
+ input: DeleteResourcePolicyCommandInput;
87
+ output: DeleteResourcePolicyCommandOutput;
88
+ };
89
+ };
90
+ }
@@ -46,6 +46,7 @@ declare const DeleteVpcOriginCommand_base: {
46
46
  * // VpcOrigin: { // VpcOrigin
47
47
  * // Id: "STRING_VALUE", // required
48
48
  * // Arn: "STRING_VALUE", // required
49
+ * // AccountId: "STRING_VALUE",
49
50
  * // Status: "STRING_VALUE", // required
50
51
  * // CreatedTime: new Date("TIMESTAMP"), // required
51
52
  * // LastModifiedTime: new Date("TIMESTAMP"), // required
@@ -47,6 +47,7 @@ declare const GetAnycastIpListCommand_base: {
47
47
  * // Name: "STRING_VALUE", // required
48
48
  * // Status: "STRING_VALUE", // required
49
49
  * // Arn: "STRING_VALUE", // required
50
+ * // IpAddressType: "ipv4" || "ipv6" || "dualstack",
50
51
  * // AnycastIps: [ // AnycastIps // required
51
52
  * // "STRING_VALUE",
52
53
  * // ],
@@ -124,6 +124,7 @@ declare const GetDistributionCommand_base: {
124
124
  * // },
125
125
  * // VpcOriginConfig: { // VpcOriginConfig
126
126
  * // VpcOriginId: "STRING_VALUE", // required
127
+ * // OwnerAccountId: "STRING_VALUE",
127
128
  * // OriginReadTimeout: Number("int"),
128
129
  * // OriginKeepaliveTimeout: Number("int"),
129
130
  * // },
@@ -87,6 +87,7 @@ declare const GetDistributionConfigCommand_base: {
87
87
  * // },
88
88
  * // VpcOriginConfig: { // VpcOriginConfig
89
89
  * // VpcOriginId: "STRING_VALUE", // required
90
+ * // OwnerAccountId: "STRING_VALUE",
90
91
  * // OriginReadTimeout: Number("int"),
91
92
  * // OriginKeepaliveTimeout: Number("int"),
92
93
  * // },
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { GetResourcePolicyRequest, GetResourcePolicyResult } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetResourcePolicyCommand}.
14
+ */
15
+ export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetResourcePolicyCommand}.
21
+ */
22
+ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResult, __MetadataBearer {
23
+ }
24
+ declare const GetResourcePolicyCommand_base: {
25
+ new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves the resource policy for the specified CloudFront resource that you own and have shared.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, GetResourcePolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, GetResourcePolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront";
37
+ * const config = {}; // type is CloudFrontClientConfig
38
+ * const client = new CloudFrontClient(config);
39
+ * const input = { // GetResourcePolicyRequest
40
+ * ResourceArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetResourcePolicyCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetResourcePolicyResult
45
+ * // ResourceArn: "STRING_VALUE",
46
+ * // PolicyDocument: "STRING_VALUE",
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
52
+ * @returns {@link GetResourcePolicyCommandOutput}
53
+ * @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
54
+ * @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
55
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDenied} (client fault)
58
+ * <p>Access denied.</p>
59
+ *
60
+ * @throws {@link EntityNotFound} (client fault)
61
+ * <p>The entity was not found.</p>
62
+ *
63
+ * @throws {@link InvalidArgument} (client fault)
64
+ * <p>An argument is invalid.</p>
65
+ *
66
+ * @throws {@link UnsupportedOperation} (client fault)
67
+ * <p>This operation is not supported in this Amazon Web Services Region.</p>
68
+ *
69
+ * @throws {@link CloudFrontServiceException}
70
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: GetResourcePolicyRequest;
80
+ output: GetResourcePolicyResult;
81
+ };
82
+ sdk: {
83
+ input: GetResourcePolicyCommandInput;
84
+ output: GetResourcePolicyCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -45,6 +45,7 @@ declare const GetVpcOriginCommand_base: {
45
45
  * // VpcOrigin: { // VpcOrigin
46
46
  * // Id: "STRING_VALUE", // required
47
47
  * // Arn: "STRING_VALUE", // required
48
+ * // AccountId: "STRING_VALUE",
48
49
  * // Status: "STRING_VALUE", // required
49
50
  * // CreatedTime: new Date("TIMESTAMP"), // required
50
51
  * // LastModifiedTime: new Date("TIMESTAMP"), // required
@@ -52,6 +52,8 @@ declare const ListAnycastIpListsCommand_base: {
52
52
  * // Arn: "STRING_VALUE", // required
53
53
  * // IpCount: Number("int"), // required
54
54
  * // LastModifiedTime: new Date("TIMESTAMP"), // required
55
+ * // IpAddressType: "ipv4" || "ipv6" || "dualstack",
56
+ * // ETag: "STRING_VALUE",
55
57
  * // },
56
58
  * // ],
57
59
  * // Marker: "STRING_VALUE", // required
@@ -100,6 +100,7 @@ declare const ListDistributionsByAnycastIpListIdCommand_base: {
100
100
  * // },
101
101
  * // VpcOriginConfig: { // VpcOriginConfig
102
102
  * // VpcOriginId: "STRING_VALUE", // required
103
+ * // OwnerAccountId: "STRING_VALUE",
103
104
  * // OriginReadTimeout: Number("int"),
104
105
  * // OriginKeepaliveTimeout: Number("int"),
105
106
  * // },
@@ -100,6 +100,7 @@ declare const ListDistributionsByConnectionModeCommand_base: {
100
100
  * // },
101
101
  * // VpcOriginConfig: { // VpcOriginConfig
102
102
  * // VpcOriginId: "STRING_VALUE", // required
103
+ * // OwnerAccountId: "STRING_VALUE",
103
104
  * // OriginReadTimeout: Number("int"),
104
105
  * // OriginKeepaliveTimeout: Number("int"),
105
106
  * // },
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { ListDistributionsByOwnedResourceRequest, ListDistributionsByOwnedResourceResult } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListDistributionsByOwnedResourceCommand}.
14
+ */
15
+ export interface ListDistributionsByOwnedResourceCommandInput extends ListDistributionsByOwnedResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListDistributionsByOwnedResourceCommand}.
21
+ */
22
+ export interface ListDistributionsByOwnedResourceCommandOutput extends ListDistributionsByOwnedResourceResult, __MetadataBearer {
23
+ }
24
+ declare const ListDistributionsByOwnedResourceCommand_base: {
25
+ new (input: ListDistributionsByOwnedResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListDistributionsByOwnedResourceCommandInput, ListDistributionsByOwnedResourceCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListDistributionsByOwnedResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListDistributionsByOwnedResourceCommandInput, ListDistributionsByOwnedResourceCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists the CloudFront distributions that are associated with the specified resource that you own.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, ListDistributionsByOwnedResourceCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, ListDistributionsByOwnedResourceCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront";
37
+ * const config = {}; // type is CloudFrontClientConfig
38
+ * const client = new CloudFrontClient(config);
39
+ * const input = { // ListDistributionsByOwnedResourceRequest
40
+ * ResourceArn: "STRING_VALUE", // required
41
+ * Marker: "STRING_VALUE",
42
+ * MaxItems: Number("int"),
43
+ * };
44
+ * const command = new ListDistributionsByOwnedResourceCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListDistributionsByOwnedResourceResult
47
+ * // DistributionList: { // DistributionIdOwnerList
48
+ * // Marker: "STRING_VALUE", // required
49
+ * // NextMarker: "STRING_VALUE",
50
+ * // MaxItems: Number("int"), // required
51
+ * // IsTruncated: true || false, // required
52
+ * // Quantity: Number("int"), // required
53
+ * // Items: [ // DistributionIdOwnerItemList
54
+ * // { // DistributionIdOwner
55
+ * // DistributionId: "STRING_VALUE", // required
56
+ * // OwnerAccountId: "STRING_VALUE", // required
57
+ * // },
58
+ * // ],
59
+ * // },
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param ListDistributionsByOwnedResourceCommandInput - {@link ListDistributionsByOwnedResourceCommandInput}
65
+ * @returns {@link ListDistributionsByOwnedResourceCommandOutput}
66
+ * @see {@link ListDistributionsByOwnedResourceCommandInput} for command's `input` shape.
67
+ * @see {@link ListDistributionsByOwnedResourceCommandOutput} for command's `response` shape.
68
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDenied} (client fault)
71
+ * <p>Access denied.</p>
72
+ *
73
+ * @throws {@link EntityNotFound} (client fault)
74
+ * <p>The entity was not found.</p>
75
+ *
76
+ * @throws {@link InvalidArgument} (client fault)
77
+ * <p>An argument is invalid.</p>
78
+ *
79
+ * @throws {@link UnsupportedOperation} (client fault)
80
+ * <p>This operation is not supported in this Amazon Web Services Region.</p>
81
+ *
82
+ * @throws {@link CloudFrontServiceException}
83
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
84
+ *
85
+ *
86
+ * @public
87
+ */
88
+ export declare class ListDistributionsByOwnedResourceCommand extends ListDistributionsByOwnedResourceCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: ListDistributionsByOwnedResourceRequest;
93
+ output: ListDistributionsByOwnedResourceResult;
94
+ };
95
+ sdk: {
96
+ input: ListDistributionsByOwnedResourceCommandInput;
97
+ output: ListDistributionsByOwnedResourceCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -101,6 +101,7 @@ declare const ListDistributionsByRealtimeLogConfigCommand_base: {
101
101
  * // },
102
102
  * // VpcOriginConfig: { // VpcOriginConfig
103
103
  * // VpcOriginId: "STRING_VALUE", // required
104
+ * // OwnerAccountId: "STRING_VALUE",
104
105
  * // OriginReadTimeout: Number("int"),
105
106
  * // OriginKeepaliveTimeout: Number("int"),
106
107
  * // },
@@ -100,6 +100,7 @@ declare const ListDistributionsByWebACLIdCommand_base: {
100
100
  * // },
101
101
  * // VpcOriginConfig: { // VpcOriginConfig
102
102
  * // VpcOriginId: "STRING_VALUE", // required
103
+ * // OwnerAccountId: "STRING_VALUE",
103
104
  * // OriginReadTimeout: Number("int"),
104
105
  * // OriginKeepaliveTimeout: Number("int"),
105
106
  * // },
@@ -99,6 +99,7 @@ declare const ListDistributionsCommand_base: {
99
99
  * // },
100
100
  * // VpcOriginConfig: { // VpcOriginConfig
101
101
  * // VpcOriginId: "STRING_VALUE", // required
102
+ * // OwnerAccountId: "STRING_VALUE",
102
103
  * // OriginReadTimeout: Number("int"),
103
104
  * // OriginKeepaliveTimeout: Number("int"),
104
105
  * // },
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
- import { ListRealtimeLogConfigsRequest, ListRealtimeLogConfigsResult } from "../models/models_1";
4
+ import { ListRealtimeLogConfigsRequest } from "../models/models_1";
5
+ import { ListRealtimeLogConfigsResult } from "../models/models_2";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
- import { ListResponseHeadersPoliciesRequest, ListResponseHeadersPoliciesResult } from "../models/models_1";
4
+ import { ListResponseHeadersPoliciesRequest, ListResponseHeadersPoliciesResult } from "../models/models_2";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
- import { ListStreamingDistributionsRequest } from "../models/models_1";
5
- import { ListStreamingDistributionsResult } from "../models/models_2";
4
+ import { ListStreamingDistributionsRequest, ListStreamingDistributionsResult } from "../models/models_2";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -57,6 +57,7 @@ declare const ListVpcOriginsCommand_base: {
57
57
  * // CreatedTime: new Date("TIMESTAMP"), // required
58
58
  * // LastModifiedTime: new Date("TIMESTAMP"), // required
59
59
  * // Arn: "STRING_VALUE", // required
60
+ * // AccountId: "STRING_VALUE",
60
61
  * // OriginEndpointArn: "STRING_VALUE", // required
61
62
  * // },
62
63
  * // ],
@@ -0,0 +1,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { PutResourcePolicyRequest, PutResourcePolicyResult } from "../models/models_2";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutResourcePolicyCommand}.
14
+ */
15
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutResourcePolicyCommand}.
21
+ */
22
+ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResult, __MetadataBearer {
23
+ }
24
+ declare const PutResourcePolicyCommand_base: {
25
+ new (input: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a resource control policy for a given CloudFront resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, PutResourcePolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, PutResourcePolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront";
37
+ * const config = {}; // type is CloudFrontClientConfig
38
+ * const client = new CloudFrontClient(config);
39
+ * const input = { // PutResourcePolicyRequest
40
+ * ResourceArn: "STRING_VALUE", // required
41
+ * PolicyDocument: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new PutResourcePolicyCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // PutResourcePolicyResult
46
+ * // ResourceArn: "STRING_VALUE",
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
52
+ * @returns {@link PutResourcePolicyCommandOutput}
53
+ * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
54
+ * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
55
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDenied} (client fault)
58
+ * <p>Access denied.</p>
59
+ *
60
+ * @throws {@link EntityNotFound} (client fault)
61
+ * <p>The entity was not found.</p>
62
+ *
63
+ * @throws {@link IllegalUpdate} (client fault)
64
+ * <p>The update contains modifications that are not allowed.</p>
65
+ *
66
+ * @throws {@link InvalidArgument} (client fault)
67
+ * <p>An argument is invalid.</p>
68
+ *
69
+ * @throws {@link PreconditionFailed} (client fault)
70
+ * <p>The precondition in one or more of the request fields evaluated to <code>false</code>.</p>
71
+ *
72
+ * @throws {@link UnsupportedOperation} (client fault)
73
+ * <p>This operation is not supported in this Amazon Web Services Region.</p>
74
+ *
75
+ * @throws {@link CloudFrontServiceException}
76
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: PutResourcePolicyRequest;
86
+ output: PutResourcePolicyResult;
87
+ };
88
+ sdk: {
89
+ input: PutResourcePolicyCommandInput;
90
+ output: PutResourcePolicyCommandOutput;
91
+ };
92
+ };
93
+ }