aws-sdk-kinesis 1.41.0 → 1.43.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 +10 -0
 - data/VERSION +1 -1
 - data/lib/aws-sdk-kinesis/async_client.rb +21 -4
 - data/lib/aws-sdk-kinesis/client.rb +279 -55
 - data/lib/aws-sdk-kinesis/client_api.rb +93 -27
 - data/lib/aws-sdk-kinesis/endpoint_parameters.rb +93 -0
 - data/lib/aws-sdk-kinesis/endpoint_provider.rb +326 -0
 - data/lib/aws-sdk-kinesis/endpoints.rb +508 -0
 - data/lib/aws-sdk-kinesis/errors.rb +16 -0
 - data/lib/aws-sdk-kinesis/plugins/endpoints.rb +126 -0
 - data/lib/aws-sdk-kinesis/types.rb +200 -323
 - data/lib/aws-sdk-kinesis.rb +5 -1
 - metadata +8 -4
 
| 
         @@ -0,0 +1,508 @@ 
     | 
|
| 
      
 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::Kinesis
         
     | 
| 
      
 12 
     | 
    
         
            +
              module Endpoints
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                class AddTagsToStream
         
     | 
| 
      
 15 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 16 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 17 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 18 
     | 
    
         
            +
                    end
         
     | 
| 
      
 19 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 20 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 21 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 22 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 23 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 24 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 25 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 26 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 27 
     | 
    
         
            +
                    )
         
     | 
| 
      
 28 
     | 
    
         
            +
                  end
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                class CreateStream
         
     | 
| 
      
 32 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 33 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 34 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 35 
     | 
    
         
            +
                    end
         
     | 
| 
      
 36 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 37 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 38 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 39 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 40 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 41 
     | 
    
         
            +
                      stream_arn: nil,
         
     | 
| 
      
 42 
     | 
    
         
            +
                      operation_type: nil,
         
     | 
| 
      
 43 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 44 
     | 
    
         
            +
                    )
         
     | 
| 
      
 45 
     | 
    
         
            +
                  end
         
     | 
| 
      
 46 
     | 
    
         
            +
                end
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
                class DecreaseStreamRetentionPeriod
         
     | 
| 
      
 49 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 50 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 51 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 52 
     | 
    
         
            +
                    end
         
     | 
| 
      
 53 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 54 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 55 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 56 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 57 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 58 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 59 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 60 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 61 
     | 
    
         
            +
                    )
         
     | 
| 
      
 62 
     | 
    
         
            +
                  end
         
     | 
| 
      
 63 
     | 
    
         
            +
                end
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                class DeleteStream
         
     | 
| 
      
 66 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 67 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 68 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 69 
     | 
    
         
            +
                    end
         
     | 
| 
      
 70 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 71 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 72 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 73 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 74 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 75 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 76 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 77 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 78 
     | 
    
         
            +
                    )
         
     | 
| 
      
 79 
     | 
    
         
            +
                  end
         
     | 
| 
      
 80 
     | 
    
         
            +
                end
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
                class DeregisterStreamConsumer
         
     | 
| 
      
 83 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 84 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 85 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 86 
     | 
    
         
            +
                    end
         
     | 
| 
      
 87 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 88 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 89 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 90 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 91 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 92 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 93 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 94 
     | 
    
         
            +
                      consumer_arn: context.params[:consumer_arn],
         
     | 
| 
      
 95 
     | 
    
         
            +
                    )
         
     | 
| 
      
 96 
     | 
    
         
            +
                  end
         
     | 
| 
      
 97 
     | 
    
         
            +
                end
         
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
      
 99 
     | 
    
         
            +
                class DescribeLimits
         
     | 
| 
      
 100 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 101 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 102 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 103 
     | 
    
         
            +
                    end
         
     | 
| 
      
 104 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 105 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 106 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 107 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 108 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 109 
     | 
    
         
            +
                      stream_arn: nil,
         
     | 
| 
      
 110 
     | 
    
         
            +
                      operation_type: nil,
         
     | 
