Skip to content

Commit e8e4a5d

Browse files
author
awstools
committed
feat(client-bedrock): 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 7baea90 commit e8e4a5d

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

codegen/sdk-codegen/aws-models/bedrock.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6234,7 +6234,7 @@
62346234
"min": 20,
62356235
"max": 1011
62366236
},
6237-
"smithy.api#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}$"
6237+
"smithy.api#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}$"
62386238
}
62396239
},
62406240
"com.amazonaws.bedrock#CustomModelDeploymentArn": {
@@ -10108,11 +10108,21 @@
1010810108
"smithy.api#output": {}
1010910109
}
1011010110
},
10111+
"com.amazonaws.bedrock#GetFoundationModelIdentifier": {
10112+
"type": "string",
10113+
"traits": {
10114+
"smithy.api#length": {
10115+
"min": 1,
10116+
"max": 2048
10117+
},
10118+
"smithy.api#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})$"
10119+
}
10120+
},
1011110121
"com.amazonaws.bedrock#GetFoundationModelRequest": {
1011210122
"type": "structure",
1011310123
"members": {
1011410124
"modelIdentifier": {
10115-
"target": "com.amazonaws.bedrock#ModelIdentifier",
10125+
"target": "com.amazonaws.bedrock#GetFoundationModelIdentifier",
1011610126
"traits": {
1011710127
"smithy.api#documentation": "<p>The model identifier. </p>",
1011810128
"smithy.api#httpLabel": {},
@@ -13808,7 +13818,7 @@
1380813818
"min": 1,
1380913819
"max": 256
1381013820
},
13811-
"smithy.api#pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$"
13821+
"smithy.api#pattern": "^[a-zA-Z0-9]([-a-zA-Z0-9]{0,254}[a-zA-Z0-9])?$"
1381213822
}
1381313823
},
1381413824
"com.amazonaws.bedrock#Identifier": {
@@ -19014,7 +19024,6 @@
1901419024
"com.amazonaws.bedrock#RoleArn": {
1901519025
"type": "string",
1901619026
"traits": {
19017-
"smithy.api#documentation": "ARN of a IAM role",
1901819027
"smithy.api#length": {
1901919028
"max": 2048
1902019029
},

0 commit comments

Comments
 (0)