aws-sdk-chime 1.69.0 → 1.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9064afddb31ab91c8952fb9553d86f21bda5b843960e48b5ee0f248fe50e0df
4
- data.tar.gz: 131874be65fab072eeaf7c3a34dfe7dc5a6e15a40f7363d9c51ae43ad6600584
3
+ metadata.gz: '0930ee2bc6d0bd87b3c5743f3e07d24d15e20769e9581cd77edb4b89a51fca71'
4
+ data.tar.gz: 8dec2e827445959bf274cd1d77d553925c345e0cfefec7ad8beec16c31941cde
5
5
  SHA512:
6
- metadata.gz: 87ba47c13e6c1e3bc9cc379106e717db1654a30babe9c4e8d6ac63a0ab4bf039217b0bcb2f3e7a54877b14aa737d3e7452e73c2816fa3db7f55b437559a22802
7
- data.tar.gz: 2c7ea80d347f474d38865a2250af903af214abd3c099550b90663ae3dd455a56dd5dd854b91a1058dd07b198788d05d4e0019f0cbbd817be23cb87ca11272c5d
6
+ metadata.gz: cf3388afc34f4c669b3ee3d1fc94116c4927dbbb537ce0eb86aed4d4fc4c3438b70fcbf6e70e5c829c2ab169d6019204002f9595f78005220b3ce8425318e8b1
7
+ data.tar.gz: 9623192e054010c4c35c46668e882f02c180c6209aa707ce8efc74444e2fa210e36995e20c4c67595687bf52a7ae419f49c0dc3c82ab45a42be704b20bf0050d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.71.0 (2023-04-20)
5
+ ------------------
6
+
7
+ * Feature - Adds support for Hindi and Thai languages and additional Amazon Transcribe parameters to the StartMeetingTranscription API.
8
+
9
+ 1.70.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.69.0 (2022-10-25)
5
17
  ------------------
6
18
 
@@ -360,4 +372,4 @@ Unreleased Changes
360
372
  1.0.0 (2018-10-30)
361
373
  ------------------
362
374
 
363
- * Feature - Initial release of `aws-sdk-chime`.
375
+ * Feature - Initial release of `aws-sdk-chime`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.69.0
1
+ 1.71.0
@@ -517,11 +517,11 @@ module Aws::Chime
517
517
 
518
518
  # Creates up to 100 new attendees for an active Amazon Chime SDK
519
519
  # meeting. For more information about the Amazon Chime SDK, see [Using
520
- # the Amazon Chime SDK][1] in the *Amazon Chime Developer Guide*.
520
+ # the Amazon Chime SDK][1] in the *Amazon Chime SDK Developer Guide*.
521
521
  #
522
522
  #
523
523
  #
524
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
524
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
525
525
  #
526
526
  # @option params [required, String] :meeting_id
527
527
  # The Amazon Chime SDK meeting ID.
@@ -1106,11 +1106,11 @@ module Aws::Chime
1106
1106
 
1107
1107
  # Creates a new attendee for an active Amazon Chime SDK meeting. For
1108
1108
  # more information about the Amazon Chime SDK, see [Using the Amazon
1109
- # Chime SDK][1] in the *Amazon Chime Developer Guide*.
1109
+ # Chime SDK][1] in the *Amazon Chime SDK Developer Guide*.
1110
1110
  #
1111
1111
  #
1112
1112
  #
1113
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
1113
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
1114
1114
  #
1115
1115
  # @option params [required, String] :meeting_id
1116
1116
  # The Amazon Chime SDK meeting ID.
@@ -1200,7 +1200,7 @@ module Aws::Chime
1200
1200
 
1201
1201
  # Creates a channel to which you can add users and send messages.
1202
1202
  #
1203
- # **Restriction**\: You can't change a channel's privacy.
1203
+ # **Restriction**: You can't change a channel's privacy.
1204
1204
  #
1205
1205
  # <note markdown="1"> The `x-amz-chime-bearer` request header is mandatory. Use the
1206
1206
  # `AppInstanceUserArn` of the user that makes the API call as the value
@@ -1469,7 +1469,9 @@ module Aws::Chime
1469
1469
  # The ARN of the sink type.
1470
1470
  #
1471
1471
  # @option params [String] :client_request_token
