Skip to content

Commit 4f82bc9

Browse files
We are making ListFoundationModelAgreementOffers, DeleteFoundationModelAgreement, CreateFoundationModelAgreement, GetFoundationModelAvailability, PutUseCaseForModelAccess and GetUseCaseForModelAccess APIs public, previously they were console.
1 parent b947d44 commit 4f82bc9

File tree

51 files changed

+6899
-2
lines changed

Some content is hidden

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

51 files changed

+6899
-2
lines changed

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

Lines changed: 331 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 193 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 435 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@
6666
<max>1011</max>
6767
<pattern>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:evaluation-job/[a-z0-9]{12}</pattern>
6868
</property-value-rule>
69+
<property-value-rule>
70+
<property>Amazon.Bedrock.Model.CreateFoundationModelAgreementRequest.ModelId</property>
71+
<min>0</min>
72+
<max>140</max>
73+
<pattern>[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}|)</pattern>
74+
</property-value-rule>
75+
<property-value-rule>
76+
<property>Amazon.Bedrock.Model.CreateFoundationModelAgreementResponse.ModelId</property>
77+
<min>0</min>
78+
<max>140</max>
79+
<pattern>[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}|)</pattern>
80+
</property-value-rule>
6981
<property-value-rule>
7082
<property>Amazon.Bedrock.Model.CreateGuardrailRequest.BlockedInputMessaging</property>
7183
<min>1</min>
@@ -384,6 +396,12 @@
384396
<max>2048</max>
385397
<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]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[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}))|(([0-9a-zA-Z][_-]?)+)</pattern>
386398
</property-value-rule>
399+
<property-value-rule>
400+
<property>Amazon.Bedrock.Model.DeleteFoundationModelAgreementRequest.ModelId</property>
401+
<min>0</min>
402+
<max>140</max>
403+
<pattern>[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}|)</pattern>
404+
</property-value-rule>
387405
<property-value-rule>
388406
<property>Amazon.Bedrock.Model.DeleteGuardrailRequest.GuardrailIdentifier</property>
389407
<min>0</min>
@@ -515,6 +533,18 @@
515533
<max>2048</max>
516534
<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]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[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}))|(([0-9a-zA-Z][_-]?)+)</pattern>
517535
</property-value-rule>
536+
<property-value-rule>
537+
<property>Amazon.Bedrock.Model.GetFoundationModelAvailabilityRequest.ModelId</property>
538+
<min>0</min>
539+
<max>140</max>
540+
<pattern>[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}|)</pattern>
541+
</property-value-rule>
542+
<property-value-rule>
543+
<property>Amazon.Bedrock.Model.GetFoundationModelAvailabilityResponse.ModelId</property>
544+
<min>0</min>
545+
<max>140</max>
546+
<pattern>[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}|)</pattern>
547+
</property-value-rule>
518548
<property-value-rule>
519549
<property>Amazon.Bedrock.Model.GetGuardrailRequest.GuardrailIdentifier</property>
520550
<min>0</min>
@@ -907,6 +937,11 @@
907937
<max>63</max>
908938
<pattern>([0-9a-zA-Z][_-]?)+</pattern>
909939
</property-value-rule>
940+
<property-value-rule>
941+
<property>Amazon.Bedrock.Model.GetUseCaseForModelAccessResponse.FormData</property>
942+
<min>10</min>
943+
<max>16384</max>
944+
</property-value-rule>
910945
<property-value-rule>
911946
<property>Amazon.Bedrock.Model.ListCustomModelsRequest.BaseModelArnEquals</property>
912947
<min>20</min>
@@ -963,6 +998,18 @@
963998
<max>2048</max>
964999
<pattern>\S*</pattern>
9651000
</property-value-rule>
1001+
<property-value-rule>
1002+
<property>Amazon.Bedrock.Model.ListFoundationModelAgreementOffersRequest.ModelId</property>
1003+
<min>0</min>
1004+
<max>140</max>
1005+
<pattern>[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}|)</pattern>
1006+
</property-value-rule>
1007+
<property-value-rule>
1008+
<property>Amazon.Bedrock.Model.ListFoundationModelAgreementOffersResponse.ModelId</property>
1009+
<min>0</min>
1010+
<max>140</max>
1011+
<pattern>[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}|)</pattern>
1012+
</property-value-rule>
9661013
<property-value-rule>
9671014
<property>Amazon.Bedrock.Model.ListFoundationModelsRequest.ByProvider</property>
9681015
<pattern>[A-Za-z0-9- ]{1,63}</pattern>
@@ -1207,6 +1254,11 @@
12071254
<max>1011</max>
12081255
<pattern>.*(^[a-zA-Z0-9][a-zA-Z0-9\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:custom-model/([a-z0-9-]{1,63}[.][a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?|imported)/[a-z0-9]{12}$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job)/[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]+$)|(:automated-reasoning-policy/[a-zA-Z0-9]+(:[a-zA-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|async-invoke|provisioned-model-v2|provisioned-model-reservation|prompt-router|custom-model-deployment)/[a-z0-9]{12}$))).*</pattern>
12091256
</property-value-rule>
1257+
<property-value-rule>
1258+
<property>Amazon.Bedrock.Model.PutUseCaseForModelAccessRequest.FormData</property>
1259+
<min>10</min>
1260+
<max>16384</max>
1261+
</property-value-rule>
12101262
<property-value-rule>
12111263
<property>Amazon.Bedrock.Model.RegisterMarketplaceModelEndpointRequest.EndpointIdentifier</property>
12121264
<min>0</min>
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.Bedrock.Model
31+
{
32+
/// <summary>
33+
/// Information about the agreement availability
34+
/// </summary>
35+
public partial class AgreementAvailability
36+
{
37+
private string _errorMessage;
38+
private AgreementStatus _status;
39+
40+
/// <summary>
41+
/// Gets and sets the property ErrorMessage.
42+
/// <para>
43+
/// Error message.
44+
/// </para>
45+
/// </summary>
46+
public string ErrorMessage
47+
{
48+
get { return this._errorMessage; }
49+
set { this._errorMessage = value; }
50+
}
51+
52+
// Check to see if ErrorMessage property is set
53+
internal bool IsSetErrorMessage()
54+
{
55+
return this._errorMessage != null;
56+
}
57+
58+
/// <summary>
59+
/// Gets and sets the property Status.
60+
/// <para>
61+
/// Status of the agreement.
62+
/// </para>
63+
/// </summary>
64+
[AWSProperty(Required=true)]
65+
public AgreementStatus Status
66+
{
67+
get { return this._status; }
68+
set { this._status = value; }
69+
}
70+
71+
// Check to see if Status property is set
72+
internal bool IsSetStatus()
73+
{
74+
return this._status != null;
75+
}
76+
77+
}
78+
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.Bedrock.Model
31+
{
32+
/// <summary>
33+
/// Container for the parameters to the CreateFoundationModelAgreement operation.
34+
/// Request a model access agreement for the specified model.
35+
/// </summary>
36+
public partial class CreateFoundationModelAgreementRequest : AmazonBedrockRequest
37+
{
38+
private string _modelId;
39+
private string _offerToken;
40+
41+
/// <summary>
42+
/// Gets and sets the property ModelId.
43+
/// <para>
44+
/// Model Id of the model for the access request.
45+
/// </para>
46+
/// </summary>
47+
[AWSProperty(Required=true, Min=0, Max=140)]
48+
public string ModelId
49+
{
50+
get { return this._modelId; }
51+
set { this._modelId = value; }
52+
}
53+
54+
// Check to see if ModelId property is set
55+
internal bool IsSetModelId()
56+
{
57+
return this._modelId != null;
58+
}
59+
60+
/// <summary>
61+
/// Gets and sets the property OfferToken.
62+
/// <para>
63+
/// An offer token encapsulates the information for an offer.
64+
/// </para>
65+
/// </summary>
66+
[AWSProperty(Required=true)]
67+
public string OfferToken
68+
{
69+
get { return this._offerToken; }
70+
set { this._offerToken = value; }
71+
}
72+
73+
// Check to see if OfferToken property is set
74+
internal bool IsSetOfferToken()
75+
{
76+
return this._offerToken != null;
77+
}
78+
79+
}
80+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.Bedrock.Model
31+
{
32+
/// <summary>
33+
/// This is the response object from the CreateFoundationModelAgreement operation.
34+
/// </summary>
35+
public partial class CreateFoundationModelAgreementResponse : AmazonWebServiceResponse
36+
{
37+
private string _modelId;
38+
39+
/// <summary>
40+
/// Gets and sets the property ModelId.
41+
/// <para>
42+
/// Model Id of the model for the access request.
43+
/// </para>
44+
/// </summary>
45+
[AWSProperty(Required=true, Min=0, Max=140)]
46+
public string ModelId
47+
{
48+
get { return this._modelId; }
49+
set { this._modelId = value; }
50+
}
51+
52+
// Check to see if ModelId property is set
53+
internal bool IsSetModelId()
54+
{
55+
return this._modelId != null;
56+
}
57+
58+
}
59+
}
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+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.Bedrock.Model
31+
{
32+
/// <summary>
33+
/// Container for the parameters to the DeleteFoundationModelAgreement operation.
34+
/// Delete the model access agreement for the specified model.
35+
/// </summary>
36+
public partial class DeleteFoundationModelAgreementRequest : AmazonBedrockRequest
37+
{
38+
private string _modelId;
39+
40+
/// <summary>
41+
/// Gets and sets the property ModelId.
42+
/// <para>
43+
/// Model Id of the model access to delete.
44+
/// </para>
45+
/// </summary>
46+
[AWSProperty(Required=true, Min=0, Max=140)]
47+
public string ModelId
48+
{
49+
get { return this._modelId; }
50+
set { this._modelId = value; }
51+
}
52+
53+
// Check to see if ModelId property is set
54+
internal bool IsSetModelId()
55+
{
56+
return this._modelId != null;
57+
}
58+
59+
}
60+
}

0 commit comments

Comments
 (0)