@aws-lite/cloudfront-types 0.0.13 → 0.0.15

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 (2) hide show
  1. package/index.d.ts +9 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -11,6 +11,8 @@ import {
11
11
  // $IMPORTS_END
12
12
  } from "@aws-sdk/client-cloudfront";
13
13
 
14
+ import type { AwsLiteMethodOptions } from "@aws-lite/client";
15
+
14
16
  declare interface AwsLiteCloudFront {
15
17
  /* ! Do not remove METHODS_START / METHODS_END ! */
16
18
  // $METHODS_START
@@ -19,43 +21,43 @@ declare interface AwsLiteCloudFront {
19
21
  * - AWS docs: {@link https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html CloudFront: CreateDistribution}
20
22
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/cloudfront/readme.md#CreateDistribution CloudFront: CreateDistribution}
21
23
  */
22
- CreateDistribution: (input: { DistributionConfig: Record<string, any> }) => Promise<CreateDistributionResponse>
24
+ CreateDistribution: (input: AwsLiteMethodOptions & { DistributionConfig: Record<string, any> }) => Promise<CreateDistributionResponse>
23
25
  /**
24
26
  * @description
25
27
  * - AWS docs: {@link https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateInvalidation.html CloudFront: CreateInvalidation}
26
28
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/cloudfront/readme.md#CreateInvalidation CloudFront: CreateInvalidation}
27
29
  */
28
- CreateInvalidation: (input: { Id: string, InvalidationBatch?: string | any[], CallerReference: string }) => Promise<CreateInvalidationResponse>
30
+ CreateInvalidation: (input: AwsLiteMethodOptions & { Id: string, InvalidationBatch?: string | any[], CallerReference: string }) => Promise<CreateInvalidationResponse>
29
31
  /**
30
32
  * @description
31
33
  * - AWS docs: {@link https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DeleteDistribution.html CloudFront: DeleteDistribution}
32
34
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/cloudfront/readme.md#DeleteDistribution CloudFront: DeleteDistribution}
33
35
  */
34
- DeleteDistribution: (input: { Id: string, IfMatch?: string }) => Promise<DeleteDistributionResponse>
36
+ DeleteDistribution: (input: AwsLiteMethodOptions & { Id: string, IfMatch?: string }) => Promise<DeleteDistributionResponse>
35
37
  /**
36
38
  * @description
37
39
  * - AWS docs: {@link https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html CloudFront: GetDistribution}
38
40
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/cloudfront/readme.md#GetDistribution CloudFront: GetDistribution}
39
41
  */
40
- GetDistribution: (input: { Id: string }) => Promise<GetDistributionResponse>
42
+ GetDistribution: (input: AwsLiteMethodOptions & { Id: string }) => Promise<GetDistributionResponse>
41
43
  /**
42
44
  * @description
43
45
  * - AWS docs: {@link https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistributionConfig.html CloudFront: GetDistributionConfig}
44
46
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/cloudfront/readme.md#GetDistributionConfig CloudFront: GetDistributionConfig}
45
47
  */
46
- GetDistributionConfig: (input: { Id: string }) => Promise<GetDistributionConfigResponse>
48
+ GetDistributionConfig: (input: AwsLiteMethodOptions & { Id: string }) => Promise<GetDistributionConfigResponse>
47
49
  /**
48
50
  * @description
49
51
  * - AWS docs: {@link https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ListDistributions.html CloudFront: ListDistributions}
50
52
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/cloudfront/readme.md#ListDistributions CloudFront: ListDistributions}
51
53
  */
52
- ListDistributions: (input: { Marker?: string, MaxItems?: number, paginate?: boolean | string }) => Promise<ListDistributionsResponse>
54
+ ListDistributions: (input: AwsLiteMethodOptions & { Marker?: string, MaxItems?: number, paginate?: boolean | string }) => Promise<ListDistributionsResponse>
53
55
  /**
54
56
  * @description
55
57
  * - AWS docs: {@link https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html CloudFront: UpdateDistribution}
56
58
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/cloudfront/readme.md#UpdateDistribution CloudFront: UpdateDistribution}
57
59
  */
58
- UpdateDistribution: (input: { DistributionConfig: Record<string, any>, Id: string, IfMatch: string }) => Promise<UpdateDistributionResponse>
60
+ UpdateDistribution: (input: AwsLiteMethodOptions & { DistributionConfig: Record<string, any>, Id: string, IfMatch: string }) => Promise<UpdateDistributionResponse>
59
61
  // $METHODS_END
60
62
  }
61
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lite/cloudfront-types",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Type definitions for the `@aws-lite/cloudfront` plugin",
5
5
  "homepage": "https://aws-lite.org/services/cloudfront",
6
6
  "repository": {