| 
      
 111 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 112 
     | 
    
         
            +
                    )
         
     | 
| 
      
 113 
     | 
    
         
            +
                  end
         
     | 
| 
      
 114 
     | 
    
         
            +
                end
         
     | 
| 
      
 115 
     | 
    
         
            +
             
     | 
| 
      
 116 
     | 
    
         
            +
                class DescribeStream
         
     | 
| 
      
 117 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 118 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 119 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 120 
     | 
    
         
            +
                    end
         
     | 
| 
      
 121 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 122 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 123 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 124 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 125 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 126 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 127 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 128 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 129 
     | 
    
         
            +
                    )
         
     | 
| 
      
 130 
     | 
    
         
            +
                  end
         
     | 
| 
      
 131 
     | 
    
         
            +
                end
         
     | 
| 
      
 132 
     | 
    
         
            +
             
     | 
| 
      
 133 
     | 
    
         
            +
                class DescribeStreamConsumer
         
     | 
| 
      
 134 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 135 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 136 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 137 
     | 
    
         
            +
                    end
         
     | 
| 
      
 138 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 139 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 140 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 141 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 142 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 143 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 144 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 145 
     | 
    
         
            +
                      consumer_arn: context.params[:consumer_arn],
         
     | 
| 
      
 146 
     | 
    
         
            +
                    )
         
     | 
| 
      
 147 
     | 
    
         
            +
                  end
         
     | 
| 
      
 148 
     | 
    
         
            +
                end
         
     | 
| 
      
 149 
     | 
    
         
            +
             
     | 
| 
      
 150 
     | 
    
         
            +
                class DescribeStreamSummary
         
     | 
| 
      
 151 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 152 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 153 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 154 
     | 
    
         
            +
                    end
         
     | 
| 
      
 155 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 156 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 157 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 158 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 159 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 160 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 161 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 162 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 163 
     | 
    
         
            +
                    )
         
     | 
| 
      
 164 
     | 
    
         
            +
                  end
         
     | 
| 
      
 165 
     | 
    
         
            +
                end
         
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
      
 167 
     | 
    
         
            +
                class DisableEnhancedMonitoring
         
     | 
| 
      
 168 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 169 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 170 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 171 
     | 
    
         
            +
                    end
         
     | 
| 
      
 172 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 173 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 174 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 175 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 176 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 177 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 178 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 179 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 180 
     | 
    
         
            +
                    )
         
     | 
| 
      
 181 
     | 
    
         
            +
                  end
         
     | 
| 
      
 182 
     | 
    
         
            +
                end
         
     | 
| 
      
 183 
     | 
    
         
            +
             
     | 
| 
      
 184 
     | 
    
         
            +
                class EnableEnhancedMonitoring
         
     | 
| 
      
 185 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 186 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 187 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 188 
     | 
    
         
            +
                    end
         
     | 
| 
      
 189 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 190 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 191 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 192 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 193 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 194 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 195 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 196 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 197 
     | 
    
         
            +
                    )
         
     | 
| 
      
 198 
     | 
    
         
            +
                  end
         
     | 
| 
      
 199 
     | 
    
         
            +
                end
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
                class GetRecords
         
     | 
| 
      
 202 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 203 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 204 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 205 
     | 
    
         
            +
                    end
         
     | 
| 
      
 206 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 207 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 208 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 209 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 210 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 211 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 212 
     | 
    
         
            +
                      operation_type: "data",
         
     | 
| 
      
 213 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 214 
     | 
    
         
            +
                    )
         
     | 
| 
      
 215 
     | 
    
         
            +
                  end
         
     | 
| 
      
 216 
     | 
    
         
            +
                end
         
     | 
| 
      
 217 
     | 
    
         
            +
             
     | 
| 
      
 218 
     | 
    
         
            +
                class GetShardIterator
         
     | 
| 
      
 219 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 220 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 221 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 222 
     | 
    
         
            +
                    end
         
     | 
| 
      
 223 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 224 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 225 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 226 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 227 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 228 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 229 
     | 
    
         
            +
                      operation_type: "data",
         
     | 
