Skip to content

Commit bece48e

Browse files
Provisioned throughput feature with Amazon and third-party base models, and update validators for model identifier and taggable resource ARNs.
1 parent ba5e1b9 commit bece48e

File tree

42 files changed

+7697
-703
lines changed

Some content is hidden

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

42 files changed

+7697
-703
lines changed

generator/ServiceModels/bedrock/bedrock-2023-04-20.api.json

Lines changed: 450 additions & 130 deletions
Large diffs are not rendered by default.

generator/ServiceModels/bedrock/bedrock-2023-04-20.docs.json

Lines changed: 164 additions & 15 deletions
Large diffs are not rendered by default.

generator/ServiceModels/bedrock/bedrock-2023-04-20.normal.json

Lines changed: 695 additions & 251 deletions
Large diffs are not rendered by default.

generator/ServiceModels/bedrock/bedrock-2023-04-20.paginators.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"output_token": "nextToken",
1212
"limit_key": "maxResults",
1313
"result_key": "modelCustomizationJobSummaries"
14+
},
15+
"ListProvisionedModelThroughputs": {
16+
"input_token": "nextToken",
17+
"output_token": "nextToken",
18+
"limit_key": "maxResults",
19+
"result_key": "provisionedModelSummaries"
1420
}
1521
}
1622
}

generator/ServiceModels/bedrock/smoke.json renamed to generator/ServiceModels/bedrock/bedrock-2023-04-20.smoke.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"defaultRegion": "us-west-2",
44
"testCases": [
55
]
6-
}
6+
}

generator/ServiceModels/bedrock/waiters2.json renamed to generator/ServiceModels/bedrock/bedrock-2023-04-20.waiters2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"version": 2,
33
"waiters": {
44
}
5-
}
5+
}

sdk/code-analysis/ServiceAnalysis/Bedrock/Generated/PropertyValueRules.xml

