Skip to content

Commit 5725e26

Browse files
This release adds the Agent Lifecycle Paused State feature to Amazon Bedrock agents. By using an agent's alias, you can temporarily suspend agent operations during maintenance, updates, or other situations.
1 parent 1076fdb commit 5725e26

15 files changed

+194
-21
lines changed

generator/ServiceModels/bedrock-agent/bedrock-agent-2023-06-05.api.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,7 @@
15181518
"agentAliasName":{"shape":"Name"},
15191519
"agentAliasStatus":{"shape":"AgentAliasStatus"},
15201520
"agentId":{"shape":"Id"},
1521+
"aliasInvocationState":{"shape":"AliasInvocationState"},
15211522
"clientToken":{"shape":"ClientToken"},
15221523
"createdAt":{"shape":"DateTimestamp"},
15231524
"description":{"shape":"Description"},
@@ -1595,6 +1596,7 @@
15951596
"agentAliasId":{"shape":"AgentAliasId"},
15961597
"agentAliasName":{"shape":"Name"},
15971598
"agentAliasStatus":{"shape":"AgentAliasStatus"},
1599+
"aliasInvocationState":{"shape":"AliasInvocationState"},
15981600
"createdAt":{"shape":"DateTimestamp"},
15991601
"description":{"shape":"Description"},
16001602
"routingConfiguration":{"shape":"AgentAliasRoutingConfiguration"},
@@ -1828,6 +1830,13 @@
18281830
"updatedAt":{"shape":"DateTimestamp"}
18291831
}
18301832
},
1833+
"AliasInvocationState":{
1834+
"type":"string",
1835+
"enum":[
1836+
"ACCEPT_INVOCATIONS",
1837+
"REJECT_INVOCATIONS"
1838+
]
1839+
},
18311840
"AnyToolChoice":{
18321841
"type":"structure",
18331842
"members":{
@@ -7346,6 +7355,7 @@
73467355
"location":"uri",
73477356
"locationName":"agentId"
73487357
},
7358+
"aliasInvocationState":{"shape":"AliasInvocationState"},
73497359
"description":{"shape":"Description"},
73507360
"routingConfiguration":{"shape":"AgentAliasRoutingConfiguration"}
73517361
}

generator/ServiceModels/bedrock-agent/bedrock-agent-2023-06-05.docs.json

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

generator/ServiceModels/bedrock-agent/bedrock-agent-2023-06-05.normal.json

Lines changed: 27 additions & 7 deletions
Large diffs are not rendered by default.

sdk/src/Services/BedrockAgent/Generated/Model/AgentActionGroup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ internal bool IsSetFunctionSchema()
274274
/// <important>
275275
/// <para>
276276
/// Computer use is a new Anthropic Claude model capability (in beta) available with
277-
/// Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html">Configure
277+
/// Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure
278278
/// an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
279279
/// </para>
280280
/// </important>

sdk/src/Services/BedrockAgent/Generated/Model/AgentAlias.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public partial class AgentAlias
4040
private string _agentAliasName;
4141
private AgentAliasStatus _agentAliasStatus;
4242
private string _agentId;
43+
private AliasInvocationState _aliasInvocationState;
4344
private string _clientToken;
4445
private DateTime? _createdAt;
4546
private string _description;
@@ -188,6 +189,26 @@ internal bool IsSetAgentId()
188189
return this._agentId != null;
189190
}
190191

192+
/// <summary>
193+
/// Gets and sets the property AliasInvocationState.
194+
/// <para>
195+
/// The invocation state for the agent alias. If the agent alias is running, the value
196+
/// is <c>ACCEPT_INVOCATIONS</c>. If the agent alias is paused, the value is <c>REJECT_INVOCATIONS</c>.
197+
/// Use the <c>UpdateAgentAlias</c> operation to change the invocation state.
198+
/// </para>
199+
/// </summary>
200+
public AliasInvocationState AliasInvocationState
201+
{
202+
get { return this._aliasInvocationState; }
203+
set { this._aliasInvocationState = value; }
204+
}
205+
206+
// Check to see if AliasInvocationState property is set
207+
internal bool IsSetAliasInvocationState()
208+
{
209+
return this._aliasInvocationState != null;
210+
}
211+
191212
/// <summary>
192213
/// Gets and sets the property ClientToken.
193214
/// <para>