| 
      
 230 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 231 
     | 
    
         
            +
                    )
         
     | 
| 
      
 232 
     | 
    
         
            +
                  end
         
     | 
| 
      
 233 
     | 
    
         
            +
                end
         
     | 
| 
      
 234 
     | 
    
         
            +
             
     | 
| 
      
 235 
     | 
    
         
            +
                class IncreaseStreamRetentionPeriod
         
     | 
| 
      
 236 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 237 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 238 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 239 
     | 
    
         
            +
                    end
         
     | 
| 
      
 240 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 241 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 242 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 243 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 244 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 245 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 246 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 247 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 248 
     | 
    
         
            +
                    )
         
     | 
| 
      
 249 
     | 
    
         
            +
                  end
         
     | 
| 
      
 250 
     | 
    
         
            +
                end
         
     | 
| 
      
 251 
     | 
    
         
            +
             
     | 
| 
      
 252 
     | 
    
         
            +
                class ListShards
         
     | 
| 
      
 253 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 254 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 255 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 256 
     | 
    
         
            +
                    end
         
     | 
| 
      
 257 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 258 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 259 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 260 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 261 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 262 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 263 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 264 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 265 
     | 
    
         
            +
                    )
         
     | 
| 
      
 266 
     | 
    
         
            +
                  end
         
     | 
| 
      
 267 
     | 
    
         
            +
                end
         
     | 
| 
      
 268 
     | 
    
         
            +
             
     | 
| 
      
 269 
     | 
    
         
            +
                class ListStreamConsumers
         
     | 
| 
      
 270 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 271 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 272 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 273 
     | 
    
         
            +
                    end
         
     | 
| 
      
 274 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 275 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 276 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 277 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 278 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 279 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 280 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 281 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 282 
     | 
    
         
            +
                    )
         
     | 
| 
      
 283 
     | 
    
         
            +
                  end
         
     | 
| 
      
 284 
     | 
    
         
            +
                end
         
     | 
| 
      
 285 
     | 
    
         
            +
             
     | 
| 
      
 286 
     | 
    
         
            +
                class ListStreams
         
     | 
| 
      
 287 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 288 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 289 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 290 
     | 
    
         
            +
                    end
         
     | 
| 
      
 291 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 292 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 293 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 294 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 295 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 296 
     | 
    
         
            +
                      stream_arn: nil,
         
     | 
| 
      
 297 
     | 
    
         
            +
                      operation_type: nil,
         
     | 
| 
      
 298 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 299 
     | 
    
         
            +
                    )
         
     | 
| 
      
 300 
     | 
    
         
            +
                  end
         
     | 
| 
      
 301 
     | 
    
         
            +
                end
         
     | 
| 
      
 302 
     | 
    
         
            +
             
     | 
| 
      
 303 
     | 
    
         
            +
                class ListTagsForStream
         
     | 
| 
      
 304 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 305 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 306 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 307 
     | 
    
         
            +
                    end
         
     | 
| 
      
 308 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 309 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 310 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 311 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 312 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 313 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 314 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 315 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 316 
     | 
    
         
            +
                    )
         
     | 
| 
      
 317 
     | 
    
         
            +
                  end
         
     | 
| 
      
 318 
     | 
    
         
            +
                end
         
     | 
| 
      
 319 
     | 
    
         
            +
             
     | 
| 
      
 320 
     | 
    
         
            +
                class MergeShards
         
     | 
| 
      
 321 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 322 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 323 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 324 
     | 
    
         
            +
                    end
         
     | 
| 
      
 325 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 326 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 327 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 328 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 329 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 330 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 331 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 332 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 333 
     | 
    
         
            +
                    )
         
     | 
| 
      
 334 
     | 
    
         
            +
                  end
         
     | 
| 
      
 335 
     | 
    
         
            +
                end
         
     | 
| 
      
 336 
     | 
    
         
            +
             
     | 
| 
      
 337 
     | 
    
         
            +
                class PutRecord
         
     | 