Lines changed: 214 additions & 62 deletions
Large diffs are not rendered by default.
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the bedrock-2023-04-20.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
namespace Amazon.Bedrock.Model
30+
{
31+
/// <summary>
32+
/// Container for the parameters to the CreateProvisionedModelThroughput operation.
33+
/// Creates a provisioned throughput with dedicated capacity for a foundation model or
34+
/// a fine-tuned model.
35+
///
36+
///
37+
/// <para>
38+
/// For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned
39+
/// throughput</a> in the Bedrock User Guide.
40+
/// </para>
41+
/// </summary>
42+
public partial class CreateProvisionedModelThroughputRequest : AmazonBedrockRequest
43+
{
44+
private string _clientRequestToken;
45+
private CommitmentDuration _commitmentDuration;
46+
private string _modelId;
47+
private int? _modelUnits;
48+
private string _provisionedModelName;
49+
private List<Tag> _tags = new List<Tag>();
50+
51+
/// <summary>
52+
/// Gets and sets the property ClientRequestToken.
53+
/// <para>
54+
/// Unique token value that you can provide. If this token matches a previous request,
55+
/// Bedrock ignores the request, but does not return an error.
56+
/// </para>
57+
/// </summary>
58+
[AWSProperty(Min=1, Max=256)]
59+
public string ClientRequestToken
60+
{
61+
get { return this._clientRequestToken; }
62+
set { this._clientRequestToken = value; }
63+
}
64+
65+
// Check to see if ClientRequestToken property is set
66+
internal bool IsSetClientRequestToken()
67+
{
68+
return this._clientRequestToken != null;
69+
}
70+
71+
/// <summary>
72+
/// Gets and sets the property CommitmentDuration.
73+
/// <para>
74+
/// Commitment duration requested for the provisioned throughput.
75+
/// </para>
76+
/// </summary>
77+
public CommitmentDuration CommitmentDuration
78+
{
79+
get { return this._commitmentDuration; }
80+
set { this._commitmentDuration = value; }
81+
}
82+
83+
// Check to see if CommitmentDuration property is set
84+
internal bool IsSetCommitmentDuration()
85+
{
86+
return this._commitmentDuration != null;
87+
}
88+
89+
/// <summary>
90+
/// Gets and sets the property ModelId.
91+
/// <para>
92+
/// Name or ARN of the model to associate with this provisioned throughput.
93+
/// </para>
94+
/// </summary>
95+
[AWSProperty(Required=true, Min=1, Max=2048)]
96+
public string ModelId
97+
{
98+
get { return this._modelId; }
99+
set { this._modelId = value; }
100+
}
101+
102+
// Check to see if ModelId property is set
103+
internal bool IsSetModelId()
104+
{
105+
return this._modelId != null;
106+
}
107+
108+
/// <summary>
109+
/// Gets and sets the property ModelUnits.
110+
/// <para>
111+
/// Number of model units to allocate.
112+
/// </para>
113+
/// </summary>
114+
[AWSProperty(Required=true, Min=1)]
115+
public int ModelUnits
116+
{
117+
get { return this._modelUnits.GetValueOrDefault(); }
118+
set { this._modelUnits = value; }
119+
}
120+
121+
// Check to see if ModelUnits property is set
122+
internal bool IsSetModelUnits()
123+
{
124+
return this._modelUnits.HasValue;
125+
}
126+
127+
/// <summary>
128+
/// Gets and sets the property ProvisionedModelName.
129+
/// <para>
130+
/// Unique name for this provisioned throughput.
131+
/// </para>
132+
/// </summary>
133+
[AWSProperty(Required=true, Min=1, Max=63)]
134+
public string ProvisionedModelName
135+
{
136+
get { return this._provisionedModelName; }
137+
set { this._provisionedModelName = value; }
138+
}
139+
140+
// Check to see if ProvisionedModelName property is set
141+
internal bool IsSetProvisionedModelName()
142+
{
143+
return this._provisionedModelName != null;
144+
}
145+
146+
/// <summary>
147+
/// Gets and sets the property Tags.
148+
/// <para>
149+
/// Tags to associate with this provisioned throughput.
150+
/// </para>
151+
/// </summary>
152+
[AWSProperty(Min=0, Max=200)]
153+
public List<Tag> Tags
154+
{
155+
get { return this._tags; }
156+
set { this._tags = value; }
157+
}
158+
159+
// Check to see if Tags property is set
160+
internal bool IsSetTags()
161+
{
162+
return this._tags != null && this._tags.Count > 0;
163+
}
164+
165+
}
166+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the bedrock-2023-04-20.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
namespace Amazon.Bedrock.Model
30+
{
31+
/// <summary>
32+
/// This is the response object from the CreateProvisionedModelThroughput operation.
33+
/// </summary>
34+
public partial class CreateProvisionedModelThroughputResponse : AmazonWebServiceResponse
35+
{
36+
private string _provisionedModelArn;
37+
38+
/// <summary>
39+
/// Gets and sets the property ProvisionedModelArn.
40+
/// <para>
41+
/// The ARN for this provisioned throughput.
42+
/// </para>
43+
/// </summary>
44+
[AWSProperty(Required=true)]
45+
public string ProvisionedModelArn
46+
{
47+
get { return this._provisionedModelArn; }
48+
set { this._provisionedModelArn = value; }
49+
}
50+
51+
// Check to see if ProvisionedModelArn property is set
52+
internal bool IsSetProvisionedModelArn()
53+
{
54+
return this._provisionedModelArn != null;
55+
}
56+
57+
}
58+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the bedrock-2023-04-20.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
namespace Amazon.Bedrock.Model
30+
{
31+
/// <summary>
32+
/// Container for the parameters to the DeleteProvisionedModelThroughput operation.
33+
/// Deletes a provisioned throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Provisioned
34+
/// throughput</a> in the Bedrock User Guide.
35+
/// </summary>
36+
public partial class DeleteProvisionedModelThroughputRequest : AmazonBedrockRequest
37+
{
38+
private string _provisionedModelId;
39+
40+
/// <summary>
41+
/// Gets and sets the property ProvisionedModelId.
42+
/// <para>
43+
/// The ARN or name of the provisioned throughput.
44+
/// </para>
45+
/// </summary>
46+
[AWSProperty(Required=true)]
47+
public string ProvisionedModelId
48+
{
49+
get { return this._provisionedModelId; }
50+
set { this._provisionedModelId = value; }
51+
}
52+
53+
// Check to see if ProvisionedModelId property is set
54+
internal bool IsSetProvisionedModelId()
55+
{
56+
return this._provisionedModelId != null;
57+
}
58+
59+
}
60+
}

0 commit comments

Comments
 (0)