sdk/src/Services/BedrockAgent/Generated/Model/AgentAliasSummary.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class AgentAliasSummary
3737
private string _agentAliasId;
3838
private string _agentAliasName;
3939
private AgentAliasStatus _agentAliasStatus;
40+
private AliasInvocationState _aliasInvocationState;
4041
private DateTime? _createdAt;
4142
private string _description;
4243
private List<AgentAliasRoutingConfigurationListItem> _routingConfiguration = AWSConfigs.InitializeCollections ? new List<AgentAliasRoutingConfigurationListItem>() : null;
@@ -99,6 +100,26 @@ internal bool IsSetAgentAliasStatus()
99100
return this._agentAliasStatus != null;
100101
}
101102

103+
/// <summary>
104+
/// Gets and sets the property AliasInvocationState.
105+
/// <para>
106+
/// The invocation state for the agent alias. If the agent alias is running, the value
107+
/// is <c>ACCEPT_INVOCATIONS</c>. If the agent alias is paused, the value is <c>REJECT_INVOCATIONS</c>.
108+
/// Use the <c>UpdateAgentAlias</c> operation to change the invocation state.
109+
/// </para>
110+
/// </summary>
111+
public AliasInvocationState AliasInvocationState
112+
{
113+
get { return this._aliasInvocationState; }
114+
set { this._aliasInvocationState = value; }
115+
}
116+
117+
// Check to see if AliasInvocationState property is set
118+
internal bool IsSetAliasInvocationState()
119+
{
120+
return this._aliasInvocationState != null;
121+
}
122+
102123
/// <summary>
103124
/// Gets and sets the property CreatedAt.
104125
/// <para>

sdk/src/Services/BedrockAgent/Generated/Model/CreateAgentActionGroupRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ internal bool IsSetFunctionSchema()
277277
/// Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. When operating computer
278278
/// use functionality, we recommend taking additional security precautions, such as executing
279279
/// computer actions in virtual environments with restricted data access and limited internet
280-
/// connectivity. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html">Configure
280+
/// connectivity. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure
281281
/// an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
282282
/// </para>
283283
/// </important> <ul> <li>
@@ -317,7 +317,7 @@ internal bool IsSetParentActionGroupSignature()
317317
/// <para>
318318
/// Computer use is a new Anthropic Claude model capability (in beta) available with
319319
/// Anthropic Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see
320-
/// <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agent-computer-use.html">Configure
320+
/// <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-computer-use.html">Configure
321321
/// an Amazon Bedrock Agent to complete tasks with computer use tools</a>.
322322
/// </para>
323323
/// </important>

sdk/src/Services/BedrockAgent/Generated/Model/Internal/MarshallTransformations/AgentAliasSummaryUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ public AgentAliasSummary Unmarshall(JsonUnmarshallerContext context, ref Streami
7474
unmarshalledObject.AgentAliasStatus = unmarshaller.Unmarshall(context, ref reader);
7575
continue;
7676
}
77+
if (context.TestExpression("aliasInvocationState", targetDepth))
78+
{
79+
var unmarshaller = StringUnmarshaller.Instance;
80+
unmarshalledObject.AliasInvocationState = unmarshaller.Unmarshall(context, ref reader);
81+
continue;
82+
}
7783
if (context.TestExpression("createdAt", targetDepth))
7884
{
7985
var unmarshaller = NullableDateTimeUnmarshaller.Instance;

sdk/src/Services/BedrockAgent/Generated/Model/Internal/MarshallTransformations/AgentAliasUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ public AgentAlias Unmarshall(JsonUnmarshallerContext context, ref StreamingUtf8J
9292
unmarshalledObject.AgentId = unmarshaller.Unmarshall(context, ref reader);
9393
continue;
9494
}
95+
if (context.TestExpression("aliasInvocationState", targetDepth))
96+
{
97+
var unmarshaller = StringUnmarshaller.Instance;
98+
unmarshalledObject.AliasInvocationState = unmarshaller.Unmarshall(context, ref reader);
99+
continue;
100+
}
95101
if (context.TestExpression("clientToken", targetDepth))
96102
{
97103
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/BedrockAgent/Generated/Model/Internal/MarshallTransformations/UpdateAgentAliasRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ public IRequest Marshall(UpdateAgentAliasRequest publicRequest)
8585
context.Writer.WriteStringValue(publicRequest.AgentAliasName);
8686
}
8787

88+
if(publicRequest.IsSetAliasInvocationState())
89+
{
90+
context.Writer.WritePropertyName("aliasInvocationState");
91+
context.Writer.WriteStringValue(publicRequest.AliasInvocationState);
92+
}
93+
8894
if(publicRequest.IsSetDescription())
8995
{
9096
context.Writer.WritePropertyName("description");

0 commit comments

Comments
 (0)