aws-sdk-chimesdkmessaging 1.14.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9c90d07b65c437f867bd2f525dcf118ea9727dca43c9bfaf82822bc3212a05d
4
- data.tar.gz: 69c505289ae7dd249f2c8fb5bf273ed3a0102084c4accd4ec2b97ef093db3bce
3
+ metadata.gz: 6d66dd50204fb321ceda827807761a31f811460e83340d8c8ba92ac0cfefbc15
4
+ data.tar.gz: aeb7b7e349bd54ca29bb0d0e7190a5c964c802fc83b17db743b7b424ea8c4094
5
5
  SHA512:
6
- metadata.gz: 3a97e7c67097ac4c18fd536476bcf6a29c448c19566cd39475fd7a4f1248d30321743e721c04a03886b3a4b446597d8c609296a965f8bd41546f87020f52e390
7
- data.tar.gz: 3feecfc03fea71775671c0ec49bdde950b2e511009d12553db0a16354c76c5d7413d3c87cbadef7181d5b06b0207b946efc515ea49bfb618eefe42d7895e1315
6
+ metadata.gz: b15a3d79bf40c29bca1b7eacb31f73d687efbbf33d95359913a623a627163ffad9db080e157425459651e5f5c8785a41f6a45493ff1598a9bdd2604f9203ed70
7
+ data.tar.gz: 4299cf112ec83fb244eb8a94d1e825f29b8c0070181c4cdd4d8b23bdeaef7843b20a8992b2104c4ccbc26c3fe18132f14eadb0b0f7f78cc55a4f4bb40cfc0f32
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2023-03-21)
5
+ ------------------
6
+
7
+ * Feature - Amazon Chime SDK messaging customers can now manage streaming configuration for messaging data for archival and analysis.
8
+
9
+ 1.15.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.14.0 (2022-10-25)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.14.0
1
+ 1.16.0
@@ -547,7 +547,7 @@ module Aws::ChimeSDKMessaging
547
547
 
548
548
  # Creates a channel to which you can add users and send messages.
549
549
  #
550
- # **Restriction**\: You can't change a channel's privacy.
550
+ # **Restriction**: You can't change a channel's privacy.
551
551
  #
552
552
  # <note markdown="1"> The `x-amz-chime-bearer` request header is mandatory. Use the
553
553
  # `AppInstanceUserArn` of the user that makes the API call as the value
@@ -1147,6 +1147,34 @@ module Aws::ChimeSDKMessaging
1147
1147
  req.send_request(options)
1148
1148
  end
1149
1149
 
1150
+ # Deletes the streaming configurations for an `AppInstance`. For more
1151
+ # information, see [Streaming messaging data][1] in the *Amazon Chime
1152
+ # SDK Developer Guide*.
1153
+ #
1154
+ #
1155
+ #
1156
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/streaming-export.html
1157
+ #
1158
+ # @option params [required, String] :app_instance_arn
1159
+ # The ARN of the streaming configurations being deleted.
1160
+ #
1161
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1162
+ #
1163
+ # @example Request syntax with placeholder values
1164
+ #
1165
+ # resp = client.delete_messaging_streaming_configurations({
1166
+ # app_instance_arn: "ChimeArn", # required
1167
+ # })
1168
+ #
1169
+ # @see http://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/DeleteMessagingStreamingConfigurations AWS API Documentation
1170
+ #
1171
+ # @overload delete_messaging_streaming_configurations(params = {})
1172
+ # @param [Hash] params ({})
1173
+ def delete_messaging_streaming_configurations(params = {}, options = {})
1174
+ req = build_request(:delete_messaging_streaming_configurations, params)
1175
+ req.send_request(options)
1176
+ end
1177
+
1150
1178
  # Returns the full details of a channel in an Amazon Chime
1151
1179
  # `AppInstance`.
1152
1180
  #
@@ -1742,6 +1770,42 @@ module Aws::ChimeSDKMessaging
1742
1770
  req.send_request(options)
