lib/aws-sdk-eks/plugins/endpoints.rb in aws-sdk-eks-1.118.0 vs lib/aws-sdk-eks/plugins/endpoints.rb in aws-sdk-eks-1.119.0
- old
+ new
@@ -25,11 +25,11 @@
# @api private
class Handler < Seahorse::Client::Handler
def call(context)
unless context[:discovered_endpoint]
- params = parameters_for_operation(context)
+ params = Aws::EKS::Endpoints.parameters_for_operation(context)
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
context.http_request.endpoint = endpoint.url
apply_endpoint_headers(context, endpoint.headers)
@@ -63,126 +63,9 @@
.compact
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
.join(',')
context.http_request.headers[key] = value
- end
- end
-
- def parameters_for_operation(context)
- case context.operation_name
- when :associate_access_policy
- Aws::EKS::Endpoints::AssociateAccessPolicy.build(context)
- when :associate_encryption_config
- Aws::EKS::Endpoints::AssociateEncryptionConfig.build(context)
- when :associate_identity_provider_config
- Aws::EKS::Endpoints::AssociateIdentityProviderConfig.build(context)
- when :create_access_entry
- Aws::EKS::Endpoints::CreateAccessEntry.build(context)
- when :create_addon
- Aws::EKS::Endpoints::CreateAddon.build(context)
- when :create_cluster
- Aws::EKS::Endpoints::CreateCluster.build(context)
- when :create_eks_anywhere_subscription
- Aws::EKS::Endpoints::CreateEksAnywhereSubscription.build(context)
- when :create_fargate_profile
- Aws::EKS::Endpoints::CreateFargateProfile.build(context)
- when :create_nodegroup
- Aws::EKS::Endpoints::CreateNodegroup.build(context)
- when :create_pod_identity_association
- Aws::EKS::Endpoints::CreatePodIdentityAssociation.build(context)
- when :delete_access_entry
- Aws::EKS::Endpoints::DeleteAccessEntry.build(context)
- when :delete_addon
- Aws::EKS::Endpoints::DeleteAddon.build(context)
- when :delete_cluster
- Aws::EKS::Endpoints::DeleteCluster.build(context)
- when :delete_eks_anywhere_subscription
- Aws::EKS::Endpoints::DeleteEksAnywhereSubscription.build(context)
- when :delete_fargate_profile
- Aws::EKS::Endpoints::DeleteFargateProfile.build(context)
- when :delete_nodegroup
- Aws::EKS::Endpoints::DeleteNodegroup.build(context)
- when :delete_pod_identity_association
- Aws::EKS::Endpoints::DeletePodIdentityAssociation.build(context)
- when :deregister_cluster
- Aws::EKS::Endpoints::DeregisterCluster.build(context)
- when :describe_access_entry
- Aws::EKS::Endpoints::DescribeAccessEntry.build(context)
- when :describe_addon
- Aws::EKS::Endpoints::DescribeAddon.build(context)
- when :describe_addon_configuration
- Aws::EKS::Endpoints::DescribeAddonConfiguration.build(context)
- when :describe_addon_versions
- Aws::EKS::Endpoints::DescribeAddonVersions.build(context)
- when :describe_cluster
- Aws::EKS::Endpoints::DescribeCluster.build(context)
- when :describe_eks_anywhere_subscription
- Aws::EKS::Endpoints::DescribeEksAnywhereSubscription.build(context)
- when :describe_fargate_profile
- Aws::EKS::Endpoints::DescribeFargateProfile.build(context)
- when :describe_identity_provider_config
- Aws::EKS::Endpoints::DescribeIdentityProviderConfig.build(context)
- when :describe_insight
- Aws::EKS::Endpoints::DescribeInsight.build(context)
- when :describe_nodegroup
- Aws::EKS::Endpoints::DescribeNodegroup.build(context)
- when :describe_pod_identity_association
- Aws::EKS::Endpoints::DescribePodIdentityAssociation.build(context)
- when :describe_update
- Aws::EKS::Endpoints::DescribeUpdate.build(context)
- when :disassociate_access_policy
- Aws::EKS::Endpoints::DisassociateAccessPolicy.build(context)
- when :disassociate_identity_provider_config
- Aws::EKS::Endpoints::DisassociateIdentityProviderConfig.build(context)
- when :list_access_entries
- Aws::EKS::Endpoints::ListAccessEntries.build(context)
- when :list_access_policies
- Aws::EKS::Endpoints::ListAccessPolicies.build(context)
- when :list_addons
- Aws::EKS::Endpoints::ListAddons.build(context)
- when :list_associated_access_policies
- Aws::EKS::Endpoints::ListAssociatedAccessPolicies.build(context)
- when :list_clusters
- Aws::EKS::Endpoints::ListClusters.build(context)
- when :list_eks_anywhere_subscriptions
- Aws::EKS::Endpoints::ListEksAnywhereSubscriptions.build(context)
- when :list_fargate_profiles
- Aws::EKS::Endpoints::ListFargateProfiles.build(context)
- when :list_identity_provider_configs
- Aws::EKS::Endpoints::ListIdentityProviderConfigs.build(context)
- when :list_insights
- Aws::EKS::Endpoints::ListInsights.build(context)
- when :list_nodegroups
- Aws::EKS::Endpoints::ListNodegroups.build(context)
- when :list_pod_identity_associations
- Aws::EKS::Endpoints::ListPodIdentityAssociations.build(context)
- when :list_tags_for_resource
- Aws::EKS::Endpoints::ListTagsForResource.build(context)
- when :list_updates
- Aws::EKS::Endpoints::ListUpdates.build(context)
- when :register_cluster
- Aws::EKS::Endpoints::RegisterCluster.build(context)
- when :tag_resource
- Aws::EKS::Endpoints::TagResource.build(context)
- when :untag_resource
- Aws::EKS::Endpoints::UntagResource.build(context)
- when :update_access_entry
- Aws::EKS::Endpoints::UpdateAccessEntry.build(context)
- when :update_addon
- Aws::EKS::Endpoints::UpdateAddon.build(context)
- when :update_cluster_config
- Aws::EKS::Endpoints::UpdateClusterConfig.build(context)
- when :update_cluster_version
- Aws::EKS::Endpoints::UpdateClusterVersion.build(context)
- when :update_eks_anywhere_subscription
- Aws::EKS::Endpoints::UpdateEksAnywhereSubscription.build(context)
- when :update_nodegroup_config
- Aws::EKS::Endpoints::UpdateNodegroupConfig.build(context)
- when :update_nodegroup_version
- Aws::EKS::Endpoints::UpdateNodegroupVersion.build(context)
- when :update_pod_identity_association
- Aws::EKS::Endpoints::UpdatePodIdentityAssociation.build(context)
end
end
end
def add_handlers(handlers, _config)