1472
- # The token assigned to the client making the pipeline request.
1472
+ # The unique identifier for the client request. The token makes the API
1473
+ # request idempotent. Use a different token for different media pipeline
1474
+ # requests.
1473
1475
  #
1474
1476
  # **A suitable default value is auto-generated.** You should normally
1475
1477
  # not need to pass this option.**
@@ -1545,14 +1547,14 @@ module Aws::Chime
1545
1547
  # Creates a new Amazon Chime SDK meeting in the specified media Region
1546
1548
  # with no initial attendees. For more information about specifying media
1547
1549
  # Regions, see [Amazon Chime SDK Media Regions][1] in the *Amazon Chime
1548
- # Developer Guide* . For more information about the Amazon Chime SDK,
1549
- # see [Using the Amazon Chime SDK][2] in the *Amazon Chime Developer
1550
- # Guide* .
1550
+ # SDK Developer Guide* . For more information about the Amazon Chime
1551
+ # SDK, see [Using the Amazon Chime SDK][2] in the *Amazon Chime SDK
1552
+ # Developer Guide* .
1551
1553
  #
1552
1554
  #
1553
1555
  #
1554
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html
1555
- # [2]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
1556
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/chime-sdk-meetings-regions.html
1557
+ # [2]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
1556
1558
  #
1557
1559
  # @option params [required, String] :client_request_token
1558
1560
  # The unique identifier for the client request. Use a different token
@@ -1684,14 +1686,15 @@ module Aws::Chime
1684
1686
 
1685
1687
  # Creates a new Amazon Chime SDK meeting in the specified media Region,
1686
1688
  # with attendees. For more information about specifying media Regions,
1687
- # see [Amazon Chime SDK Media Regions][1] in the *Amazon Chime Developer
1688
- # Guide* . For more information about the Amazon Chime SDK, see [Using
1689
- # the Amazon Chime SDK][2] in the *Amazon Chime Developer Guide* .
1689
+ # see [Amazon Chime SDK Media Regions][1] in the *Amazon Chime SDK
1690
+ # Developer Guide* . For more information about the Amazon Chime SDK,
1691
+ # see [Using the Amazon Chime SDK][2] in the *Amazon Chime SDK Developer
1692
+ # Guide* .
1690
1693
  #
1691
1694
  #
1692
1695
  #
1693
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html
1694
- # [2]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
1696
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/chime-sdk-meetings-regions.html
1697
+ # [2]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
1695
1698
  #
1696
1699
  # @option params [required, String] :client_request_token
1697
1700
  # The unique identifier for the client request. Use a different token
@@ -1722,7 +1725,7 @@ module Aws::Chime
1722
1725
  # The resource target configurations for receiving Amazon Chime SDK
1723
1726
  # meeting and attendee event notifications. The Amazon Chime SDK
1724
1727
  # supports resource targets located in the US East (N. Virginia) AWS
1725
- # Region (`us-east-1`).
1728
+ # Region (us-east-1).
1726
1729
  #
1727
1730
  # @option params [Array<Types::CreateAttendeeRequestItem>] :attendees
1728
1731
  # The request containing the attendees to create.
@@ -2459,11 +2462,11 @@ module Aws::Chime
2459
2462
  # deletes their `JoinToken`. Attendees are automatically deleted when a
2460
2463
  # Amazon Chime SDK meeting is deleted. For more information about the
2461
2464
  # Amazon Chime SDK, see [Using the Amazon Chime SDK][1] in the *Amazon
2462
- # Chime Developer Guide*.
2465
+ # Chime SDK Developer Guide*.
2463
2466
  #
2464
2467
  #
2465
2468
  #
2466
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
2469
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
2467
2470
  #
2468
2471
  # @option params [required, String] :meeting_id
2469
2472
  # The Amazon Chime SDK meeting ID.
@@ -2720,12 +2723,12 @@ module Aws::Chime
2720
2723
  # Deletes the specified Amazon Chime SDK meeting. The operation deletes
2721
2724
  # all attendees, disconnects all clients, and prevents new clients from
2722
2725
  # joining the meeting. For more information about the Amazon Chime SDK,
2723
- # see [Using the Amazon Chime SDK][1] in the *Amazon Chime Developer
2726
+ # see [Using the Amazon Chime SDK][1] in the *Amazon Chime SDK Developer
2724
2727
  # Guide*.
