The best way to control Claude Code, Codex and more from any computer or phone

main
ts 40 lines 1.43 KB
Raw
1 import type * as acm from "@distilled.cloud/aws/acm";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface SearchCertificatesRequest extends acm.SearchCertificatesRequest {}
6
7 /**
8 * Runtime binding for `acm:SearchCertificates`.
9 *
10 * An account-level operation (no certificate argument) that searches the ACM
11 * certificates in `us-east-1` with richer filtering than
12 * {@link ListCertificates} — X.509 attributes, status, type, and renewal
13 * eligibility can be combined in a filter statement. Provide the
14 * implementation with `Effect.provide(AWS.ACM.SearchCertificatesHttp)`.
15 * ### Inspecting Certificates
16 * **Example:** Search Certificates by ARN
17 * ```typescript
18 * // init — account-level binding takes no resource
19 * const searchCertificates = yield* AWS.ACM.SearchCertificates();
20 *
21 * // runtime
22 * const result = yield* searchCertificates({
23 * FilterStatement: { Filter: { CertificateArn: certificateArn } },
24 * });
25 * const arns = (result.Results ?? []).map((r) => r.CertificateArn);
26 * ```
27 *
28 * @binding
29 */
30 export interface SearchCertificates extends Binding.Service<
31 SearchCertificates,
32 "AWS.ACM.SearchCertificates",
33 () => Effect.Effect<
34 (
35 request?: SearchCertificatesRequest,
36 ) => Effect.Effect<acm.SearchCertificatesResponse, acm.SearchCertificatesError>
37 >
38 > {}
39
40 export const SearchCertificates = Binding.Service<SearchCertificates>("AWS.ACM.SearchCertificates");