lib/aws-sdk-kinesisanalytics/endpoints.rb in aws-sdk-kinesisanalytics-1.61.0 vs lib/aws-sdk-kinesisanalytics/endpoints.rb in aws-sdk-kinesisanalytics-1.62.0
- old
+ new
@@ -12,283 +12,223 @@
# @api private
module Endpoints
class AddApplicationCloudWatchLoggingOption
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class AddApplicationInput
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class AddApplicationInputProcessingConfiguration
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class AddApplicationOutput
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class AddApplicationReferenceDataSource
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class CreateApplication
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteApplication
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteApplicationCloudWatchLoggingOption
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteApplicationInputProcessingConfiguration
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteApplicationOutput
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DeleteApplicationReferenceDataSource
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DescribeApplication
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class DiscoverInputSchema
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListApplications
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class ListTagsForResource
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class StartApplication
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class StopApplication
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class TagResource
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UntagResource
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
class UpdateApplication
def self.build(context)
- unless context.config.regional_endpoint
- endpoint = context.config.endpoint.to_s
- end
Aws::KinesisAnalytics::EndpointParameters.new(
region: context.config.region,
use_dual_stack: context.config.use_dualstack_endpoint,
use_fips: context.config.use_fips_endpoint,
- endpoint: endpoint,
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
)
end
end
end