# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::CloudWatchEvents # @api private module Endpoints class ActivateEventSource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CancelReplay def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateApiDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateArchive def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateConnection def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateEventBus def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreatePartnerEventSource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeactivateEventSource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeauthorizeConnection def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteApiDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteArchive def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteConnection def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteEventBus def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeletePartnerEventSource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteRule def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeApiDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeArchive def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeConnection def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeEventBus def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeEventSource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribePartnerEventSource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeReplay def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DescribeRule def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DisableRule def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class EnableRule def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListApiDestinations def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListArchives def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListConnections def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListEventBuses def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListEventSources def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListPartnerEventSourceAccounts def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListPartnerEventSources def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListReplays def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListRuleNamesByTarget def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListRules def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListTagsForResource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListTargetsByRule def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class PutEvents def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class PutPartnerEvents def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class PutPermission def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class PutRule def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class PutTargets def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class RemovePermission def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class RemoveTargets def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class StartReplay def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class TagResource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class TestEventPattern def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UntagResource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateApiDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateArchive def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateConnection def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchEvents::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end end end