Skip to content

Commit 8c7e650

Browse files
author
AWS
committed
Amazon Bedrock Update: Release for fixing GetFoundationModel API behavior. Imported and custom models have their own exclusive API and GetFM should not accept those ARNS as input
1 parent 1cbcdeb commit 8c7e650

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Bedrock",
4+
"contributor": "",
5+
"description": "Release for fixing GetFoundationModel API behavior. Imported and custom models have their own exclusive API and GetFM should not accept those ARNS as input"
6+
}

services/bedrock/src/main/resources/codegen-resources/service-2.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4887,7 +4887,7 @@
48874887
"type":"string",
48884888
"max":1011,
48894889
"min":20,
4890-
"pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:custom-model/(imported|[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}"
4890+
"pattern":"arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:[a-z0-9-]{1,20}:[0-9]{12}:custom-model/(imported|[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}"
48914891
},
48924892
"CustomModelDeploymentArn":{
48934893
"type":"string",
@@ -6810,12 +6810,18 @@
68106810
}
68116811
}
68126812
},
6813+
"GetFoundationModelIdentifier":{
6814+
"type":"string",
6815+
"max":2048,
6816+
"min":1,
6817+
"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})|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})"
6818+
},
68136819
"GetFoundationModelRequest":{
68146820
"type":"structure",
68156821
"required":["modelIdentifier"],
68166822
"members":{
68176823
"modelIdentifier":{
6818-
"shape":"ModelIdentifier",
6824+
"shape":"GetFoundationModelIdentifier",
68196825
"documentation":"<p>The model identifier. </p>",
68206826
"location":"uri",
68216827
"locationName":"modelIdentifier"
@@ -8898,7 +8904,7 @@
88988904
"type":"string",
88998905
"max":256,
89008906
"min":1,
8901-
"pattern":"[a-zA-Z0-9](-*[a-zA-Z0-9])*"
8907+
"pattern":"[a-zA-Z0-9]([-a-zA-Z0-9]{0,254}[a-zA-Z0-9])?"
89028908
},
89038909
"Identifier":{
89048910
"type":"string",
@@ -11768,7 +11774,6 @@
1176811774
},
1176911775
"RoleArn":{
1177011776
"type":"string",
11771-
"documentation":"<p>ARN of a IAM role</p>",
1177211777
"max":2048,
1177311778
"min":0,
1177411779
"pattern":"arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+"

0 commit comments

Comments
 (0)