Skip to content

Commit 6398dc7

Browse files
Updated API models and rebuilt service gems.
1 parent 254f8de commit 6398dc7

File tree

65 files changed

+1850
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1850
-508
lines changed

apis/bedrock-runtime/2023-09-30/api-2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
"type":"string",
261261
"max":2048,
262262
"min":1,
263-
"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}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)"
263+
"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}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)"
264264
},
265265
"ConverseMetrics":{
266266
"type":"structure",
@@ -1048,7 +1048,7 @@
10481048
"type":"string",
10491049
"max":2048,
10501050
"min":1,
1051-
"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}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)"
1051+
"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}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)"
10521052
},
10531053
"InvokeModelRequest":{
10541054
"type":"structure",

apis/bedrock/2023-04-20/api-2.json

Lines changed: 114 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,27 @@
9090
{"shape":"ThrottlingException"}
9191
]
9292
},
93+
"CreateInferenceProfile":{
94+
"name":"CreateInferenceProfile",
95+
"http":{
96+
"method":"POST",
97+
"requestUri":"/inference-profiles",
98+
"responseCode":201
99+
},
100+
"input":{"shape":"CreateInferenceProfileRequest"},
101+
"output":{"shape":"CreateInferenceProfileResponse"},
102+
"errors":[
103+
{"shape":"ResourceNotFoundException"},
104+
{"shape":"AccessDeniedException"},
105+
{"shape":"ValidationException"},
106+
{"shape":"ConflictException"},
107+
{"shape":"InternalServerException"},
108+
{"shape":"TooManyTagsException"},
109+
{"shape":"ServiceQuotaExceededException"},
110+
{"shape":"ThrottlingException"}
111+
],
112+
"idempotent":true
113+
},
93114
"CreateModelCopyJob":{
94115
"name":"CreateModelCopyJob",
95116
"http":{
@@ -246,6 +267,25 @@
246267
],
247268
"idempotent":true
248269
},
270+
"DeleteInferenceProfile":{
271+
"name":"DeleteInferenceProfile",
272+
"http":{
273+
"method":"DELETE",
274+
"requestUri":"/inference-profiles/{inferenceProfileIdentifier}",
275+
"responseCode":200
276+
},
277+
"input":{"shape":"DeleteInferenceProfileRequest"},
278+
"output":{"shape":"DeleteInferenceProfileResponse"},
279+
"errors":[
280+
{"shape":"ResourceNotFoundException"},
281+
{"shape":"AccessDeniedException"},
282+
{"shape":"ValidationException"},
283+
{"shape":"ConflictException"},
284+
{"shape":"InternalServerException"},
285+
{"shape":"ThrottlingException"}
286+
],
287+
"idempotent":true
288+
},
249289
"DeleteModelInvocationLoggingConfiguration":{
250290
"name":"DeleteModelInvocationLoggingConfiguration",
251291
"http":{
@@ -1053,6 +1093,31 @@
10531093
"version":{"shape":"GuardrailNumericalVersion"}
10541094
}
10551095
},
1096+
"CreateInferenceProfileRequest":{
1097+
"type":"structure",
1098+
"required":[
1099+
"inferenceProfileName",
1100+
"modelSource"
1101+
],
1102+
"members":{
1103+
"inferenceProfileName":{"shape":"InferenceProfileName"},
1104+
"description":{"shape":"InferenceProfileDescription"},
1105+
"clientRequestToken":{
1106+
"shape":"IdempotencyToken",
1107+
"idempotencyToken":true
1108+
},
1109+
"modelSource":{"shape":"InferenceProfileModelSource"},
1110+
"tags":{"shape":"TagList"}
1111+
}
1112+
},
1113+
"CreateInferenceProfileResponse":{
1114+
"type":"structure",
1115+
"required":["inferenceProfileArn"],
1116+
"members":{
1117+
"inferenceProfileArn":{"shape":"InferenceProfileArn"},
1118+
"status":{"shape":"InferenceProfileStatus"}
1119+
}
1120+
},
10561121
"CreateModelCopyJobRequest":{
10571122
"type":"structure",
10581123
"required":[
@@ -1294,6 +1359,22 @@
12941359
"members":{
12951360
}
12961361
},
1362+
"DeleteInferenceProfileRequest":{
1363+
"type":"structure",
1364+
"required":["inferenceProfileIdentifier"],
1365+
"members":{
1366+
"inferenceProfileIdentifier":{
1367+
"shape":"InferenceProfileIdentifier",
1368+
"location":"uri",
1369+
"locationName":"inferenceProfileIdentifier"
1370+
}
1371+
}
1372+
},
1373+
"DeleteInferenceProfileResponse":{
1374+
"type":"structure",
1375+
"members":{
1376+
}
1377+
},
12971378
"DeleteModelInvocationLoggingConfigurationRequest":{
12981379
"type":"structure",
12991380
"members":{
@@ -1485,7 +1566,7 @@
14851566
"type":"string",
14861567
"max":2048,
14871568
"min":1,
1488-
"pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((: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})|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/(([a-z]{2}.)[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))))|(([a-z]{2}[.]{1})([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))"
1569+
"pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((: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})|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:application-inference-profile/[a-z0-9]{12})|([0-9]{12}:inference-profile/(([a-z]{2}.)[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))))|(([a-z]{2}[.]{1})([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))"
14891570
},
14901571
"EvaluationModelIdentifiers":{
14911572
"type":"list",
@@ -1814,19 +1895,19 @@
18141895
"type":"structure",
18151896
"required":[
18161897
"inferenceProfileName",
1817-
"models",
18181898
"inferenceProfileArn",
1899+
"models",
18191900
"inferenceProfileId",
18201901
"status",
18211902
"type"
18221903
],
18231904
"members":{
18241905
"inferenceProfileName":{"shape":"InferenceProfileName"},
1825-
"models":{"shape":"InferenceProfileModels"},
18261906
"description":{"shape":"InferenceProfileDescription"},
18271907
"createdAt":{"shape":"Timestamp"},
18281908
"updatedAt":{"shape":"Timestamp"},
18291909
"inferenceProfileArn":{"shape":"InferenceProfileArn"},
1910+
"models":{"shape":"InferenceProfileModels"},
18301911
"inferenceProfileId":{"shape":"InferenceProfileId"},
18311912
"status":{"shape":"InferenceProfileStatus"},
18321913
"type":{"shape":"InferenceProfileType"}
@@ -2688,13 +2769,14 @@
26882769
"type":"string",
26892770
"max":2048,
26902771
"min":1,
2691-
"pattern":"arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+"
2772+
"pattern":"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-:.]+"
26922773
},
26932774
"InferenceProfileDescription":{
26942775
"type":"string",
2695-
"max":500,
2776+
"max":200,
26962777
"min":1,
2697-
"pattern":".+"
2778+
"pattern":"([0-9a-zA-Z:.][ _-]?)+",
2779+
"sensitive":true
26982780
},
26992781
"InferenceProfileId":{
27002782
"type":"string",
@@ -2706,14 +2788,27 @@
27062788
"type":"string",
27072789
"max":2048,
27082790
"min":1,
2709-
"pattern":"(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):inference-profile/)?[a-zA-Z0-9-:.]+"
2791+
"pattern":"(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-:.]+"
27102792
},
27112793
"InferenceProfileModel":{
27122794
"type":"structure",
27132795
"members":{
27142796
"modelArn":{"shape":"FoundationModelArn"}
27152797
}
27162798
},
2799+
"InferenceProfileModelSource":{
2800+
"type":"structure",
2801+
"members":{
2802+
"copyFrom":{"shape":"InferenceProfileModelSourceArn"}
2803+
},
2804+
"union":true
2805+
},
2806+
"InferenceProfileModelSourceArn":{
2807+
"type":"string",
2808+
"max":2048,
2809+
"min":1,
2810+
"pattern":"arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):(inference-profile|foundation-model)/[a-zA-Z0-9-:.]+"
2811+
},
27172812
"InferenceProfileModels":{
27182813
"type":"list",
27192814
"member":{"shape":"InferenceProfileModel"},
@@ -2738,27 +2833,30 @@
27382833
"type":"structure",
27392834
"required":[
27402835
"inferenceProfileName",
2741-
"models",
27422836
"inferenceProfileArn",
2837+
"models",
27432838
"inferenceProfileId",
27442839
"status",
27452840
"type"
27462841
],
27472842
"members":{
27482843
"inferenceProfileName":{"shape":"InferenceProfileName"},
2749-
"models":{"shape":"InferenceProfileModels"},
27502844
"description":{"shape":"InferenceProfileDescription"},
27512845
"createdAt":{"shape":"Timestamp"},
27522846
"updatedAt":{"shape":"Timestamp"},
27532847
"inferenceProfileArn":{"shape":"InferenceProfileArn"},
2848+
"models":{"shape":"InferenceProfileModels"},
27542849
"inferenceProfileId":{"shape":"InferenceProfileId"},
27552850
"status":{"shape":"InferenceProfileStatus"},
27562851
"type":{"shape":"InferenceProfileType"}
27572852
}
27582853
},
27592854
"InferenceProfileType":{
27602855
"type":"string",
2761-
"enum":["SYSTEM_DEFINED"]
2856+
"enum":[
2857+
"SYSTEM_DEFINED",
2858+
"APPLICATION"
2859+
]
27622860
},
27632861
"InferenceType":{
27642862
"type":"string",
@@ -3039,6 +3137,11 @@
30393137
"shape":"PaginationToken",
30403138
"location":"querystring",
30413139
"locationName":"nextToken"
3140+
},
3141+
"typeEquals":{
3142+
"shape":"InferenceProfileType",
3143+
"location":"querystring",
3144+
"locationName":"type"
30423145
}
30433146
}
30443147
},
@@ -3971,7 +4074,7 @@
39714074
"type":"string",
39724075
"max":1011,
39734076
"min":20,
3974-
"pattern":".*(^[a-zA-Z0-9][a-zA-Z0-9\\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job|custom-model)/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12})$)|(:guardrail/[a-z0-9]+$)|(:(provisioned-model|model-invocation-job|model-evaluation-job|evaluation-job|model-import-job|imported-model)/[a-z0-9]{12}$))).*"
4077+
"pattern":".*(^[a-zA-Z0-9][a-zA-Z0-9\\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job|custom-model)/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12})$)|(:guardrail/[a-z0-9]+$)|(:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+$)|(:(provisioned-model|model-invocation-job|model-evaluation-job|evaluation-job|model-import-job|imported-model)/[a-z0-9]{12}$))).*"
39754078
},
39764079
"ThrottlingException":{
39774080
"type":"structure",

0 commit comments

Comments
 (0)