2725
2728
  #
2726
2729
  #
2727
2730
  #
2728
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
2731
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
2729
2732
  #
2730
2733
  # @option params [required, String] :meeting_id
2731
2734
  # The Amazon Chime SDK meeting ID.
@@ -3757,12 +3760,12 @@ module Aws::Chime
3757
3760
 
3758
3761
  # Gets the Amazon Chime SDK attendee details for a specified meeting ID
3759
3762
  # and attendee ID. For more information about the Amazon Chime SDK, see
3760
- # [Using the Amazon Chime SDK][1] in the *Amazon Chime Developer Guide*
3761
- # .
3763
+ # [Using the Amazon Chime SDK][1] in the *Amazon Chime SDK Developer
3764
+ # Guide* .
3762
3765
  #
3763
3766
  #
3764
3767
  #
3765
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
3768
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
3766
3769
  #
3767
3770
  # @option params [required, String] :meeting_id
3768
3771
  # The Amazon Chime SDK meeting ID.
@@ -3994,11 +3997,11 @@ module Aws::Chime
3994
3997
 
3995
3998
  # Gets the Amazon Chime SDK meeting details for the specified meeting
3996
3999
  # ID. For more information about the Amazon Chime SDK, see [Using the
3997
- # Amazon Chime SDK][1] in the *Amazon Chime Developer Guide* .
4000
+ # Amazon Chime SDK][1] in the *Amazon Chime SDK Developer Guide* .
3998
4001
  #
3999
4002
  #
4000
4003
  #
4001
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
4004
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
4002
4005
  #
4003
4006
  # @option params [required, String] :meeting_id
4004
4007
  # The Amazon Chime SDK meeting ID.
@@ -5047,11 +5050,11 @@ module Aws::Chime
5047
5050
 
5048
5051
  # Lists the attendees for the specified Amazon Chime SDK meeting. For
5049
5052
  # more information about the Amazon Chime SDK, see [Using the Amazon
5050
- # Chime SDK][1] in the *Amazon Chime Developer Guide*.
5053
+ # Chime SDK][1] in the *Amazon Chime SDK Developer Guide*.
5051
5054
  #
5052
5055
  #
5053
5056
  #
5054
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
5057
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
5055
5058
  #
5056
5059
  # @option params [required, String] :meeting_id
5057
5060
  # The Amazon Chime SDK meeting ID.
@@ -5676,11 +5679,11 @@ module Aws::Chime
5676
5679
 
5677
5680
  # Lists up to 100 active Amazon Chime SDK meetings. For more information
5678
5681
  # about the Amazon Chime SDK, see [Using the Amazon Chime SDK][1] in the
5679
- # *Amazon Chime Developer Guide*.
5682
+ # *Amazon Chime SDK Developer Guide*.
5680
5683
  #
5681
5684
  #
5682
5685
  #
5683
- # [1]: https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html
5686
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meetings-sdk.html
5684
5687
  #
5685
5688
  # @option params [String] :next_token
5686
5689
  # The token to use to retrieve the next page of results.
@@ -7301,7 +7304,26 @@ module Aws::Chime
7301
7304
  req.send_request(options)
7302
7305
  end
7303
7306
 
7304
- # Starts transcription for the specified `meetingId`.
7307
+ # Starts transcription for the specified `meetingId`. For more
7308
+ # information, refer to [ Using Amazon Chime SDK live transcription ][1]
7309
+ # in the *Amazon Chime SDK Developer Guide*.
7310
+ #
7311
+ # If you specify an invalid configuration, a `TranscriptFailed` event
7312
+ # will be sent with the contents of the `BadRequestException` generated
7313
+ # by Amazon Transcribe. For more information on each parameter and which
7314
+ # combinations are valid, refer to the [StartStreamTranscription][2] API
7315
+ # in the *Amazon Transcribe Developer Guide*.
7316
+ #
7317
+ # Amazon Chime SDK live transcription is powered by Amazon Transcribe.
7318
+ # Use of Amazon Transcribe is subject to the [AWS Service Terms][3],
7319
+ # including the terms specific to the AWS Machine Learning and
7320
+ # Artificial Intelligence Services.
7321
+ #
7322
+ #
7323
+ #
7324
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/meeting-transcription.html
7325
+ # [2]: https://docs.aws.amazon.com/transcribe/latest/APIReference/API_streaming_StartStreamTranscription.html
7326
+ # [3]: https://aws.amazon.com/service-terms/
7305
7327
  #
