aws-sdk-cloudformation 1.70.0 → 1.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudformation/client.rb +20 -3
- data/lib/aws-sdk-cloudformation/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-cloudformation/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-cloudformation/endpoints.rb +939 -0
- data/lib/aws-sdk-cloudformation/plugins/endpoints.rb +200 -0
- data/lib/aws-sdk-cloudformation.rb +5 -1
- metadata +8 -4
| @@ -0,0 +1,200 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # WARNING ABOUT GENERATED CODE
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # This file is generated. See the contributing guide for more information:
         | 
| 6 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 7 | 
            +
            #
         | 
| 8 | 
            +
            # WARNING ABOUT GENERATED CODE
         | 
| 9 | 
            +
             | 
| 10 | 
            +
             | 
| 11 | 
            +
            module Aws::CloudFormation
         | 
| 12 | 
            +
              module Plugins
         | 
| 13 | 
            +
                class Endpoints < Seahorse::Client::Plugin
         | 
| 14 | 
            +
                  option(
         | 
| 15 | 
            +
                    :endpoint_provider,
         | 
| 16 | 
            +
                    doc_type: 'Aws::CloudFormation::EndpointProvider',
         | 
| 17 | 
            +
                    docstring: 'The endpoint provider used to resolve endpoints. Any '\
         | 
| 18 | 
            +
                               'object that responds to `#resolve_endpoint(parameters)` '\
         | 
| 19 | 
            +
                               'where `parameters` is a Struct similar to '\
         | 
| 20 | 
            +
                               '`Aws::CloudFormation::EndpointParameters`'
         | 
| 21 | 
            +
                  ) do |cfg|
         | 
| 22 | 
            +
                    Aws::CloudFormation::EndpointProvider.new
         | 
| 23 | 
            +
                  end
         | 
| 24 | 
            +
             | 
| 25 | 
            +
                  # @api private
         | 
| 26 | 
            +
                  class Handler < Seahorse::Client::Handler
         | 
| 27 | 
            +
                    def call(context)
         | 
| 28 | 
            +
                      # If endpoint was discovered, do not resolve or apply the endpoint.
         | 
| 29 | 
            +
                      unless context[:discovered_endpoint]
         | 
| 30 | 
            +
                        params = parameters_for_operation(context)
         | 
| 31 | 
            +
                        endpoint = context.config.endpoint_provider.resolve_endpoint(params)
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                        context.http_request.endpoint = endpoint.url
         | 
| 34 | 
            +
                        apply_endpoint_headers(context, endpoint.headers)
         | 
| 35 | 
            +
                      end
         | 
| 36 | 
            +
             | 
| 37 | 
            +
                      context[:endpoint_params] = params
         | 
| 38 | 
            +
                      context[:auth_scheme] =
         | 
| 39 | 
            +
                        Aws::Endpoints.resolve_auth_scheme(context, endpoint)
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                      @handler.call(context)
         | 
| 42 | 
            +
                    end
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                    private
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                    def apply_endpoint_headers(context, headers)
         | 
| 47 | 
            +
                      headers.each do |key, values|
         | 
| 48 | 
            +
                        value = values
         | 
| 49 | 
            +
                          .compact
         | 
| 50 | 
            +
                          .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
         | 
| 51 | 
            +
                          .join(',')
         | 
| 52 | 
            +
             | 
| 53 | 
            +
                        context.http_request.headers[key] = value
         | 
| 54 | 
            +
                      end
         | 
| 55 | 
            +
                    end
         | 
| 56 | 
            +
             | 
| 57 | 
            +
                    def parameters_for_operation(context)
         | 
| 58 | 
            +
                      case context.operation_name
         | 
| 59 | 
            +
                      when :activate_type
         | 
| 60 | 
            +
                        Aws::CloudFormation::Endpoints::ActivateType.build(context)
         | 
| 61 | 
            +
                      when :batch_describe_type_configurations
         | 
