aws-sdk-dynamodbstreams 1.107.0 → 1.108.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22b0f60708de21af32e347b7f606695b62add464c9196c408aa706ca32a8977d
4
- data.tar.gz: 17fb0653a3a03c4e417b8c48ad8bd9ce1e2b7333058ece667eede0f7dcbe7005
3
+ metadata.gz: b75fbbb1c2969a084aa5024477d97a7bd741dbe0ecb810c6c570d63a53dd3cb8
4
+ data.tar.gz: e5ad2215d97b5faa00b28644c6e309288e78775861de5037b2d0770eb4acb0d2
5
5
  SHA512:
6
- metadata.gz: a2622860a5b9cd949e48c0147ce42167208384a8c0a97449f42227b14e34c7f484e0095b26127677ce41f8d5810a2620ea5307d9095a4e07630a529de3a2aa9f
7
- data.tar.gz: c064cdacadf2eb639c105d5d30144c4a36c0f65330b96024bcbc7a9c7cf0010df012ec4eeede5d7acb638cbfed301886dcc61b93619f216756b469bf084e0f96
6
+ metadata.gz: '082936618fbcea6c052e217fe5fd601e1a89f5c15cf047792086adcaf260c6f7a498dcd653dd6409047b9367e36543db65f6016fdbe5778a49b5053dfeba4fe3'
7
+ data.tar.gz: b5f16505ef78e37fe0963f8f0f7fb9e5a7bf0ff809bb683561defbc1cbd655fa0e64c3335c0366e586eb3ab42ff22fe880f56b159edeb5d0d600a9d8c60e0dc2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.108.0 (2026-11-16)
5
+ ------------------
6
+
7
+ * Feature - Generate account-based endpoints for DynamoDB Streams requests when the account ID is available
8
+
4
9
  1.107.0 (2026-11-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.107.0
1
+ 1.108.0
@@ -418,6 +418,15 @@ module Aws::DynamoDBStreams
418
418
  # When `true`, request parameters are validated before
419
419
  # sending the request.
420
420
  #
421
+ # @option options [String] :account_id_endpoint_mode
422
+ # The account ID endpoint mode to use. This can be one of the following values:
423
+ # * `preferred` - The default behavior. Use the account ID endpoint if
424
+ # available, otherwise use the standard endpoint.
425
+ # * `disabled` - Never use the account ID endpoint. Only use the standard
426
+ # endpoint.
427
+ # * `required` - Always use the account ID endpoint. If the account ID
428
+ # cannot be retrieved from credentials, an error is raised.
429
+ #
421
430
  # @option options [Aws::DynamoDBStreams::EndpointProvider] :endpoint_provider
422
431
  # The endpoint provider used to resolve endpoints. Any object that responds to
423
432
  # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
@@ -974,7 +983,7 @@ module Aws::DynamoDBStreams
974
983
  tracer: tracer
975
984
  )
976
985
  context[:gem_name] = 'aws-sdk-dynamodbstreams'
977
- context[:gem_version] = '1.107.0'
986
+ context[:gem_version] = '1.108.0'
978
987
  Seahorse::Client::Request.new(handlers, context)
979
988
  end
980
989
 
@@ -89,7 +89,7 @@ module Aws::DynamoDBStreams
89
89
 
90
90
  BinarySetAttributeValue.member = Shapes::ShapeRef.new(shape: BinaryAttributeValue)
91
91
 
92
- DescribeStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn"))
92
+ DescribeStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn", metadata: {"contextParam" => {"name" => "StreamArn"}}))
93
93
  DescribeStreamInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
94
94
  DescribeStreamInput.add_member(:exclusive_start_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ExclusiveStartShardId"))
95
95
  DescribeStreamInput.add_member(:shard_filter, Shapes::ShapeRef.new(shape: ShardFilter, location_name: "ShardFilter"))
@@ -101,7 +101,7 @@ module Aws::DynamoDBStreams
101
101
  ExpiredIteratorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
102
102
  ExpiredIteratorException.struct_class = Types::ExpiredIteratorException
103
103
 
104
- GetRecordsInput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, required: true, location_name: "ShardIterator"))
104
+ GetRecordsInput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, required: true, location_name: "ShardIterator", metadata: {"contextParam" => {"name" => "ShardIterator"}}))
105
105
  GetRecordsInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
