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

main
ts 192 lines 6.01 KB
Raw
1 import type * as WAFV2 from "@distilled.cloud/aws/wafv2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `wafv2:DescribeManagedRuleGroup` — read the rules,
7 * labels, and WCU capacity of a vendor managed rule group.
8 *
9 * Provide `WAFv2.DescribeManagedRuleGroupHttp` on the hosting Lambda
10 * Function to satisfy the requirement.
11 * ### Managed Rule Group Catalog
12 * **Example:** Describe the AWS Common Rule Set
13 * ```typescript
14 * // init — grants wafv2:DescribeManagedRuleGroup
15 * const describeManagedRuleGroup = yield* AWS.WAFv2.DescribeManagedRuleGroup();
16 *
17 * // runtime
18 * const { Capacity, Rules } = yield* describeManagedRuleGroup({
19 * VendorName: "AWS",
20 * Name: "AWSManagedRulesCommonRuleSet",
21 * Scope: "REGIONAL",
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface DescribeManagedRuleGroup extends Binding.Service<
28 DescribeManagedRuleGroup,
29 "AWS.WAFv2.DescribeManagedRuleGroup",
30 () => Effect.Effect<
31 (
32 request: WAFV2.DescribeManagedRuleGroupRequest,
33 ) => Effect.Effect<WAFV2.DescribeManagedRuleGroupResponse, WAFV2.DescribeManagedRuleGroupError>
34 >
35 > {}
36
37 export const DescribeManagedRuleGroup = Binding.Service<DescribeManagedRuleGroup>(
38 "AWS.WAFv2.DescribeManagedRuleGroup",
39 );
40
41 /**
42 * Runtime binding for `wafv2:ListAvailableManagedRuleGroups` — list the
43 * vendor managed rule groups available to the account (AWS Managed Rules +
44 * subscribed Marketplace groups).
45 *
46 * Provide `WAFv2.ListAvailableManagedRuleGroupsHttp` on the hosting Lambda
47 * Function to satisfy the requirement.
48 * ### Managed Rule Group Catalog
49 * **Example:** List Available Managed Rule Groups
50 * ```typescript
51 * // init — grants wafv2:ListAvailableManagedRuleGroups
52 * const listManagedRuleGroups = yield* AWS.WAFv2.ListAvailableManagedRuleGroups();
53 *
54 * // runtime
55 * const { ManagedRuleGroups } = yield* listManagedRuleGroups({
56 * Scope: "REGIONAL",
57 * });
58 * ```
59 *
60 * @binding
61 */
62 export interface ListAvailableManagedRuleGroups extends Binding.Service<
63 ListAvailableManagedRuleGroups,
64 "AWS.WAFv2.ListAvailableManagedRuleGroups",
65 () => Effect.Effect<
66 (
67 request: WAFV2.ListAvailableManagedRuleGroupsRequest,
68 ) => Effect.Effect<
69 WAFV2.ListAvailableManagedRuleGroupsResponse,
70 WAFV2.ListAvailableManagedRuleGroupsError
71 >
72 >
73 > {}
74
75 export const ListAvailableManagedRuleGroups = Binding.Service<ListAvailableManagedRuleGroups>(
76 "AWS.WAFv2.ListAvailableManagedRuleGroups",
77 );
78
79 /**
80 * Runtime binding for `wafv2:ListAvailableManagedRuleGroupVersions` — list
81 * the published versions of a vendor managed rule group.
82 *
83 * Provide `WAFv2.ListAvailableManagedRuleGroupVersionsHttp` on the hosting
84 * Lambda Function to satisfy the requirement.
85 * ### Managed Rule Group Catalog
86 * **Example:** List Versions of the Common Rule Set
87 * ```typescript
88 * // init — grants wafv2:ListAvailableManagedRuleGroupVersions
89 * const listVersions = yield* AWS.WAFv2.ListAvailableManagedRuleGroupVersions();
90 *
91 * // runtime
92 * const { Versions, CurrentDefaultVersion } = yield* listVersions({
93 * VendorName: "AWS",
94 * Name: "AWSManagedRulesCommonRuleSet",
95 * Scope: "REGIONAL",
96 * });
97 * ```
98 *
99 * @binding
100 */
101 export interface ListAvailableManagedRuleGroupVersions extends Binding.Service<
102 ListAvailableManagedRuleGroupVersions,
103 "AWS.WAFv2.ListAvailableManagedRuleGroupVersions",
104 () => Effect.Effect<
105 (
106 request: WAFV2.ListAvailableManagedRuleGroupVersionsRequest,
107 ) => Effect.Effect<
108 WAFV2.ListAvailableManagedRuleGroupVersionsResponse,
109 WAFV2.ListAvailableManagedRuleGroupVersionsError
110 >
111 >
112 > {}
113
114 export const ListAvailableManagedRuleGroupVersions =
115 Binding.Service<ListAvailableManagedRuleGroupVersions>(
116 "AWS.WAFv2.ListAvailableManagedRuleGroupVersions",
117 );
118
119 /**
120 * Runtime binding for `wafv2:DescribeAllManagedProducts` — read the
121 * catalog of managed rule group products from AWS and Marketplace vendors.
122 *
123 * Provide `WAFv2.DescribeAllManagedProductsHttp` on the hosting Lambda
124 * Function to satisfy the requirement.
125 * ### Managed Rule Group Catalog
126 * **Example:** List All Managed Products
127 * ```typescript
128 * // init — grants wafv2:DescribeAllManagedProducts
129 * const describeAllManagedProducts = yield* AWS.WAFv2.DescribeAllManagedProducts();
130 *
131 * // runtime
132 * const { ManagedProducts } = yield* describeAllManagedProducts({
133 * Scope: "REGIONAL",
134 * });
135 * ```
136 *
137 * @binding
138 */
139 export interface DescribeAllManagedProducts extends Binding.Service<
140 DescribeAllManagedProducts,
141 "AWS.WAFv2.DescribeAllManagedProducts",
142 () => Effect.Effect<
143 (
144 request: WAFV2.DescribeAllManagedProductsRequest,
145 ) => Effect.Effect<
146 WAFV2.DescribeAllManagedProductsResponse,
147 WAFV2.DescribeAllManagedProductsError
148 >
149 >
150 > {}
151
152 export const DescribeAllManagedProducts = Binding.Service<DescribeAllManagedProducts>(
153 "AWS.WAFv2.DescribeAllManagedProducts",
154 );
155
156 /**
157 * Runtime binding for `wafv2:DescribeManagedProductsByVendor` — read the
158 * managed rule group products of a single vendor.
159 *
160 * Provide `WAFv2.DescribeManagedProductsByVendorHttp` on the hosting
161 * Lambda Function to satisfy the requirement.
162 * ### Managed Rule Group Catalog
163 * **Example:** List AWS-Vended Managed Products
164 * ```typescript
165 * // init — grants wafv2:DescribeManagedProductsByVendor
166 * const describeByVendor = yield* AWS.WAFv2.DescribeManagedProductsByVendor();
167 *
168 * // runtime
169 * const { ManagedProducts } = yield* describeByVendor({
170 * VendorName: "AWS",
171 * Scope: "REGIONAL",
172 * });
173 * ```
174 *
175 * @binding
176 */
177 export interface DescribeManagedProductsByVendor extends Binding.Service<
178 DescribeManagedProductsByVendor,
179 "AWS.WAFv2.DescribeManagedProductsByVendor",
180 () => Effect.Effect<
181 (
182 request: WAFV2.DescribeManagedProductsByVendorRequest,
183 ) => Effect.Effect<
184 WAFV2.DescribeManagedProductsByVendorResponse,
185 WAFV2.DescribeManagedProductsByVendorError
186 >
187 >
188 > {}
189
190 export const DescribeManagedProductsByVendor = Binding.Service<DescribeManagedProductsByVendor>(
191 "AWS.WAFv2.DescribeManagedProductsByVendor",
192 );