| 62 | 
            +
                        Aws::CloudFormation::Endpoints::BatchDescribeTypeConfigurations.build(context)
         | 
| 63 | 
            +
                      when :cancel_update_stack
         | 
| 64 | 
            +
                        Aws::CloudFormation::Endpoints::CancelUpdateStack.build(context)
         | 
| 65 | 
            +
                      when :continue_update_rollback
         | 
| 66 | 
            +
                        Aws::CloudFormation::Endpoints::ContinueUpdateRollback.build(context)
         | 
| 67 | 
            +
                      when :create_change_set
         | 
| 68 | 
            +
                        Aws::CloudFormation::Endpoints::CreateChangeSet.build(context)
         | 
| 69 | 
            +
                      when :create_stack
         | 
| 70 | 
            +
                        Aws::CloudFormation::Endpoints::CreateStack.build(context)
         | 
| 71 | 
            +
                      when :create_stack_instances
         | 
| 72 | 
            +
                        Aws::CloudFormation::Endpoints::CreateStackInstances.build(context)
         | 
| 73 | 
            +
                      when :create_stack_set
         | 
| 74 | 
            +
                        Aws::CloudFormation::Endpoints::CreateStackSet.build(context)
         | 
| 75 | 
            +
                      when :deactivate_type
         | 
| 76 | 
            +
                        Aws::CloudFormation::Endpoints::DeactivateType.build(context)
         | 
| 77 | 
            +
                      when :delete_change_set
         | 
| 78 | 
            +
                        Aws::CloudFormation::Endpoints::DeleteChangeSet.build(context)
         | 
| 79 | 
            +
                      when :delete_stack
         | 
| 80 | 
            +
                        Aws::CloudFormation::Endpoints::DeleteStack.build(context)
         | 
| 81 | 
            +
                      when :delete_stack_instances
         | 
| 82 | 
            +
                        Aws::CloudFormation::Endpoints::DeleteStackInstances.build(context)
         | 
| 83 | 
            +
                      when :delete_stack_set
         | 
| 84 | 
            +
                        Aws::CloudFormation::Endpoints::DeleteStackSet.build(context)
         | 
| 85 | 
            +
                      when :deregister_type
         | 
| 86 | 
            +
                        Aws::CloudFormation::Endpoints::DeregisterType.build(context)
         | 
| 87 | 
            +
                      when :describe_account_limits
         | 
| 88 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeAccountLimits.build(context)
         | 
| 89 | 
            +
                      when :describe_change_set
         | 
| 90 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeChangeSet.build(context)
         | 
| 91 | 
            +
                      when :describe_change_set_hooks
         | 
| 92 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeChangeSetHooks.build(context)
         | 
| 93 | 
            +
                      when :describe_publisher
         | 
| 94 | 
            +
                        Aws::CloudFormation::Endpoints::DescribePublisher.build(context)
         | 
| 95 | 
            +
                      when :describe_stack_drift_detection_status
         | 
| 96 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStackDriftDetectionStatus.build(context)
         | 
| 97 | 
            +
                      when :describe_stack_events
         | 
| 98 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStackEvents.build(context)
         | 
| 99 | 
            +
                      when :describe_stack_instance
         | 
| 100 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStackInstance.build(context)
         | 
| 101 | 
            +
                      when :describe_stack_resource
         | 
| 102 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStackResource.build(context)
         | 
| 103 | 
            +
                      when :describe_stack_resource_drifts
         | 
| 104 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStackResourceDrifts.build(context)
         | 
| 105 | 
            +
                      when :describe_stack_resources
         | 
| 106 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStackResources.build(context)
         | 
| 107 | 
            +
                      when :describe_stack_set
         | 
| 108 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStackSet.build(context)
         | 
| 109 | 
            +
                      when :describe_stack_set_operation
         | 
| 110 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStackSetOperation.build(context)
         | 
| 111 | 
            +
                      when :describe_stacks
         | 
| 112 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeStacks.build(context)
         | 