1743
1771
  end
1744
1772
 
1773
+ # Retrieves the data streaming configuration for an `AppInstance`. For
1774
+ # more information, see [Streaming messaging data][1] in the *Amazon
1775
+ # Chime SDK Developer Guide*.
1776
+ #
1777
+ #
1778
+ #
1779
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/streaming-export.html
1780
+ #
1781
+ # @option params [required, String] :app_instance_arn
1782
+ # The ARN of the streaming configurations.
1783
+ #
1784
+ # @return [Types::GetMessagingStreamingConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1785
+ #
1786
+ # * {Types::GetMessagingStreamingConfigurationsResponse#streaming_configurations #streaming_configurations} => Array&lt;Types::StreamingConfiguration&gt;
1787
+ #
1788
+ # @example Request syntax with placeholder values
1789
+ #
1790
+ # resp = client.get_messaging_streaming_configurations({
1791
+ # app_instance_arn: "ChimeArn", # required
1792
+ # })
1793
+ #
1794
+ # @example Response structure
1795
+ #
1796
+ # resp.streaming_configurations #=> Array
1797
+ # resp.streaming_configurations[0].data_type #=> String, one of "Channel", "ChannelMessage"
1798
+ # resp.streaming_configurations[0].resource_arn #=> String
1799
+ #
1800
+ # @see http://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/GetMessagingStreamingConfigurations AWS API Documentation
1801
+ #
1802
+ # @overload get_messaging_streaming_configurations(params = {})
1803
+ # @param [Hash] params ({})
1804
+ def get_messaging_streaming_configurations(params = {}, options = {})
1805
+ req = build_request(:get_messaging_streaming_configurations, params)
1806
+ req.send_request(options)
1807
+ end
1808
+
1745
1809
  # Lists all the users banned from a particular channel.
1746
1810
  #
1747
1811
  # <note markdown="1"> The `x-amz-chime-bearer` request header is mandatory. Use the
@@ -2454,6 +2518,51 @@ module Aws::ChimeSDKMessaging
2454
2518
  req.send_request(options)
2455
2519
  end
2456
2520
 
2521
+ # Sets the data streaming configuration for an `AppInstance`. For more
2522
+ # information, see [Streaming messaging data][1] in the *Amazon Chime
2523
+ # SDK Developer Guide*.
2524
+ #
2525
+ #
2526
+ #
2527
+ # [1]: https://docs.aws.amazon.com/chime-sdk/latest/dg/streaming-export.html
2528
+ #
2529
+ # @option params [required, String] :app_instance_arn
2530
+ # The ARN of the streaming configuration.
2531
+ #
2532
+ # @option params [required, Array<Types::StreamingConfiguration>] :streaming_configurations
2533
+ # The streaming configurations.
2534
+ #
2535
+ # @return [Types::PutMessagingStreamingConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2536
+ #
2537
+ # * {Types::PutMessagingStreamingConfigurationsResponse#streaming_configurations #streaming_configurations} => Array&lt;Types::StreamingConfiguration&gt;
2538
+ #
2539
+ # @example Request syntax with placeholder values
2540
+ #
2541
+ # resp = client.put_messaging_streaming_configurations({
2542
+ # app_instance_arn: "ChimeArn", # required
2543
+ # streaming_configurations: [ # required
2544
+ # {
2545
+ # data_type: "Channel", # required, accepts Channel, ChannelMessage
2546
+ # resource_arn: "ChimeArn", # required
2547
+ # },
2548
+ # ],
2549
+ # })
2550
+ #
2551
+ # @example Response structure
2552
+ #
2553
+ # resp.streaming_configurations #=> Array
2554
+ # resp.streaming_configurations[0].data_type #=> String, one of "Channel", "ChannelMessage"
2555
+ # resp.streaming_configurations[0].resource_arn #=> String
2556
+ #
2557
+ # @see http://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/PutMessagingStreamingConfigurations AWS API Documentation
2558
+ #
2559
+ # @overload put_messaging_streaming_configurations(params = {})
2560
+ # @param [Hash] params ({})
2561
+ def put_messaging_streaming_configurations(params = {}, options = {})
2562
+ req = build_request(:put_messaging_streaming_configurations, params)
2563
+ req.send_request(options)
2564
+ end
2565
+
2457
2566
  # Redacts message content, but not metadata. The message exists in the
