@awboost/cfn-resource-types 0.1.63 → 0.1.65

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.
@@ -72,6 +72,10 @@ export type BedrockAgentProperties = {
72
72
  * A map of tag keys and values
73
73
  */
74
74
  Tags?: TagsMap;
75
+ /**
76
+ * A map of tag keys and values
77
+ */
78
+ TestAliasTags?: TagsMap;
75
79
  };
76
80
  /**
77
81
  * Attribute type definition for `AWS::Bedrock::Agent`.
@@ -0,0 +1,351 @@
1
+ import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
2
+ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
3
+ /**
4
+ * Definition of AWS::Bedrock::Guardrail Resource Type
5
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html}
6
+ */
7
+ export type BedrockGuardrailProperties = {
8
+ /**
9
+ * Messaging for when violations are detected in text
10
+ * @minLength `1`
11
+ * @maxLength `500`
12
+ */
13
+ BlockedInputMessaging: string;
14
+ /**
15
+ * Messaging for when violations are detected in text
16
+ * @minLength `1`
17
+ * @maxLength `500`
18
+ */
19
+ BlockedOutputsMessaging: string;
20
+ /**
21
+ * Content policy config for a guardrail.
22
+ */
23
+ ContentPolicyConfig?: ContentPolicyConfig;
24
+ /**
25
+ * Description of the guardrail or its version
26
+ * @minLength `1`
27
+ * @maxLength `200`
28
+ */
29
+ Description?: string;
30
+ /**
31
+ * The KMS key with which the guardrail was encrypted at rest
32
+ * @minLength `1`
33
+ * @maxLength `2048`
34
+ * @pattern `^arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}$`
35
+ */
36
+ KmsKeyArn?: string;
37
+ /**
38
+ * Name of the guardrail
39
+ * @minLength `1`
40
+ * @maxLength `50`
41
+ * @pattern `^[0-9a-zA-Z-_]+$`
42
+ */
43
+ Name: string;
44
+ /**
45
+ * Sensitive information policy config for a guardrail.
46
+ */
47
+ SensitiveInformationPolicyConfig?: SensitiveInformationPolicyConfig;
48
+ /**
49
+ * List of Tags
50
+ * @minLength `0`
51
+ * @maxLength `200`
52
+ */
53
+ Tags?: Tag[];
54
+ /**
55
+ * Topic policy config for a guardrail.
56
+ */
57
+ TopicPolicyConfig?: TopicPolicyConfig;
58
+ /**
59
+ * Word policy config for a guardrail.
60
+ */
61
+ WordPolicyConfig?: WordPolicyConfig;
62
+ };
63
+ /**
64
+ * Attribute type definition for `AWS::Bedrock::Guardrail`.
65
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html#aws-resource-bedrock-guardrail-return-values}
66
+ */
67
+ export type BedrockGuardrailAttributes = {
68
+ /**
69
+ * Time Stamp
70
+ */
71
+ CreatedAt: string;
72
+ /**
73
+ * List of failure recommendations
74
+ * @maxLength `100`
75
+ */
76
+ FailureRecommendations: string[];
77
+ /**
78
+ * Arn representation for the guardrail
79
+ * @maxLength `2048`
80
+ * @pattern `^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail/[a-z0-9]+$`
81
+ */
82
+ GuardrailArn: string;
83
+ /**
84
+ * Unique id for the guardrail
85
+ * @maxLength `64`
86
+ * @pattern `^[a-z0-9]+$`
87
+ */
88
+ GuardrailId: string;
89
+ /**
90
+ * Status of the guardrail
91
+ */
92
+ Status: GuardrailStatus;
93
+ /**
94
+ * List of status reasons
95
+ * @maxLength `100`
96
+ */
97
+ StatusReasons: string[];
98
+ /**
99
+ * Time Stamp
100
+ */
101
+ UpdatedAt: string;
102
+ /**
103
+ * Guardrail version
104
+ * @pattern `^(([1-9][0-9]{0,7})|(DRAFT))$`
105
+ */
106
+ Version: string;
107
+ };
108
+ /**
109
+ * Type definition for `AWS::Bedrock::Guardrail.ContentFilterConfig`.
110
+ * Content filter config in content policy.
111
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfilterconfig.html}
112
+ */
113
+ export type ContentFilterConfig = {
114
+ /**
115
+ * Strength for filters
116
+ */
117
+ InputStrength: FilterStrength;
118
+ /**
119
+ * Strength for filters
120
+ */
121
+ OutputStrength: FilterStrength;
122
+ /**
123
+ * Type of filter in content policy
124
+ */
125
+ Type: ContentFilterType;
126
+ };
127
+ /**
128
+ * Type definition for `AWS::Bedrock::Guardrail.ContentFilterType`.
129
+ * Type of filter in content policy
130
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentfiltertype.html}
131
+ */
132
+ export type ContentFilterType = "SEXUAL" | "VIOLENCE" | "HATE" | "INSULTS" | "MISCONDUCT" | "PROMPT_ATTACK";
133
+ /**
134
+ * Type definition for `AWS::Bedrock::Guardrail.ContentPolicyConfig`.
135
+ * Content policy config for a guardrail.
136
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-contentpolicyconfig.html}
137
+ */
138
+ export type ContentPolicyConfig = {
139
+ /**
140
+ * List of content filter configs in content policy.
141
+ * @minLength `1`
142
+ * @maxLength `6`
143
+ */
144
+ FiltersConfig: ContentFilterConfig[];
145
+ };
146
+ /**
147
+ * Type definition for `AWS::Bedrock::Guardrail.FilterStrength`.
148
+ * Strength for filters
149
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-filterstrength.html}
150
+ */
151
+ export type FilterStrength = "NONE" | "LOW" | "MEDIUM" | "HIGH";
152
+ /**
153
+ * Type definition for `AWS::Bedrock::Guardrail.GuardrailStatus`.
154
+ * Status of the guardrail
155
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-guardrailstatus.html}
156
+ */
157
+ export type GuardrailStatus = "CREATING" | "UPDATING" | "VERSIONING" | "READY" | "FAILED" | "DELETING";
158
+ /**
159
+ * Type definition for `AWS::Bedrock::Guardrail.ManagedWordsConfig`.
160
+ * A managed words config.
161
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordsconfig.html}
162
+ */
163
+ export type ManagedWordsConfig = {
164
+ /**
165
+ * Options for managed words.
166
+ */
167
+ Type: ManagedWordsType;
168
+ };
169
+ /**
170
+ * Type definition for `AWS::Bedrock::Guardrail.ManagedWordsType`.
171
+ * Options for managed words.
172
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-managedwordstype.html}
173
+ */
174
+ export type ManagedWordsType = "PROFANITY";
175
+ /**
176
+ * Type definition for `AWS::Bedrock::Guardrail.PiiEntityConfig`.
177
+ * Pii entity configuration.
178
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientityconfig.html}
179
+ */
180
+ export type PiiEntityConfig = {
181
+ /**
182
+ * Options for sensitive information action.
183
+ */
184
+ Action: SensitiveInformationAction;
185
+ /**
186
+ * The currently supported PII entities
187
+ */
188
+ Type: PiiEntityType;
189
+ };
190
+ /**
191
+ * Type definition for `AWS::Bedrock::Guardrail.PiiEntityType`.
192
+ * The currently supported PII entities
193
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-piientitytype.html}
194
+ */
195
+ export type PiiEntityType = "ADDRESS" | "AGE" | "AWS_ACCESS_KEY" | "AWS_SECRET_KEY" | "CA_HEALTH_NUMBER" | "CA_SOCIAL_INSURANCE_NUMBER" | "CREDIT_DEBIT_CARD_CVV" | "CREDIT_DEBIT_CARD_EXPIRY" | "CREDIT_DEBIT_CARD_NUMBER" | "DRIVER_ID" | "EMAIL" | "INTERNATIONAL_BANK_ACCOUNT_NUMBER" | "IP_ADDRESS" | "LICENSE_PLATE" | "MAC_ADDRESS" | "NAME" | "PASSWORD" | "PHONE" | "PIN" | "SWIFT_CODE" | "UK_NATIONAL_HEALTH_SERVICE_NUMBER" | "UK_NATIONAL_INSURANCE_NUMBER" | "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" | "URL" | "USERNAME" | "US_BANK_ACCOUNT_NUMBER" | "US_BANK_ROUTING_NUMBER" | "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" | "US_PASSPORT_NUMBER" | "US_SOCIAL_SECURITY_NUMBER" | "VEHICLE_IDENTIFICATION_NUMBER";
196
+ /**
197
+ * Type definition for `AWS::Bedrock::Guardrail.RegexConfig`.
198
+ * A regex configuration.
199
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-regexconfig.html}
200
+ */
201
+ export type RegexConfig = {
202
+ /**
203
+ * Options for sensitive information action.
204
+ */
205
+ Action: SensitiveInformationAction;
206
+ /**
207
+ * The regex description.
208
+ * @minLength `1`
209
+ * @maxLength `1000`
210
+ */
211
+ Description?: string;
212
+ /**
213
+ * The regex name.
214
+ * @minLength `1`
215
+ * @maxLength `100`
216
+ */
217
+ Name: string;
218
+ /**
219
+ * The regex pattern.
220
+ * @minLength `1`
221
+ */
222
+ Pattern: string;
223
+ };
224
+ /**
225
+ * Type definition for `AWS::Bedrock::Guardrail.SensitiveInformationAction`.
226
+ * Options for sensitive information action.
227
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationaction.html}
228
+ */
229
+ export type SensitiveInformationAction = "BLOCK" | "ANONYMIZE";
230
+ /**
231
+ * Type definition for `AWS::Bedrock::Guardrail.SensitiveInformationPolicyConfig`.
232
+ * Sensitive information policy config for a guardrail.
233
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-sensitiveinformationpolicyconfig.html}
234
+ */
235
+ export type SensitiveInformationPolicyConfig = {
236
+ /**
237
+ * List of entities.
238
+ * @minLength `1`
239
+ */
240
+ PiiEntitiesConfig?: PiiEntityConfig[];
241
+ /**
242
+ * List of regex.
243
+ * @minLength `1`
244
+ */
245
+ RegexesConfig?: RegexConfig[];
246
+ };
247
+ /**
248
+ * Type definition for `AWS::Bedrock::Guardrail.Tag`.
249
+ * Definition of the key/value pair for a tag
250
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-tag.html}
251
+ */
252
+ export type Tag = {
253
+ /**
254
+ * Tag Key
255
+ * @minLength `1`
256
+ * @maxLength `128`
257
+ * @pattern `^[a-zA-Z0-9\s._:/=+@-]*$`
258
+ */
259
+ Key: string;
260
+ /**
261
+ * Tag Value
262
+ * @minLength `0`
263
+ * @maxLength `256`
264
+ * @pattern `^[a-zA-Z0-9\s._:/=+@-]*$`
265
+ */
266
+ Value: string;
267
+ };
268
+ /**
269
+ * Type definition for `AWS::Bedrock::Guardrail.TopicConfig`.
270
+ * Topic config in topic policy.
271
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicconfig.html}
272
+ */
273
+ export type TopicConfig = {
274
+ /**
275
+ * Definition of topic in topic policy
276
+ * @minLength `1`
277
+ * @maxLength `200`
278
+ */
279
+ Definition: string;
280
+ /**
281
+ * List of text examples
282
+ * @minLength `0`
283
+ */
284
+ Examples?: string[];
285
+ /**
286
+ * Name of topic in topic policy
287
+ * @minLength `1`
288
+ * @maxLength `100`
289
+ * @pattern `^[0-9a-zA-Z-_ !?.]+$`
290
+ */
291
+ Name: string;
292
+ /**
293
+ * Type of topic in a policy
294
+ */
295
+ Type: TopicType;
296
+ };
297
+ /**
298
+ * Type definition for `AWS::Bedrock::Guardrail.TopicPolicyConfig`.
299
+ * Topic policy config for a guardrail.
300
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topicpolicyconfig.html}
301
+ */
302
+ export type TopicPolicyConfig = {
303
+ /**
304
+ * List of topic configs in topic policy.
305
+ * @minLength `1`
306
+ */
307
+ TopicsConfig: TopicConfig[];
308
+ };
309
+ /**
310
+ * Type definition for `AWS::Bedrock::Guardrail.TopicType`.
311
+ * Type of topic in a policy
312
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-topictype.html}
313
+ */
314
+ export type TopicType = "DENY";
315
+ /**
316
+ * Type definition for `AWS::Bedrock::Guardrail.WordConfig`.
317
+ * A custom word config.
318
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordconfig.html}
319
+ */
320
+ export type WordConfig = {
321
+ /**
322
+ * The custom word text.
323
+ * @minLength `1`
324
+ */
325
+ Text: string;
326
+ };
327
+ /**
328
+ * Type definition for `AWS::Bedrock::Guardrail.WordPolicyConfig`.
329
+ * Word policy config for a guardrail.
330
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-guardrail-wordpolicyconfig.html}
331
+ */
332
+ export type WordPolicyConfig = {
333
+ /**
334
+ * A config for the list of managed words.
335
+ */
336
+ ManagedWordListsConfig?: ManagedWordsConfig[];
337
+ /**
338
+ * List of custom word configs.
339
+ * @minLength `1`
340
+ */
341
+ WordsConfig?: WordConfig[];
342
+ };
343
+ /**
344
+ * Definition of AWS::Bedrock::Guardrail Resource Type
345
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html}
346
+ */
347
+ export declare class BedrockGuardrail extends $Resource<"AWS::Bedrock::Guardrail", BedrockGuardrailProperties, BedrockGuardrailAttributes> {
348
+ static readonly Type = "AWS::Bedrock::Guardrail";
349
+ constructor(logicalId: string, properties: BedrockGuardrailProperties, options?: $ResourceOptions);
350
+ }
351
+ //# sourceMappingURL=AWS-Bedrock-Guardrail.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
2
+ /**
3
+ * Definition of AWS::Bedrock::Guardrail Resource Type
4
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-guardrail.html}
5
+ */
6
+ export class BedrockGuardrail extends $Resource {
7
+ static Type = "AWS::Bedrock::Guardrail";
8
+ constructor(logicalId, properties, options) {
9
+ super(logicalId, BedrockGuardrail.Type, properties, options);
10
+ }
11
+ }
12
+ //# sourceMappingURL=AWS-Bedrock-Guardrail.js.map
@@ -12,7 +12,7 @@ export type CURReportDefinitionProperties = {
12
12
  /**
13
13
  * A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs.
14
14
  */
15
- AdditionalSchemaElements?: "RESOURCES"[];
15
+ AdditionalSchemaElements?: ("RESOURCES" | "SPLIT_COST_ALLOCATION_DATA" | "MANUAL_DISCOUNT_COMPATIBILITY")[];
16
16
  /**
17
17
  * The Amazon resource name of the billing view. You can get this value by using the billing view service public APIs.
18
18
  * @minLength `1`
@@ -356,7 +356,11 @@ export type TaskSchedule = {
356
356
  * @maxLength `256`
357
357
  * @pattern `^[a-zA-Z0-9\ \_\*\?\,\|\^\-\/\#\s\(\)\+]*$`
358
358
  */
359
- ScheduleExpression: string;
359
+ ScheduleExpression?: string;
360
+ /**
361
+ * Specifies status of a schedule.
362
+ */
363
+ Status?: "ENABLED" | "DISABLED";
360
364
  };
361
365
  /**
362
366
  * Resource schema for AWS::DataSync::Task.