# 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::CodeCommit # @api private module Endpoints class AssociateApprovalRuleTemplateWithRepository def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 BatchAssociateApprovalRuleTemplateWithRepositories def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 BatchDescribeMergeConflicts def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 BatchDisassociateApprovalRuleTemplateFromRepositories def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 BatchGetCommits def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 BatchGetRepositories def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 CreateApprovalRuleTemplate def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 CreateBranch def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 CreateCommit def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 CreatePullRequest def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 CreatePullRequestApprovalRule def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 CreateRepository def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 CreateUnreferencedMergeCommit def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DeleteApprovalRuleTemplate def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DeleteBranch def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DeleteCommentContent def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DeleteFile def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DeletePullRequestApprovalRule def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DeleteRepository def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DescribeMergeConflicts def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DescribePullRequestEvents def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 DisassociateApprovalRuleTemplateFromRepository def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 EvaluatePullRequestApprovalRules def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetApprovalRuleTemplate def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetBlob def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetBranch def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetComment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetCommentReactions def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetCommentsForComparedCommit def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetCommentsForPullRequest def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetCommit def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetDifferences def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetFile def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetFolder def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetMergeCommit def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetMergeConflicts def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetMergeOptions def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetPullRequest def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetPullRequestApprovalStates def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetPullRequestOverrideState def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetRepository def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 GetRepositoryTriggers def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 ListApprovalRuleTemplates def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 ListAssociatedApprovalRuleTemplatesForRepository def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 ListBranches def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 ListFileCommitHistory def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 ListPullRequests def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 ListRepositories def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 ListRepositoriesForApprovalRuleTemplate def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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::CodeCommit::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 MergeBranchesByFastForward def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 MergeBranchesBySquash def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 MergeBranchesByThreeWay def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 MergePullRequestByFastForward def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 MergePullRequestBySquash def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 MergePullRequestByThreeWay def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 OverridePullRequestApprovalRules def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 PostCommentForComparedCommit def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 PostCommentForPullRequest def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 PostCommentReply def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 PutCommentReaction def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 PutFile def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 PutRepositoryTriggers def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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::CodeCommit::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 TestRepositoryTriggers def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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::CodeCommit::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 UpdateApprovalRuleTemplateContent def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdateApprovalRuleTemplateDescription def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdateApprovalRuleTemplateName def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdateComment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdateDefaultBranch def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdatePullRequestApprovalRuleContent def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdatePullRequestApprovalState def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdatePullRequestDescription def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdatePullRequestStatus def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdatePullRequestTitle def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdateRepositoryDescription def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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 UpdateRepositoryName def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::CodeCommit::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