2458
2567
  # back end, but the action returns null content, and the state shows as
2459
2568
  # redacted.
@@ -2721,7 +2830,7 @@ module Aws::ChimeSDKMessaging
2721
2830
 
2722
2831
  # Update a channel's attributes.
2723
2832
  #
2724
- # **Restriction**\: You can't change a channel's privacy.
2833
+ # **Restriction**: You can't change a channel's privacy.
2725
2834
  #
2726
2835
  # <note markdown="1"> The `x-amz-chime-bearer` request header is mandatory. Use the
2727
2836
  # `AppInstanceUserArn` of the user that makes the API call as the value
@@ -2942,7 +3051,7 @@ module Aws::ChimeSDKMessaging
2942
3051
  params: params,
2943
3052
  config: config)
2944
3053
  context[:gem_name] = 'aws-sdk-chimesdkmessaging'
2945
- context[:gem_version] = '1.14.0'
3054
+ context[:gem_version] = '1.16.0'
2946
3055
  Seahorse::Client::Request.new(handlers, context)
2947
3056
  end
2948
3057
 
@@ -82,6 +82,7 @@ module Aws::ChimeSDKMessaging
82
82
  DeleteChannelMessageRequest = Shapes::StructureShape.new(name: 'DeleteChannelMessageRequest')
83
83
  DeleteChannelModeratorRequest = Shapes::StructureShape.new(name: 'DeleteChannelModeratorRequest')
84
84
  DeleteChannelRequest = Shapes::StructureShape.new(name: 'DeleteChannelRequest')
85
+ DeleteMessagingStreamingConfigurationsRequest = Shapes::StructureShape.new(name: 'DeleteMessagingStreamingConfigurationsRequest')
85
86
  DescribeChannelBanRequest = Shapes::StructureShape.new(name: 'DescribeChannelBanRequest')
86
87
  DescribeChannelBanResponse = Shapes::StructureShape.new(name: 'DescribeChannelBanResponse')
87
88
  DescribeChannelFlowRequest = Shapes::StructureShape.new(name: 'DescribeChannelFlowRequest')
@@ -110,6 +111,8 @@ module Aws::ChimeSDKMessaging
110
111
  GetChannelMessageStatusResponse = Shapes::StructureShape.new(name: 'GetChannelMessageStatusResponse')
111
112
  GetMessagingSessionEndpointRequest = Shapes::StructureShape.new(name: 'GetMessagingSessionEndpointRequest')
112
113
  GetMessagingSessionEndpointResponse = Shapes::StructureShape.new(name: 'GetMessagingSessionEndpointResponse')
114
+ GetMessagingStreamingConfigurationsRequest = Shapes::StructureShape.new(name: 'GetMessagingStreamingConfigurationsRequest')
115
+ GetMessagingStreamingConfigurationsResponse = Shapes::StructureShape.new(name: 'GetMessagingStreamingConfigurationsResponse')
113
116
  Identity = Shapes::StructureShape.new(name: 'Identity')
114
117
  InvocationType = Shapes::StringShape.new(name: 'InvocationType')
115
118
  LambdaConfiguration = Shapes::StructureShape.new(name: 'LambdaConfiguration')
@@ -147,6 +150,7 @@ module Aws::ChimeSDKMessaging
147
150
  MessageAttributeStringValues = Shapes::ListShape.new(name: 'MessageAttributeStringValues')
148
151
  MessageAttributeValue = Shapes::StructureShape.new(name: 'MessageAttributeValue')