| 
      
 338 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 339 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 340 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 341 
     | 
    
         
            +
                    end
         
     | 
| 
      
 342 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 343 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 344 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 345 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 346 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 347 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 348 
     | 
    
         
            +
                      operation_type: "data",
         
     | 
| 
      
 349 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 350 
     | 
    
         
            +
                    )
         
     | 
| 
      
 351 
     | 
    
         
            +
                  end
         
     | 
| 
      
 352 
     | 
    
         
            +
                end
         
     | 
| 
      
 353 
     | 
    
         
            +
             
     | 
| 
      
 354 
     | 
    
         
            +
                class PutRecords
         
     | 
| 
      
 355 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 356 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 357 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 358 
     | 
    
         
            +
                    end
         
     | 
| 
      
 359 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 360 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 361 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 362 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 363 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 364 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 365 
     | 
    
         
            +
                      operation_type: "data",
         
     | 
| 
      
 366 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 367 
     | 
    
         
            +
                    )
         
     | 
| 
      
 368 
     | 
    
         
            +
                  end
         
     | 
| 
      
 369 
     | 
    
         
            +
                end
         
     | 
| 
      
 370 
     | 
    
         
            +
             
     | 
| 
      
 371 
     | 
    
         
            +
                class RegisterStreamConsumer
         
     | 
| 
      
 372 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 373 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 374 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 375 
     | 
    
         
            +
                    end
         
     | 
| 
      
 376 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 377 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 378 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 379 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 380 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 381 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 382 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 383 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 384 
     | 
    
         
            +
                    )
         
     | 
| 
      
 385 
     | 
    
         
            +
                  end
         
     | 
| 
      
 386 
     | 
    
         
            +
                end
         
     | 
| 
      
 387 
     | 
    
         
            +
             
     | 
| 
      
 388 
     | 
    
         
            +
                class RemoveTagsFromStream
         
     | 
| 
      
 389 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 390 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 391 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 392 
     | 
    
         
            +
                    end
         
     | 
| 
      
 393 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 394 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 395 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 396 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 397 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 398 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 399 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 400 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 401 
     | 
    
         
            +
                    )
         
     | 
| 
      
 402 
     | 
    
         
            +
                  end
         
     | 
| 
      
 403 
     | 
    
         
            +
                end
         
     | 
| 
      
 404 
     | 
    
         
            +
             
     | 
| 
      
 405 
     | 
    
         
            +
                class SplitShard
         
     | 
| 
      
 406 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 407 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 408 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 409 
     | 
    
         
            +
                    end
         
     | 
| 
      
 410 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 411 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 412 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 413 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 414 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 415 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 416 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 417 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 418 
     | 
    
         
            +
                    )
         
     | 
| 
      
 419 
     | 
    
         
            +
                  end
         
     | 
| 
      
 420 
     | 
    
         
            +
                end
         
     | 
| 
      
 421 
     | 
    
         
            +
             
     | 
| 
      
 422 
     | 
    
         
            +
                class StartStreamEncryption
         
     | 
| 
      
 423 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 424 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 425 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 426 
     | 
    
         
            +
                    end
         
     | 
| 
      
 427 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 428 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 429 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 430 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 431 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 432 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 433 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 434 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 435 
     | 
    
         
            +
                    )
         
     | 
| 
      
 436 
     | 
    
         
            +
                  end
         
     | 
| 
      
 437 
     | 
    
         
            +
                end
         
     | 
| 
      
 438 
     | 
    
         
            +
             
     | 
| 
      
 439 
     | 
    
         
            +
                class StopStreamEncryption
         
     | 
| 
      
 440 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 441 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 442 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 443 
     | 
    
         
            +
                    end
         
     | 
| 
      
 444 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 445 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 446 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 447 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 448 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 449 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 450 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 451 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 452 
     | 
    
         
            +
                    )
         
     | 
| 
      
 453 
     | 
    
         
            +
                  end
         
     | 
| 
      
 454 
     | 
    
         
            +
                end
         
     | 
