Skip to content

Commit 31ce0ed

Browse files
committed
r/aws_bedrockagentcore_agent_runtime: New fields from AWS SDK for Go v2 Release 2025-10-06.
1 parent bfc8ac2 commit 31ce0ed

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

internal/service/bedrockagentcore/agent_runtime.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,22 @@ func (r *agentRuntimeResource) Schema(ctx context.Context, request resource.Sche
153153
},
154154
},
155155
},
156+
"lifecycle_configuration": schema.ListNestedBlock{
157+
CustomType: fwtypes.NewListNestedObjectTypeOf[lifecycleConfigurationModel](ctx),
158+
Validators: []validator.List{
159+
listvalidator.SizeAtMost(1),
160+
},
161+
NestedObject: schema.NestedBlockObject{
162+
Attributes: map[string]schema.Attribute{
163+
"idle_runtime_session_timeout": schema.Int32Attribute{
164+
Optional: true,
165+
},
166+
"max_lifetime": schema.Int32Attribute{
167+
Optional: true,
168+
},
169+
},
170+
},
171+
},
156172
names.AttrNetworkConfiguration: schema.ListNestedBlock{
157173
CustomType: fwtypes.NewListNestedObjectTypeOf[networkConfigurationModel](ctx),
158174
Validators: []validator.List{
@@ -496,6 +512,7 @@ type agentRuntimeResourceModel struct {
496512
AuthorizerConfiguration fwtypes.ListNestedObjectValueOf[authorizerConfigurationModel] `tfsdk:"authorizer_configuration"`
497513
Description types.String `tfsdk:"description"`
498514
EnvironmentVariables fwtypes.MapOfString `tfsdk:"environment_variables"`
515+
LifecycleConfiguration fwtypes.ListNestedObjectValueOf[lifecycleConfigurationModel] `tfsdk:"lifecycle_configuration"`
499516
NetworkConfiguration fwtypes.ListNestedObjectValueOf[networkConfigurationModel] `tfsdk:"network_configuration"`
500517
ProtocolConfiguration fwtypes.ListNestedObjectValueOf[protocolConfigurationModel] `tfsdk:"protocol_configuration"`
501518
RequestHeaderConfiguration fwtypes.ListNestedObjectValueOf[requestHeaderConfigurationModel] `tfsdk:"request_header_configuration"`
@@ -608,6 +625,11 @@ type customJWTAuthorizerConfigurationModel struct {
608625
DiscoveryURL types.String `tfsdk:"discovery_url"`
609626
}
610627

628+
type lifecycleConfigurationModel struct {
629+
IdleRuntimeSessionTimeout types.Int32 `tfsdk:"idle_runtime_session_timeout"`
630+
MaxLifetime types.Int32 `tfsdk:"max_lifetime"`
631+
}
632+
611633
type networkConfigurationModel struct {
612634
NetworkMode fwtypes.StringEnum[awstypes.NetworkMode] `tfsdk:"network_mode"`
613635
NetworkModeConfig fwtypes.ListNestedObjectValueOf[vpcConfigModel] `tfsdk:"network_mode_config"`

website/docs/r/bedrockagentcore_agent_runtime.html.markdown

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ The following arguments are optional:
121121
* `description` - (Optional) Description of the agent runtime.
122122
* `environment_variables` - (Optional) Map of environment variables to pass to the container.
123123
* `authorizer_configuration` - (Optional) Authorization configuration for authenticating incoming requests. See [`authorizer_configuration`](#authorizer_configuration) below.
124+
* `lifecycle_configuration` - (Optional) Runtime session and resource lifecycle configuration for the agent runtime. See [`lifecycle_configuration`](#lifecycle_configuration) below.
124125
* `protocol_configuration` - (Optional) Protocol configuration for the agent runtime. See [`protocol_configuration`](#protocol_configuration) below.
125126
* `request_header_configuration` - (Optional) Configuration for HTTP request headers that will be passed through to the runtime. See [`request_header_configuration`](#request_header_configuration) below.
126127
* `tags` - (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
@@ -151,6 +152,13 @@ The `custom_jwt_authorizer` block supports the following:
151152
* `allowed_audience` - (Optional) Set of allowed audience values for JWT token validation.
152153
* `allowed_clients` - (Optional) Set of allowed client IDs for JWT token validation.
153154

155+
### `lifecycle_configuration`
156+
157+
The `lifecycle_configuration` block supports the following:
158+
159+
* `idle_runtime_session_timeout` - (Optional) Timeout in seconds for idle runtime sessions.
160+
* `max_lifetime` - (Optional) Maximum lifetime for the instance in seconds.
161+
154162
### `network_configuration`
155163

156164
The `network_configuration` block supports the following:
@@ -169,7 +177,7 @@ The `network_mode_config` block supports the following:
169177

170178
The `protocol_configuration` block supports the following:
171179

172-
* `server_protocol` - (Optional) Server protocol for the agent runtime. Valid values: `HTTP`, `MCP`.
180+
* `server_protocol` - (Optional) Server protocol for the agent runtime. Valid values: `HTTP`, `MCP`, `A2A`.
173181

174182
### `request_header_configuration`
175183

0 commit comments

Comments
 (0)