7306
7328
  # @option params [required, String] :meeting_id
7307
7329
  # The unique ID of the meeting being transcribed.
@@ -7319,7 +7341,7 @@ module Aws::Chime
7319
7341
  # meeting_id: "GuidString", # required
7320
7342
  # transcription_configuration: { # required
7321
7343
  # engine_transcribe_settings: {
7322
- # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
7344
+ # language_code: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN, th-TH, hi-IN
7323
7345
  # vocabulary_filter_method: "remove", # accepts remove, mask, tag
7324
7346
  # vocabulary_filter_name: "String",
7325
7347
  # vocabulary_name: "String",
@@ -7330,6 +7352,11 @@ module Aws::Chime
7330
7352
  # content_redaction_type: "PII", # accepts PII
7331
7353
  # pii_entity_types: "TranscribePiiEntityTypes",
7332
7354
  # language_model_name: "TranscribeLanguageModelName",
7355
+ # identify_language: false,
7356
+ # language_options: "TranscribeLanguageOptions",
7357
+ # preferred_language: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN, th-TH, hi-IN
7358
+ # vocabulary_names: "TranscribeVocabularyNamesOrFilterNamesString",
7359
+ # vocabulary_filter_names: "TranscribeVocabularyNamesOrFilterNamesString",
7333
7360
  # },
7334
7361
  # engine_transcribe_medical_settings: {
7335
7362
  # language_code: "en-US", # required, accepts en-US
@@ -7760,7 +7787,7 @@ module Aws::Chime
7760
7787
 
7761
7788
  # Update a channel's attributes.
7762
7789
  #
7763
- # **Restriction**\: You can't change a channel's privacy.
7790
+ # **Restriction**: You can't change a channel's privacy.
7764
7791
  #
7765
7792
  # <note markdown="1"> The `x-amz-chime-bearer` request header is mandatory. Use the
7766
7793
  # `AppInstanceUserArn` of the user that makes the API call as the value
@@ -8600,7 +8627,7 @@ module Aws::Chime
8600
8627
  params: params,
8601
8628
  config: config)
8602
8629
  context[:gem_name] = 'aws-sdk-chime'
8603
- context[:gem_version] = '1.69.0'
8630
+ context[:gem_version] = '1.71.0'
8604
8631
  Seahorse::Client::Request.new(handlers, context)
8605
8632
  end
8606
8633
 
@@ -569,6 +569,7 @@ module Aws::Chime
569
569
  TranscribeContentRedactionType = Shapes::StringShape.new(name: 'TranscribeContentRedactionType')
570
570
  TranscribeLanguageCode = Shapes::StringShape.new(name: 'TranscribeLanguageCode')
571
571
  TranscribeLanguageModelName = Shapes::StringShape.new(name: 'TranscribeLanguageModelName')
572
+ TranscribeLanguageOptions = Shapes::StringShape.new(name: 'TranscribeLanguageOptions')
572
573
  TranscribeMedicalContentIdentificationType = Shapes::StringShape.new(name: 'TranscribeMedicalContentIdentificationType')
573
574
  TranscribeMedicalLanguageCode = Shapes::StringShape.new(name: 'TranscribeMedicalLanguageCode')
574
575
  TranscribeMedicalRegion = Shapes::StringShape.new(name: 'TranscribeMedicalRegion')
@@ -578,6 +579,7 @@ module Aws::Chime
578
579
  TranscribePiiEntityTypes = Shapes::StringShape.new(name: 'TranscribePiiEntityTypes')
579
580
  TranscribeRegion = Shapes::StringShape.new(name: 'TranscribeRegion')
580
581
  TranscribeVocabularyFilterMethod = Shapes::StringShape.new(name: 'TranscribeVocabularyFilterMethod')
582
+ TranscribeVocabularyNamesOrFilterNamesString = Shapes::StringShape.new(name: 'TranscribeVocabularyNamesOrFilterNamesString')
581
583
  TranscriptionConfiguration = Shapes::StructureShape.new(name: 'TranscriptionConfiguration')
