lib/aws-sdk-bedrockagentruntime/endpoints.rb in aws-sdk-bedrockagentruntime-1.27.0 vs lib/aws-sdk-bedrockagentruntime/endpoints.rb in aws-sdk-bedrockagentruntime-1.28.0
- old
+ new
@@ -10,73 +10,11 @@
module Aws::BedrockAgentRuntime
# @api private
module Endpoints
- class DeleteAgentMemory
- def self.build(context)
- Aws::BedrockAgentRuntime::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
- )
- end
- end
- class GetAgentMemory
- def self.build(context)
- Aws::BedrockAgentRuntime::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
- )
- end
+ def self.parameters_for_operation(context)
+ Aws::BedrockAgentRuntime::EndpointParameters.create(context.config)
end
-
- class InvokeAgent
- def self.build(context)
- Aws::BedrockAgentRuntime::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
- )
- end
- end
-
- class InvokeFlow
- def self.build(context)
- Aws::BedrockAgentRuntime::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
- )
- end
- end
-
- class Retrieve
- def self.build(context)
- Aws::BedrockAgentRuntime::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
- )
- end
- end
-
- class RetrieveAndGenerate
- def self.build(context)
- Aws::BedrockAgentRuntime::EndpointParameters.new(
- region: context.config.region,
- use_dual_stack: context.config.use_dualstack_endpoint,
- use_fips: context.config.use_fips_endpoint,
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
- )
- end
- end
-
end
end