| 113 | 
            +
                      when :describe_type
         | 
| 114 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeType.build(context)
         | 
| 115 | 
            +
                      when :describe_type_registration
         | 
| 116 | 
            +
                        Aws::CloudFormation::Endpoints::DescribeTypeRegistration.build(context)
         | 
| 117 | 
            +
                      when :detect_stack_drift
         | 
| 118 | 
            +
                        Aws::CloudFormation::Endpoints::DetectStackDrift.build(context)
         | 
| 119 | 
            +
                      when :detect_stack_resource_drift
         | 
| 120 | 
            +
                        Aws::CloudFormation::Endpoints::DetectStackResourceDrift.build(context)
         | 
| 121 | 
            +
                      when :detect_stack_set_drift
         | 
| 122 | 
            +
                        Aws::CloudFormation::Endpoints::DetectStackSetDrift.build(context)
         | 
| 123 | 
            +
                      when :estimate_template_cost
         | 
| 124 | 
            +
                        Aws::CloudFormation::Endpoints::EstimateTemplateCost.build(context)
         | 
| 125 | 
            +
                      when :execute_change_set
         | 
| 126 | 
            +
                        Aws::CloudFormation::Endpoints::ExecuteChangeSet.build(context)
         | 
| 127 | 
            +
                      when :get_stack_policy
         | 
| 128 | 
            +
                        Aws::CloudFormation::Endpoints::GetStackPolicy.build(context)
         | 
| 129 | 
            +
                      when :get_template
         | 
| 130 | 
            +
                        Aws::CloudFormation::Endpoints::GetTemplate.build(context)
         | 
| 131 | 
            +
                      when :get_template_summary
         | 
| 132 | 
            +
                        Aws::CloudFormation::Endpoints::GetTemplateSummary.build(context)
         | 
| 133 | 
            +
                      when :import_stacks_to_stack_set
         | 
| 134 | 
            +
                        Aws::CloudFormation::Endpoints::ImportStacksToStackSet.build(context)
         | 
| 135 | 
            +
                      when :list_change_sets
         | 
| 136 | 
            +
                        Aws::CloudFormation::Endpoints::ListChangeSets.build(context)
         | 
| 137 | 
            +
                      when :list_exports
         | 
| 138 | 
            +
                        Aws::CloudFormation::Endpoints::ListExports.build(context)
         | 
| 139 | 
            +
                      when :list_imports
         | 
| 140 | 
            +
                        Aws::CloudFormation::Endpoints::ListImports.build(context)
         | 
| 141 | 
            +
                      when :list_stack_instances
         | 
| 142 | 
            +
                        Aws::CloudFormation::Endpoints::ListStackInstances.build(context)
         | 
| 143 | 
            +
                      when :list_stack_resources
         | 
| 144 | 
            +
                        Aws::CloudFormation::Endpoints::ListStackResources.build(context)
         | 
| 145 | 
            +
                      when :list_stack_set_operation_results
         | 
| 146 | 
            +
                        Aws::CloudFormation::Endpoints::ListStackSetOperationResults.build(context)
         | 
| 147 | 
            +
                      when :list_stack_set_operations
         | 
| 148 | 
            +
                        Aws::CloudFormation::Endpoints::ListStackSetOperations.build(context)
         | 
| 149 | 
            +
                      when :list_stack_sets
         | 
| 150 | 
            +
                        Aws::CloudFormation::Endpoints::ListStackSets.build(context)
         | 
| 151 | 
            +
                      when :list_stacks
         | 
| 152 | 
            +
                        Aws::CloudFormation::Endpoints::ListStacks.build(context)
         | 
| 153 | 
            +
                      when :list_type_registrations
         | 
| 154 | 
            +
                        Aws::CloudFormation::Endpoints::ListTypeRegistrations.build(context)
         | 
| 155 | 
            +
                      when :list_type_versions
         | 
| 156 | 
            +
                        Aws::CloudFormation::Endpoints::ListTypeVersions.build(context)
         | 