149
152
  MessageId = Shapes::StringShape.new(name: 'MessageId')
153
+ MessagingDataType = Shapes::StringShape.new(name: 'MessagingDataType')
150
154
  MessagingSessionEndpoint = Shapes::StructureShape.new(name: 'MessagingSessionEndpoint')
151
155
  Metadata = Shapes::StringShape.new(name: 'Metadata')
152
156
  MinimumMembershipPercentage = Shapes::IntegerShape.new(name: 'MinimumMembershipPercentage')
@@ -165,6 +169,8 @@ module Aws::ChimeSDKMessaging
165
169
  PushNotificationType = Shapes::StringShape.new(name: 'PushNotificationType')
166
170
  PutChannelMembershipPreferencesRequest = Shapes::StructureShape.new(name: 'PutChannelMembershipPreferencesRequest')
167
171
  PutChannelMembershipPreferencesResponse = Shapes::StructureShape.new(name: 'PutChannelMembershipPreferencesResponse')
172
+ PutMessagingStreamingConfigurationsRequest = Shapes::StructureShape.new(name: 'PutMessagingStreamingConfigurationsRequest')
173
+ PutMessagingStreamingConfigurationsResponse = Shapes::StructureShape.new(name: 'PutMessagingStreamingConfigurationsResponse')
168
174
  RedactChannelMessageRequest = Shapes::StructureShape.new(name: 'RedactChannelMessageRequest')
169
175
  RedactChannelMessageResponse = Shapes::StructureShape.new(name: 'RedactChannelMessageResponse')
170
176
  ResourceLimitExceededException = Shapes::StructureShape.new(name: 'ResourceLimitExceededException')
@@ -183,6 +189,8 @@ module Aws::ChimeSDKMessaging
183
189
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
184
190
  SortOrder = Shapes::StringShape.new(name: 'SortOrder')
185
191
  StatusDetail = Shapes::StringShape.new(name: 'StatusDetail')
192
+ StreamingConfiguration = Shapes::StructureShape.new(name: 'StreamingConfiguration')
193
+ StreamingConfigurationList = Shapes::ListShape.new(name: 'StreamingConfigurationList')
186
194
  String = Shapes::StringShape.new(name: 'String')
187
195
  SubChannelId = Shapes::StringShape.new(name: 'SubChannelId')
188
196
  SubChannelSummary = Shapes::StructureShape.new(name: 'SubChannelSummary')
@@ -491,6 +499,9 @@ module Aws::ChimeSDKMessaging
491
499
  DeleteChannelRequest.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location: "querystring", location_name: "sub-channel-id"))
492
500
  DeleteChannelRequest.struct_class = Types::DeleteChannelRequest
493
501
 
502
+ DeleteMessagingStreamingConfigurationsRequest.add_member(:app_instance_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "appInstanceArn"))
503
+ DeleteMessagingStreamingConfigurationsRequest.struct_class = Types::DeleteMessagingStreamingConfigurationsRequest
504
+
494
505
  DescribeChannelBanRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
495
506
  DescribeChannelBanRequest.add_member(:member_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "memberArn"))
496
507
  DescribeChannelBanRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "header", location_name: "x-amz-chime-bearer"))
@@ -592,6 +603,12 @@ module Aws::ChimeSDKMessaging
592
603
  GetMessagingSessionEndpointResponse.add_member(:endpoint, Shapes::ShapeRef.new(shape: MessagingSessionEndpoint, location_name: "Endpoint"))
593
604
  GetMessagingSessionEndpointResponse.struct_class = Types::GetMessagingSessionEndpointResponse
594
605
 
