aws-sdk-chimesdkmessaging 1.16.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-chimesdkmessaging/client.rb +286 -164
- data/lib/aws-sdk-chimesdkmessaging/client_api.rb +45 -5
- data/lib/aws-sdk-chimesdkmessaging/endpoints.rb +14 -0
- data/lib/aws-sdk-chimesdkmessaging/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-chimesdkmessaging/types.rb +188 -72
- data/lib/aws-sdk-chimesdkmessaging.rb +1 -1
- metadata +2 -2
@@ -66,6 +66,7 @@ module Aws::ChimeSDKMessaging
|
|
66
66
|
ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
|
67
67
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
68
68
|
Content = Shapes::StringShape.new(name: 'Content')
|
69
|
+
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
69
70
|
CreateChannelBanRequest = Shapes::StructureShape.new(name: 'CreateChannelBanRequest')
|
70
71
|
CreateChannelBanResponse = Shapes::StructureShape.new(name: 'CreateChannelBanResponse')
|
71
72
|
CreateChannelFlowRequest = Shapes::StructureShape.new(name: 'CreateChannelFlowRequest')
|
@@ -100,6 +101,9 @@ module Aws::ChimeSDKMessaging
|
|
100
101
|
DisassociateChannelFlowRequest = Shapes::StructureShape.new(name: 'DisassociateChannelFlowRequest')
|
101
102
|
ElasticChannelConfiguration = Shapes::StructureShape.new(name: 'ElasticChannelConfiguration')
|
102
103
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
104
|
+
ExpirationCriterion = Shapes::StringShape.new(name: 'ExpirationCriterion')
|
105
|
+
ExpirationDays = Shapes::IntegerShape.new(name: 'ExpirationDays')
|
106
|
+
ExpirationSettings = Shapes::StructureShape.new(name: 'ExpirationSettings')
|
103
107
|
FallbackAction = Shapes::StringShape.new(name: 'FallbackAction')
|
104
108
|
FilterRule = Shapes::StringShape.new(name: 'FilterRule')
|
105
109
|
ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
|
@@ -167,6 +171,8 @@ module Aws::ChimeSDKMessaging
|
|
167
171
|
PushNotificationPreferences = Shapes::StructureShape.new(name: 'PushNotificationPreferences')
|
168
172
|
PushNotificationTitle = Shapes::StringShape.new(name: 'PushNotificationTitle')
|
169
173
|
PushNotificationType = Shapes::StringShape.new(name: 'PushNotificationType')
|
174
|
+
PutChannelExpirationSettingsRequest = Shapes::StructureShape.new(name: 'PutChannelExpirationSettingsRequest')
|
175
|
+
PutChannelExpirationSettingsResponse = Shapes::StructureShape.new(name: 'PutChannelExpirationSettingsResponse')
|
170
176
|
PutChannelMembershipPreferencesRequest = Shapes::StructureShape.new(name: 'PutChannelMembershipPreferencesRequest')
|
171
177
|
PutChannelMembershipPreferencesResponse = Shapes::StructureShape.new(name: 'PutChannelMembershipPreferencesResponse')
|
172
178
|
PutMessagingStreamingConfigurationsRequest = Shapes::StructureShape.new(name: 'PutMessagingStreamingConfigurationsRequest')
|
@@ -266,6 +272,7 @@ module Aws::ChimeSDKMessaging
|
|
266
272
|
Channel.add_member(:last_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedTimestamp"))
|
267
273
|
Channel.add_member(:channel_flow_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelFlowArn"))
|
268
274
|
Channel.add_member(:elastic_channel_configuration, Shapes::ShapeRef.new(shape: ElasticChannelConfiguration, location_name: "ElasticChannelConfiguration"))
|
275
|
+
Channel.add_member(:expiration_settings, Shapes::ShapeRef.new(shape: ExpirationSettings, location_name: "ExpirationSettings"))
|
269
276
|
Channel.struct_class = Types::Channel
|
270
277
|
|
271
278
|
ChannelAssociatedWithFlowSummary.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyResourceName, location_name: "Name"))
|
@@ -351,6 +358,7 @@ module Aws::ChimeSDKMessaging
|
|
351
358
|
ChannelMessage.add_member(:status, Shapes::ShapeRef.new(shape: ChannelMessageStatusStructure, location_name: "Status"))
|
352
359
|
ChannelMessage.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageAttributeMap, location_name: "MessageAttributes"))
|
353
360
|
ChannelMessage.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
|
361
|
+
ChannelMessage.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location_name: "ContentType"))
|
354
362
|
ChannelMessage.struct_class = Types::ChannelMessage
|
355
363
|
|
356
364
|
ChannelMessageCallback.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, required: true, location_name: "MessageId"))
|
@@ -359,6 +367,7 @@ module Aws::ChimeSDKMessaging
|
|
359
367
|
ChannelMessageCallback.add_member(:push_notification, Shapes::ShapeRef.new(shape: PushNotificationConfiguration, location_name: "PushNotification"))
|
360
368
|
ChannelMessageCallback.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageAttributeMap, location_name: "MessageAttributes"))
|
361
369
|
ChannelMessageCallback.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
|
370
|
+
ChannelMessageCallback.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location_name: "ContentType"))
|
362
371
|
ChannelMessageCallback.struct_class = Types::ChannelMessageCallback
|
363
372
|
|
364
373
|
ChannelMessageStatusStructure.add_member(:value, Shapes::ShapeRef.new(shape: ChannelMessageStatus, location_name: "Value"))
|
@@ -376,6 +385,7 @@ module Aws::ChimeSDKMessaging
|
|
376
385
|
ChannelMessageSummary.add_member(:redacted, Shapes::ShapeRef.new(shape: NonNullableBoolean, location_name: "Redacted"))
|
377
386
|
ChannelMessageSummary.add_member(:status, Shapes::ShapeRef.new(shape: ChannelMessageStatusStructure, location_name: "Status"))
|
378
387
|
ChannelMessageSummary.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageAttributeMap, location_name: "MessageAttributes"))
|
388
|
+
ChannelMessageSummary.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location_name: "ContentType"))
|
379
389
|
ChannelMessageSummary.struct_class = Types::ChannelMessageSummary
|
380
390
|
|
381
391
|
ChannelMessageSummaryList.member = Shapes::ShapeRef.new(shape: ChannelMessageSummary)
|
@@ -425,7 +435,7 @@ module Aws::ChimeSDKMessaging
|
|
425
435
|
CreateChannelFlowRequest.add_member(:processors, Shapes::ShapeRef.new(shape: ProcessorList, required: true, location_name: "Processors"))
|
426
436
|
CreateChannelFlowRequest.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyResourceName, required: true, location_name: "Name"))
|
427
437
|
CreateChannelFlowRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
428
|
-
CreateChannelFlowRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, required: true, location_name: "ClientRequestToken"))
|
438
|
+
CreateChannelFlowRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, required: true, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
|
429
439
|
CreateChannelFlowRequest.struct_class = Types::CreateChannelFlowRequest
|
430
440
|
|
431
441
|
CreateChannelFlowResponse.add_member(:channel_flow_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelFlowArn"))
|
@@ -464,6 +474,7 @@ module Aws::ChimeSDKMessaging
|
|
464
474
|
CreateChannelRequest.add_member(:member_arns, Shapes::ShapeRef.new(shape: ChannelMemberArns, location_name: "MemberArns"))
|
465
475
|
CreateChannelRequest.add_member(:moderator_arns, Shapes::ShapeRef.new(shape: ChannelModeratorArns, location_name: "ModeratorArns"))
|
466
476
|
CreateChannelRequest.add_member(:elastic_channel_configuration, Shapes::ShapeRef.new(shape: ElasticChannelConfiguration, location_name: "ElasticChannelConfiguration"))
|
477
|
+
CreateChannelRequest.add_member(:expiration_settings, Shapes::ShapeRef.new(shape: ExpirationSettings, location_name: "ExpirationSettings"))
|
467
478
|
CreateChannelRequest.struct_class = Types::CreateChannelRequest
|
468
479
|
|
469
480
|
CreateChannelResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelArn"))
|
@@ -496,7 +507,6 @@ module Aws::ChimeSDKMessaging
|
|
496
507
|
|
497
508
|
DeleteChannelRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
498
509
|
DeleteChannelRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "header", location_name: "x-amz-chime-bearer"))
|
499
|
-
DeleteChannelRequest.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location: "querystring", location_name: "sub-channel-id"))
|
500
510
|
DeleteChannelRequest.struct_class = Types::DeleteChannelRequest
|
501
511
|
|
502
512
|
DeleteMessagingStreamingConfigurationsRequest.add_member(:app_instance_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "appInstanceArn"))
|
@@ -566,6 +576,10 @@ module Aws::ChimeSDKMessaging
|
|
566
576
|
ElasticChannelConfiguration.add_member(:minimum_membership_percentage, Shapes::ShapeRef.new(shape: MinimumMembershipPercentage, required: true, location_name: "MinimumMembershipPercentage"))
|
567
577
|
ElasticChannelConfiguration.struct_class = Types::ElasticChannelConfiguration
|
568
578
|
|
579
|
+
ExpirationSettings.add_member(:expiration_days, Shapes::ShapeRef.new(shape: ExpirationDays, required: true, location_name: "ExpirationDays"))
|
580
|
+
ExpirationSettings.add_member(:expiration_criterion, Shapes::ShapeRef.new(shape: ExpirationCriterion, required: true, location_name: "ExpirationCriterion"))
|
581
|
+
ExpirationSettings.struct_class = Types::ExpirationSettings
|
582
|
+
|
569
583
|
ForbiddenException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
|
570
584
|
ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
571
585
|
ForbiddenException.struct_class = Types::ForbiddenException
|
@@ -773,6 +787,15 @@ module Aws::ChimeSDKMessaging
|
|
773
787
|
PushNotificationPreferences.add_member(:filter_rule, Shapes::ShapeRef.new(shape: FilterRule, location_name: "FilterRule"))
|
774
788
|
PushNotificationPreferences.struct_class = Types::PushNotificationPreferences
|
775
789
|
|
790
|
+
PutChannelExpirationSettingsRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
791
|
+
PutChannelExpirationSettingsRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, location: "header", location_name: "x-amz-chime-bearer"))
|
792
|
+
PutChannelExpirationSettingsRequest.add_member(:expiration_settings, Shapes::ShapeRef.new(shape: ExpirationSettings, location_name: "ExpirationSettings"))
|
793
|
+
PutChannelExpirationSettingsRequest.struct_class = Types::PutChannelExpirationSettingsRequest
|
794
|
+
|
795
|
+
PutChannelExpirationSettingsResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelArn"))
|
796
|
+
PutChannelExpirationSettingsResponse.add_member(:expiration_settings, Shapes::ShapeRef.new(shape: ExpirationSettings, location_name: "ExpirationSettings"))
|
797
|
+
PutChannelExpirationSettingsResponse.struct_class = Types::PutChannelExpirationSettingsResponse
|
798
|
+
|
776
799
|
PutChannelMembershipPreferencesRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
777
800
|
PutChannelMembershipPreferencesRequest.add_member(:member_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "memberArn"))
|
778
801
|
PutChannelMembershipPreferencesRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "header", location_name: "x-amz-chime-bearer"))
|
@@ -835,6 +858,7 @@ module Aws::ChimeSDKMessaging
|
|
835
858
|
SendChannelMessageRequest.add_member(:push_notification, Shapes::ShapeRef.new(shape: PushNotificationConfiguration, location_name: "PushNotification"))
|
836
859
|
SendChannelMessageRequest.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageAttributeMap, location_name: "MessageAttributes"))
|
837
860
|
SendChannelMessageRequest.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
|
861
|
+
SendChannelMessageRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location_name: "ContentType"))
|
838
862
|
SendChannelMessageRequest.struct_class = Types::SendChannelMessageRequest
|
839
863
|
|
840
864
|
SendChannelMessageResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelArn"))
|
@@ -897,10 +921,11 @@ module Aws::ChimeSDKMessaging
|
|
897
921
|
|
898
922
|
UpdateChannelMessageRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
899
923
|
UpdateChannelMessageRequest.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, required: true, location: "uri", location_name: "messageId"))
|
900
|
-
UpdateChannelMessageRequest.add_member(:content, Shapes::ShapeRef.new(shape:
|
924
|
+
UpdateChannelMessageRequest.add_member(:content, Shapes::ShapeRef.new(shape: NonEmptyContent, required: true, location_name: "Content"))
|
901
925
|
UpdateChannelMessageRequest.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "Metadata"))
|
902
926
|
UpdateChannelMessageRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "header", location_name: "x-amz-chime-bearer"))
|
903
927
|
UpdateChannelMessageRequest.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
|
928
|
+
UpdateChannelMessageRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location_name: "ContentType"))
|
904
929
|
UpdateChannelMessageRequest.struct_class = Types::UpdateChannelMessageRequest
|
905
930
|
|
906
931
|
UpdateChannelMessageResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelArn"))
|
@@ -911,11 +936,9 @@ module Aws::ChimeSDKMessaging
|
|
911
936
|
|
912
937
|
UpdateChannelReadMarkerRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
913
938
|
UpdateChannelReadMarkerRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "header", location_name: "x-amz-chime-bearer"))
|
914
|
-
UpdateChannelReadMarkerRequest.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
|
915
939
|
UpdateChannelReadMarkerRequest.struct_class = Types::UpdateChannelReadMarkerRequest
|
916
940
|
|
917
941
|
UpdateChannelReadMarkerResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelArn"))
|
918
|
-
UpdateChannelReadMarkerResponse.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
|
919
942
|
UpdateChannelReadMarkerResponse.struct_class = Types::UpdateChannelReadMarkerResponse
|
920
943
|
|
921
944
|
UpdateChannelRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
@@ -1081,6 +1104,7 @@ module Aws::ChimeSDKMessaging
|
|
1081
1104
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1082
1105
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1083
1106
|
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
1107
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1084
1108
|
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
|
1085
1109
|
o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
|
1086
1110
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
@@ -1165,6 +1189,7 @@ module Aws::ChimeSDKMessaging
|
|
1165
1189
|
o.http_request_uri = "/app-instances/{appInstanceArn}/streaming-configurations"
|
1166
1190
|
o.input = Shapes::ShapeRef.new(shape: DeleteMessagingStreamingConfigurationsRequest)
|
1167
1191
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1192
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1168
1193
|
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
1169
1194
|
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
|
1170
1195
|
o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
|
@@ -1574,6 +1599,21 @@ module Aws::ChimeSDKMessaging
|
|
1574
1599
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
1575
1600
|
end)
|
1576
1601
|
|
1602
|
+
api.add_operation(:put_channel_expiration_settings, Seahorse::Model::Operation.new.tap do |o|
|
1603
|
+
o.name = "PutChannelExpirationSettings"
|
1604
|
+
o.http_method = "PUT"
|
1605
|
+
o.http_request_uri = "/channels/{channelArn}/expiration-settings"
|
1606
|
+
o.input = Shapes::ShapeRef.new(shape: PutChannelExpirationSettingsRequest)
|
1607
|
+
o.output = Shapes::ShapeRef.new(shape: PutChannelExpirationSettingsResponse)
|
1608
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1609
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
1610
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1611
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
|
1612
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
|
1613
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1614
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
1615
|
+
end)
|
1616
|
+
|
1577
1617
|
api.add_operation(:put_channel_membership_preferences, Seahorse::Model::Operation.new.tap do |o|
|
1578
1618
|
o.name = "PutChannelMembershipPreferences"
|
1579
1619
|
o.http_method = "PUT"
|
@@ -557,6 +557,20 @@ module Aws::ChimeSDKMessaging
|
|
557
557
|
end
|
558
558
|
end
|
559
559
|
|
560
|
+
class PutChannelExpirationSettings
|
561
|
+
def self.build(context)
|
562
|
+
unless context.config.regional_endpoint
|
563
|
+
endpoint = context.config.endpoint.to_s
|
564
|
+
end
|
565
|
+
Aws::ChimeSDKMessaging::EndpointParameters.new(
|
566
|
+
region: context.config.region,
|
567
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
568
|
+
use_fips: context.config.use_fips_endpoint,
|
569
|
+
endpoint: endpoint,
|
570
|
+
)
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
560
574
|
class PutChannelMembershipPreferences
|
561
575
|
def self.build(context)
|
562
576
|
unless context.config.regional_endpoint
|
@@ -134,6 +134,8 @@ module Aws::ChimeSDKMessaging
|
|
134
134
|
Aws::ChimeSDKMessaging::Endpoints::ListSubChannels.build(context)
|
135
135
|
when :list_tags_for_resource
|
136
136
|
Aws::ChimeSDKMessaging::Endpoints::ListTagsForResource.build(context)
|
137
|
+
when :put_channel_expiration_settings
|
138
|
+
Aws::ChimeSDKMessaging::Endpoints::PutChannelExpirationSettings.build(context)
|
137
139
|
when :put_channel_membership_preferences
|
138
140
|
Aws::ChimeSDKMessaging::Endpoints::PutChannelMembershipPreferences.build(context)
|
139
141
|
when :put_messaging_streaming_configurations
|