Skip to content

Commit af22158

Browse files
committed
chore: Add Bedrock generated files
1 parent f98f66d commit af22158

File tree

43 files changed

+1290
-104
lines changed

Some content is hidden

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

43 files changed

+1290
-104
lines changed

sdk/src/Services/BedrockRuntime/Generated/AmazonBedrockRuntimeConfig.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,10 @@ namespace Amazon.BedrockRuntime
3333
public partial class AmazonBedrockRuntimeConfig : ClientConfig
3434
{
3535
private static readonly string UserAgentString =
36-
<<<<<<< HEAD
3736
InternalSDKUtils.BuildUserAgentString("Bedrock Runtime", "4.0.0.0");
3837

3938
private static readonly AmazonBedrockRuntimeEndpointResolver EndpointResolver =
4039
new AmazonBedrockRuntimeEndpointResolver();
41-
||||||| Commit version number update changes
42-
InternalSDKUtils.BuildUserAgentString("Bedrock Runtime", "3.7.413.4");
43-
=======
44-
InternalSDKUtils.BuildUserAgentString("Bedrock Runtime", "3.7.418.0");
45-
>>>>>>> b6da6ace600c307cc9bd6dbf99b06a9d2b81da7e
4640

4741
private string _userAgent = UserAgentString;
4842
///<summary>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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-runtime-2023-09-30.normal.json service model.
18+
*/
19+
20+
namespace Amazon.BedrockRuntime.Model
21+
{
22+
public partial class BidirectionalInputPayloadPart : IInvokeModelWithBidirectionalStreamInputEvent
23+
{
24+
}
25+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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-runtime-2023-09-30.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+
using Amazon.Runtime.EventStreams;
29+
using Amazon.Runtime.EventStreams.Internal;
30+
using Amazon.BedrockRuntime.Model.Internal.MarshallTransformations;
31+
using Amazon.Runtime.EventStreams.Utils;
32+
using Amazon.Runtime.Internal.Util;
33+
34+
#pragma warning disable CS0612,CS0618,CS1570
35+
namespace Amazon.BedrockRuntime.Model
36+
{
37+
/// <summary>
38+
/// Payload content for the bidirectional input. The input is an audio stream.
39+
/// </summary>
40+
public partial class BidirectionalInputPayloadPart
41+
: IEventStreamEvent
42+
{
43+
private MemoryStream _bytes;
44+
45+
/// <summary>
46+
/// Gets and sets the property Bytes.
47+
/// <para>
48+
/// The audio content for the bidirectional input.
49+
/// </para>
50+
/// </summary>
51+
[AWSProperty(Sensitive=true, Min=0, Max=1000000)]
52+
public MemoryStream Bytes
53+
{
54+
get { return this._bytes; }
55+
set { this._bytes = value; }
56+
}
57+
58+
// Check to see if Bytes property is set
59+
internal bool IsSetBytes()
60+
{
61+
return this._bytes != null;
62+
}
63+
64+
}
65+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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-runtime-2023-09-30.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+
using Amazon.Runtime.EventStreams;
29+
using Amazon.Runtime.EventStreams.Internal;
30+
using Amazon.BedrockRuntime.Model.Internal.MarshallTransformations;
31+
using Amazon.Runtime.EventStreams.Utils;
32+
using Amazon.Runtime.Internal.Util;
33+
34+
#pragma warning disable CS0612,CS0618,CS1570
35+
namespace Amazon.BedrockRuntime.Model
36+
{
37+
/// <summary>
38+
/// Output from the bidirectional stream. The output is speech and a text transcription.
39+
/// </summary>
40+
public partial class BidirectionalOutputPayloadPart
41+
: IEventStreamEvent
42+
{
43+
private MemoryStream _bytes;
44+
45+
/// <summary>
46+
/// Gets and sets the property Bytes.
47+
/// <para>
48+
/// The speech output of the bidirectional stream.
49+
/// </para>
50+
/// </summary>
51+
[AWSProperty(Sensitive=true, Min=0, Max=1000000)]
52+
public MemoryStream Bytes
53+
{
54+
get { return this._bytes; }
55+
set { this._bytes = value; }
56+
}
57+
58+
// Check to see if Bytes property is set
59+
internal bool IsSetBytes()
60+
{
61+
return this._bytes != null;
62+
}
63+
64+
}
65+
}

sdk/src/Services/BedrockRuntime/Generated/Model/GuardrailContentFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ internal bool IsSetConfidence()
8484
/// Indicates whether content that breaches the guardrail configuration is detected.
8585
/// </para>
8686
/// </summary>
87-
public bool Detected
87+
public bool? Detected
8888
{
89-
get { return this._detected.GetValueOrDefault(); }
89+
get { return this._detected; }
9090
set { this._detected = value; }
9191
}
9292

sdk/src/Services/BedrockRuntime/Generated/Model/GuardrailContextualGroundingFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ internal bool IsSetAction()
6666
/// or relevance score less than the corresponding threshold) was detected.
6767
/// </para>
6868
/// </summary>
69-
public bool Detected
69+
public bool? Detected
7070
{
71-
get { return this._detected.GetValueOrDefault(); }
71+
get { return this._detected; }
7272
set { this._detected = value; }
7373
}
7474

sdk/src/Services/BedrockRuntime/Generated/Model/GuardrailCustomWord.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ internal bool IsSetAction()
6464
/// detected.
6565
/// </para>
6666
/// </summary>
67-
public bool Detected
67+
public bool? Detected
6868
{
69-
get { return this._detected.GetValueOrDefault(); }
69+
get { return this._detected; }
7070
set { this._detected = value; }
7171
}
7272

sdk/src/Services/BedrockRuntime/Generated/Model/GuardrailManagedWord.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ internal bool IsSetAction()
6565
/// detected.
6666
/// </para>
6767
/// </summary>
68-
public bool Detected
68+
public bool? Detected
6969
{
70-
get { return this._detected.GetValueOrDefault(); }
70+
get { return this._detected; }
7171
set { this._detected = value; }
7272
}
7373

sdk/src/Services/BedrockRuntime/Generated/Model/GuardrailPiiEntityFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ internal bool IsSetAction()
6565
/// configuration is detected.
6666
/// </para>
6767
/// </summary>
68-
public bool Detected
68+
public bool? Detected
6969
{
70-
get { return this._detected.GetValueOrDefault(); }
70+
get { return this._detected; }
7171
set { this._detected = value; }
7272
}
7373

sdk/src/Services/BedrockRuntime/Generated/Model/GuardrailRegexFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ internal bool IsSetAction()
6666
/// detected.
6767
/// </para>
6868
/// </summary>
69-
public bool Detected
69+
public bool? Detected
7070
{
71-
get { return this._detected.GetValueOrDefault(); }
71+
get { return this._detected; }
7272
set { this._detected = value; }
7373
}
7474

0 commit comments

Comments
 (0)