606
+ GetMessagingStreamingConfigurationsRequest.add_member(:app_instance_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "appInstanceArn"))
607
+ GetMessagingStreamingConfigurationsRequest.struct_class = Types::GetMessagingStreamingConfigurationsRequest
608
+
609
+ GetMessagingStreamingConfigurationsResponse.add_member(:streaming_configurations, Shapes::ShapeRef.new(shape: StreamingConfigurationList, location_name: "StreamingConfigurations"))
610
+ GetMessagingStreamingConfigurationsResponse.struct_class = Types::GetMessagingStreamingConfigurationsResponse
611
+
595
612
  Identity.add_member(:arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "Arn"))
596
613
  Identity.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "Name"))
597
614
  Identity.struct_class = Types::Identity
@@ -767,6 +784,13 @@ module Aws::ChimeSDKMessaging
767
784
  PutChannelMembershipPreferencesResponse.add_member(:preferences, Shapes::ShapeRef.new(shape: ChannelMembershipPreferences, location_name: "Preferences"))
768
785
  PutChannelMembershipPreferencesResponse.struct_class = Types::PutChannelMembershipPreferencesResponse
769
786
 
787
+ PutMessagingStreamingConfigurationsRequest.add_member(:app_instance_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "appInstanceArn"))
788
+ PutMessagingStreamingConfigurationsRequest.add_member(:streaming_configurations, Shapes::ShapeRef.new(shape: StreamingConfigurationList, required: true, location_name: "StreamingConfigurations"))
789
+ PutMessagingStreamingConfigurationsRequest.struct_class = Types::PutMessagingStreamingConfigurationsRequest
790
+
791
+ PutMessagingStreamingConfigurationsResponse.add_member(:streaming_configurations, Shapes::ShapeRef.new(shape: StreamingConfigurationList, location_name: "StreamingConfigurations"))
792
+ PutMessagingStreamingConfigurationsResponse.struct_class = Types::PutMessagingStreamingConfigurationsResponse
793
+
770
794
  RedactChannelMessageRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
771
795
  RedactChannelMessageRequest.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, required: true, location: "uri", location_name: "messageId"))
772
796
  RedactChannelMessageRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "header", location_name: "x-amz-chime-bearer"))
@@ -827,6 +851,12 @@ module Aws::ChimeSDKMessaging
827
851
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
828
852
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
829
853
 
854
+ StreamingConfiguration.add_member(:data_type, Shapes::ShapeRef.new(shape: MessagingDataType, required: true, location_name: "DataType"))
855
+ StreamingConfiguration.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location_name: "ResourceArn"))
856
+ StreamingConfiguration.struct_class = Types::StreamingConfiguration
857
+
858
+ StreamingConfigurationList.member = Shapes::ShapeRef.new(shape: StreamingConfiguration)
859
+
830
860
  SubChannelSummary.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
831
861
  SubChannelSummary.add_member(:membership_count, Shapes::ShapeRef.new(shape: MembershipCount, location_name: "MembershipCount"))
832
862
  SubChannelSummary.struct_class = Types::SubChannelSummary
@@ -1129,6 +1159,19 @@ module Aws::ChimeSDKMessaging
1129
1159
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
1130
1160
  end)
1131
1161
 
1162
+ api.add_operation(:delete_messaging_streaming_configurations, Seahorse::Model::Operation.new.tap do |o|
1163
+ o.name = "DeleteMessagingStreamingConfigurations"
1164
+ o.http_method = "DELETE"
1165
+ o.http_request_uri = "/app-instances/{appInstanceArn}/streaming-configurations"
1166
+ o.input = Shapes::ShapeRef.new(shape: DeleteMessagingStreamingConfigurationsRequest)
1167
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1168
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1169
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
1170
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
1171
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1172
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
1173
+ end)
1174
+
1132
1175
  api.add_operation(:describe_channel, Seahorse::Model::Operation.new.tap do |o|
1133
1176
  o.name = "DescribeChannel"
1134
1177
  o.http_method = "GET"
@@ -1302,6 +1345,21 @@ module Aws::ChimeSDKMessaging
1302
1345
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
1303
1346
  end)
1304
1347
 