| 
      
 455 
     | 
    
         
            +
             
     | 
| 
      
 456 
     | 
    
         
            +
                class SubscribeToShard
         
     | 
| 
      
 457 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 458 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 459 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 460 
     | 
    
         
            +
                    end
         
     | 
| 
      
 461 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 462 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 463 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 464 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 465 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 466 
     | 
    
         
            +
                      stream_arn: nil,
         
     | 
| 
      
 467 
     | 
    
         
            +
                      operation_type: "data",
         
     | 
| 
      
 468 
     | 
    
         
            +
                      consumer_arn: context.params[:consumer_arn],
         
     | 
| 
      
 469 
     | 
    
         
            +
                    )
         
     | 
| 
      
 470 
     | 
    
         
            +
                  end
         
     | 
| 
      
 471 
     | 
    
         
            +
                end
         
     | 
| 
      
 472 
     | 
    
         
            +
             
     | 
| 
      
 473 
     | 
    
         
            +
                class UpdateShardCount
         
     | 
| 
      
 474 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 475 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 476 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 477 
     | 
    
         
            +
                    end
         
     | 
| 
      
 478 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 479 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 480 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 481 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 482 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 483 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 484 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 485 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 486 
     | 
    
         
            +
                    )
         
     | 
| 
      
 487 
     | 
    
         
            +
                  end
         
     | 
| 
      
 488 
     | 
    
         
            +
                end
         
     | 
| 
      
 489 
     | 
    
         
            +
             
     | 
| 
      
 490 
     | 
    
         
            +
                class UpdateStreamMode
         
     | 
| 
      
 491 
     | 
    
         
            +
                  def self.build(context)
         
     | 
| 
      
 492 
     | 
    
         
            +
                    unless context.config.regional_endpoint
         
     | 
| 
      
 493 
     | 
    
         
            +
                      endpoint = context.config.endpoint.to_s
         
     | 
| 
      
 494 
     | 
    
         
            +
                    end
         
     | 
| 
      
 495 
     | 
    
         
            +
                    Aws::Kinesis::EndpointParameters.new(
         
     | 
| 
      
 496 
     | 
    
         
            +
                      region: context.config.region,
         
     | 
| 
      
 497 
     | 
    
         
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         
     | 
| 
      
 498 
     | 
    
         
            +
                      use_fips: context.config.use_fips_endpoint,
         
     | 
| 
      
 499 
     | 
    
         
            +
                      endpoint: endpoint,
         
     | 
| 
      
 500 
     | 
    
         
            +
                      stream_arn: context.params[:stream_arn],
         
     | 
| 
      
 501 
     | 
    
         
            +
                      operation_type: "control",
         
     | 
| 
      
 502 
     | 
    
         
            +
                      consumer_arn: nil,
         
     | 
| 
      
 503 
     | 
    
         
            +
                    )
         
     | 
| 
      
 504 
     | 
    
         
            +
                  end
         
     | 
| 
      
 505 
     | 
    
         
            +
                end
         
     | 
| 
      
 506 
     | 
    
         
            +
             
     | 
| 
      
 507 
     | 
    
         
            +
              end
         
     | 
| 
      
 508 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -27,6 +27,7 @@ module Aws::Kinesis 
     | 
|
| 
       27 
27 
     | 
    
         
             
              # See {Seahorse::Client::RequestContext} for more information.
         
     | 
| 
       28 
28 
     | 
    
         
             
              #
         
     | 
| 
       29 
29 
     | 
    
         
             
              # ## Error Classes
         
     | 
| 
      
 30 
     | 
    
         
            +
              # * {AccessDeniedException}
         
     | 
| 
       30 
31 
     | 
    
         
             
              # * {ExpiredIteratorException}
         
     | 
| 
       31 
32 
     | 
    
         
             
              # * {ExpiredNextTokenException}
         
     | 
| 
       32 
33 
     | 
    
         
             
              # * {InvalidArgumentException}
         
     | 
| 
         @@ -40,6 +41,21 @@ module Aws::Kinesis 
     | 