582
584
  UnauthorizedClientException = Shapes::StructureShape.new(name: 'UnauthorizedClientException')
583
585
  UnprocessableEntityException = Shapes::StructureShape.new(name: 'UnprocessableEntityException')
@@ -1474,7 +1476,7 @@ module Aws::Chime
1474
1476
  EngineTranscribeMedicalSettings.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: TranscribeMedicalContentIdentificationType, location_name: "ContentIdentificationType"))
1475
1477
  EngineTranscribeMedicalSettings.struct_class = Types::EngineTranscribeMedicalSettings
1476
1478
 
1477
- EngineTranscribeSettings.add_member(:language_code, Shapes::ShapeRef.new(shape: TranscribeLanguageCode, required: true, location_name: "LanguageCode"))
1479
+ EngineTranscribeSettings.add_member(:language_code, Shapes::ShapeRef.new(shape: TranscribeLanguageCode, location_name: "LanguageCode"))
1478
1480
  EngineTranscribeSettings.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: TranscribeVocabularyFilterMethod, location_name: "VocabularyFilterMethod"))
1479
1481
  EngineTranscribeSettings.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: String, location_name: "VocabularyFilterName"))
1480
1482
  EngineTranscribeSettings.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: String, location_name: "VocabularyName"))
@@ -1485,6 +1487,11 @@ module Aws::Chime
1485
1487
  EngineTranscribeSettings.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: TranscribeContentRedactionType, location_name: "ContentRedactionType"))
1486
1488
  EngineTranscribeSettings.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: TranscribePiiEntityTypes, location_name: "PiiEntityTypes"))
1487
1489
  EngineTranscribeSettings.add_member(:language_model_name, Shapes::ShapeRef.new(shape: TranscribeLanguageModelName, location_name: "LanguageModelName"))
1490
+ EngineTranscribeSettings.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location_name: "IdentifyLanguage"))
1491
+ EngineTranscribeSettings.add_member(:language_options, Shapes::ShapeRef.new(shape: TranscribeLanguageOptions, location_name: "LanguageOptions"))
1492
+ EngineTranscribeSettings.add_member(:preferred_language, Shapes::ShapeRef.new(shape: TranscribeLanguageCode, location_name: "PreferredLanguage"))
1493
+ EngineTranscribeSettings.add_member(:vocabulary_names, Shapes::ShapeRef.new(shape: TranscribeVocabularyNamesOrFilterNamesString, location_name: "VocabularyNames"))
1494
+ EngineTranscribeSettings.add_member(:vocabulary_filter_names, Shapes::ShapeRef.new(shape: TranscribeVocabularyNamesOrFilterNamesString, location_name: "VocabularyFilterNames"))
1488
1495
  EngineTranscribeSettings.struct_class = Types::EngineTranscribeSettings
1489
1496
 
1490
1497
  EventsConfiguration.add_member(:bot_id, Shapes::ShapeRef.new(shape: String, location_name: "BotId"))
@@ -9,159 +9,49 @@
9
9
 
10
10
  module Aws::Chime
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
29
+ return Aws::Endpoints::Endpoint.new(url: "https://chime.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"chime", "signingRegion"=>"us-east-1"}]})
30
+ end
31
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
32
+ 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"))
33
+ return Aws::Endpoints::Endpoint.new(url: "https://chime-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
34
+ end
35
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
36
+ end
37
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
38
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
39
+ return Aws::Endpoints::Endpoint.new(url: "https://chime-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
+ end
43
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
44
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
45
+ return Aws::Endpoints::Endpoint.new(url: "https://chime.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
48
+ end
49
+ return Aws::Endpoints::Endpoint.new(url: "https://chime.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
50
+ end
51
+ end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
53
+ raise ArgumentError, 'No endpoint could be resolved'
24
54
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
55
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
- ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
- ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
39
- aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
40
- OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
41
- UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
42
- dGlvbiI6IldoZW4gdHJ1ZSwgc2VuZCB0aGlzIHJlcXVlc3QgdG8gdGhlIEZJ
43
- UF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FzdC0xIn1dfSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQi
160
- fSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczov
161
- L2NoaW1lLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIs
162
- InByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2lu
163
- dCJ9XX1dfV19
164
-
165
- JSON
166
56
  end
167
57
  end