1348
+ api.add_operation(:get_messaging_streaming_configurations, Seahorse::Model::Operation.new.tap do |o|
1349
+ o.name = "GetMessagingStreamingConfigurations"
1350
+ o.http_method = "GET"
1351
+ o.http_request_uri = "/app-instances/{appInstanceArn}/streaming-configurations"
1352
+ o.input = Shapes::ShapeRef.new(shape: GetMessagingStreamingConfigurationsRequest)
1353
+ o.output = Shapes::ShapeRef.new(shape: GetMessagingStreamingConfigurationsResponse)
1354
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1355
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1356
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1357
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
1358
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
1359
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1360
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
1361
+ end)
1362
+
1305
1363
  api.add_operation(:list_channel_bans, Seahorse::Model::Operation.new.tap do |o|
1306
1364
  o.name = "ListChannelBans"
1307
1365
  o.http_method = "GET"
@@ -1531,6 +1589,22 @@ module Aws::ChimeSDKMessaging
1531
1589
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
1532
1590
  end)
1533
1591
 
1592
+ api.add_operation(:put_messaging_streaming_configurations, Seahorse::Model::Operation.new.tap do |o|
1593
+ o.name = "PutMessagingStreamingConfigurations"
1594
+ o.http_method = "PUT"
1595
+ o.http_request_uri = "/app-instances/{appInstanceArn}/streaming-configurations"
1596
+ o.input = Shapes::ShapeRef.new(shape: PutMessagingStreamingConfigurationsRequest)
1597
+ o.output = Shapes::ShapeRef.new(shape: PutMessagingStreamingConfigurationsResponse)
1598
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1599
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1600
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1601
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
1602
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
1603
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1604
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1605
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
1606
+ end)
1607
+
1534
1608
  api.add_operation(:redact_channel_message, Seahorse::Model::Operation.new.tap do |o|
1535
1609
  o.name = "RedactChannelMessage"
1536
1610
  o.http_method = "POST"
@@ -50,9 +50,6 @@ module Aws::ChimeSDKMessaging
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -9,104 +9,46 @@
9
9
 
10
10
  module Aws::ChimeSDKMessaging
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.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ 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"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://messaging-chime-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://messaging-chime-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://messaging-chime.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://messaging-chime.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
- IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
42
- aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
43
- Uy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQuIElmIHRoZSBjb25maWd1
44
- cmVkIGVuZHBvaW50IGRvZXM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yIsImFyZ3YiOlt7InJlZiI6IlVzZUR1
95
- YWxTdGFjayJ9LHRydWVdfV0sInR5cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNv
96
- bmRpdGlvbnMiOlt7ImZuIjoiYm9vbGVhbkVxdWFscyIsImFyZ3YiOlt0cnVl
97
- LHsiZm4iOiJnZXRBdHRyIiwiYXJndiI6W3sicmVmIjoiUGFydGl0aW9uUmVz
98
- dWx0In0sInN1cHBvcnRzRHVhbFN0YWNrIl19XX1dLCJ0eXBlIjoidHJlZSIs
99
- InJ1bGVzIjpbeyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoi
100
- aHR0cHM6Ly9tZXNzYWdpbmctY2hpbWUue1JlZ2lvbn0ue1BhcnRpdGlvblJl
101
- c3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
102
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfSx7ImNvbmRpdGlvbnMi
103
- OltdLCJlcnJvciI6IkR1YWxTdGFjayBpcyBlbmFibGVkIGJ1dCB0aGlzIHBh
104
- cnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUiOiJl
105
- cnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoi
106
- aHR0cHM6Ly9tZXNzYWdpbmctY2hpbWUue1JlZ2lvbn0ue1BhcnRpdGlvblJl
107
- c3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9
108
- fSwidHlwZSI6ImVuZHBvaW50In1dfV19
109
-
110
- JSON
111
53
  end
112
54
  end
@@ -207,6 +207,20 @@ module Aws::ChimeSDKMessaging
207
207
  end
208
208
  end
209
209
 
210
+ class DeleteMessagingStreamingConfigurations
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::ChimeSDKMessaging::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
210
224
  class DescribeChannel
211
225
  def self.build(context)
212
226
  unless context.config.regional_endpoint
@@ -375,6 +389,20 @@ module Aws::ChimeSDKMessaging
375
389
  end
376
390
  end
377
391
 
392
+ class GetMessagingStreamingConfigurations
393
+ def self.build(context)
394
+ unless context.config.regional_endpoint
395
+ endpoint = context.config.endpoint.to_s
396
+ end
397
+ Aws::ChimeSDKMessaging::EndpointParameters.new(
398
+ region: context.config.region,
399
+ use_dual_stack: context.config.use_dualstack_endpoint,
400
+ use_fips: context.config.use_fips_endpoint,
401
+ endpoint: endpoint,
402
+ )
403
+ end
404
+ end
405
+
378
406
  class ListChannelBans
379
407
  def self.build(context)
380
408
  unless context.config.regional_endpoint
@@ -543,6 +571,20 @@ module Aws::ChimeSDKMessaging
543
571
  end
544
572
  end
545
573
 
574
+ class PutMessagingStreamingConfigurations
575
+ def self.build(context)
576
+ unless context.config.regional_endpoint
577
+ endpoint = context.config.endpoint.to_s
578
+ end
579
+ Aws::ChimeSDKMessaging::EndpointParameters.new(
580
+ region: context.config.region,
581
+ use_dual_stack: context.config.use_dualstack_endpoint,
582
+ use_fips: context.config.use_fips_endpoint,
583
+ endpoint: endpoint,
584
+ )
585
+ end
586
+ end
587
+
546
588
  class RedactChannelMessage
547
589
  def self.build(context)
548
590
  unless context.config.regional_endpoint
@@ -84,6 +84,8 @@ module Aws::ChimeSDKMessaging
84
84
  Aws::ChimeSDKMessaging::Endpoints::DeleteChannelMessage.build(context)
85
85
  when :delete_channel_moderator
86
86
  Aws::ChimeSDKMessaging::Endpoints::DeleteChannelModerator.build(context)
87
+ when :delete_messaging_streaming_configurations
88
+ Aws::ChimeSDKMessaging::Endpoints::DeleteMessagingStreamingConfigurations.build(context)
87
89
  when :describe_channel
88
90
  Aws::ChimeSDKMessaging::Endpoints::DescribeChannel.build(context)
89
91
  when :describe_channel_ban
@@ -108,6 +110,8 @@ module Aws::ChimeSDKMessaging
108
110
  Aws::ChimeSDKMessaging::Endpoints::GetChannelMessageStatus.build(context)
109
111
  when :get_messaging_session_endpoint
110
112
  Aws::ChimeSDKMessaging::Endpoints::GetMessagingSessionEndpoint.build(context)
113
+ when :get_messaging_streaming_configurations
114
+ Aws::ChimeSDKMessaging::Endpoints::GetMessagingStreamingConfigurations.build(context)
111
115
  when :list_channel_bans
112
116
  Aws::ChimeSDKMessaging::Endpoints::ListChannelBans.build(context)
113
117
  when :list_channel_flows
@@ -132,6 +136,8 @@ module Aws::ChimeSDKMessaging
132
136
  Aws::ChimeSDKMessaging::Endpoints::ListTagsForResource.build(context)
133
137
  when :put_channel_membership_preferences
134
138
  Aws::ChimeSDKMessaging::Endpoints::PutChannelMembershipPreferences.build(context)
139
+ when :put_messaging_streaming_configurations
140
+ Aws::ChimeSDKMessaging::Endpoints::PutMessagingStreamingConfigurations.build(context)
135
141
  when :redact_channel_message
136
142
  Aws::ChimeSDKMessaging::Endpoints::RedactChannelMessage.build(context)
137
143
  when :search_channels