Skip to content

Commit 8bd1fa9

Browse files
Update API model
1 parent 80445f4 commit 8bd1fa9

File tree

6 files changed

+728
-39
lines changed

6 files changed

+728
-39
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@
10271027
"min": 1,
10281028
"max": 2048
10291029
},
1030-
"smithy.api#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})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(model-gateway|inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$"
1030+
"smithy.api#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-:.]+)$"
10311031
}
10321032
},
10331033
"com.amazonaws.bedrockruntime#Converse": {
@@ -3078,7 +3078,7 @@
30783078
"min": 1,
30793079
"max": 2048
30803080
},
3081-
"smithy.api#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})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(model-gateway|inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$"
3081+
"smithy.api#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-:.]+)$"
30823082
}
30833083
},
30843084
"com.amazonaws.bedrockruntime#InvokeModelRequest": {

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

Lines changed: 98 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@
14991499
"kmsKeyId": {
15001500
"target": "com.amazonaws.imagebuilder#NonEmptyString",
15011501
"traits": {
1502-
"smithy.api#documentation": "<p>Identifies which KMS key is used to encrypt the container image.</p>"
1502+
"smithy.api#documentation": "<p>Identifies which KMS key is used to encrypt the Dockerfile template.</p>"
15031503
}
15041504
},
15051505
"clientToken": {
@@ -2256,7 +2256,7 @@
22562256
"resourceTags": {
22572257
"target": "com.amazonaws.imagebuilder#ResourceTagMap",
22582258
"traits": {
2259-
"smithy.api#documentation": "<p>The tags attached to the resource created by Image Builder.</p>"
2259+
"smithy.api#documentation": "<p>The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. \n\t\t\tTags are formatted as key value pairs.</p>"
22602260
}
22612261
},
22622262
"instanceMetadataOptions": {
@@ -2268,7 +2268,13 @@
22682268
"tags": {
22692269
"target": "com.amazonaws.imagebuilder#TagMap",
22702270
"traits": {
2271-
"smithy.api#documentation": "<p>The tags of the infrastructure configuration.</p>"
2271+
"smithy.api#documentation": "<p>The metadata tags to assign to the infrastructure configuration resource that Image Builder \n\t\t\tcreates as output. Tags are formatted as key value pairs.</p>"
2272+
}
2273+
},
2274+
"placement": {
2275+
"target": "com.amazonaws.imagebuilder#Placement",
2276+
"traits": {
2277+
"smithy.api#documentation": "<p>The instance placement settings that define where the instances that are launched \n\t\t\tfrom your image will run.</p>"
22722278
}
22732279
},
22742280
"clientToken": {
@@ -3732,7 +3738,7 @@
37323738
"containerTags": {
37333739
"target": "com.amazonaws.imagebuilder#StringList",
37343740
"traits": {
3735-
"smithy.api#documentation": "<p>Tags for Image Builder to apply to the output container image that &INS; scans. Tags can\n\t\t\thelp you identify and manage your scanned images.</p>"
3741+
"smithy.api#documentation": "<p>Tags for Image Builder to apply to the output container image that Amazon Inspector scans. Tags can\n\t\t\thelp you identify and manage your scanned images.</p>"
37363742
}
37373743
}
37383744
},
@@ -6815,6 +6821,12 @@
68156821
"traits": {
68166822
"smithy.api#documentation": "<p>The tags of the infrastructure configuration.</p>"
68176823
}
6824+
},
6825+
"placement": {
6826+
"target": "com.amazonaws.imagebuilder#Placement",
6827+
"traits": {
6828+
"smithy.api#documentation": "<p>The instance placement settings that define where the instances that are launched \n\t\t\tfrom your image will run.</p>"
6829+
}
68186830
}
68196831
},
68206832
"traits": {
@@ -6883,6 +6895,12 @@
68836895
"traits": {
68846896
"smithy.api#documentation": "<p>The instance profile of the infrastructure configuration.</p>"
68856897
}
6898+
},
6899+
"placement": {
6900+
"target": "com.amazonaws.imagebuilder#Placement",
6901+
"traits": {
6902+
"smithy.api#documentation": "<p>The instance placement settings that define where the instances that are launched \n\t\t\tfrom your image will run.</p>"
6903+
}
68866904
}
68876905
},
68886906
"traits": {
@@ -8119,7 +8137,7 @@
81198137
}
81208138
],
81218139
"traits": {
8122-
"smithy.api#documentation": "<p>Returns the list of component build versions for the specified semantic\n\t\t\tversion.</p>\n <note>\n <p>The semantic version has four nodes: <major>.<minor>.<patch>/<build>. \n\tYou can assign values for the first three, and can filter on all of them.</p>\n <p>\n <b>Filtering:</b> With semantic versioning, you have the flexibility to use wildcards (x) \n\tto specify the most recent versions or nodes when selecting the base image or components for your \n\trecipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be \n\twildcards.</p>\n </note>",
8140+
"smithy.api#documentation": "<p>Returns the list of component build versions for the specified component \n\t\t\tversion Amazon Resource Name (ARN).</p>",
81238141
"smithy.api#http": {
81248142
"method": "POST",
81258143
"uri": "/ListComponentBuildVersions",
@@ -10598,6 +10616,38 @@
1059810616
}
1059910617
}
1060010618
},
10619+
"com.amazonaws.imagebuilder#Placement": {
10620+
"type": "structure",
10621+
"members": {
10622+
"availabilityZone": {
10623+
"target": "com.amazonaws.imagebuilder#NonEmptyString",
10624+
"traits": {
10625+
"smithy.api#documentation": "<p>The Availability Zone where your build and test instances will launch.</p>"
10626+
}
10627+
},
10628+
"tenancy": {
10629+
"target": "com.amazonaws.imagebuilder#TenancyType",
10630+
"traits": {
10631+
"smithy.api#documentation": "<p>The tenancy of the instance. An instance with a tenancy of <code>dedicated</code> \n\t\t\truns on single-tenant hardware. An instance with a tenancy of <code>host</code> runs \n\t\t\ton a Dedicated Host.</p>\n <p>If tenancy is set to <code>host</code>, then you can optionally specify one target \n\t\t\tfor placement – either host ID or host resource group ARN. If automatic placement \n\t\t\tis enabled for your host, and you don't specify any placement target, Amazon EC2 will try to \n\t\t\tfind an available host for your build and test instances.</p>"
10632+
}
10633+
},
10634+
"hostId": {
10635+
"target": "com.amazonaws.imagebuilder#NonEmptyString",
10636+
"traits": {
10637+
"smithy.api#documentation": "<p>The ID of the Dedicated Host on which build and test instances run. This only \n\t\t\tapplies if <code>tenancy</code> is <code>host</code>. If you specify the host ID, you \n\t\t\tmust not specify the resource group ARN. If you specify both, Image Builder returns an error.</p>"
10638+
}
10639+
},
10640+
"hostResourceGroupArn": {
10641+
"target": "com.amazonaws.imagebuilder#NonEmptyString",
10642+
"traits": {
10643+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. \n\t\t\tThis only applies if <code>tenancy</code> is <code>host</code>. If you specify the resource \n\t\t\tgroup ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.</p>"
10644+
}
10645+
}
10646+
},
10647+
"traits": {
10648+
"smithy.api#documentation": "<p>By default, EC2 instances run on shared tenancy hardware. This means that multiple \n\t\t\tAmazon Web Services accounts might share the same physical hardware. When you use dedicated hardware, \n\t\t\tthe physical server that hosts your instances is dedicated to your Amazon Web Services account. \n\t\t\tInstance placement settings contain the details for the physical hardware where \n\t\t\tinstances that Image Builder launches during image creation will run.</p>"
10649+
}
10650+
},
1060110651
"com.amazonaws.imagebuilder#Platform": {
1060210652
"type": "enum",
1060310653
"members": {
@@ -10612,6 +10662,12 @@
1061210662
"traits": {
1061310663
"smithy.api#enumValue": "Linux"
1061410664
}
10665+
},
10666+
"MACOS": {
10667+
"target": "smithy.api#Unit",
10668+
"traits": {
10669+
"smithy.api#enumValue": "macOS"
10670+
}
1061510671
}
1061610672
}
1061710673
},
@@ -11837,6 +11893,29 @@
1183711893
}
1183811894
}
1183911895
},
11896+
"com.amazonaws.imagebuilder#TenancyType": {
11897+
"type": "enum",
11898+
"members": {
11899+
"DEFAULT": {
11900+
"target": "smithy.api#Unit",
11901+
"traits": {
11902+
"smithy.api#enumValue": "default"
11903+
}
11904+
},
11905+
"DEDICATED": {
11906+
"target": "smithy.api#Unit",
11907+
"traits": {
11908+
"smithy.api#enumValue": "dedicated"
11909+
}
11910+
},
11911+
"HOST": {
11912+
"target": "smithy.api#Unit",
11913+
"traits": {
11914+
"smithy.api#enumValue": "host"
11915+
}
11916+
}
11917+
}
11918+
},
1184011919
"com.amazonaws.imagebuilder#Timezone": {
1184111920
"type": "string",
1184211921
"traits": {
@@ -12287,14 +12366,6 @@
1228712366
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) for the SNS topic to which we send image build event\n\t\t\tnotifications.</p>\n <note>\n <p>EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys \n\t\t\t\tfrom other accounts. The key that is used to encrypt the SNS topic must reside in the \n\t\t\t\taccount that the Image Builder service runs under.</p>\n </note>"
1228812367
}
1228912368
},
12290-
"clientToken": {
12291-
"target": "com.amazonaws.imagebuilder#ClientToken",
12292-
"traits": {
12293-
"smithy.api#documentation": "<p>Unique, case-sensitive identifier you provide to ensure\n idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a> \n in the <i>Amazon EC2 API Reference</i>.</p>",
12294-
"smithy.api#idempotencyToken": {},
12295-
"smithy.api#required": {}
12296-
}
12297-
},
1229812369
"resourceTags": {
1229912370
"target": "com.amazonaws.imagebuilder#ResourceTagMap",
1230012371
"traits": {
@@ -12306,6 +12377,20 @@
1230612377
"traits": {
1230712378
"smithy.api#documentation": "<p>The instance metadata options that you can set for the HTTP requests that pipeline\n\t\t\tbuilds use to launch EC2 build and test instances. For more information about instance\n\t\t\tmetadata options, see one of the following links:</p>\n <ul>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html\">Configure the instance metadata options</a> in the\n\t\t\t\t\t\t<i>\n <i>Amazon EC2 User Guide</i>\n </i> for Linux instances.</p>\n </li>\n <li>\n <p>\n <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/configuring-instance-metadata-options.html\">Configure the instance metadata options</a> in the\n\t\t\t\t\t\t<i>\n <i>Amazon EC2 Windows Guide</i>\n </i> for Windows instances.</p>\n </li>\n </ul>"
1230812379
}
12380+
},
12381+
"placement": {
12382+
"target": "com.amazonaws.imagebuilder#Placement",
12383+
"traits": {
12384+
"smithy.api#documentation": "<p>The instance placement settings that define where the instances that are launched \n\t\t\tfrom your image will run.</p>"
12385+
}
12386+
},
12387+
"clientToken": {
12388+
"target": "com.amazonaws.imagebuilder#ClientToken",
12389+
"traits": {
12390+
"smithy.api#documentation": "<p>Unique, case-sensitive identifier you provide to ensure\n idempotency of the request. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a> \n in the <i>Amazon EC2 API Reference</i>.</p>",
12391+
"smithy.api#idempotencyToken": {},
12392+
"smithy.api#required": {}
12393+
}
1230912394
}
1231012395
},
1231112396
"traits": {

0 commit comments

Comments
 (0)