@aws-sdk/client-acm 3.1020.0 → 3.1022.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 (38) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +81 -32
  3. package/dist-cjs/models/errors.js +2 -0
  4. package/dist-cjs/schemas/schemas_0.js +230 -48
  5. package/dist-es/ACM.js +4 -0
  6. package/dist-es/commands/SearchCertificatesCommand.js +16 -0
  7. package/dist-es/commands/index.js +1 -0
  8. package/dist-es/models/enums.js +60 -32
  9. package/dist-es/models/errors.js +2 -0
  10. package/dist-es/pagination/SearchCertificatesPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +228 -46
  13. package/dist-types/ACM.d.ts +15 -0
  14. package/dist-types/ACMClient.d.ts +3 -2
  15. package/dist-types/commands/DeleteCertificateCommand.d.ts +1 -1
  16. package/dist-types/commands/ExportCertificateCommand.d.ts +4 -1
  17. package/dist-types/commands/ImportCertificateCommand.d.ts +3 -0
  18. package/dist-types/commands/RenewCertificateCommand.d.ts +1 -1
  19. package/dist-types/commands/RevokeCertificateCommand.d.ts +1 -1
  20. package/dist-types/commands/SearchCertificatesCommand.d.ts +303 -0
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/enums.d.ts +122 -70
  23. package/dist-types/models/errors.d.ts +6 -0
  24. package/dist-types/models/models_0.d.ts +1062 -6
  25. package/dist-types/pagination/SearchCertificatesPaginator.d.ts +7 -0
  26. package/dist-types/pagination/index.d.ts +1 -0
  27. package/dist-types/schemas/schemas_0.d.ts +22 -1
  28. package/dist-types/ts3.4/ACM.d.ts +25 -0
  29. package/dist-types/ts3.4/ACMClient.d.ts +6 -0
  30. package/dist-types/ts3.4/commands/SearchCertificatesCommand.d.ts +51 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  32. package/dist-types/ts3.4/models/enums.d.ts +78 -44
  33. package/dist-types/ts3.4/models/errors.d.ts +2 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +570 -0
  35. package/dist-types/ts3.4/pagination/SearchCertificatesPaginator.d.ts +11 -0
  36. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -0
  38. package/package.json +6 -6
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { SearchCertificatesCommandInput, SearchCertificatesCommandOutput } from "../commands/SearchCertificatesCommand";
3
+ import type { ACMPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateSearchCertificates: (config: ACMPaginationConfiguration, input: SearchCertificatesCommandInput, ...rest: any[]) => Paginator<SearchCertificatesCommandOutput>;
@@ -1,2 +1,3 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCertificatesPaginator";
3
+ export * from "./SearchCertificatesPaginator";
@@ -1,5 +1,5 @@
1
1
  import { TypeRegistry } from "@smithy/core/schema";
2
- import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
3
  export declare var ACMServiceException$: StaticErrorSchema;
4
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
5
  export declare var ConflictException$: StaticErrorSchema;
@@ -23,13 +23,19 @@ export declare var ValidationException$: StaticErrorSchema;
23
23
  *
24
24
  */
25
25
  export declare const errorTypeRegistries: TypeRegistry[];
26
+ export declare var AcmCertificateMetadata$: StaticStructureSchema;
26
27
  export declare var AddTagsToCertificateRequest$: StaticStructureSchema;
27
28
  export declare var CertificateDetail$: StaticStructureSchema;
28
29
  export declare var CertificateOptions$: StaticStructureSchema;
30
+ export declare var CertificateSearchResult$: StaticStructureSchema;
29
31
  export declare var CertificateSummary$: StaticStructureSchema;
32
+ export declare var CommonNameFilter$: StaticStructureSchema;
33
+ export declare var CustomAttribute$: StaticStructureSchema;
30
34
  export declare var DeleteCertificateRequest$: StaticStructureSchema;
31
35
  export declare var DescribeCertificateRequest$: StaticStructureSchema;
32
36
  export declare var DescribeCertificateResponse$: StaticStructureSchema;
37
+ export declare var DistinguishedName$: StaticStructureSchema;
38
+ export declare var DnsNameFilter$: StaticStructureSchema;
33
39
  export declare var DomainValidation$: StaticStructureSchema;
34
40
  export declare var DomainValidationOption$: StaticStructureSchema;
35
41
  export declare var ExpiryEventsConfiguration$: StaticStructureSchema;
@@ -48,6 +54,7 @@ export declare var ListCertificatesRequest$: StaticStructureSchema;
48
54
  export declare var ListCertificatesResponse$: StaticStructureSchema;
49
55
  export declare var ListTagsForCertificateRequest$: StaticStructureSchema;
50
56
  export declare var ListTagsForCertificateResponse$: StaticStructureSchema;
57
+ export declare var OtherName$: StaticStructureSchema;
51
58
  export declare var PutAccountConfigurationRequest$: StaticStructureSchema;
52
59
  export declare var RemoveTagsFromCertificateRequest$: StaticStructureSchema;
53
60
  export declare var RenewalSummary$: StaticStructureSchema;
@@ -58,8 +65,21 @@ export declare var ResendValidationEmailRequest$: StaticStructureSchema;
58
65
  export declare var ResourceRecord$: StaticStructureSchema;
59
66
  export declare var RevokeCertificateRequest$: StaticStructureSchema;
60
67
  export declare var RevokeCertificateResponse$: StaticStructureSchema;
68
+ export declare var SearchCertificatesRequest$: StaticStructureSchema;
69
+ export declare var SearchCertificatesResponse$: StaticStructureSchema;
61
70
  export declare var Tag$: StaticStructureSchema;
71
+ export declare var ThrottlingReason$: StaticStructureSchema;
72
+ export declare var TimestampRange$: StaticStructureSchema;
62
73
  export declare var UpdateCertificateOptionsRequest$: StaticStructureSchema;
74
+ export declare var X509Attributes$: StaticStructureSchema;
75
+ export declare var AcmCertificateMetadataFilter$: StaticUnionSchema;
76
+ export declare var CertificateFilter$: StaticUnionSchema;
77
+ export declare var CertificateFilterStatement$: StaticUnionSchema;
78
+ export declare var CertificateMetadata$: StaticUnionSchema;
79
+ export declare var GeneralName$: StaticUnionSchema;
80
+ export declare var SubjectAlternativeNameFilter$: StaticUnionSchema;
81
+ export declare var SubjectFilter$: StaticUnionSchema;
82
+ export declare var X509AttributeFilter$: StaticUnionSchema;
63
83
  export declare var AddTagsToCertificate$: StaticOperationSchema;
64
84
  export declare var DeleteCertificate$: StaticOperationSchema;
65
85
  export declare var DescribeCertificate$: StaticOperationSchema;
@@ -75,4 +95,5 @@ export declare var RenewCertificate$: StaticOperationSchema;
75
95
  export declare var RequestCertificate$: StaticOperationSchema;
76
96
  export declare var ResendValidationEmail$: StaticOperationSchema;
77
97
  export declare var RevokeCertificate$: StaticOperationSchema;
98
+ export declare var SearchCertificates$: StaticOperationSchema;
78
99
  export declare var UpdateCertificateOptions$: StaticOperationSchema;
@@ -66,6 +66,10 @@ import {
66
66
  RevokeCertificateCommandInput,
67
67
  RevokeCertificateCommandOutput,
68
68
  } from "./commands/RevokeCertificateCommand";
69
+ import {
70
+ SearchCertificatesCommandInput,
71
+ SearchCertificatesCommandOutput,
72
+ } from "./commands/SearchCertificatesCommand";
69
73
  import {
70
74
  UpdateCertificateOptionsCommandInput,
71
75
  UpdateCertificateOptionsCommandOutput,
@@ -268,6 +272,20 @@ export interface ACM {
268
272
  options: __HttpHandlerOptions,
269
273
  cb: (err: any, data?: RevokeCertificateCommandOutput) => void
270
274
  ): void;
275
+ searchCertificates(): Promise<SearchCertificatesCommandOutput>;
276
+ searchCertificates(
277
+ args: SearchCertificatesCommandInput,
278
+ options?: __HttpHandlerOptions
279
+ ): Promise<SearchCertificatesCommandOutput>;
280
+ searchCertificates(
281
+ args: SearchCertificatesCommandInput,
282
+ cb: (err: any, data?: SearchCertificatesCommandOutput) => void
283
+ ): void;
284
+ searchCertificates(
285
+ args: SearchCertificatesCommandInput,
286
+ options: __HttpHandlerOptions,
287
+ cb: (err: any, data?: SearchCertificatesCommandOutput) => void
288
+ ): void;
271
289
  updateCertificateOptions(
272
290
  args: UpdateCertificateOptionsCommandInput,
273
291
  options?: __HttpHandlerOptions
@@ -288,6 +306,13 @@ export interface ACM {
288
306
  Exclude<keyof PaginationConfiguration, "client">
289
307
  >
290
308
  ): Paginator<ListCertificatesCommandOutput>;
309
+ paginateSearchCertificates(
310
+ args?: SearchCertificatesCommandInput,
311
+ paginationConfig?: Pick<
312
+ PaginationConfiguration,
313
+ Exclude<keyof PaginationConfiguration, "client">
314
+ >
315
+ ): Paginator<SearchCertificatesCommandOutput>;
291
316
  waitUntilCertificateValidated(
292
317
  args: DescribeCertificateCommandInput,
293
318
  waiterConfig:
@@ -104,6 +104,10 @@ import {
104
104
  RevokeCertificateCommandInput,
105
105
  RevokeCertificateCommandOutput,
106
106
  } from "./commands/RevokeCertificateCommand";
107
+ import {
108
+ SearchCertificatesCommandInput,
109
+ SearchCertificatesCommandOutput,
110
+ } from "./commands/SearchCertificatesCommand";
107
111
  import {
108
112
  UpdateCertificateOptionsCommandInput,
109
113
  UpdateCertificateOptionsCommandOutput,
@@ -131,6 +135,7 @@ export type ServiceInputTypes =
131
135
  | RequestCertificateCommandInput
132
136
  | ResendValidationEmailCommandInput
133
137
  | RevokeCertificateCommandInput
138
+ | SearchCertificatesCommandInput
134
139
  | UpdateCertificateOptionsCommandInput;
135
140
  export type ServiceOutputTypes =
136
141
  | AddTagsToCertificateCommandOutput
@@ -148,6 +153,7 @@ export type ServiceOutputTypes =
148
153
  | RequestCertificateCommandOutput
149
154
  | ResendValidationEmailCommandOutput
150
155
  | RevokeCertificateCommandOutput
156
+ | SearchCertificatesCommandOutput
151
157
  | UpdateCertificateOptionsCommandOutput;
152
158
  export interface ClientDefaults
153
159
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ACMClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../ACMClient";
8
+ import {
9
+ SearchCertificatesRequest,
10
+ SearchCertificatesResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface SearchCertificatesCommandInput
15
+ extends SearchCertificatesRequest {}
16
+ export interface SearchCertificatesCommandOutput
17
+ extends SearchCertificatesResponse,
18
+ __MetadataBearer {}
19
+ declare const SearchCertificatesCommand_base: {
20
+ new (
21
+ input: SearchCertificatesCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ SearchCertificatesCommandInput,
24
+ SearchCertificatesCommandOutput,
25
+ ACMClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ ...[input]: [] | [SearchCertificatesCommandInput]
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ SearchCertificatesCommandInput,
33
+ SearchCertificatesCommandOutput,
34
+ ACMClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class SearchCertificatesCommand extends SearchCertificatesCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: SearchCertificatesRequest;
44
+ output: SearchCertificatesResponse;
45
+ };
46
+ sdk: {
47
+ input: SearchCertificatesCommandInput;
48
+ output: SearchCertificatesCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -13,4 +13,5 @@ export * from "./RenewCertificateCommand";
13
13
  export * from "./RequestCertificateCommand";
14
14
  export * from "./ResendValidationEmailCommand";
15
15
  export * from "./RevokeCertificateCommand";
16
+ export * from "./SearchCertificatesCommand";
16
17
  export * from "./UpdateCertificateOptionsCommand";
@@ -1,7 +1,45 @@
1
- export declare const RecordType: {
2
- readonly CNAME: "CNAME";
1
+ export declare const CertificateExport: {
2
+ readonly DISABLED: "DISABLED";
3
+ readonly ENABLED: "ENABLED";
3
4
  };
4
- export type RecordType = (typeof RecordType)[keyof typeof RecordType];
5
+ export type CertificateExport =
6
+ (typeof CertificateExport)[keyof typeof CertificateExport];
7
+ export declare const CertificateManagedBy: {
8
+ readonly CLOUDFRONT: "CLOUDFRONT";
9
+ };
10
+ export type CertificateManagedBy =
11
+ (typeof CertificateManagedBy)[keyof typeof CertificateManagedBy];
12
+ export declare const RenewalEligibility: {
13
+ readonly ELIGIBLE: "ELIGIBLE";
14
+ readonly INELIGIBLE: "INELIGIBLE";
15
+ };
16
+ export type RenewalEligibility =
17
+ (typeof RenewalEligibility)[keyof typeof RenewalEligibility];
18
+ export declare const RenewalStatus: {
19
+ readonly FAILED: "FAILED";
20
+ readonly PENDING_AUTO_RENEWAL: "PENDING_AUTO_RENEWAL";
21
+ readonly PENDING_VALIDATION: "PENDING_VALIDATION";
22
+ readonly SUCCESS: "SUCCESS";
23
+ };
24
+ export type RenewalStatus = (typeof RenewalStatus)[keyof typeof RenewalStatus];
25
+ export declare const CertificateStatus: {
26
+ readonly EXPIRED: "EXPIRED";
27
+ readonly FAILED: "FAILED";
28
+ readonly INACTIVE: "INACTIVE";
29
+ readonly ISSUED: "ISSUED";
30
+ readonly PENDING_VALIDATION: "PENDING_VALIDATION";
31
+ readonly REVOKED: "REVOKED";
32
+ readonly VALIDATION_TIMED_OUT: "VALIDATION_TIMED_OUT";
33
+ };
34
+ export type CertificateStatus =
35
+ (typeof CertificateStatus)[keyof typeof CertificateStatus];
36
+ export declare const CertificateType: {
37
+ readonly AMAZON_ISSUED: "AMAZON_ISSUED";
38
+ readonly IMPORTED: "IMPORTED";
39
+ readonly PRIVATE: "PRIVATE";
40
+ };
41
+ export type CertificateType =
42
+ (typeof CertificateType)[keyof typeof CertificateType];
5
43
  export declare const ValidationMethod: {
6
44
  readonly DNS: "DNS";
7
45
  readonly EMAIL: "EMAIL";
@@ -9,6 +47,10 @@ export declare const ValidationMethod: {
9
47
  };
10
48
  export type ValidationMethod =
11
49
  (typeof ValidationMethod)[keyof typeof ValidationMethod];
50
+ export declare const RecordType: {
51
+ readonly CNAME: "CNAME";
52
+ };
53
+ export type RecordType = (typeof RecordType)[keyof typeof RecordType];
12
54
  export declare const DomainStatus: {
13
55
  readonly FAILED: "FAILED";
14
56
  readonly PENDING_VALIDATION: "PENDING_VALIDATION";
@@ -75,36 +117,12 @@ export declare const KeyUsageName: {
75
117
  readonly NON_REPUDATION: "NON_REPUDIATION";
76
118
  };
77
119
  export type KeyUsageName = (typeof KeyUsageName)[keyof typeof KeyUsageName];
78
- export declare const CertificateManagedBy: {
79
- readonly CLOUDFRONT: "CLOUDFRONT";
80
- };
81
- export type CertificateManagedBy =
82
- (typeof CertificateManagedBy)[keyof typeof CertificateManagedBy];
83
120
  export declare const CertificateTransparencyLoggingPreference: {
84
121
  readonly DISABLED: "DISABLED";
85
122
  readonly ENABLED: "ENABLED";
86
123
  };
87
124
  export type CertificateTransparencyLoggingPreference =
88
125
  (typeof CertificateTransparencyLoggingPreference)[keyof typeof CertificateTransparencyLoggingPreference];
89
- export declare const CertificateExport: {
90
- readonly DISABLED: "DISABLED";
91
- readonly ENABLED: "ENABLED";
92
- };
93
- export type CertificateExport =
94
- (typeof CertificateExport)[keyof typeof CertificateExport];
95
- export declare const RenewalEligibility: {
96
- readonly ELIGIBLE: "ELIGIBLE";
97
- readonly INELIGIBLE: "INELIGIBLE";
98
- };
99
- export type RenewalEligibility =
100
- (typeof RenewalEligibility)[keyof typeof RenewalEligibility];
101
- export declare const RenewalStatus: {
102
- readonly FAILED: "FAILED";
103
- readonly PENDING_AUTO_RENEWAL: "PENDING_AUTO_RENEWAL";
104
- readonly PENDING_VALIDATION: "PENDING_VALIDATION";
105
- readonly SUCCESS: "SUCCESS";
106
- };
107
- export type RenewalStatus = (typeof RenewalStatus)[keyof typeof RenewalStatus];
108
126
  export declare const RevocationReason: {
109
127
  readonly AFFILIATION_CHANGED: "AFFILIATION_CHANGED";
110
128
  readonly A_A_COMPROMISE: "A_A_COMPROMISE";
@@ -120,24 +138,12 @@ export declare const RevocationReason: {
120
138
  };
121
139
  export type RevocationReason =
122
140
  (typeof RevocationReason)[keyof typeof RevocationReason];
123
- export declare const CertificateStatus: {
124
- readonly EXPIRED: "EXPIRED";
125
- readonly FAILED: "FAILED";
126
- readonly INACTIVE: "INACTIVE";
127
- readonly ISSUED: "ISSUED";
128
- readonly PENDING_VALIDATION: "PENDING_VALIDATION";
129
- readonly REVOKED: "REVOKED";
130
- readonly VALIDATION_TIMED_OUT: "VALIDATION_TIMED_OUT";
141
+ export declare const ComparisonOperator: {
142
+ readonly CONTAINS: "CONTAINS";
143
+ readonly EQUALS: "EQUALS";
131
144
  };
132
- export type CertificateStatus =
133
- (typeof CertificateStatus)[keyof typeof CertificateStatus];
134
- export declare const CertificateType: {
135
- readonly AMAZON_ISSUED: "AMAZON_ISSUED";
136
- readonly IMPORTED: "IMPORTED";
137
- readonly PRIVATE: "PRIVATE";
138
- };
139
- export type CertificateType =
140
- (typeof CertificateType)[keyof typeof CertificateType];
145
+ export type ComparisonOperator =
146
+ (typeof ComparisonOperator)[keyof typeof ComparisonOperator];
141
147
  export declare const SortBy: {
142
148
  readonly CREATED_AT: "CREATED_AT";
143
149
  };
@@ -147,3 +153,31 @@ export declare const SortOrder: {
147
153
  readonly DESCENDING: "DESCENDING";
148
154
  };
149
155
  export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
156
+ export declare const SearchCertificatesSortBy: {
157
+ readonly CERTIFICATE_ARN: "CERTIFICATE_ARN";
158
+ readonly COMMON_NAME: "COMMON_NAME";
159
+ readonly CREATED_AT: "CREATED_AT";
160
+ readonly EXPORTED: "EXPORTED";
161
+ readonly EXPORT_OPTION: "EXPORT_OPTION";
162
+ readonly IMPORTED_AT: "IMPORTED_AT";
163
+ readonly IN_USE: "IN_USE";
164
+ readonly ISSUED_AT: "ISSUED_AT";
165
+ readonly KEY_ALGORITHM: "KEY_ALGORITHM";
166
+ readonly MANAGED_BY: "MANAGED_BY";
167
+ readonly NOT_AFTER: "NOT_AFTER";
168
+ readonly NOT_BEFORE: "NOT_BEFORE";
169
+ readonly RENEWAL_ELIGIBILITY: "RENEWAL_ELIGIBILITY";
170
+ readonly RENEWAL_STATUS: "RENEWAL_STATUS";
171
+ readonly REVOKED_AT: "REVOKED_AT";
172
+ readonly STATUS: "STATUS";
173
+ readonly TYPE: "TYPE";
174
+ readonly VALIDATION_METHOD: "VALIDATION_METHOD";
175
+ };
176
+ export type SearchCertificatesSortBy =
177
+ (typeof SearchCertificatesSortBy)[keyof typeof SearchCertificatesSortBy];
178
+ export declare const SearchCertificatesSortOrder: {
179
+ readonly ASCENDING: "ASCENDING";
180
+ readonly DESCENDING: "DESCENDING";
181
+ };
182
+ export type SearchCertificatesSortOrder =
183
+ (typeof SearchCertificatesSortOrder)[keyof typeof SearchCertificatesSortOrder];
@@ -1,5 +1,6 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { ACMServiceException as __BaseException } from "./ACMServiceException";
3
+ import { ThrottlingReason } from "./models_0";
3
4
  export declare class AccessDeniedException extends __BaseException {
4
5
  readonly name: "AccessDeniedException";
5
6
  readonly $fault: "client";
@@ -44,6 +45,7 @@ export declare class TagPolicyException extends __BaseException {
44
45
  export declare class ThrottlingException extends __BaseException {
45
46
  readonly name: "ThrottlingException";
46
47
  readonly $fault: "client";
48
+ throttlingReasons?: ThrottlingReason[] | undefined;
47
49
  constructor(
48
50
  opts: __ExceptionOptionType<ThrottlingException, __BaseException>
49
51
  );