| 157 | 
            +
                      when :list_types
         | 
| 158 | 
            +
                        Aws::CloudFormation::Endpoints::ListTypes.build(context)
         | 
| 159 | 
            +
                      when :publish_type
         | 
| 160 | 
            +
                        Aws::CloudFormation::Endpoints::PublishType.build(context)
         | 
| 161 | 
            +
                      when :record_handler_progress
         | 
| 162 | 
            +
                        Aws::CloudFormation::Endpoints::RecordHandlerProgress.build(context)
         | 
| 163 | 
            +
                      when :register_publisher
         | 
| 164 | 
            +
                        Aws::CloudFormation::Endpoints::RegisterPublisher.build(context)
         | 
| 165 | 
            +
                      when :register_type
         | 
| 166 | 
            +
                        Aws::CloudFormation::Endpoints::RegisterType.build(context)
         | 
| 167 | 
            +
                      when :rollback_stack
         | 
| 168 | 
            +
                        Aws::CloudFormation::Endpoints::RollbackStack.build(context)
         | 
| 169 | 
            +
                      when :set_stack_policy
         | 
| 170 | 
            +
                        Aws::CloudFormation::Endpoints::SetStackPolicy.build(context)
         | 
| 171 | 
            +
                      when :set_type_configuration
         | 
| 172 | 
            +
                        Aws::CloudFormation::Endpoints::SetTypeConfiguration.build(context)
         | 
| 173 | 
            +
                      when :set_type_default_version
         | 
| 174 | 
            +
                        Aws::CloudFormation::Endpoints::SetTypeDefaultVersion.build(context)
         | 
| 175 | 
            +
                      when :signal_resource
         | 
| 176 | 
            +
                        Aws::CloudFormation::Endpoints::SignalResource.build(context)
         | 
| 177 | 
            +
                      when :stop_stack_set_operation
         | 
| 178 | 
            +
                        Aws::CloudFormation::Endpoints::StopStackSetOperation.build(context)
         | 
| 179 | 
            +
                      when :test_type
         | 
| 180 | 
            +
                        Aws::CloudFormation::Endpoints::TestType.build(context)
         | 
| 181 | 
            +
                      when :update_stack
         | 
| 182 | 
            +
                        Aws::CloudFormation::Endpoints::UpdateStack.build(context)
         | 
| 183 | 
            +
                      when :update_stack_instances
         | 
| 184 | 
            +
                        Aws::CloudFormation::Endpoints::UpdateStackInstances.build(context)
         | 
| 185 | 
            +
                      when :update_stack_set
         | 
| 186 | 
            +
                        Aws::CloudFormation::Endpoints::UpdateStackSet.build(context)
         | 
| 187 | 
            +
                      when :update_termination_protection
         | 
| 188 | 
            +
                        Aws::CloudFormation::Endpoints::UpdateTerminationProtection.build(context)
         | 
| 189 | 
            +
                      when :validate_template
         | 
| 190 | 
            +
                        Aws::CloudFormation::Endpoints::ValidateTemplate.build(context)
         | 
| 191 | 
            +
                      end
         | 
| 192 | 
            +
                    end
         | 
| 193 | 
            +
                  end
         | 
| 194 | 
            +
             | 
| 195 | 
            +
                  def add_handlers(handlers, _config)
         | 
| 196 | 
            +
                    handlers.add(Handler, step: :build, priority: 75)
         | 
| 197 | 
            +
                  end
         | 
| 198 | 
            +
                end
         | 
| 199 | 
            +
              end
         | 
| 200 | 
            +
            end
         | 
| @@ -13,10 +13,14 @@ require 'aws-sigv4' | |
| 13 13 |  | 
| 14 14 | 
             
            require_relative 'aws-sdk-cloudformation/types'
         | 
| 15 15 | 
             
            require_relative 'aws-sdk-cloudformation/client_api'
         | 