|
| 
       40 
41 
     | 
    
         | 
| 
       41 
42 
     | 
    
         
             
                extend Aws::Errors::DynamicErrors
         
     | 
| 
       42 
43 
     | 
    
         | 
| 
      
 44 
     | 
    
         
            +
                class AccessDeniedException < ServiceError
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # @param [Seahorse::Client::RequestContext] context
         
     | 
| 
      
 47 
     | 
    
         
            +
                  # @param [String] message
         
     | 
| 
      
 48 
     | 
    
         
            +
                  # @param [Aws::Kinesis::Types::AccessDeniedException] data
         
     | 
| 
      
 49 
     | 
    
         
            +
                  def initialize(context, message, data = Aws::EmptyStructure.new)
         
     | 
| 
      
 50 
     | 
    
         
            +
                    super(context, message, data)
         
     | 
| 
      
 51 
     | 
    
         
            +
                  end
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
                  # @return [String]
         
     | 
| 
      
 54 
     | 
    
         
            +
                  def message
         
     | 
| 
      
 55 
     | 
    
         
            +
                    @message || @data[:message]
         
     | 
| 
      
 56 
     | 
    
         
            +
                  end
         
     | 
| 
      
 57 
     | 
    
         
            +
                end
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
       43 
59 
     | 
    
         
             
                class ExpiredIteratorException < ServiceError
         
     | 
| 
       44 
60 
     | 
    
         | 
| 
       45 
61 
     | 
    
         
             
                  # @param [Seahorse::Client::RequestContext] context
         
     | 
| 
         @@ -0,0 +1,126 @@ 
     | 
|
| 
      
 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::Kinesis
         
     | 
| 
      
 12 
     | 
    
         
            +
              module Plugins
         
     | 
| 
      
 13 
     | 
    
         
            +
                class Endpoints < Seahorse::Client::Plugin
         
     | 
| 
      
 14 
     | 
    
         
            +
                  option(
         
     | 
| 
      
 15 
     | 
    
         
            +
                    :endpoint_provider,
         
     | 
| 
      
 16 
     | 
    
         
            +
                    doc_type: 'Aws::Kinesis::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::Kinesis::EndpointParameters`'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  ) do |cfg|
         
     | 
| 
      
 22 
     | 
    
         
            +
                    Aws::Kinesis::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 :add_tags_to_stream
         
     | 
| 
      
 60 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::AddTagsToStream.build(context)
         
     | 
| 
      
 61 
     | 
    
         
            +
                      when :create_stream
         
     | 
| 
      
 62 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::CreateStream.build(context)
         
     | 
| 
      
 63 
     | 
    
         
            +
                      when :decrease_stream_retention_period
         
     | 
| 
      
 64 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::DecreaseStreamRetentionPeriod.build(context)
         
     | 
| 
      
 65 
     | 
    
         
            +
                      when :delete_stream
         
     | 
| 
      
 66 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::DeleteStream.build(context)
         
     | 
| 
      
 67 
     | 
    
         
            +
                      when :deregister_stream_consumer
         
     | 
| 
      
 68 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::DeregisterStreamConsumer.build(context)
         
     | 
| 
      
 69 
     | 
    
         
            +
                      when :describe_limits
         
     | 
| 
      
 70 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::DescribeLimits.build(context)
         
     | 
| 
      
 71 
     | 
    
         
            +
                      when :describe_stream
         
     | 
| 
      
 72 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::DescribeStream.build(context)
         
     | 
| 
      
 73 
     | 
    
         
            +
                      when :describe_stream_consumer
         
     | 
| 
      
 74 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::DescribeStreamConsumer.build(context)
         
     | 
| 
      
 75 
     | 
    
         
            +
                      when :describe_stream_summary
         
     | 
| 
      
 76 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::DescribeStreamSummary.build(context)
         
     | 
| 
      
 77 
     | 
    
         
            +
                      when :disable_enhanced_monitoring
         
     | 
| 
      
 78 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::DisableEnhancedMonitoring.build(context)
         
     | 
