# 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::CloudWatchLogs # @api private module Endpoints class AssociateKmsKey def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 CancelExportTask def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 CreateDelivery def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 CreateExportTask def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 CreateLogAnomalyDetector def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 CreateLogGroup def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 CreateLogStream def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteAccountPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteDataProtectionPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteDelivery def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteDeliveryDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteDeliveryDestinationPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteDeliverySource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteLogAnomalyDetector def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteLogGroup def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteLogStream def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteMetricFilter def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteQueryDefinition def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteResourcePolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteRetentionPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DeleteSubscriptionFilter def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeAccountPolicies def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeConfigurationTemplates def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeDeliveries def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeDeliveryDestinations def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeDeliverySources def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeDestinations def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeExportTasks def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeLogGroups def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeLogStreams def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeMetricFilters def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeQueries def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeQueryDefinitions def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeResourcePolicies def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DescribeSubscriptionFilters def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 DisassociateKmsKey def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 FilterLogEvents def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetDataProtectionPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetDelivery def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetDeliveryDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetDeliveryDestinationPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetDeliverySource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetLogAnomalyDetector def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetLogEvents def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetLogGroupFields def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetLogRecord def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 GetQueryResults def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 ListAnomalies def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 ListLogAnomalyDetectors def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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::CloudWatchLogs::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 ListTagsLogGroup def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutAccountPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutDataProtectionPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutDeliveryDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutDeliveryDestinationPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutDeliverySource def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutDestination def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutDestinationPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutLogEvents def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutMetricFilter def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutQueryDefinition def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutResourcePolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutRetentionPolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 PutSubscriptionFilter def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 StartLiveTail def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 StartQuery def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 StopQuery def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 TagLogGroup def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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::CloudWatchLogs::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 TestMetricFilter def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 UntagLogGroup def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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::CloudWatchLogs::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 UpdateAnomaly def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 UpdateDeliveryConfiguration def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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 UpdateLogAnomalyDetector def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CloudWatchLogs::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