106
106
  GetRecordsInput.struct_class = Types::GetRecordsInput
107
107
 
@@ -109,7 +109,7 @@ module Aws::DynamoDBStreams
109
109
  GetRecordsOutput.add_member(:next_shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "NextShardIterator"))
110
110
  GetRecordsOutput.struct_class = Types::GetRecordsOutput
111
111
 
112
- GetShardIteratorInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn"))
112
+ GetShardIteratorInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn", metadata: {"contextParam" => {"name" => "StreamArn"}}))
113
113
  GetShardIteratorInput.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
114
114
  GetShardIteratorInput.add_member(:shard_iterator_type, Shapes::ShapeRef.new(shape: ShardIteratorType, required: true, location_name: "ShardIteratorType"))
115
115
  GetShardIteratorInput.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "SequenceNumber"))
@@ -10,6 +10,11 @@
10
10
  module Aws::DynamoDBStreams
11
11
  # Endpoint parameters used to influence endpoints per request.
12
12
  #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [string]
17
+ #
13
18
  # @!attribute use_dual_stack
14
19
  # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
15
20
  #
@@ -25,44 +30,73 @@ module Aws::DynamoDBStreams
25
30
  #
26
31
  # @return [string]
27
32
  #
28
- # @!attribute region
29
- # The AWS region used to dispatch the request.
33
+ # @!attribute account_id
34
+ # The AWS AccountId used for the request.
35
+ #
36
+ # @return [string]
37
+ #
38
+ # @!attribute account_id_endpoint_mode
39
+ # The AccountId Endpoint Mode.
40
+ #
41
+ # @return [string]
42
+ #
43
+ # @!attribute stream_arn
44
+ # The ARN of the stream for the request.
45
+ #
46
+ # @return [string]
47
+ #
48
+ # @!attribute shard_iterator
49
+ # The shard iterator for the GetRecords request.
30
50
  #
31
51
  # @return [string]
32
52
  #
33
53
  EndpointParameters = Struct.new(
54
+ :region,
34
55
  :use_dual_stack,
35
56
  :use_fips,
36
57
  :endpoint,
37
- :region,
58
+ :account_id,
59
+ :account_id_endpoint_mode,
60
+ :stream_arn,
61
+ :shard_iterator,
38
62
  ) do
39
63
  include Aws::Structure
40
64
 
41
65
  # @api private
42
66
  class << self
43
67
  PARAM_MAP = {
68
+ 'Region' => :region,
44
69
  'UseDualStack' => :use_dual_stack,
45
70
  'UseFIPS' => :use_fips,
46
71
  'Endpoint' => :endpoint,
47
- 'Region' => :region,
72
+ 'AccountId' => :account_id,
73
+ 'AccountIdEndpointMode' => :account_id_endpoint_mode,
74
+ 'StreamArn' => :stream_arn,
75
+ 'ShardIterator' => :shard_iterator,
48
76
  }.freeze
49
77
  end
50
78
 
51
79
  def initialize(options = {})
80
+ self[:region] = options[:region]
52
81
  self[:use_dual_stack] = options[:use_dual_stack]
53
82
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
54
83
  self[:use_fips] = options[:use_fips]
55
84
  self[:use_fips] = false if self[:use_fips].nil?
56
85
  self[:endpoint] = options[:endpoint]
57
- self[:region] = options[:region]
86
+ self[:account_id] = options[:account_id]
87
+ self[:account_id_endpoint_mode] = options[:account_id_endpoint_mode]
88
+ self[:stream_arn] = options[:stream_arn]
89
+ self[:shard_iterator] = options[:shard_iterator]
58
90
  end
59
91
 
60
92
  def self.create(config, options={})
61
93
  new({
94
+ region: config.region,
62
95
  use_dual_stack: config.use_dualstack_endpoint,
63
96
  use_fips: config.use_fips_endpoint,
64
97
  endpoint: (config.endpoint.to_s unless config.regional_endpoint),
65
- region: config.region,
98
+ account_id: config.credentials.credentials.account_id,
99
+ account_id_endpoint_mode: config.account_id_endpoint_mode,
66
100
  }.merge(options))
67
101
  end
68
102
  end
@@ -17,50 +17,197 @@ module Aws::DynamoDBStreams
17
17
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
18
18
  raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
19
19
  end