| 
      
 79 
     | 
    
         
            +
                      when :enable_enhanced_monitoring
         
     | 
| 
      
 80 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::EnableEnhancedMonitoring.build(context)
         
     | 
| 
      
 81 
     | 
    
         
            +
                      when :get_records
         
     | 
| 
      
 82 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::GetRecords.build(context)
         
     | 
| 
      
 83 
     | 
    
         
            +
                      when :get_shard_iterator
         
     | 
| 
      
 84 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::GetShardIterator.build(context)
         
     | 
| 
      
 85 
     | 
    
         
            +
                      when :increase_stream_retention_period
         
     | 
| 
      
 86 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::IncreaseStreamRetentionPeriod.build(context)
         
     | 
| 
      
 87 
     | 
    
         
            +
                      when :list_shards
         
     | 
| 
      
 88 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::ListShards.build(context)
         
     | 
| 
      
 89 
     | 
    
         
            +
                      when :list_stream_consumers
         
     | 
| 
      
 90 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::ListStreamConsumers.build(context)
         
     | 
| 
      
 91 
     | 
    
         
            +
                      when :list_streams
         
     | 
| 
      
 92 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::ListStreams.build(context)
         
     | 
| 
      
 93 
     | 
    
         
            +
                      when :list_tags_for_stream
         
     | 
| 
      
 94 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::ListTagsForStream.build(context)
         
     | 
| 
      
 95 
     | 
    
         
            +
                      when :merge_shards
         
     | 
| 
      
 96 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::MergeShards.build(context)
         
     | 
| 
      
 97 
     | 
    
         
            +
                      when :put_record
         
     | 
| 
      
 98 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::PutRecord.build(context)
         
     | 
| 
      
 99 
     | 
    
         
            +
                      when :put_records
         
     | 
| 
      
 100 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::PutRecords.build(context)
         
     | 
| 
      
 101 
     | 
    
         
            +
                      when :register_stream_consumer
         
     | 
| 
      
 102 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::RegisterStreamConsumer.build(context)
         
     | 
| 
      
 103 
     | 
    
         
            +
                      when :remove_tags_from_stream
         
     | 
| 
      
 104 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::RemoveTagsFromStream.build(context)
         
     | 
| 
      
 105 
     | 
    
         
            +
                      when :split_shard
         
     | 
| 
      
 106 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::SplitShard.build(context)
         
     | 
| 
      
 107 
     | 
    
         
            +
                      when :start_stream_encryption
         
     | 
| 
      
 108 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::StartStreamEncryption.build(context)
         
     | 
| 
      
 109 
     | 
    
         
            +
                      when :stop_stream_encryption
         
     | 
| 
      
 110 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::StopStreamEncryption.build(context)
         
     | 
| 
      
 111 
     | 
    
         
            +
                      when :subscribe_to_shard
         
     | 
| 
      
 112 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::SubscribeToShard.build(context)
         
     | 
| 
      
 113 
     | 
    
         
            +
                      when :update_shard_count
         
     | 
| 
      
 114 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::UpdateShardCount.build(context)
         
     | 
| 
      
 115 
     | 
    
         
            +
                      when :update_stream_mode
         
     | 
| 
      
 116 
     | 
    
         
            +
                        Aws::Kinesis::Endpoints::UpdateStreamMode.build(context)
         
     | 
| 
      
 117 
     | 
    
         
            +
                      end
         
     | 
| 
      
 118 
     | 
    
         
            +
                    end
         
     | 
| 
      
 119 
     | 
    
         
            +
                  end
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
                  def add_handlers(handlers, _config)
         
     | 
| 
      
 122 
     | 
    
         
            +
                    handlers.add(Handler, step: :build, priority: 75)
         
     | 
| 
      
 123 
     | 
    
         
            +
                  end
         
     | 
| 
      
 124 
     | 
    
         
            +
                end
         
     | 
| 
      
 125 
     | 
    
         
            +
              end
         
     | 
| 
      
 126 
     | 
    
         
            +
            end
         
     |