# 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::SecretsManager # @api private module Endpoints class BatchGetSecretValue def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 CancelRotateSecret def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 CreateSecret def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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::SecretsManager::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 DeleteSecret def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 DescribeSecret def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 GetRandomPassword def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 GetResourcePolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 GetSecretValue def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 ListSecretVersionIds def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 ListSecrets def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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::SecretsManager::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 PutSecretValue def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 RemoveRegionsFromReplication def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 ReplicateSecretToRegions def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 RestoreSecret def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 RotateSecret def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 StopReplicationToReplica def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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::SecretsManager::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::SecretsManager::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 UpdateSecret def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 UpdateSecretVersionStage def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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 ValidateResourcePolicy def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::SecretsManager::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