lib/aws-sdk-dataexchange/endpoints.rb in aws-sdk-dataexchange-1.59.0 vs lib/aws-sdk-dataexchange/endpoints.rb in aws-sdk-dataexchange-1.60.0

- old
+ new

@@ -10,414 +10,11 @@ module Aws::DataExchange # @api private module Endpoints - class AcceptDataGrant - def self.build(context) - Aws::DataExchange::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 CancelJob - def self.build(context) - Aws::DataExchange::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::DataExchange::EndpointParameters.create(context.config) end - - class CreateDataGrant - def self.build(context) - Aws::DataExchange::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 CreateDataSet - def self.build(context) - Aws::DataExchange::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 CreateEventAction - def self.build(context) - Aws::DataExchange::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 CreateJob - def self.build(context) - Aws::DataExchange::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 CreateRevision - def self.build(context) - Aws::DataExchange::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 DeleteAsset - def self.build(context) - Aws::DataExchange::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 DeleteDataGrant - def self.build(context) - Aws::DataExchange::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 DeleteDataSet - def self.build(context) - Aws::DataExchange::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 DeleteEventAction - def self.build(context) - Aws::DataExchange::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 DeleteRevision - def self.build(context) - Aws::DataExchange::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 GetAsset - def self.build(context) - Aws::DataExchange::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 GetDataGrant - def self.build(context) - Aws::DataExchange::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 GetDataSet - def self.build(context) - Aws::DataExchange::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 GetEventAction - def self.build(context) - Aws::DataExchange::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 GetJob - def self.build(context) - Aws::DataExchange::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 GetReceivedDataGrant - def self.build(context) - Aws::DataExchange::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 GetRevision - def self.build(context) - Aws::DataExchange::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 ListDataGrants - def self.build(context) - Aws::DataExchange::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 ListDataSetRevisions - def self.build(context) - Aws::DataExchange::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 ListDataSets - def self.build(context) - Aws::DataExchange::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 ListEventActions - def self.build(context) - Aws::DataExchange::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 ListJobs - def self.build(context) - Aws::DataExchange::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 ListReceivedDataGrants - def self.build(context) - Aws::DataExchange::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 ListRevisionAssets - def self.build(context) - Aws::DataExchange::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::DataExchange::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 RevokeRevision - def self.build(context) - Aws::DataExchange::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 SendApiAsset - def self.build(context) - Aws::DataExchange::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 SendDataSetNotification - def self.build(context) - Aws::DataExchange::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 StartJob - def self.build(context) - Aws::DataExchange::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::DataExchange::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::DataExchange::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 UpdateAsset - def self.build(context) - Aws::DataExchange::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 UpdateDataSet - def self.build(context) - Aws::DataExchange::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 UpdateEventAction - def self.build(context) - Aws::DataExchange::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 UpdateRevision - def self.build(context) - Aws::DataExchange::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