@intentius/chant-lexicon-aws 0.18.21 → 0.18.23
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/dist/composites/agentcore-agent.d.ts +36 -2
- package/dist/composites/agentcore-agent.d.ts.map +1 -1
- package/dist/generated/index.d.ts +17 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/integrity.json +4 -4
- package/dist/manifest.json +1 -1
- package/dist/meta.json +257 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types/index.d.ts +222 -0
- package/package.json +2 -2
- package/src/composites/agentcore-agent.test.ts +57 -0
- package/src/composites/agentcore-agent.ts +76 -7
- package/src/generated/index.d.ts +222 -0
- package/src/generated/index.ts +17 -0
- package/src/generated/lexicon-aws.json +257 -0
- package/src/plugin.ts +6 -4
|
@@ -84,6 +84,63 @@ describe("AgentCoreAgent", () => {
|
|
|
84
84
|
expect(networkProps.NetworkModeConfig).toBeUndefined();
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
+
test("code-config path wires CodeConfiguration (S3 zip on a managed runtime) instead of a container", () => {
|
|
88
|
+
const instance = AgentCoreAgent({
|
|
89
|
+
name: "support-agent",
|
|
90
|
+
code: {
|
|
91
|
+
s3Bucket: "loom-artifacts",
|
|
92
|
+
s3Prefix: "agents/assistant.zip",
|
|
93
|
+
runtime: "PYTHON_3_12",
|
|
94
|
+
entryPoint: ["app.py"],
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
const artifactProps = ((instance.runtime as any).props.AgentRuntimeArtifact as any).props;
|
|
98
|
+
expect(artifactProps.ContainerConfiguration).toBeUndefined();
|
|
99
|
+
const codeProps = (artifactProps.CodeConfiguration as any).props;
|
|
100
|
+
expect(codeProps.Runtime).toBe("PYTHON_3_12");
|
|
101
|
+
expect(codeProps.EntryPoint).toEqual(["app.py"]);
|
|
102
|
+
const s3 = (codeProps.Code as any).props.S3;
|
|
103
|
+
expect(s3).toEqual({ Bucket: "loom-artifacts", Prefix: "agents/assistant.zip" });
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
test("code-config VersionId is threaded through only when supplied", () => {
|
|
107
|
+
const withVersion = AgentCoreAgent({
|
|
108
|
+
name: "support-agent",
|
|
109
|
+
code: { s3Bucket: "b", s3Prefix: "k.zip", runtime: "PYTHON_3_12", entryPoint: ["app.py"], s3VersionId: "v1" },
|
|
110
|
+
});
|
|
111
|
+
const s3 = (((withVersion.runtime as any).props.AgentRuntimeArtifact as any).props.CodeConfiguration as any).props.Code.props.S3;
|
|
112
|
+
expect(s3.VersionId).toBe("v1");
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
test("throws when neither containerUri nor code is supplied", () => {
|
|
116
|
+
expect(() => AgentCoreAgent({ name: "support-agent" } as any)).toThrow(
|
|
117
|
+
"AgentCoreAgent requires exactly one of containerUri or code",
|
|
118
|
+
);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
test("throws when both containerUri and code are supplied", () => {
|
|
122
|
+
expect(() => AgentCoreAgent({
|
|
123
|
+
...baseProps,
|
|
124
|
+
code: { s3Bucket: "b", s3Prefix: "k.zip", runtime: "PYTHON_3_12", entryPoint: ["app.py"] },
|
|
125
|
+
})).toThrow("AgentCoreAgent requires exactly one of containerUri or code");
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
test("code-config serializes to a valid CloudFormation Runtime resource", () => {
|
|
129
|
+
const expanded = expandComposite("agent", AgentCoreAgent({
|
|
130
|
+
name: "support-agent",
|
|
131
|
+
code: { s3Bucket: "loom-artifacts", s3Prefix: "agents/assistant.zip", runtime: "PYTHON_3_12", entryPoint: ["app.py"] },
|
|
132
|
+
}));
|
|
133
|
+
resolveAttrRefs(expanded);
|
|
134
|
+
const template = JSON.parse(awsSerializer.serialize(expanded));
|
|
135
|
+
const artifact = template.Resources.agentRuntime.Properties.AgentRuntimeArtifact;
|
|
136
|
+
expect(artifact.ContainerConfiguration).toBeUndefined();
|
|
137
|
+
expect(artifact.CodeConfiguration).toEqual({
|
|
138
|
+
Code: { S3: { Bucket: "loom-artifacts", Prefix: "agents/assistant.zip" } },
|
|
139
|
+
EntryPoint: ["app.py"],
|
|
140
|
+
Runtime: "PYTHON_3_12",
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
|
|
87
144
|
test("VPC network mode wires NetworkModeConfig from vpcSubnetIds/vpcSecurityGroupIds", () => {
|
|
88
145
|
const instance = AgentCoreAgent({
|
|
89
146
|
...baseProps,
|
|
@@ -4,6 +4,8 @@ import {
|
|
|
4
4
|
Role_Policy,
|
|
5
5
|
Runtime,
|
|
6
6
|
Runtime_AgentRuntimeArtifact,
|
|
7
|
+
Runtime_Code,
|
|
8
|
+
Runtime_CodeConfiguration,
|
|
7
9
|
Runtime_ContainerConfiguration,
|
|
8
10
|
Runtime_NetworkConfiguration,
|
|
9
11
|
Runtime_VpcConfig,
|
|
@@ -13,6 +15,20 @@ import {
|
|
|
13
15
|
GatewayTarget,
|
|
14
16
|
WorkloadIdentity,
|
|
15
17
|
} from "../generated";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Managed language runtimes AgentCore can run a code-config zip on. Inlined
|
|
21
|
+
* from the generated `Runtime_AgentManagedRuntimeType` CFN enum (which the
|
|
22
|
+
* generated barrel exports as a type declaration only), matching how
|
|
23
|
+
* `protocolConfiguration`/`gatewayAuthorizerType` inline their enums below.
|
|
24
|
+
*/
|
|
25
|
+
export type AgentManagedRuntime =
|
|
26
|
+
| "NODE_22"
|
|
27
|
+
| "PYTHON_3_10"
|
|
28
|
+
| "PYTHON_3_11"
|
|
29
|
+
| "PYTHON_3_12"
|
|
30
|
+
| "PYTHON_3_13"
|
|
31
|
+
| "PYTHON_3_14";
|
|
16
32
|
import { agentCoreTrustPolicy } from "./agentcore-trust-policy";
|
|
17
33
|
|
|
18
34
|
/**
|
|
@@ -31,6 +47,26 @@ function toRuntimeIdentifier(name: string): string {
|
|
|
31
47
|
return identifier.slice(0, 48);
|
|
32
48
|
}
|
|
33
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Managed-runtime code artifact — the S3-zip alternative to `containerUri`.
|
|
52
|
+
* Mirrors CFN `Runtime.CodeConfiguration`: AgentCore runs a zipped agent on
|
|
53
|
+
* a managed language runtime, no container image to build or host. This is
|
|
54
|
+
* how a Strands agent actually ships (a Python zip in S3), which is why the
|
|
55
|
+
* composite offers it alongside the container path.
|
|
56
|
+
*/
|
|
57
|
+
export interface AgentCoreCodeArtifact {
|
|
58
|
+
/** S3 bucket holding the agent's zipped code. */
|
|
59
|
+
s3Bucket: string;
|
|
60
|
+
/** S3 key (or prefix) of the zip within `s3Bucket`. */
|
|
61
|
+
s3Prefix: string;
|
|
62
|
+
/** Optional S3 object version id, pinning a specific upload. */
|
|
63
|
+
s3VersionId?: string;
|
|
64
|
+
/** Managed runtime the zip runs on, e.g. `"PYTHON_3_12"`. Mirrors the generated CFN enum. */
|
|
65
|
+
runtime: AgentManagedRuntime;
|
|
66
|
+
/** Entry point, 1-2 items — e.g. `["app.py"]` or `["python", "app.py"]` (CFN bounds the list to 2). */
|
|
67
|
+
entryPoint: string[];
|
|
68
|
+
}
|
|
69
|
+
|
|
34
70
|
export interface AgentCoreAgentProps {
|
|
35
71
|
/**
|
|
36
72
|
* Base name for the agent's resources. `toRuntimeIdentifier(name)` derives
|
|
@@ -38,8 +74,16 @@ export interface AgentCoreAgentProps {
|
|
|
38
74
|
* WorkloadIdentity use `name` as-is (hyphens are valid there).
|
|
39
75
|
*/
|
|
40
76
|
name: string;
|
|
41
|
-
/**
|
|
42
|
-
|
|
77
|
+
/**
|
|
78
|
+
* ECR image URI the Runtime runs, e.g. `"123456789012.dkr.ecr.us-east-1.amazonaws.com/agent:latest"`.
|
|
79
|
+
* Supply exactly one of `containerUri` or `code`.
|
|
80
|
+
*/
|
|
81
|
+
containerUri?: string;
|
|
82
|
+
/**
|
|
83
|
+
* S3-zip code artifact run on a managed runtime — the alternative to
|
|
84
|
+
* `containerUri`. Supply exactly one of the two.
|
|
85
|
+
*/
|
|
86
|
+
code?: AgentCoreCodeArtifact;
|
|
43
87
|
/** Runtime network mode. Default: "PUBLIC". */
|
|
44
88
|
networkMode?: "PUBLIC" | "VPC";
|
|
45
89
|
/** Subnets for the Runtime's ENIs. Required when `networkMode` is "VPC". */
|
|
@@ -106,6 +150,12 @@ export type AgentCoreAgentResult = {
|
|
|
106
150
|
*/
|
|
107
151
|
export const AgentCoreAgent = Composite<AgentCoreAgentProps, AgentCoreAgentResult>((props) => {
|
|
108
152
|
const { defaults } = props;
|
|
153
|
+
// Exactly one artifact source. Both-or-neither is a modeling mistake CFN
|
|
154
|
+
// would also reject (AgentRuntimeArtifact is a one-of), caught here so the
|
|
155
|
+
// error names the composite prop rather than a raw CFN validation string.
|
|
156
|
+
if ((props.containerUri === undefined) === (props.code === undefined)) {
|
|
157
|
+
throw new Error("AgentCoreAgent requires exactly one of containerUri or code");
|
|
158
|
+
}
|
|
109
159
|
const networkMode = props.networkMode ?? "PUBLIC";
|
|
110
160
|
// Check presence, not `.length`: a cross-stack value (Fn::Split of a Parameter,
|
|
111
161
|
// the shape stackOutput/Ref/Split produce) is a truthy intrinsic object with no
|
|
@@ -146,13 +196,32 @@ export const AgentCoreAgent = Composite<AgentCoreAgentProps, AgentCoreAgentResul
|
|
|
146
196
|
: undefined,
|
|
147
197
|
});
|
|
148
198
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
199
|
+
// CFN `Code.S3` is a free-form location object in the generated type; its
|
|
200
|
+
// keys (Bucket/Prefix/VersionId) come straight from the CloudFormation
|
|
201
|
+
// schema for AWS::BedrockAgentCore::Runtime.
|
|
202
|
+
const artifact = props.code
|
|
203
|
+
? new Runtime_AgentRuntimeArtifact({
|
|
204
|
+
CodeConfiguration: new Runtime_CodeConfiguration({
|
|
205
|
+
Code: new Runtime_Code({
|
|
206
|
+
S3: {
|
|
207
|
+
Bucket: props.code.s3Bucket,
|
|
208
|
+
Prefix: props.code.s3Prefix,
|
|
209
|
+
...(props.code.s3VersionId !== undefined ? { VersionId: props.code.s3VersionId } : {}),
|
|
210
|
+
},
|
|
211
|
+
}),
|
|
212
|
+
EntryPoint: props.code.entryPoint,
|
|
213
|
+
Runtime: props.code.runtime,
|
|
214
|
+
}),
|
|
215
|
+
})
|
|
216
|
+
: new Runtime_AgentRuntimeArtifact({
|
|
152
217
|
ContainerConfiguration: new Runtime_ContainerConfiguration({
|
|
153
|
-
ContainerUri: props.containerUri,
|
|
218
|
+
ContainerUri: props.containerUri as string,
|
|
154
219
|
}),
|
|
155
|
-
})
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
const runtime = new Runtime(mergeDefaults({
|
|
223
|
+
AgentRuntimeName: runtimeName,
|
|
224
|
+
AgentRuntimeArtifact: artifact,
|
|
156
225
|
RoleArn: role.Arn,
|
|
157
226
|
NetworkConfiguration: networkConfiguration,
|
|
158
227
|
ProtocolConfiguration: props.protocolConfiguration ?? "MCP",
|
package/src/generated/index.d.ts
CHANGED
|
@@ -13923,6 +13923,37 @@ export declare class ExperimentTemplate {
|
|
|
13923
13923
|
readonly Id: string;
|
|
13924
13924
|
}
|
|
13925
13925
|
|
|
13926
|
+
export declare class ExperimentTrialComponent {
|
|
13927
|
+
constructor(props: {
|
|
13928
|
+
/** The name of the trial component. The name must be unique in your AWS account and is not case-sensitive. */
|
|
13929
|
+
TrialComponentName: string;
|
|
13930
|
+
/** The Amazon Resource Name (ARN) of the trial component. */
|
|
13931
|
+
Arn?: string;
|
|
13932
|
+
/** When the component was created. */
|
|
13933
|
+
CreationTime?: string;
|
|
13934
|
+
/** The name of the component as displayed. The name doesn't need to be unique. If DisplayName isn't specified, TrialComponentName is displayed. */
|
|
13935
|
+
DisplayName?: string;
|
|
13936
|
+
/** When the component ended. */
|
|
13937
|
+
EndTime?: string;
|
|
13938
|
+
/** When the component was last modified. */
|
|
13939
|
+
LastModifiedTime?: string;
|
|
13940
|
+
/** The Amazon Resource Name (ARN) of the lineage group. */
|
|
13941
|
+
LineageGroupArn?: string;
|
|
13942
|
+
/** Metadata properties of the tracking entity, trial, or trial component. */
|
|
13943
|
+
MetadataProperties?: Record<string, unknown>;
|
|
13944
|
+
/** When the component started. */
|
|
13945
|
+
StartTime?: string;
|
|
13946
|
+
/** The status of the trial component. */
|
|
13947
|
+
Status?: Record<string, unknown>;
|
|
13948
|
+
/** A list of tags to associate with the component. */
|
|
13949
|
+
Tags?: Record<string, unknown>[];
|
|
13950
|
+
}, attributes?: CFResourceAttributes);
|
|
13951
|
+
readonly Arn: string;
|
|
13952
|
+
readonly CreationTime: string;
|
|
13953
|
+
readonly LastModifiedTime: string;
|
|
13954
|
+
readonly LineageGroupArn: string;
|
|
13955
|
+
}
|
|
13956
|
+
|
|
13926
13957
|
export declare class Export {
|
|
13927
13958
|
constructor(props: {
|
|
13928
13959
|
Export: Export_Export;
|
|
@@ -22688,6 +22719,49 @@ export declare class ModelExplainabilityJobDefinition {
|
|
|
22688
22719
|
readonly JobDefinitionArn: string;
|
|
22689
22720
|
}
|
|
22690
22721
|
|
|
22722
|
+
export declare class ModelInvocationJob {
|
|
22723
|
+
constructor(props: {
|
|
22724
|
+
/** Details about the location of the input to the batch inference job. */
|
|
22725
|
+
InputDataConfig?: ModelInvocationJob_ModelInvocationJobInputDataConfig;
|
|
22726
|
+
/** The Amazon Resource Name (ARN) of the batch inference job. */
|
|
22727
|
+
JobArn?: string;
|
|
22728
|
+
/** The time at which the batch inference job times or timed out. */
|
|
22729
|
+
JobExpirationTime?: string;
|
|
22730
|
+
/** A name to give the batch inference job. */
|
|
22731
|
+
JobName?: string;
|
|
22732
|
+
/** The time at which the batch inference job was last modified. */
|
|
22733
|
+
LastModifiedTime?: string;
|
|
22734
|
+
/** The unique identifier of the foundation model to use for the batch inference job. */
|
|
22735
|
+
ModelId?: string;
|
|
22736
|
+
/** Details about the location of the output of the batch inference job. */
|
|
22737
|
+
OutputDataConfig?: ModelInvocationJob_ModelInvocationJobOutputDataConfig;
|
|
22738
|
+
/** The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. */
|
|
22739
|
+
RoleArn?: string;
|
|
22740
|
+
Status?: ModelInvocationJob_ModelInvocationJobStatus;
|
|
22741
|
+
/** The time at which the batch inference job was submitted. */
|
|
22742
|
+
SubmitTime?: string;
|
|
22743
|
+
/** Any tags associated with the batch inference job. */
|
|
22744
|
+
Tags?: ModelInvocationJob_Tag[];
|
|
22745
|
+
/** The number of hours after which to force the batch inference job to time out. */
|
|
22746
|
+
TimeoutDurationInHours?: number;
|
|
22747
|
+
/** The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. */
|
|
22748
|
+
VpcConfig?: ModelInvocationJob_VpcConfig;
|
|
22749
|
+
}, attributes?: CFResourceAttributes);
|
|
22750
|
+
readonly InputDataConfig: ModelInvocationJob_ModelInvocationJobInputDataConfig;
|
|
22751
|
+
readonly JobArn: string;
|
|
22752
|
+
readonly JobExpirationTime: string;
|
|
22753
|
+
readonly JobName: string;
|
|
22754
|
+
readonly LastModifiedTime: string;
|
|
22755
|
+
readonly ModelId: string;
|
|
22756
|
+
readonly OutputDataConfig: ModelInvocationJob_ModelInvocationJobOutputDataConfig;
|
|
22757
|
+
readonly RoleArn: string;
|
|
22758
|
+
readonly Status: ModelInvocationJob_ModelInvocationJobStatus;
|
|
22759
|
+
readonly SubmitTime: string;
|
|
22760
|
+
readonly Tags: ModelInvocationJob_Tag[];
|
|
22761
|
+
readonly TimeoutDurationInHours: number;
|
|
22762
|
+
readonly VpcConfig: ModelInvocationJob_VpcConfig;
|
|
22763
|
+
}
|
|
22764
|
+
|
|
22691
22765
|
export declare class ModelManifest {
|
|
22692
22766
|
constructor(props: {
|
|
22693
22767
|
Name: string;
|
|
@@ -22862,6 +22936,34 @@ export declare class MonitoringSchedule {
|
|
|
22862
22936
|
readonly MonitoringScheduleArn: string;
|
|
22863
22937
|
}
|
|
22864
22938
|
|
|
22939
|
+
export declare class MonitoringScheduleAlert {
|
|
22940
|
+
constructor(props: {
|
|
22941
|
+
/** Within EvaluationPeriod, how many execution failures will raise an alert. */
|
|
22942
|
+
DatapointsToAlert: number;
|
|
22943
|
+
/** The number of most recent monitoring executions to consider when evaluating alert status. */
|
|
22944
|
+
EvaluationPeriod: number;
|
|
22945
|
+
/** The name of the monitoring alert. */
|
|
22946
|
+
MonitoringAlertName: string;
|
|
22947
|
+
/** The name of the monitoring schedule. */
|
|
22948
|
+
MonitoringScheduleName: string;
|
|
22949
|
+
/** A list of alert actions taken in response to an alert going into InAlert status. */
|
|
22950
|
+
Actions?: MonitoringScheduleAlert_MonitoringAlertActions;
|
|
22951
|
+
/** The current status of the alert. */
|
|
22952
|
+
AlertStatus?: "InAlert" | "OK";
|
|
22953
|
+
/** The Amazon Resource Name (ARN) of the monitoring schedule alert. */
|
|
22954
|
+
Arn?: string;
|
|
22955
|
+
/** A timestamp that indicates when the alert was created. */
|
|
22956
|
+
CreationTime?: string;
|
|
22957
|
+
/** A timestamp that indicates when the alert was last updated. */
|
|
22958
|
+
LastModifiedTime?: string;
|
|
22959
|
+
}, attributes?: CFResourceAttributes);
|
|
22960
|
+
readonly Actions: MonitoringScheduleAlert_MonitoringAlertActions;
|
|
22961
|
+
readonly AlertStatus: "InAlert" | "OK";
|
|
22962
|
+
readonly Arn: string;
|
|
22963
|
+
readonly CreationTime: string;
|
|
22964
|
+
readonly LastModifiedTime: string;
|
|
22965
|
+
}
|
|
22966
|
+
|
|
22865
22967
|
export declare class MonitoringSubscription {
|
|
22866
22968
|
constructor(props: {
|
|
22867
22969
|
/** The ID of the distribution that you are enabling metrics for. */
|
|
@@ -91011,6 +91113,13 @@ export declare class ModelCardExportOutputConfig {
|
|
|
91011
91113
|
});
|
|
91012
91114
|
}
|
|
91013
91115
|
|
|
91116
|
+
export declare class ModelDashboardIndicatorAction {
|
|
91117
|
+
constructor(props: {
|
|
91118
|
+
/** Indicates whether the alert action is turned on. */
|
|
91119
|
+
Enabled?: boolean;
|
|
91120
|
+
});
|
|
91121
|
+
}
|
|
91122
|
+
|
|
91014
91123
|
export declare class ModelDataQuality {
|
|
91015
91124
|
constructor(props: {
|
|
91016
91125
|
Constraints?: ModelPackage_MetricsSource;
|
|
@@ -91230,6 +91339,88 @@ export declare class ModelInput {
|
|
|
91230
91339
|
});
|
|
91231
91340
|
}
|
|
91232
91341
|
|
|
91342
|
+
export declare class ModelInvocationJob_ModelInvocationJobInputDataConfig {
|
|
91343
|
+
constructor(props: {
|
|
91344
|
+
S3InputDataConfig: ModelInvocationJob_ModelInvocationJobS3InputDataConfig;
|
|
91345
|
+
});
|
|
91346
|
+
}
|
|
91347
|
+
|
|
91348
|
+
export declare class ModelInvocationJob_ModelInvocationJobOutputDataConfig {
|
|
91349
|
+
constructor(props: {
|
|
91350
|
+
S3OutputDataConfig: ModelInvocationJob_ModelInvocationJobS3OutputDataConfig;
|
|
91351
|
+
});
|
|
91352
|
+
}
|
|
91353
|
+
|
|
91354
|
+
export declare class ModelInvocationJob_ModelInvocationJobS3InputDataConfig {
|
|
91355
|
+
constructor(props: {
|
|
91356
|
+
/** The S3 location of the input data. */
|
|
91357
|
+
S3Uri: string;
|
|
91358
|
+
/** The ID of the AWS account that owns the S3 bucket containing the input data. */
|
|
91359
|
+
S3BucketOwner?: string;
|
|
91360
|
+
});
|
|
91361
|
+
}
|
|
91362
|
+
|
|
91363
|
+
export declare class ModelInvocationJob_ModelInvocationJobS3OutputDataConfig {
|
|
91364
|
+
constructor(props: {
|
|
91365
|
+
/** The S3 location of the output data. */
|
|
91366
|
+
S3Uri: string;
|
|
91367
|
+
/** The ID of the AWS account that owns the S3 bucket containing the output data. */
|
|
91368
|
+
S3BucketOwner?: string;
|
|
91369
|
+
/** The unique identifier of the key that encrypts the S3 location of the output data. */
|
|
91370
|
+
S3EncryptionKeyId?: string;
|
|
91371
|
+
});
|
|
91372
|
+
}
|
|
91373
|
+
|
|
91374
|
+
export declare class ModelInvocationJob_Tag {
|
|
91375
|
+
constructor(props: {
|
|
91376
|
+
/** The key name of the tag. */
|
|
91377
|
+
Key: string;
|
|
91378
|
+
/** The value for the tag. */
|
|
91379
|
+
Value: string;
|
|
91380
|
+
});
|
|
91381
|
+
}
|
|
91382
|
+
|
|
91383
|
+
export declare class ModelInvocationJob_VpcConfig {
|
|
91384
|
+
constructor(props: {
|
|
91385
|
+
/** An array of IDs for each security group in the VPC to use. */
|
|
91386
|
+
SecurityGroupIds: string[];
|
|
91387
|
+
/** An array of IDs for each subnet in the VPC to use. */
|
|
91388
|
+
SubnetIds: string[];
|
|
91389
|
+
});
|
|
91390
|
+
}
|
|
91391
|
+
|
|
91392
|
+
export declare class ModelInvocationJobInputDataConfig {
|
|
91393
|
+
constructor(props: {
|
|
91394
|
+
S3InputDataConfig: ModelInvocationJob_ModelInvocationJobS3InputDataConfig;
|
|
91395
|
+
});
|
|
91396
|
+
}
|
|
91397
|
+
|
|
91398
|
+
export declare class ModelInvocationJobOutputDataConfig {
|
|
91399
|
+
constructor(props: {
|
|
91400
|
+
S3OutputDataConfig: ModelInvocationJob_ModelInvocationJobS3OutputDataConfig;
|
|
91401
|
+
});
|
|
91402
|
+
}
|
|
91403
|
+
|
|
91404
|
+
export declare class ModelInvocationJobS3InputDataConfig {
|
|
91405
|
+
constructor(props: {
|
|
91406
|
+
/** The S3 location of the input data. */
|
|
91407
|
+
S3Uri: string;
|
|
91408
|
+
/** The ID of the AWS account that owns the S3 bucket containing the input data. */
|
|
91409
|
+
S3BucketOwner?: string;
|
|
91410
|
+
});
|
|
91411
|
+
}
|
|
91412
|
+
|
|
91413
|
+
export declare class ModelInvocationJobS3OutputDataConfig {
|
|
91414
|
+
constructor(props: {
|
|
91415
|
+
/** The S3 location of the output data. */
|
|
91416
|
+
S3Uri: string;
|
|
91417
|
+
/** The ID of the AWS account that owns the S3 bucket containing the output data. */
|
|
91418
|
+
S3BucketOwner?: string;
|
|
91419
|
+
/** The unique identifier of the key that encrypts the S3 location of the output data. */
|
|
91420
|
+
S3EncryptionKeyId?: string;
|
|
91421
|
+
});
|
|
91422
|
+
}
|
|
91423
|
+
|
|
91233
91424
|
export declare class ModelManifest_Tag {
|
|
91234
91425
|
constructor(props: {
|
|
91235
91426
|
Key: string;
|
|
@@ -91919,6 +92110,12 @@ export declare class Monitoring {
|
|
|
91919
92110
|
});
|
|
91920
92111
|
}
|
|
91921
92112
|
|
|
92113
|
+
export declare class MonitoringAlertActions {
|
|
92114
|
+
constructor(props: {
|
|
92115
|
+
ModelDashboardIndicator?: MonitoringScheduleAlert_ModelDashboardIndicatorAction;
|
|
92116
|
+
});
|
|
92117
|
+
}
|
|
92118
|
+
|
|
91922
92119
|
export declare class MonitoringAppSpecification {
|
|
91923
92120
|
constructor(props: {
|
|
91924
92121
|
/** The container image to be run by the monitoring job. */
|
|
@@ -92088,6 +92285,19 @@ export declare class MonitoringSchedule_Tag {
|
|
|
92088
92285
|
});
|
|
92089
92286
|
}
|
|
92090
92287
|
|
|
92288
|
+
export declare class MonitoringScheduleAlert_ModelDashboardIndicatorAction {
|
|
92289
|
+
constructor(props: {
|
|
92290
|
+
/** Indicates whether the alert action is turned on. */
|
|
92291
|
+
Enabled?: boolean;
|
|
92292
|
+
});
|
|
92293
|
+
}
|
|
92294
|
+
|
|
92295
|
+
export declare class MonitoringScheduleAlert_MonitoringAlertActions {
|
|
92296
|
+
constructor(props: {
|
|
92297
|
+
ModelDashboardIndicator?: MonitoringScheduleAlert_ModelDashboardIndicatorAction;
|
|
92298
|
+
});
|
|
92299
|
+
}
|
|
92300
|
+
|
|
92091
92301
|
export declare class MonitoringScheduleConfig {
|
|
92092
92302
|
constructor(props: {
|
|
92093
92303
|
MonitoringJobDefinition?: MonitoringSchedule_MonitoringJobDefinition;
|
|
@@ -128874,6 +129084,18 @@ export type MicrovmImage_MicrovmImageState =
|
|
|
128874
129084
|
|
|
128875
129085
|
export type ModelCard_RiskRating = "High" | "Low" | "Medium" | "Unknown";
|
|
128876
129086
|
|
|
129087
|
+
export type ModelInvocationJob_ModelInvocationJobStatus =
|
|
129088
|
+
| "Completed"
|
|
129089
|
+
| "Expired"
|
|
129090
|
+
| "Failed"
|
|
129091
|
+
| "InProgress"
|
|
129092
|
+
| "PartiallyCompleted"
|
|
129093
|
+
| "Scheduled"
|
|
129094
|
+
| "Stopped"
|
|
129095
|
+
| "Stopping"
|
|
129096
|
+
| "Submitted"
|
|
129097
|
+
| "Validating";
|
|
129098
|
+
|
|
128877
129099
|
export type ModelManifest_ManifestStatus = "ACTIVE" | "DRAFT";
|
|
128878
129100
|
|
|
128879
129101
|
export type ModelPackage_ModelApprovalStatus = "Approved" | "PendingManualApproval" | "Rejected";
|
package/src/generated/index.ts
CHANGED
|
@@ -542,6 +542,7 @@ export const EvidentlySegment = createResource("AWS::Evidently::Segment", "aws",
|
|
|
542
542
|
export const EVSEnvironment = createResource("AWS::EVS::Environment", "aws", {"EnvironmentId":"EnvironmentId","Checks":"Checks","EnvironmentArn":"EnvironmentArn","Credentials":"Credentials","EnvironmentState":"EnvironmentState","StateDetails":"StateDetails","CreatedAt":"CreatedAt","ModifiedAt":"ModifiedAt"});
|
|
543
543
|
export const ExecutionPlan = createResource("AWS::KendraRanking::ExecutionPlan", "aws", {"Id":"Id","Arn":"Arn"});
|
|
544
544
|
export const ExperimentTemplate = createResource("AWS::FIS::ExperimentTemplate", "aws", {"Id":"Id"});
|
|
545
|
+
export const ExperimentTrialComponent = createResource("AWS::SageMaker::ExperimentTrialComponent", "aws", {"Arn":"Arn","CreationTime":"CreationTime","LastModifiedTime":"LastModifiedTime","LineageGroupArn":"LineageGroupArn"});
|
|
545
546
|
export const Export = createResource("AWS::BCMDataExports::Export", "aws", {"ExportArn":"ExportArn","Export_ExportArn":"Export.ExportArn"});
|
|
546
547
|
export const ExpressGatewayService = createResource("AWS::ECS::ExpressGatewayService", "aws", {"ServiceArn":"ServiceArn","ActiveConfigurations":"ActiveConfigurations","Status":"Status","CreatedAt":"CreatedAt","UpdatedAt":"UpdatedAt","Endpoint":"Endpoint","ECSManagedResourceArns":"ECSManagedResourceArns","ECSManagedResourceArns_ServiceSecurityGroups":"ECSManagedResourceArns.ServiceSecurityGroups","ECSManagedResourceArns_AutoScaling":"ECSManagedResourceArns.AutoScaling","ECSManagedResourceArns_AutoScaling_ScalableTarget":"ECSManagedResourceArns.AutoScaling.ScalableTarget","ECSManagedResourceArns_AutoScaling_ApplicationAutoScalingPolicies":"ECSManagedResourceArns.AutoScaling.ApplicationAutoScalingPolicies","ECSManagedResourceArns_LogGroups":"ECSManagedResourceArns.LogGroups","ECSManagedResourceArns_MetricAlarms":"ECSManagedResourceArns.MetricAlarms","ECSManagedResourceArns_IngressPath":"ECSManagedResourceArns.IngressPath","ECSManagedResourceArns_IngressPath_CertificateArn":"ECSManagedResourceArns.IngressPath.CertificateArn","ECSManagedResourceArns_IngressPath_LoadBalancerSecurityGroups":"ECSManagedResourceArns.IngressPath.LoadBalancerSecurityGroups","ECSManagedResourceArns_IngressPath_ListenerRuleArn":"ECSManagedResourceArns.IngressPath.ListenerRuleArn","ECSManagedResourceArns_IngressPath_ListenerArn":"ECSManagedResourceArns.IngressPath.ListenerArn","ECSManagedResourceArns_IngressPath_LoadBalancerArn":"ECSManagedResourceArns.IngressPath.LoadBalancerArn","ECSManagedResourceArns_IngressPath_TargetGroupArns":"ECSManagedResourceArns.IngressPath.TargetGroupArns"});
|
|
547
548
|
export const Extension = createResource("AWS::AppConfig::Extension", "aws", {"Id":"Id","Arn":"Arn","VersionNumber":"VersionNumber"});
|
|
@@ -911,6 +912,7 @@ export const ModelBiasJobDefinition = createResource("AWS::SageMaker::ModelBiasJ
|
|
|
911
912
|
export const ModelCard = createResource("AWS::SageMaker::ModelCard", "aws", {"ModelCardArn":"ModelCardArn","ModelCardVersion":"ModelCardVersion","CreatedBy_DomainId":"CreatedBy.DomainId","CreatedBy_UserProfileArn":"CreatedBy.UserProfileArn","CreatedBy_UserProfileName":"CreatedBy.UserProfileName","LastModifiedBy_DomainId":"LastModifiedBy.DomainId","LastModifiedBy_UserProfileArn":"LastModifiedBy.UserProfileArn","LastModifiedBy_UserProfileName":"LastModifiedBy.UserProfileName","CreationTime":"CreationTime","LastModifiedTime":"LastModifiedTime","ModelCardProcessingStatus":"ModelCardProcessingStatus"});
|
|
912
913
|
export const ModelCardExportJob = createResource("AWS::SageMaker::ModelCardExportJob", "aws", {"ModelCardExportJobArn":"ModelCardExportJobArn","Status":"Status","CreatedAt":"CreatedAt","LastModifiedAt":"LastModifiedAt","ExportArtifacts":"ExportArtifacts"});
|
|
913
914
|
export const ModelExplainabilityJobDefinition = createResource("AWS::SageMaker::ModelExplainabilityJobDefinition", "aws", {"CreationTime":"CreationTime","JobDefinitionArn":"JobDefinitionArn"});
|
|
915
|
+
export const ModelInvocationJob = createResource("AWS::Bedrock::ModelInvocationJob", "aws", {"JobArn":"JobArn","JobName":"JobName","ModelId":"ModelId","RoleArn":"RoleArn","InputDataConfig":"InputDataConfig","OutputDataConfig":"OutputDataConfig","VpcConfig":"VpcConfig","TimeoutDurationInHours":"TimeoutDurationInHours","Status":"Status","SubmitTime":"SubmitTime","LastModifiedTime":"LastModifiedTime","JobExpirationTime":"JobExpirationTime","Tags":"Tags"});
|
|
914
916
|
export const ModelManifest = createResource("AWS::IoTFleetWise::ModelManifest", "aws", {"Arn":"Arn","CreationTime":"CreationTime","LastModificationTime":"LastModificationTime"});
|
|
915
917
|
export const ModelPackage = createResource("AWS::SageMaker::ModelPackage", "aws", {"ModelPackageArn":"ModelPackageArn","CreationTime":"CreationTime","LastModifiedTime":"LastModifiedTime","ModelPackageStatus":"ModelPackageStatus"});
|
|
916
918
|
export const ModelPackageGroup = createResource("AWS::SageMaker::ModelPackageGroup", "aws", {"ModelPackageGroupArn":"ModelPackageGroupArn","CreationTime":"CreationTime","ModelPackageGroupStatus":"ModelPackageGroupStatus"});
|
|
@@ -918,6 +920,7 @@ export const ModelQualityJobDefinition = createResource("AWS::SageMaker::ModelQu
|
|
|
918
920
|
export const ModuleDefaultVersion = createResource("AWS::CloudFormation::ModuleDefaultVersion", "aws", {});
|
|
919
921
|
export const ModuleVersion = createResource("AWS::CloudFormation::ModuleVersion", "aws", {"Arn":"Arn","Description":"Description","DocumentationUrl":"DocumentationUrl","IsDefaultVersion":"IsDefaultVersion","Schema":"Schema","TimeCreated":"TimeCreated","VersionId":"VersionId","Visibility":"Visibility"});
|
|
920
922
|
export const MonitoringSchedule = createResource("AWS::SageMaker::MonitoringSchedule", "aws", {"MonitoringScheduleArn":"MonitoringScheduleArn","CreationTime":"CreationTime","LastModifiedTime":"LastModifiedTime"});
|
|
923
|
+
export const MonitoringScheduleAlert = createResource("AWS::SageMaker::MonitoringScheduleAlert", "aws", {"Arn":"Arn","AlertStatus":"AlertStatus","CreationTime":"CreationTime","LastModifiedTime":"LastModifiedTime","Actions":"Actions"});
|
|
921
924
|
export const MonitoringSubscription = createResource("AWS::CloudFront::MonitoringSubscription", "aws", {});
|
|
922
925
|
export const MPAIdentitySource = createResource("AWS::MPA::IdentitySource", "aws", {"IdentitySourceArn":"IdentitySourceArn","IdentitySourceType":"IdentitySourceType","IdentitySourceParameters_IamIdentityCenter_ApprovalPortalUrl":"IdentitySourceParameters.IamIdentityCenter.ApprovalPortalUrl","CreationTime":"CreationTime","Status":"Status","StatusCode":"StatusCode","StatusMessage":"StatusMessage"});
|
|
923
926
|
export const MSKCluster = createResource("AWS::MSK::Cluster", "aws", {"Arn":"Arn","CurrentVersion":"CurrentVersion"});
|
|
@@ -7053,6 +7056,7 @@ export const ModelCardExportArtifacts = createProperty("AWS::SageMaker::ModelCar
|
|
|
7053
7056
|
export const ModelCardExportJob_ModelCardExportArtifacts = createProperty("AWS::SageMaker::ModelCardExportJob.ModelCardExportArtifacts", "aws");
|
|
7054
7057
|
export const ModelCardExportJob_ModelCardExportOutputConfig = createProperty("AWS::SageMaker::ModelCardExportJob.ModelCardExportOutputConfig", "aws");
|
|
7055
7058
|
export const ModelCardExportOutputConfig = createProperty("AWS::SageMaker::ModelCardExportJob.ModelCardExportOutputConfig", "aws");
|
|
7059
|
+
export const ModelDashboardIndicatorAction = createProperty("AWS::SageMaker::MonitoringScheduleAlert.ModelDashboardIndicatorAction", "aws");
|
|
7056
7060
|
export const ModelDataQuality = createProperty("AWS::SageMaker::ModelPackage.ModelDataQuality", "aws");
|
|
7057
7061
|
export const ModelEnforcement = createProperty("AWS::Bedrock::EnforcedGuardrailConfiguration.ModelEnforcement", "aws");
|
|
7058
7062
|
export const ModelExplainabilityAppSpecification = createProperty("AWS::SageMaker::ModelExplainabilityJobDefinition.ModelExplainabilityAppSpecification", "aws");
|
|
@@ -7077,6 +7081,16 @@ export const ModelExplainabilityJobInput = createProperty("AWS::SageMaker::Model
|
|
|
7077
7081
|
export const ModelInferencePaymentConfig = createProperty("AWS::CleanRooms::Collaboration.ModelInferencePaymentConfig", "aws");
|
|
7078
7082
|
export const ModelInfrastructureConfig = createProperty("AWS::SageMaker::InferenceExperiment.ModelInfrastructureConfig", "aws");
|
|
7079
7083
|
export const ModelInput = createProperty("AWS::SageMaker::Algorithm.ModelInput", "aws");
|
|
7084
|
+
export const ModelInvocationJob_ModelInvocationJobInputDataConfig = createProperty("AWS::Bedrock::ModelInvocationJob.ModelInvocationJobInputDataConfig", "aws");
|
|
7085
|
+
export const ModelInvocationJob_ModelInvocationJobOutputDataConfig = createProperty("AWS::Bedrock::ModelInvocationJob.ModelInvocationJobOutputDataConfig", "aws");
|
|
7086
|
+
export const ModelInvocationJob_ModelInvocationJobS3InputDataConfig = createProperty("AWS::Bedrock::ModelInvocationJob.ModelInvocationJobS3InputDataConfig", "aws");
|
|
7087
|
+
export const ModelInvocationJob_ModelInvocationJobS3OutputDataConfig = createProperty("AWS::Bedrock::ModelInvocationJob.ModelInvocationJobS3OutputDataConfig", "aws");
|
|
7088
|
+
export const ModelInvocationJob_Tag = createProperty("AWS::Bedrock::ModelInvocationJob.Tag", "aws");
|
|
7089
|
+
export const ModelInvocationJob_VpcConfig = createProperty("AWS::Bedrock::ModelInvocationJob.VpcConfig", "aws");
|
|
7090
|
+
export const ModelInvocationJobInputDataConfig = createProperty("AWS::Bedrock::ModelInvocationJob.ModelInvocationJobInputDataConfig", "aws");
|
|
7091
|
+
export const ModelInvocationJobOutputDataConfig = createProperty("AWS::Bedrock::ModelInvocationJob.ModelInvocationJobOutputDataConfig", "aws");
|
|
7092
|
+
export const ModelInvocationJobS3InputDataConfig = createProperty("AWS::Bedrock::ModelInvocationJob.ModelInvocationJobS3InputDataConfig", "aws");
|
|
7093
|
+
export const ModelInvocationJobS3OutputDataConfig = createProperty("AWS::Bedrock::ModelInvocationJob.ModelInvocationJobS3OutputDataConfig", "aws");
|
|
7080
7094
|
export const ModelManifest_Tag = createProperty("AWS::IoTFleetWise::ModelManifest.Tag", "aws");
|
|
7081
7095
|
export const ModelMetrics = createProperty("AWS::SageMaker::ModelPackage.ModelMetrics", "aws");
|
|
7082
7096
|
export const ModelOverview = createProperty("AWS::SageMaker::ModelCard.ModelOverview", "aws");
|
|
@@ -7144,6 +7158,7 @@ export const Monitor = createProperty("AWS::AppConfig::Environment.Monitor", "aw
|
|
|
7144
7158
|
export const MonitorDeployment = createProperty("AWS::MediaLive::SignalMap.MonitorDeployment", "aws");
|
|
7145
7159
|
export const MonitoredRequestCountMetric = createProperty("AWS::ApplicationSignals::ServiceLevelObjective.MonitoredRequestCountMetric", "aws");
|
|
7146
7160
|
export const Monitoring = createProperty("AWS::EC2::LaunchTemplate.Monitoring", "aws");
|
|
7161
|
+
export const MonitoringAlertActions = createProperty("AWS::SageMaker::MonitoringScheduleAlert.MonitoringAlertActions", "aws");
|
|
7147
7162
|
export const MonitoringAppSpecification = createProperty("AWS::SageMaker::MonitoringSchedule.MonitoringAppSpecification", "aws");
|
|
7148
7163
|
export const MonitoringExecutionSummary = createProperty("AWS::SageMaker::MonitoringSchedule.MonitoringExecutionSummary", "aws");
|
|
7149
7164
|
export const MonitoringJobDefinition = createProperty("AWS::SageMaker::MonitoringSchedule.MonitoringJobDefinition", "aws");
|
|
@@ -7158,6 +7173,8 @@ export const MonitoringSchedule_NetworkConfig = createProperty("AWS::SageMaker::
|
|
|
7158
7173
|
export const MonitoringSchedule_ScheduleConfig = createProperty("AWS::SageMaker::MonitoringSchedule.ScheduleConfig", "aws");
|
|
7159
7174
|
export const MonitoringSchedule_StoppingCondition = createProperty("AWS::SageMaker::MonitoringSchedule.StoppingCondition", "aws");
|
|
7160
7175
|
export const MonitoringSchedule_Tag = createProperty("AWS::SageMaker::MonitoringSchedule.Tag", "aws");
|
|
7176
|
+
export const MonitoringScheduleAlert_ModelDashboardIndicatorAction = createProperty("AWS::SageMaker::MonitoringScheduleAlert.ModelDashboardIndicatorAction", "aws");
|
|
7177
|
+
export const MonitoringScheduleAlert_MonitoringAlertActions = createProperty("AWS::SageMaker::MonitoringScheduleAlert.MonitoringAlertActions", "aws");
|
|
7161
7178
|
export const MonitoringScheduleConfig = createProperty("AWS::SageMaker::MonitoringSchedule.MonitoringScheduleConfig", "aws");
|
|
7162
7179
|
export const MonitoringSubscription_MonitoringSubscription = createProperty("AWS::CloudFront::MonitoringSubscription.MonitoringSubscription", "aws");
|
|
7163
7180
|
export const MonitoringSubscription_RealtimeMetricsSubscriptionConfig = createProperty("AWS::CloudFront::MonitoringSubscription.RealtimeMetricsSubscriptionConfig", "aws");
|