@awboost/cfn-resource-types 0.1.114 → 0.1.116
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.
- package/lib/AWS-Bedrock-Flow.d.ts +614 -0
- package/lib/AWS-Bedrock-Flow.js +12 -0
- package/lib/AWS-Bedrock-FlowAlias.d.ts +96 -0
- package/lib/AWS-Bedrock-FlowAlias.js +12 -0
- package/lib/AWS-Bedrock-FlowVersion.d.ts +625 -0
- package/lib/AWS-Bedrock-FlowVersion.js +12 -0
- package/lib/AWS-Bedrock-Prompt.d.ts +238 -0
- package/lib/AWS-Bedrock-Prompt.js +12 -0
- package/lib/AWS-Bedrock-PromptVersion.d.ts +277 -0
- package/lib/AWS-Bedrock-PromptVersion.js +12 -0
- package/lib/AWS-DMS-ReplicationConfig.d.ts +6 -6
- package/lib/AWS-EntityResolution-IdMappingWorkflow.d.ts +1 -1
- package/lib/AWS-RDS-DBInstance.d.ts +1 -4
- package/package.json +1 -1
|
@@ -0,0 +1,238 @@
|
|
|
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::Prompt Resource Type
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html}
|
|
6
|
+
*/
|
|
7
|
+
export type BedrockPromptProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* A KMS key ARN
|
|
10
|
+
* @minLength `1`
|
|
11
|
+
* @maxLength `2048`
|
|
12
|
+
* @pattern `^arn:aws(|-cn|-us-gov):kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}$`
|
|
13
|
+
*/
|
|
14
|
+
CustomerEncryptionKeyArn?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name for a variant.
|
|
17
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
18
|
+
*/
|
|
19
|
+
DefaultVariant?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Name for a prompt resource.
|
|
22
|
+
* @minLength `1`
|
|
23
|
+
* @maxLength `200`
|
|
24
|
+
*/
|
|
25
|
+
Description?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Name for a prompt resource.
|
|
28
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
29
|
+
*/
|
|
30
|
+
Name: string;
|
|
31
|
+
/**
|
|
32
|
+
* A map of tag keys and values
|
|
33
|
+
*/
|
|
34
|
+
Tags?: TagsMap;
|
|
35
|
+
/**
|
|
36
|
+
* List of prompt variants
|
|
37
|
+
* @minLength `0`
|
|
38
|
+
* @maxLength `3`
|
|
39
|
+
*/
|
|
40
|
+
Variants?: PromptVariant[];
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Attribute type definition for `AWS::Bedrock::Prompt`.
|
|
44
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html#aws-resource-bedrock-prompt-return-values}
|
|
45
|
+
*/
|
|
46
|
+
export type BedrockPromptAttributes = {
|
|
47
|
+
/**
|
|
48
|
+
* ARN of a prompt resource possibly with a version
|
|
49
|
+
* @minLength `1`
|
|
50
|
+
* @maxLength `2048`
|
|
51
|
+
* @pattern `^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10})$`
|
|
52
|
+
*/
|
|
53
|
+
Arn: string;
|
|
54
|
+
/**
|
|
55
|
+
* Time Stamp.
|
|
56
|
+
*/
|
|
57
|
+
CreatedAt: string;
|
|
58
|
+
/**
|
|
59
|
+
* Identifier for a Prompt
|
|
60
|
+
* @pattern `^[0-9a-zA-Z]{10}$`
|
|
61
|
+
*/
|
|
62
|
+
Id: string;
|
|
63
|
+
/**
|
|
64
|
+
* Time Stamp.
|
|
65
|
+
*/
|
|
66
|
+
UpdatedAt: string;
|
|
67
|
+
/**
|
|
68
|
+
* Draft Version.
|
|
69
|
+
* @minLength `5`
|
|
70
|
+
* @maxLength `5`
|
|
71
|
+
* @pattern `^DRAFT$`
|
|
72
|
+
*/
|
|
73
|
+
Version: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Type definition for `AWS::Bedrock::Prompt.PromptInferenceConfiguration`.
|
|
77
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinferenceconfiguration.html}
|
|
78
|
+
*/
|
|
79
|
+
export type PromptInferenceConfiguration = {
|
|
80
|
+
/**
|
|
81
|
+
* Prompt model inference configuration
|
|
82
|
+
*/
|
|
83
|
+
Text: PromptModelInferenceConfiguration;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Type definition for `AWS::Bedrock::Prompt.PromptInputVariable`.
|
|
87
|
+
* Input variable
|
|
88
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptinputvariable.html}
|
|
89
|
+
*/
|
|
90
|
+
export type PromptInputVariable = {
|
|
91
|
+
/**
|
|
92
|
+
* Name for an input variable
|
|
93
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
94
|
+
*/
|
|
95
|
+
Name?: string;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Type definition for `AWS::Bedrock::Prompt.PromptModelInferenceConfiguration`.
|
|
99
|
+
* Prompt model inference configuration
|
|
100
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmodelinferenceconfiguration.html}
|
|
101
|
+
*/
|
|
102
|
+
export type PromptModelInferenceConfiguration = {
|
|
103
|
+
/**
|
|
104
|
+
* Maximum length of output
|
|
105
|
+
* @min `0`
|
|
106
|
+
* @max `4096`
|
|
107
|
+
*/
|
|
108
|
+
MaxTokens?: number;
|
|
109
|
+
/**
|
|
110
|
+
* List of stop sequences
|
|
111
|
+
* @minLength `0`
|
|
112
|
+
* @maxLength `4`
|
|
113
|
+
*/
|
|
114
|
+
StopSequences?: string[];
|
|
115
|
+
/**
|
|
116
|
+
* Controls randomness, higher values increase diversity
|
|
117
|
+
* @min `0`
|
|
118
|
+
* @max `1`
|
|
119
|
+
*/
|
|
120
|
+
Temperature?: number;
|
|
121
|
+
/**
|
|
122
|
+
* Sample from the k most likely next tokens
|
|
123
|
+
* @min `0`
|
|
124
|
+
* @max `500`
|
|
125
|
+
*/
|
|
126
|
+
TopK?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Cumulative probability cutoff for token selection
|
|
129
|
+
* @min `0`
|
|
130
|
+
* @max `1`
|
|
131
|
+
*/
|
|
132
|
+
TopP?: number;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Type definition for `AWS::Bedrock::Prompt.PromptTemplateConfiguration`.
|
|
136
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-prompttemplateconfiguration.html}
|
|
137
|
+
*/
|
|
138
|
+
export type PromptTemplateConfiguration = {
|
|
139
|
+
/**
|
|
140
|
+
* Configuration for text prompt template
|
|
141
|
+
*/
|
|
142
|
+
Text: TextPromptTemplateConfiguration;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Type definition for `AWS::Bedrock::Prompt.PromptTemplateType`.
|
|
146
|
+
* Prompt template type
|
|
147
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-prompttemplatetype.html}
|
|
148
|
+
*/
|
|
149
|
+
export type PromptTemplateType = "TEXT";
|
|
150
|
+
/**
|
|
151
|
+
* Type definition for `AWS::Bedrock::Prompt.PromptVariant`.
|
|
152
|
+
* Prompt variant
|
|
153
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html}
|
|
154
|
+
*/
|
|
155
|
+
export type PromptVariant = {
|
|
156
|
+
InferenceConfiguration?: PromptInferenceConfiguration;
|
|
157
|
+
/**
|
|
158
|
+
* ARN or name of a Bedrock model.
|
|
159
|
+
* @minLength `1`
|
|
160
|
+
* @maxLength `2048`
|
|
161
|
+
* @pattern `^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$`
|
|
162
|
+
*/
|
|
163
|
+
ModelId?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Name for a variant.
|
|
166
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
167
|
+
*/
|
|
168
|
+
Name: string;
|
|
169
|
+
TemplateConfiguration?: PromptTemplateConfiguration;
|
|
170
|
+
/**
|
|
171
|
+
* Prompt template type
|
|
172
|
+
*/
|
|
173
|
+
TemplateType: PromptTemplateType;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Type definition for `AWS::Bedrock::Prompt.TagsMap`.
|
|
177
|
+
* A map of tag keys and values
|
|
178
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-tagsmap.html}
|
|
179
|
+
*/
|
|
180
|
+
export type TagsMap = Record<string, string>;
|
|
181
|
+
/**
|
|
182
|
+
* Type definition for `AWS::Bedrock::Prompt.TextPromptTemplateConfiguration`.
|
|
183
|
+
* Configuration for text prompt template
|
|
184
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-textprompttemplateconfiguration.html}
|
|
185
|
+
*/
|
|
186
|
+
export type TextPromptTemplateConfiguration = {
|
|
187
|
+
/**
|
|
188
|
+
* List of input variables
|
|
189
|
+
* @minLength `0`
|
|
190
|
+
* @maxLength `5`
|
|
191
|
+
*/
|
|
192
|
+
InputVariables?: PromptInputVariable[];
|
|
193
|
+
/**
|
|
194
|
+
* Prompt content for String prompt template
|
|
195
|
+
* @minLength `1`
|
|
196
|
+
* @maxLength `200000`
|
|
197
|
+
*/
|
|
198
|
+
Text?: string;
|
|
199
|
+
/**
|
|
200
|
+
* The identifier for the S3 resource.
|
|
201
|
+
*/
|
|
202
|
+
TextS3Location?: TextS3Location;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Type definition for `AWS::Bedrock::Prompt.TextS3Location`.
|
|
206
|
+
* The identifier for the S3 resource.
|
|
207
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-texts3location.html}
|
|
208
|
+
*/
|
|
209
|
+
export type TextS3Location = {
|
|
210
|
+
/**
|
|
211
|
+
* A bucket in S3
|
|
212
|
+
* @minLength `3`
|
|
213
|
+
* @maxLength `63`
|
|
214
|
+
* @pattern `^[a-z0-9][\.\-a-z0-9]{1,61}[a-z0-9]$`
|
|
215
|
+
*/
|
|
216
|
+
Bucket: string;
|
|
217
|
+
/**
|
|
218
|
+
* A object key in S3
|
|
219
|
+
* @minLength `1`
|
|
220
|
+
* @maxLength `1024`
|
|
221
|
+
*/
|
|
222
|
+
Key: string;
|
|
223
|
+
/**
|
|
224
|
+
* The version of the the S3 object to use
|
|
225
|
+
* @minLength `1`
|
|
226
|
+
* @maxLength `1024`
|
|
227
|
+
*/
|
|
228
|
+
Version?: string;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Definition of AWS::Bedrock::Prompt Resource Type
|
|
232
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html}
|
|
233
|
+
*/
|
|
234
|
+
export declare class BedrockPrompt extends $Resource<"AWS::Bedrock::Prompt", BedrockPromptProperties, BedrockPromptAttributes> {
|
|
235
|
+
static readonly Type = "AWS::Bedrock::Prompt";
|
|
236
|
+
constructor(logicalId: string, properties: BedrockPromptProperties, options?: $ResourceOptions);
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=AWS-Bedrock-Prompt.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::Prompt Resource Type
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-prompt.html}
|
|
5
|
+
*/
|
|
6
|
+
export class BedrockPrompt extends $Resource {
|
|
7
|
+
static Type = "AWS::Bedrock::Prompt";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, BedrockPrompt.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-Bedrock-Prompt.js.map
|
|
@@ -0,0 +1,277 @@
|
|
|
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::PromptVersion Resource Type
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html}
|
|
6
|
+
*/
|
|
7
|
+
export type BedrockPromptVersionProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* Description for a prompt version resource.
|
|
10
|
+
* @minLength `1`
|
|
11
|
+
* @maxLength `200`
|
|
12
|
+
*/
|
|
13
|
+
Description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* ARN of a prompt resource possibly with a version
|
|
16
|
+
* @minLength `1`
|
|
17
|
+
* @maxLength `2048`
|
|
18
|
+
* @pattern `^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10})$`
|
|
19
|
+
*/
|
|
20
|
+
PromptArn: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Attribute type definition for `AWS::Bedrock::PromptVersion`.
|
|
24
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#aws-resource-bedrock-promptversion-return-values}
|
|
25
|
+
*/
|
|
26
|
+
export type BedrockPromptVersionAttributes = {
|
|
27
|
+
/**
|
|
28
|
+
* ARN of a prompt version resource
|
|
29
|
+
* @minLength `1`
|
|
30
|
+
* @maxLength `2048`
|
|
31
|
+
* @pattern `^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10}:[0-9]{1,20})$`
|
|
32
|
+
*/
|
|
33
|
+
Arn: string;
|
|
34
|
+
/**
|
|
35
|
+
* Time Stamp.
|
|
36
|
+
*/
|
|
37
|
+
CreatedAt: string;
|
|
38
|
+
/**
|
|
39
|
+
* Name for a variant.
|
|
40
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
41
|
+
*/
|
|
42
|
+
DefaultVariant: string;
|
|
43
|
+
/**
|
|
44
|
+
* Name for a prompt resource.
|
|
45
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
46
|
+
*/
|
|
47
|
+
Name: string;
|
|
48
|
+
/**
|
|
49
|
+
* Identifier for a Prompt
|
|
50
|
+
* @pattern `^[0-9a-zA-Z]{10}$`
|
|
51
|
+
*/
|
|
52
|
+
PromptId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Time Stamp.
|
|
55
|
+
*/
|
|
56
|
+
UpdatedAt: string;
|
|
57
|
+
/**
|
|
58
|
+
* List of prompt variants
|
|
59
|
+
* @minLength `1`
|
|
60
|
+
* @maxLength `3`
|
|
61
|
+
*/
|
|
62
|
+
Variants: {
|
|
63
|
+
InferenceConfiguration: {
|
|
64
|
+
/**
|
|
65
|
+
* Prompt model inference configuration
|
|
66
|
+
*/
|
|
67
|
+
Text: {
|
|
68
|
+
/**
|
|
69
|
+
* Maximum length of output
|
|
70
|
+
* @min `0`
|
|
71
|
+
* @max `4096`
|
|
72
|
+
*/
|
|
73
|
+
MaxTokens: number;
|
|
74
|
+
/**
|
|
75
|
+
* List of stop sequences
|
|
76
|
+
* @minLength `0`
|
|
77
|
+
* @maxLength `4`
|
|
78
|
+
*/
|
|
79
|
+
StopSequences: string[];
|
|
80
|
+
/**
|
|
81
|
+
* Controls randomness, higher values increase diversity
|
|
82
|
+
* @min `0`
|
|
83
|
+
* @max `1`
|
|
84
|
+
*/
|
|
85
|
+
Temperature: number;
|
|
86
|
+
/**
|
|
87
|
+
* Sample from the k most likely next tokens
|
|
88
|
+
* @min `0`
|
|
89
|
+
* @max `500`
|
|
90
|
+
*/
|
|
91
|
+
TopK: number;
|
|
92
|
+
/**
|
|
93
|
+
* Cumulative probability cutoff for token selection
|
|
94
|
+
* @min `0`
|
|
95
|
+
* @max `1`
|
|
96
|
+
*/
|
|
97
|
+
TopP: number;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* ARN or name of a Bedrock model.
|
|
102
|
+
* @minLength `1`
|
|
103
|
+
* @maxLength `2048`
|
|
104
|
+
* @pattern `^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$`
|
|
105
|
+
*/
|
|
106
|
+
ModelId: string;
|
|
107
|
+
/**
|
|
108
|
+
* Name for a variant.
|
|
109
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
110
|
+
*/
|
|
111
|
+
Name: string;
|
|
112
|
+
TemplateConfiguration: {
|
|
113
|
+
/**
|
|
114
|
+
* Configuration for text prompt template
|
|
115
|
+
*/
|
|
116
|
+
Text: {
|
|
117
|
+
/**
|
|
118
|
+
* List of input variables
|
|
119
|
+
* @minLength `1`
|
|
120
|
+
* @maxLength `5`
|
|
121
|
+
*/
|
|
122
|
+
InputVariables: {
|
|
123
|
+
/**
|
|
124
|
+
* Name for an input variable
|
|
125
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
126
|
+
*/
|
|
127
|
+
Name: string;
|
|
128
|
+
}[];
|
|
129
|
+
/**
|
|
130
|
+
* Prompt content for String prompt template
|
|
131
|
+
* @minLength `1`
|
|
132
|
+
* @maxLength `200000`
|
|
133
|
+
*/
|
|
134
|
+
Text: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Prompt template type
|
|
139
|
+
*/
|
|
140
|
+
TemplateType: PromptTemplateType;
|
|
141
|
+
}[];
|
|
142
|
+
/**
|
|
143
|
+
* Version.
|
|
144
|
+
* @minLength `1`
|
|
145
|
+
* @maxLength `5`
|
|
146
|
+
* @pattern `^(DRAFT|[0-9]{0,4}[1-9][0-9]{0,4})$`
|
|
147
|
+
*/
|
|
148
|
+
Version: string;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Type definition for `AWS::Bedrock::PromptVersion.PromptInferenceConfiguration`.
|
|
152
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptinferenceconfiguration.html}
|
|
153
|
+
*/
|
|
154
|
+
export type PromptInferenceConfiguration = {
|
|
155
|
+
/**
|
|
156
|
+
* Prompt model inference configuration
|
|
157
|
+
*/
|
|
158
|
+
Text: PromptModelInferenceConfiguration;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Type definition for `AWS::Bedrock::PromptVersion.PromptInputVariable`.
|
|
162
|
+
* Input variable
|
|
163
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptinputvariable.html}
|
|
164
|
+
*/
|
|
165
|
+
export type PromptInputVariable = {
|
|
166
|
+
/**
|
|
167
|
+
* Name for an input variable
|
|
168
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
169
|
+
*/
|
|
170
|
+
Name?: string;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Type definition for `AWS::Bedrock::PromptVersion.PromptModelInferenceConfiguration`.
|
|
174
|
+
* Prompt model inference configuration
|
|
175
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmodelinferenceconfiguration.html}
|
|
176
|
+
*/
|
|
177
|
+
export type PromptModelInferenceConfiguration = {
|
|
178
|
+
/**
|
|
179
|
+
* Maximum length of output
|
|
180
|
+
* @min `0`
|
|
181
|
+
* @max `4096`
|
|
182
|
+
*/
|
|
183
|
+
MaxTokens?: number;
|
|
184
|
+
/**
|
|
185
|
+
* List of stop sequences
|
|
186
|
+
* @minLength `0`
|
|
187
|
+
* @maxLength `4`
|
|
188
|
+
*/
|
|
189
|
+
StopSequences?: string[];
|
|
190
|
+
/**
|
|
191
|
+
* Controls randomness, higher values increase diversity
|
|
192
|
+
* @min `0`
|
|
193
|
+
* @max `1`
|
|
194
|
+
*/
|
|
195
|
+
Temperature?: number;
|
|
196
|
+
/**
|
|
197
|
+
* Sample from the k most likely next tokens
|
|
198
|
+
* @min `0`
|
|
199
|
+
* @max `500`
|
|
200
|
+
*/
|
|
201
|
+
TopK?: number;
|
|
202
|
+
/**
|
|
203
|
+
* Cumulative probability cutoff for token selection
|
|
204
|
+
* @min `0`
|
|
205
|
+
* @max `1`
|
|
206
|
+
*/
|
|
207
|
+
TopP?: number;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Type definition for `AWS::Bedrock::PromptVersion.PromptTemplateConfiguration`.
|
|
211
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-prompttemplateconfiguration.html}
|
|
212
|
+
*/
|
|
213
|
+
export type PromptTemplateConfiguration = {
|
|
214
|
+
/**
|
|
215
|
+
* Configuration for text prompt template
|
|
216
|
+
*/
|
|
217
|
+
Text: TextPromptTemplateConfiguration;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Type definition for `AWS::Bedrock::PromptVersion.PromptTemplateType`.
|
|
221
|
+
* Prompt template type
|
|
222
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-prompttemplatetype.html}
|
|
223
|
+
*/
|
|
224
|
+
export type PromptTemplateType = "TEXT";
|
|
225
|
+
/**
|
|
226
|
+
* Type definition for `AWS::Bedrock::PromptVersion.PromptVariant`.
|
|
227
|
+
* Prompt variant
|
|
228
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html}
|
|
229
|
+
*/
|
|
230
|
+
export type PromptVariant = {
|
|
231
|
+
InferenceConfiguration?: PromptInferenceConfiguration;
|
|
232
|
+
/**
|
|
233
|
+
* ARN or name of a Bedrock model.
|
|
234
|
+
* @minLength `1`
|
|
235
|
+
* @maxLength `2048`
|
|
236
|
+
* @pattern `^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$`
|
|
237
|
+
*/
|
|
238
|
+
ModelId?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Name for a variant.
|
|
241
|
+
* @pattern `^([0-9a-zA-Z][_-]?){1,100}$`
|
|
242
|
+
*/
|
|
243
|
+
Name: string;
|
|
244
|
+
TemplateConfiguration?: PromptTemplateConfiguration;
|
|
245
|
+
/**
|
|
246
|
+
* Prompt template type
|
|
247
|
+
*/
|
|
248
|
+
TemplateType: PromptTemplateType;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Type definition for `AWS::Bedrock::PromptVersion.TextPromptTemplateConfiguration`.
|
|
252
|
+
* Configuration for text prompt template
|
|
253
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-textprompttemplateconfiguration.html}
|
|
254
|
+
*/
|
|
255
|
+
export type TextPromptTemplateConfiguration = {
|
|
256
|
+
/**
|
|
257
|
+
* List of input variables
|
|
258
|
+
* @minLength `1`
|
|
259
|
+
* @maxLength `5`
|
|
260
|
+
*/
|
|
261
|
+
InputVariables?: PromptInputVariable[];
|
|
262
|
+
/**
|
|
263
|
+
* Prompt content for String prompt template
|
|
264
|
+
* @minLength `1`
|
|
265
|
+
* @maxLength `200000`
|
|
266
|
+
*/
|
|
267
|
+
Text: string;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* Definition of AWS::Bedrock::PromptVersion Resource Type
|
|
271
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html}
|
|
272
|
+
*/
|
|
273
|
+
export declare class BedrockPromptVersion extends $Resource<"AWS::Bedrock::PromptVersion", BedrockPromptVersionProperties, BedrockPromptVersionAttributes> {
|
|
274
|
+
static readonly Type = "AWS::Bedrock::PromptVersion";
|
|
275
|
+
constructor(logicalId: string, properties: BedrockPromptVersionProperties, options?: $ResourceOptions);
|
|
276
|
+
}
|
|
277
|
+
//# sourceMappingURL=AWS-Bedrock-PromptVersion.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::PromptVersion Resource Type
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html}
|
|
5
|
+
*/
|
|
6
|
+
export class BedrockPromptVersion extends $Resource {
|
|
7
|
+
static Type = "AWS::Bedrock::PromptVersion";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, BedrockPromptVersion.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-Bedrock-PromptVersion.js.map
|
|
@@ -9,11 +9,11 @@ export type DMSReplicationConfigProperties = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Configuration parameters for provisioning a AWS DMS Serverless replication
|
|
11
11
|
*/
|
|
12
|
-
ComputeConfig
|
|
12
|
+
ComputeConfig: ComputeConfig;
|
|
13
13
|
/**
|
|
14
14
|
* A unique identifier of replication configuration
|
|
15
15
|
*/
|
|
16
|
-
ReplicationConfigIdentifier
|
|
16
|
+
ReplicationConfigIdentifier: string;
|
|
17
17
|
/**
|
|
18
18
|
* JSON settings for Servereless replications that are provisioned using this replication configuration
|
|
19
19
|
*/
|
|
@@ -21,7 +21,7 @@ export type DMSReplicationConfigProperties = {
|
|
|
21
21
|
/**
|
|
22
22
|
* The type of AWS DMS Serverless replication to provision using this replication configuration
|
|
23
23
|
*/
|
|
24
|
-
ReplicationType
|
|
24
|
+
ReplicationType: "full-load" | "full-load-and-cdc" | "cdc";
|
|
25
25
|
/**
|
|
26
26
|
* A unique value or name that you get set for a given resource that can be used to construct an Amazon Resource Name (ARN) for that resource
|
|
27
27
|
*/
|
|
@@ -29,7 +29,7 @@ export type DMSReplicationConfigProperties = {
|
|
|
29
29
|
/**
|
|
30
30
|
* The Amazon Resource Name (ARN) of the source endpoint for this AWS DMS Serverless replication configuration
|
|
31
31
|
*/
|
|
32
|
-
SourceEndpointArn
|
|
32
|
+
SourceEndpointArn: string;
|
|
33
33
|
/**
|
|
34
34
|
* JSON settings for specifying supplemental data
|
|
35
35
|
*/
|
|
@@ -37,7 +37,7 @@ export type DMSReplicationConfigProperties = {
|
|
|
37
37
|
/**
|
|
38
38
|
* JSON table mappings for AWS DMS Serverless replications that are provisioned using this replication configuration
|
|
39
39
|
*/
|
|
40
|
-
TableMappings
|
|
40
|
+
TableMappings: Record<string, any>;
|
|
41
41
|
/**
|
|
42
42
|
* <p>Contains a map of the key-value pairs for the resource tag or tags assigned to the dataset.</p>
|
|
43
43
|
* @minLength `1`
|
|
@@ -47,7 +47,7 @@ export type DMSReplicationConfigProperties = {
|
|
|
47
47
|
/**
|
|
48
48
|
* The Amazon Resource Name (ARN) of the target endpoint for this AWS DMS Serverless replication configuration
|
|
49
49
|
*/
|
|
50
|
-
TargetEndpointArn
|
|
50
|
+
TargetEndpointArn: string;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* Attribute type definition for `AWS::DMS::ReplicationConfig`.
|
|
@@ -137,7 +137,7 @@ export type ProviderProperties = {
|
|
|
137
137
|
ProviderConfiguration?: Record<string, string>;
|
|
138
138
|
/**
|
|
139
139
|
* Arn of the Provider Service being used.
|
|
140
|
-
* @pattern `^arn:(aws|aws-us-gov|aws-cn):entityresolution:([
|
|
140
|
+
* @pattern `^arn:(aws|aws-us-gov|aws-cn):(entityresolution):([a-z]{2}-[a-z]{1,10}-[0-9])::providerservice/([a-zA-Z0-9_-]{1,255})/([a-zA-Z0-9_-]{1,255})$`
|
|
141
141
|
*/
|
|
142
142
|
ProviderServiceArn: string;
|
|
143
143
|
};
|
|
@@ -94,9 +94,6 @@ export type RDSDBInstanceProperties = {
|
|
|
94
94
|
* The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS-Region, for example, ``arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE``.
|
|
95
95
|
*/
|
|
96
96
|
AutomaticBackupReplicationKmsKeyId?: string;
|
|
97
|
-
/**
|
|
98
|
-
* The destination region for the backup replication of the DB instance. For more info, see [Replicating automated backups to another Region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html) in the *Amazon RDS User Guide*.
|
|
99
|
-
*/
|
|
100
97
|
AutomaticBackupReplicationRegion?: string;
|
|
101
98
|
/**
|
|
102
99
|
* The Availability Zone (AZ) where the database will be created. For information on AWS-Regions and Availability Zones, see [Regions and Availability Zones](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
@@ -858,7 +855,7 @@ export type MasterUserSecret = {
|
|
|
858
855
|
};
|
|
859
856
|
/**
|
|
860
857
|
* Type definition for `AWS::RDS::DBInstance.ProcessorFeature`.
|
|
861
|
-
* The ``ProcessorFeature`` property type specifies the processor features of a DB instance class
|
|
858
|
+
* The ``ProcessorFeature`` property type specifies the processor features of a DB instance class.
|
|
862
859
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-processorfeature.html}
|
|
863
860
|
*/
|
|
864
861
|
export type ProcessorFeature = {
|