lib/aws-sdk-keyspaces/endpoints.rb in aws-sdk-keyspaces-1.30.0 vs lib/aws-sdk-keyspaces/endpoints.rb in aws-sdk-keyspaces-1.31.0
- old
+ new
@@ -10,161 +10,11 @@
module Aws::Keyspaces
# @api private
module Endpoints
- class CreateKeyspace
- def self.build(context)
- Aws::Keyspaces::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 CreateTable
- def self.build(context)
- Aws::Keyspaces::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::Keyspaces::EndpointParameters.create(context.config)
end
-
- class DeleteKeyspace
- def self.build(context)
- Aws::Keyspaces::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 DeleteTable
- def self.build(context)
- Aws::Keyspaces::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 GetKeyspace
- def self.build(context)
- Aws::Keyspaces::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 GetTable
- def self.build(context)
- Aws::Keyspaces::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 GetTableAutoScalingSettings
- def self.build(context)
- Aws::Keyspaces::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 ListKeyspaces
- def self.build(context)
- Aws::Keyspaces::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 ListTables
- def self.build(context)
- Aws::Keyspaces::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 ListTagsForResource
- def self.build(context)
- Aws::Keyspaces::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 RestoreTable
- def self.build(context)
- Aws::Keyspaces::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 TagResource
- def self.build(context)
- Aws::Keyspaces::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 UntagResource
- def self.build(context)
- Aws::Keyspaces::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 UpdateTable
- def self.build(context)
- Aws::Keyspaces::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