20
- return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
20
+ return Aws::Endpoints::Endpoint.new(url: "#{parameters.endpoint}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
21
21
  end
22
22
  if Aws::Endpoints::Matchers.set?(parameters.region)
23
23
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
- return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
28
- return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
29
- end
30
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
31
- return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
32
- end
33
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
34
- return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
35
- end
36
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
37
- return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
38
- end
39
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
40
- return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
41
- end
42
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
43
- return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
- end
45
24
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
46
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
47
- return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
25
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true) && Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
26
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov"))
27
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
28
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
29
+ end
30
+ return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
31
+ end
32
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-central-1")
33
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
34
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
35
+ end
36
+ return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
37
+ end
38
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-south-1")
39
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
40
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
41
+ end
42
+ return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
43
+ end
44
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.stream_arn) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.stream_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
45
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
46
+ end
47
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.shard_iterator) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.shard_iterator)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
48
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
49
+ end
50
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.account_id)
51
+ if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
52
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.streams-ddb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: true })
53
+ end
54
+ raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
55
+ end
56
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
57
+ raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
58
+ end
59
+ return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
48
60
  end
49
61
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
50
62
  end
51
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
63
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
52
64
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
53
- return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
65
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
66
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov"))
67
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
68
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
69
+ end
70
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
71
+ end
72
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-central-1")
73
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
74
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
75
+ end
76
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
77
+ end
78
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-south-1")
79
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
80
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
81
+ end
82
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
83
+ end
84
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.stream_arn) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.stream_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
85
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
86
+ end
87
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.shard_iterator) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.shard_iterator)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
88
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
89
+ end
90
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.account_id)
91
+ if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
92
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.streams-ddb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: true })
93
+ end
94
+ raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
95
+ end
96
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
97
+ raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
98
+ end
99
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
100
+ end
101
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov"))
102
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
103
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
104
+ end
105
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
106
+ end
107
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-central-1")
108
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
109
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
110
+ end
111
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
112
+ end
113
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-south-1")
114
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
115
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
116
+ end
117
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
118
+ end
119
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.stream_arn) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.stream_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
120
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
121
+ end
122
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.shard_iterator) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.shard_iterator)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
123
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
124
+ end
125
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.account_id)
126
+ if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
127
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.streams-ddb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: true })
128
+ end
129
+ raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
130
+ end
131
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
132
+ raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
133
+ end
134
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
54
135
  end
55
136
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
56
137
  end
