@awboost/cfn-resource-types 0.1.328 → 0.1.329
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.
|
@@ -0,0 +1,137 @@
|
|
|
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::IntelligentPromptRouter Resource Type
|
|
5
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html}
|
|
6
|
+
*/
|
|
7
|
+
export type BedrockIntelligentPromptRouterProperties = {
|
|
8
|
+
/**
|
|
9
|
+
* Description of the Prompt Router.
|
|
10
|
+
* @minLength `1`
|
|
11
|
+
* @maxLength `200`
|
|
12
|
+
* @pattern `^([0-9a-zA-Z:.][ _-]?)+$`
|
|
13
|
+
*/
|
|
14
|
+
Description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Model configuration
|
|
17
|
+
*/
|
|
18
|
+
FallbackModel: PromptRouterTargetModel;
|
|
19
|
+
/**
|
|
20
|
+
* List of model configuration
|
|
21
|
+
*/
|
|
22
|
+
Models: PromptRouterTargetModel[];
|
|
23
|
+
/**
|
|
24
|
+
* Name of the Prompt Router.
|
|
25
|
+
* @minLength `1`
|
|
26
|
+
* @maxLength `64`
|
|
27
|
+
* @pattern `^([0-9a-zA-Z][ _-]?)+$`
|
|
28
|
+
*/
|
|
29
|
+
PromptRouterName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Represents the criteria used for routing requests.
|
|
32
|
+
*/
|
|
33
|
+
RoutingCriteria: RoutingCriteria;
|
|
34
|
+
/**
|
|
35
|
+
* List of Tags
|
|
36
|
+
* @minLength `0`
|
|
37
|
+
* @maxLength `200`
|
|
38
|
+
*/
|
|
39
|
+
Tags?: Tag[];
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Attribute type definition for `AWS::Bedrock::IntelligentPromptRouter`.
|
|
43
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html#aws-resource-bedrock-intelligentpromptrouter-return-values}
|
|
44
|
+
*/
|
|
45
|
+
export type BedrockIntelligentPromptRouterAttributes = {
|
|
46
|
+
/**
|
|
47
|
+
* Time Stamp
|
|
48
|
+
*/
|
|
49
|
+
CreatedAt: string;
|
|
50
|
+
/**
|
|
51
|
+
* Arn of the Prompt Router.
|
|
52
|
+
* @minLength `1`
|
|
53
|
+
* @maxLength `2048`
|
|
54
|
+
* @pattern `^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:(default-)?prompt-router/[a-zA-Z0-9-:.]+$`
|
|
55
|
+
*/
|
|
56
|
+
PromptRouterArn: string;
|
|
57
|
+
/**
|
|
58
|
+
* Status of a PromptRouter
|
|
59
|
+
*/
|
|
60
|
+
Status: PromptRouterStatus;
|
|
61
|
+
/**
|
|
62
|
+
* Type of a Prompt Router
|
|
63
|
+
*/
|
|
64
|
+
Type: PromptRouterType;
|
|
65
|
+
/**
|
|
66
|
+
* Time Stamp
|
|
67
|
+
*/
|
|
68
|
+
UpdatedAt: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Type definition for `AWS::Bedrock::IntelligentPromptRouter.PromptRouterStatus`.
|
|
72
|
+
* Status of a PromptRouter
|
|
73
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-promptrouterstatus.html}
|
|
74
|
+
*/
|
|
75
|
+
export type PromptRouterStatus = "AVAILABLE";
|
|
76
|
+
/**
|
|
77
|
+
* Type definition for `AWS::Bedrock::IntelligentPromptRouter.PromptRouterTargetModel`.
|
|
78
|
+
* Model configuration
|
|
79
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-promptroutertargetmodel.html}
|
|
80
|
+
*/
|
|
81
|
+
export type PromptRouterTargetModel = {
|
|
82
|
+
/**
|
|
83
|
+
* Arn of underlying model which are added in the Prompt Router.
|
|
84
|
+
* @minLength `1`
|
|
85
|
+
* @maxLength `2048`
|
|
86
|
+
* @pattern `(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2})|(^arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)$`
|
|
87
|
+
*/
|
|
88
|
+
ModelArn: string;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Type definition for `AWS::Bedrock::IntelligentPromptRouter.PromptRouterType`.
|
|
92
|
+
* Type of a Prompt Router
|
|
93
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-promptroutertype.html}
|
|
94
|
+
*/
|
|
95
|
+
export type PromptRouterType = "custom" | "default";
|
|
96
|
+
/**
|
|
97
|
+
* Type definition for `AWS::Bedrock::IntelligentPromptRouter.RoutingCriteria`.
|
|
98
|
+
* Represents the criteria used for routing requests.
|
|
99
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-routingcriteria.html}
|
|
100
|
+
*/
|
|
101
|
+
export type RoutingCriteria = {
|
|
102
|
+
/**
|
|
103
|
+
* @min `0`
|
|
104
|
+
* @max `100`
|
|
105
|
+
*/
|
|
106
|
+
ResponseQualityDifference: number;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Type definition for `AWS::Bedrock::IntelligentPromptRouter.Tag`.
|
|
110
|
+
* Definition of the key/value pair for a tag
|
|
111
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-intelligentpromptrouter-tag.html}
|
|
112
|
+
*/
|
|
113
|
+
export type Tag = {
|
|
114
|
+
/**
|
|
115
|
+
* Tag Key
|
|
116
|
+
* @minLength `1`
|
|
117
|
+
* @maxLength `128`
|
|
118
|
+
* @pattern `^[a-zA-Z0-9\s._:/=+@-]*$`
|
|
119
|
+
*/
|
|
120
|
+
Key: string;
|
|
121
|
+
/**
|
|
122
|
+
* Tag Value
|
|
123
|
+
* @minLength `0`
|
|
124
|
+
* @maxLength `256`
|
|
125
|
+
* @pattern `^[a-zA-Z0-9\s._:/=+@-]*$`
|
|
126
|
+
*/
|
|
127
|
+
Value: string;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Definition of AWS::Bedrock::IntelligentPromptRouter Resource Type
|
|
131
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html}
|
|
132
|
+
*/
|
|
133
|
+
export declare class BedrockIntelligentPromptRouter extends $Resource<"AWS::Bedrock::IntelligentPromptRouter", BedrockIntelligentPromptRouterProperties, BedrockIntelligentPromptRouterAttributes> {
|
|
134
|
+
static readonly Type = "AWS::Bedrock::IntelligentPromptRouter";
|
|
135
|
+
constructor(logicalId: string, properties: BedrockIntelligentPromptRouterProperties, options?: $ResourceOptions);
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=AWS-Bedrock-IntelligentPromptRouter.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::IntelligentPromptRouter Resource Type
|
|
4
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-intelligentpromptrouter.html}
|
|
5
|
+
*/
|
|
6
|
+
export class BedrockIntelligentPromptRouter extends $Resource {
|
|
7
|
+
static Type = "AWS::Bedrock::IntelligentPromptRouter";
|
|
8
|
+
constructor(logicalId, properties, options) {
|
|
9
|
+
super(logicalId, BedrockIntelligentPromptRouter.Type, properties, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AWS-Bedrock-IntelligentPromptRouter.js.map
|
package/lib/AWS-EC2-Volume.d.ts
CHANGED
|
@@ -32,9 +32,9 @@ export type EC2VolumeProperties = {
|
|
|
32
32
|
/**
|
|
33
33
|
* The number of I/O operations per second (IOPS). For ``gp3``, ``io1``, and ``io2`` volumes, this represents the number of IOPS that are provisioned for the volume. For ``gp2`` volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
|
|
34
34
|
The following are the supported values for each volume type:
|
|
35
|
-
+
|
|
36
|
-
+
|
|
37
|
-
+
|
|
35
|
+
+ ``gp3``: 3,000 - 16,000 IOPS
|
|
36
|
+
+ ``io1``: 100 - 64,000 IOPS
|
|
37
|
+
+ ``io2``: 100 - 256,000 IOPS
|
|
38
38
|
|
|
39
39
|
For ``io2`` volumes, you can achieve up to 256,000 IOPS on [instances built on the Nitro System](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html). On other instances, you can achieve performance up to 32,000 IOPS.
|
|
40
40
|
This parameter is required for ``io1`` and ``io2`` volumes. The default for ``gp3`` volumes is 3,000 IOPS. This parameter is not supported for ``gp2``, ``st1``, ``sc1``, or ``standard`` volumes.
|
|
@@ -52,7 +52,7 @@ export type EC2VolumeProperties = {
|
|
|
52
52
|
KmsKeyId?: string;
|
|
53
53
|
/**
|
|
54
54
|
* Indicates whether Amazon EBS Multi-Attach is enabled.
|
|
55
|
-
|
|
55
|
+
CFNlong does not currently support updating a single-attach volume to be multi-attach enabled, updating a multi-attach enabled volume to be single-attach, or updating the size or number of I/O operations per second (IOPS) of a multi-attach enabled volume.
|
|
56
56
|
*/
|
|
57
57
|
MultiAttachEnabled?: boolean;
|
|
58
58
|
/**
|
|
@@ -62,11 +62,11 @@ export type EC2VolumeProperties = {
|
|
|
62
62
|
/**
|
|
63
63
|
* The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
|
|
64
64
|
The following are the supported volumes sizes for each volume type:
|
|
65
|
-
+
|
|
66
|
-
+
|
|
67
|
-
+
|
|
68
|
-
+
|
|
69
|
-
+
|
|
65
|
+
+ ``gp2`` and ``gp3``: 1 - 16,384 GiB
|
|
66
|
+
+ ``io1``: 4 - 16,384 GiB
|
|
67
|
+
+ ``io2``: 4 - 65,536 GiB
|
|
68
|
+
+ ``st1`` and ``sc1``: 125 - 16,384 GiB
|
|
69
|
+
+ ``standard``: 1 - 1024 GiB
|
|
70
70
|
*/
|
|
71
71
|
Size?: number;
|
|
72
72
|
/**
|
|
@@ -83,6 +83,7 @@ export type EC2VolumeProperties = {
|
|
|
83
83
|
Valid Range: Minimum value of 125. Maximum value of 1000.
|
|
84
84
|
*/
|
|
85
85
|
Throughput?: number;
|
|
86
|
+
VolumeInitializationRate?: number;
|
|
86
87
|
/**
|
|
87
88
|
* The volume type. This parameter can be one of the following values:
|
|
88
89
|
+ General Purpose SSD: ``gp2`` | ``gp3``
|