aws-sdk-chimesdkmessaging 1.16.0 → 1.17.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-chimesdkmessaging/client.rb +283 -154
- data/lib/aws-sdk-chimesdkmessaging/client_api.rb +42 -1
- 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 +182 -54
- 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)
|
@@ -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"))
|
@@ -566,6 +577,10 @@ module Aws::ChimeSDKMessaging
|
|
566
577
|
ElasticChannelConfiguration.add_member(:minimum_membership_percentage, Shapes::ShapeRef.new(shape: MinimumMembershipPercentage, required: true, location_name: "MinimumMembershipPercentage"))
|
567
578
|
ElasticChannelConfiguration.struct_class = Types::ElasticChannelConfiguration
|
568
579
|
|
580
|
+
ExpirationSettings.add_member(:expiration_days, Shapes::ShapeRef.new(shape: ExpirationDays, required: true, location_name: "ExpirationDays"))
|
581
|
+
ExpirationSettings.add_member(:expiration_criterion, Shapes::ShapeRef.new(shape: ExpirationCriterion, required: true, location_name: "ExpirationCriterion"))
|
582
|
+
ExpirationSettings.struct_class = Types::ExpirationSettings
|
583
|
+
|
569
584
|
ForbiddenException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
|
570
585
|
ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
571
586
|
ForbiddenException.struct_class = Types::ForbiddenException
|
@@ -773,6 +788,15 @@ module Aws::ChimeSDKMessaging
|
|
773
788
|
PushNotificationPreferences.add_member(:filter_rule, Shapes::ShapeRef.new(shape: FilterRule, location_name: "FilterRule"))
|
774
789
|
PushNotificationPreferences.struct_class = Types::PushNotificationPreferences
|
775
790
|
|
791
|
+
PutChannelExpirationSettingsRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
792
|
+
PutChannelExpirationSettingsRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, location: "header", location_name: "x-amz-chime-bearer"))
|
793
|
+
PutChannelExpirationSettingsRequest.add_member(:expiration_settings, Shapes::ShapeRef.new(shape: ExpirationSettings, location_name: "ExpirationSettings"))
|
794
|
+
PutChannelExpirationSettingsRequest.struct_class = Types::PutChannelExpirationSettingsRequest
|
795
|
+
|
796
|
+
PutChannelExpirationSettingsResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelArn"))
|
797
|
+
PutChannelExpirationSettingsResponse.add_member(:expiration_settings, Shapes::ShapeRef.new(shape: ExpirationSettings, location_name: "ExpirationSettings"))
|
798
|
+
PutChannelExpirationSettingsResponse.struct_class = Types::PutChannelExpirationSettingsResponse
|
799
|
+
|
776
800
|
PutChannelMembershipPreferencesRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
777
801
|
PutChannelMembershipPreferencesRequest.add_member(:member_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "memberArn"))
|
778
802
|
PutChannelMembershipPreferencesRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "header", location_name: "x-amz-chime-bearer"))
|
@@ -835,6 +859,7 @@ module Aws::ChimeSDKMessaging
|
|
835
859
|
SendChannelMessageRequest.add_member(:push_notification, Shapes::ShapeRef.new(shape: PushNotificationConfiguration, location_name: "PushNotification"))
|
836
860
|
SendChannelMessageRequest.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageAttributeMap, location_name: "MessageAttributes"))
|
837
861
|
SendChannelMessageRequest.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
|
862
|
+
SendChannelMessageRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location_name: "ContentType"))
|
838
863
|
SendChannelMessageRequest.struct_class = Types::SendChannelMessageRequest
|
839
864
|
|
840
865
|
SendChannelMessageResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelArn"))
|
@@ -897,10 +922,11 @@ module Aws::ChimeSDKMessaging
|
|
897
922
|
|
898
923
|
UpdateChannelMessageRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
|
899
924
|
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:
|
925
|
+
UpdateChannelMessageRequest.add_member(:content, Shapes::ShapeRef.new(shape: NonEmptyContent, required: true, location_name: "Content"))
|
901
926
|
UpdateChannelMessageRequest.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "Metadata"))
|
902
927
|
UpdateChannelMessageRequest.add_member(:chime_bearer, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "header", location_name: "x-amz-chime-bearer"))
|
903
928
|
UpdateChannelMessageRequest.add_member(:sub_channel_id, Shapes::ShapeRef.new(shape: SubChannelId, location_name: "SubChannelId"))
|
929
|
+
UpdateChannelMessageRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location_name: "ContentType"))
|
904
930
|
UpdateChannelMessageRequest.struct_class = Types::UpdateChannelMessageRequest
|
905
931
|
|
906
932
|
UpdateChannelMessageResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, location_name: "ChannelArn"))
|
@@ -1574,6 +1600,21 @@ module Aws::ChimeSDKMessaging
|
|
1574
1600
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
1575
1601
|
end)
|
1576
1602
|
|
1603
|
+
api.add_operation(:put_channel_expiration_settings, Seahorse::Model::Operation.new.tap do |o|
|
1604
|
+
o.name = "PutChannelExpirationSettings"
|
1605
|
+
o.http_method = "PUT"
|
1606
|
+
o.http_request_uri = "/channels/{channelArn}/expiration-settings"
|
1607
|
+
o.input = Shapes::ShapeRef.new(shape: PutChannelExpirationSettingsRequest)
|
1608
|
+
o.output = Shapes::ShapeRef.new(shape: PutChannelExpirationSettingsResponse)
|
1609
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1610
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
1611
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1612
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
|
1613
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
|
1614
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1615
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
1616
|
+
end)
|
1617
|
+
|
1577
1618
|
api.add_operation(:put_channel_membership_preferences, Seahorse::Model::Operation.new.tap do |o|
|
1578
1619
|
o.name = "PutChannelMembershipPreferences"
|
1579
1620
|
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
|