| 16 | 
            +
            require_relative 'aws-sdk-cloudformation/plugins/endpoints.rb'
         | 
| 16 17 | 
             
            require_relative 'aws-sdk-cloudformation/client'
         | 
| 17 18 | 
             
            require_relative 'aws-sdk-cloudformation/errors'
         | 
| 18 19 | 
             
            require_relative 'aws-sdk-cloudformation/waiters'
         | 
| 19 20 | 
             
            require_relative 'aws-sdk-cloudformation/resource'
         | 
| 21 | 
            +
            require_relative 'aws-sdk-cloudformation/endpoint_parameters'
         | 
| 22 | 
            +
            require_relative 'aws-sdk-cloudformation/endpoint_provider'
         | 
| 23 | 
            +
            require_relative 'aws-sdk-cloudformation/endpoints'
         | 
| 20 24 | 
             
            require_relative 'aws-sdk-cloudformation/event'
         | 
| 21 25 | 
             
            require_relative 'aws-sdk-cloudformation/stack'
         | 
| 22 26 | 
             
            require_relative 'aws-sdk-cloudformation/stack_resource'
         | 
| @@ -53,6 +57,6 @@ require_relative 'aws-sdk-cloudformation/customizations' | |
| 53 57 | 
             
            # @!group service
         | 
| 54 58 | 
             
            module Aws::CloudFormation
         | 
| 55 59 |  | 
| 56 | 
            -
              GEM_VERSION = '1. | 
| 60 | 
            +
              GEM_VERSION = '1.71.0'
         | 
| 57 61 |  | 
| 58 62 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-cloudformation
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.71.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Amazon Web Services
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2022- | 
| 11 | 
            +
            date: 2022-10-25 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-core
         | 
| @@ -19,7 +19,7 @@ dependencies: | |
| 19 19 | 
             
                    version: '3'
         | 
| 20 20 | 
             
                - - ">="
         | 
| 21 21 | 
             
                  - !ruby/object:Gem::Version
         | 
| 22 | 
            -
                    version: 3. | 
| 22 | 
            +
                    version: 3.165.0
         | 
| 23 23 | 
             
              type: :runtime
         | 
| 24 24 | 
             
              prerelease: false
         | 
| 25 25 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| @@ -29,7 +29,7 @@ dependencies: | |
| 29 29 | 
             
                    version: '3'
         | 
| 30 30 | 
             
                - - ">="
         | 
| 31 31 | 
             
                  - !ruby/object:Gem::Version
         | 
| 32 | 
            -
                    version: 3. | 
| 32 | 
            +
                    version: 3.165.0
         | 
| 33 33 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 34 34 | 
             
              name: aws-sigv4
         | 
| 35 35 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -59,8 +59,12 @@ files: | |
| 59 59 | 
             
            - lib/aws-sdk-cloudformation/client.rb
         | 
| 60 60 | 
             
            - lib/aws-sdk-cloudformation/client_api.rb
         | 
| 61 61 | 
             
            - lib/aws-sdk-cloudformation/customizations.rb
         | 
| 62 | 
            +
            - lib/aws-sdk-cloudformation/endpoint_parameters.rb
         | 
| 63 | 
            +
            - lib/aws-sdk-cloudformation/endpoint_provider.rb
         | 
| 64 | 
            +
            - lib/aws-sdk-cloudformation/endpoints.rb
         | 
| 62 65 | 
             
            - lib/aws-sdk-cloudformation/errors.rb
         | 
| 63 66 | 
             
            - lib/aws-sdk-cloudformation/event.rb
         | 
| 67 | 
            +
            - lib/aws-sdk-cloudformation/plugins/endpoints.rb
         | 
| 64 68 | 
             
            - lib/aws-sdk-cloudformation/resource.rb
         | 
| 65 69 | 
             
            - lib/aws-sdk-cloudformation/stack.rb
         | 
| 66 70 | 
             
            - lib/aws-sdk-cloudformation/stack_resource.rb
         |