57
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
58
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
59
- return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
138
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
139
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
140
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov"))
141
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
142
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
143
+ end
144
+ return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
145
+ end
146
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-central-1")
147
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
148
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
149
+ end
150
+ return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
151
+ end
152
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-south-1")
153
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
154
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
155
+ end
156
+ return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
157
+ end
158
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.stream_arn) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.stream_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
159
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
160
+ end
161
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.shard_iterator) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.shard_iterator)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
162
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
163
+ end
164
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.account_id)
165
+ if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
166
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.streams-ddb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: true })
167
+ end
168
+ raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
169
+ end
170
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
171
+ raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
172
+ end
173
+ return Aws::Endpoints::Endpoint.new(url: "https://streams-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
60
174
  end
61
175
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
62
176
  end
63
- return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
177
+ if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov"))
178
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
179
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
180
+ end
181
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
182
+ end
183
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-central-1")
184
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
185
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
186
+ end
187
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
188
+ end
189
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "me-south-1")
190
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
191
+ raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
192
+ end
193
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
194
+ end
195
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.stream_arn) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.stream_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
196
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
197
+ end
198
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.shard_iterator) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.shard_iterator)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
199
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.streams-ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
200
+ end
201
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.set?(parameters.account_id)
202
+ if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
203
+ return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.streams-ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: true })
204
+ end
205
+ raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
206
+ end
207
+ if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
208
+ raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
209
+ end
210
+ return Aws::Endpoints::Endpoint.new(url: "https://streams.dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
64
211
  end
65
212
  end
66
213
  raise ArgumentError, "Invalid Configuration: Missing Region"
@@ -12,9 +12,45 @@ module Aws::DynamoDBStreams
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
+ class DescribeStream
16
+ def self.build(context)
17
+ Aws::DynamoDBStreams::EndpointParameters.create(
18
+ context.config,
19
+ stream_arn: context.params[:stream_arn],
20
+ )
21
+ end
22
+ end
23
+
24
+ class GetRecords
25
+ def self.build(context)
26
+ Aws::DynamoDBStreams::EndpointParameters.create(
27
+ context.config,
28
+ shard_iterator: context.params[:shard_iterator],
29
+ )
30
+ end
31
+ end
32
+
33
+ class GetShardIterator
34
+ def self.build(context)
35
+ Aws::DynamoDBStreams::EndpointParameters.create(
36
+ context.config,
37
+ stream_arn: context.params[:stream_arn],
38
+ )
39
+ end
40
+ end
41
+
15
42
 
16
43
  def self.parameters_for_operation(context)
17
- Aws::DynamoDBStreams::EndpointParameters.create(context.config)
44
+ case context.operation_name
45
+ when :describe_stream
46
+ DescribeStream.build(context)
47
+ when :get_records
48
+ GetRecords.build(context)
49
+ when :get_shard_iterator
50
+ GetShardIterator.build(context)
51
+ else
52
+ Aws::DynamoDBStreams::EndpointParameters.create(context.config)
53
+ end
18
54
  end
19
55
  end
20
56
  end
@@ -23,6 +23,23 @@ The endpoint provider used to resolve endpoints. Any object that responds to
23
23
  Aws::DynamoDBStreams::EndpointProvider.new
24
24
  end
25
25
 
26
+ option(
27
+ :account_id_endpoint_mode,
28
+ doc_type: 'String',
29
+ docstring: <<~DOCS) do |cfg|
30
+ The account ID endpoint mode to use. This can be one of the following values:
31
+ * `preferred` - The default behavior. Use the account ID endpoint if
32
+ available, otherwise use the standard endpoint.
33
+ * `disabled` - Never use the account ID endpoint. Only use the standard
34
+ endpoint.
35
+ * `required` - Always use the account ID endpoint. If the account ID
36
+ cannot be retrieved from credentials, an error is raised.
37
+ DOCS
38
+ value = ENV['AWS_ACCOUNT_ID_ENDPOINT_MODE']
39
+ value ||= Aws.shared_config.account_id_endpoint_mode(profile: cfg.profile)
40
+ value || 'preferred'
41
+ end
42
+
26
43
  # @api private
27
44
  class Handler < Seahorse::Client::Handler
28
45
  def call(context)
@@ -51,6 +68,14 @@ The endpoint provider used to resolve endpoints. Any object that responds to
51
68
  if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
69
  metrics << 'SIGV4A_SIGNING'
53
70
  end
71
+ case context.config.account_id_endpoint_mode
72
+ when 'preferred'
73
+ metrics << 'ACCOUNT_ID_MODE_PREFERRED'
74
+ when 'disabled'
75
+ metrics << 'ACCOUNT_ID_MODE_DISABLED'
76
+ when 'required'
77
+ metrics << 'ACCOUNT_ID_MODE_REQUIRED'
78
+ end
54
79
  if context.config.credentials&.credentials&.account_id
55
80
  metrics << 'RESOLVED_ACCOUNT_ID'
56
81
  end
@@ -54,7 +54,7 @@ module Aws::DynamoDBStreams
54
54
  autoload :EndpointProvider, 'aws-sdk-dynamodbstreams/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-dynamodbstreams/endpoints'
56
56
 
57
- GEM_VERSION = '1.107.0'
57
+ GEM_VERSION = '1.108.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -62,6 +62,7 @@ module Aws
62
62
  ?use_dualstack_endpoint: bool,
63
63
  ?use_fips_endpoint: bool,
64
64
  ?validate_params: bool,
65
+ ?account_id_endpoint_mode: String,
65
66
  ?endpoint_provider: untyped,
66
67
  ?http_proxy: String,
67
68
  ?http_open_timeout: (Float | Integer),
data/sig/resource.rbs CHANGED
@@ -62,6 +62,7 @@ module Aws
62
62
  ?use_dualstack_endpoint: bool,
63
63
  ?use_fips_endpoint: bool,
64
64
  ?validate_params: bool,
65
+ ?account_id_endpoint_mode: String,
65
66
  ?endpoint_provider: untyped,
66
67
  ?http_proxy: String,
67
68
  ?http_open_timeout: (Float | Integer),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-dynamodbstreams
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.107.0
4
+ version: 1.108.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.268.0
21
+ version: 3.269.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.268.0
31
+ version: 3.269.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement