aws-sdk-connectparticipant 1.22.0 → 1.24.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-connectparticipant/client.rb +20 -3
- data/lib/aws-sdk-connectparticipant/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-connectparticipant/endpoint_provider.rb +110 -0
- data/lib/aws-sdk-connectparticipant/endpoints.rb +127 -0
- data/lib/aws-sdk-connectparticipant/plugins/endpoints.rb +84 -0
- data/lib/aws-sdk-connectparticipant/types.rb +0 -91
- data/lib/aws-sdk-connectparticipant.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 639a38f06bdc854a398cb63354b0f7d83a4ca06839e9507c7f78e5f03e2d8127
|
4
|
+
data.tar.gz: 0db47b0dc51b0f7d2f391266a074b39b8ce5d575439322fc90d4eea22efdf9e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c4b2cca59650e6ec2678002b1b4140c9dec8e8b914e50c4365ba763dbd560acf79116f7e19588f70c57c458ab904ab33711f8ca652e2ac5a5cf6fd792ff177a
|
7
|
+
data.tar.gz: 8a742cf7075df15439422fa332d71d982d883aa3ba58e41b1cf170e038a6b6393ac331443a45c6ed8983f1e3f1f7c55067266f05d8a7306090646c82cbf17091
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.24.0 (2022-12-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon Connect Chat now allows for JSON (application/json) message types to be sent in the SendMessage API.
|
8
|
+
|
9
|
+
1.23.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.22.0 (2022-02-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.24.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:connectparticipant)
|
@@ -79,8 +79,9 @@ module Aws::ConnectParticipant
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::ConnectParticipant::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::ConnectParticipant
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::ConnectParticipant
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::ConnectParticipant::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ConnectParticipant::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -847,7 +864,7 @@ module Aws::ConnectParticipant
|
|
847
864
|
params: params,
|
848
865
|
config: config)
|
849
866
|
context[:gem_name] = 'aws-sdk-connectparticipant'
|
850
|
-
context[:gem_version] = '1.
|
867
|
+
context[:gem_version] = '1.24.0'
|
851
868
|
Seahorse::Client::Request.new(handlers, context)
|
852
869
|
end
|
853
870
|
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ConnectParticipant
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
56
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
57
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
|
+
if self[:use_dual_stack].nil?
|
59
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
60
|
+
end
|
61
|
+
self[:use_fips] = options[:use_fips]
|
62
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
63
|
+
if self[:use_fips].nil?
|
64
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
65
|
+
end
|
66
|
+
self[:endpoint] = options[:endpoint]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ConnectParticipant
|
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
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
+
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
+
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
35
|
+
aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
|
36
|
+
ZWZhdWx0IjpmYWxzZ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
|
+
Oi8vcGFydGljaXBhbnQuY29ubmVjdC57UmVnaW9ufS57UGFydGl0aW9uUmVz
|
99
|
+
dWx0I2R1YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVh
|
100
|
+
ZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsiY29uZGl0aW9ucyI6
|
101
|
+
W10sImVycm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0IHRoaXMgcGFy
|
102
|
+
dGl0aW9uIGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlwZSI6ImVy
|
103
|
+
cm9yIn1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJo
|
104
|
+
dHRwczovL3BhcnRpY2lwYW50LmNvbm5lY3Que1JlZ2lvbn0ue1BhcnRpdGlv
|
105
|
+
blJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMi
|
106
|
+
Ont9fSwidHlwZSI6ImVuZHBvaW50In1dfV19
|
107
|
+
|
108
|
+
JSON
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::ConnectParticipant
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class CompleteAttachmentUpload
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::ConnectParticipant::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class CreateParticipantConnection
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::ConnectParticipant::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class DisconnectParticipant
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::ConnectParticipant::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class GetAttachment
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::ConnectParticipant::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class GetTranscript
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::ConnectParticipant::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class SendEvent
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::ConnectParticipant::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class SendMessage
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::ConnectParticipant::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class StartAttachmentUpload
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::ConnectParticipant::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
127
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::ConnectParticipant
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::ConnectParticipant::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::ConnectParticipant::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::ConnectParticipant::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :complete_attachment_upload
|
60
|
+
Aws::ConnectParticipant::Endpoints::CompleteAttachmentUpload.build(context)
|
61
|
+
when :create_participant_connection
|
62
|
+
Aws::ConnectParticipant::Endpoints::CreateParticipantConnection.build(context)
|
63
|
+
when :disconnect_participant
|
64
|
+
Aws::ConnectParticipant::Endpoints::DisconnectParticipant.build(context)
|
65
|
+
when :get_attachment
|
66
|
+
Aws::ConnectParticipant::Endpoints::GetAttachment.build(context)
|
67
|
+
when :get_transcript
|
68
|
+
Aws::ConnectParticipant::Endpoints::GetTranscript.build(context)
|
69
|
+
when :send_event
|
70
|
+
Aws::ConnectParticipant::Endpoints::SendEvent.build(context)
|
71
|
+
when :send_message
|
72
|
+
Aws::ConnectParticipant::Endpoints::SendMessage.build(context)
|
73
|
+
when :start_attachment_upload
|
74
|
+
Aws::ConnectParticipant::Endpoints::StartAttachmentUpload.build(context)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def add_handlers(handlers, _config)
|
80
|
+
handlers.add(Handler, step: :build, priority: 75)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -59,15 +59,6 @@ module Aws::ConnectParticipant
|
|
59
59
|
include Aws::Structure
|
60
60
|
end
|
61
61
|
|
62
|
-
# @note When making an API call, you may pass CompleteAttachmentUploadRequest
|
63
|
-
# data as a hash:
|
64
|
-
#
|
65
|
-
# {
|
66
|
-
# attachment_ids: ["ArtifactId"], # required
|
67
|
-
# client_token: "NonEmptyClientToken", # required
|
68
|
-
# connection_token: "ParticipantToken", # required
|
69
|
-
# }
|
70
|
-
#
|
71
62
|
# @!attribute [rw] attachment_ids
|
72
63
|
# A list of unique identifiers for the attachments.
|
73
64
|
# @return [Array<String>]
|
@@ -134,15 +125,6 @@ module Aws::ConnectParticipant
|
|
134
125
|
include Aws::Structure
|
135
126
|
end
|
136
127
|
|
137
|
-
# @note When making an API call, you may pass CreateParticipantConnectionRequest
|
138
|
-
# data as a hash:
|
139
|
-
#
|
140
|
-
# {
|
141
|
-
# type: ["WEBSOCKET"], # required, accepts WEBSOCKET, CONNECTION_CREDENTIALS
|
142
|
-
# participant_token: "ParticipantToken", # required
|
143
|
-
# connect_participant: false,
|
144
|
-
# }
|
145
|
-
#
|
146
128
|
# @!attribute [rw] type
|
147
129
|
# Type of connection information required.
|
148
130
|
# @return [Array<String>]
|
@@ -191,14 +173,6 @@ module Aws::ConnectParticipant
|
|
191
173
|
include Aws::Structure
|
192
174
|
end
|
193
175
|
|
194
|
-
# @note When making an API call, you may pass DisconnectParticipantRequest
|
195
|
-
# data as a hash:
|
196
|
-
#
|
197
|
-
# {
|
198
|
-
# client_token: "ClientToken",
|
199
|
-
# connection_token: "ParticipantToken", # required
|
200
|
-
# }
|
201
|
-
#
|
202
176
|
# @!attribute [rw] client_token
|
203
177
|
# A unique, case-sensitive identifier that you provide to ensure the
|
204
178
|
# idempotency of the request.
|
@@ -225,14 +199,6 @@ module Aws::ConnectParticipant
|
|
225
199
|
#
|
226
200
|
class DisconnectParticipantResponse < Aws::EmptyStructure; end
|
227
201
|
|
228
|
-
# @note When making an API call, you may pass GetAttachmentRequest
|
229
|
-
# data as a hash:
|
230
|
-
#
|
231
|
-
# {
|
232
|
-
# attachment_id: "ArtifactId", # required
|
233
|
-
# connection_token: "ParticipantToken", # required
|
234
|
-
# }
|
235
|
-
#
|
236
202
|
# @!attribute [rw] attachment_id
|
237
203
|
# A unique identifier for the attachment.
|
238
204
|
# @return [String]
|
@@ -275,23 +241,6 @@ module Aws::ConnectParticipant
|
|
275
241
|
include Aws::Structure
|
276
242
|
end
|
277
243
|
|
278
|
-
# @note When making an API call, you may pass GetTranscriptRequest
|
279
|
-
# data as a hash:
|
280
|
-
#
|
281
|
-
# {
|
282
|
-
# contact_id: "ContactId",
|
283
|
-
# max_results: 1,
|
284
|
-
# next_token: "NextToken",
|
285
|
-
# scan_direction: "FORWARD", # accepts FORWARD, BACKWARD
|
286
|
-
# sort_order: "DESCENDING", # accepts DESCENDING, ASCENDING
|
287
|
-
# start_position: {
|
288
|
-
# id: "ChatItemId",
|
289
|
-
# absolute_time: "Instant",
|
290
|
-
# most_recent: 1,
|
291
|
-
# },
|
292
|
-
# connection_token: "ParticipantToken", # required
|
293
|
-
# }
|
294
|
-
#
|
295
244
|
# @!attribute [rw] contact_id
|
296
245
|
# The contactId from the current contact chain for which transcript is
|
297
246
|
# needed.
|
@@ -434,16 +383,6 @@ module Aws::ConnectParticipant
|
|
434
383
|
include Aws::Structure
|
435
384
|
end
|
436
385
|
|
437
|
-
# @note When making an API call, you may pass SendEventRequest
|
438
|
-
# data as a hash:
|
439
|
-
#
|
440
|
-
# {
|
441
|
-
# content_type: "ChatContentType", # required
|
442
|
-
# content: "ChatContent",
|
443
|
-
# client_token: "ClientToken",
|
444
|
-
# connection_token: "ParticipantToken", # required
|
445
|
-
# }
|
446
|
-
#
|
447
386
|
# @!attribute [rw] content_type
|
448
387
|
# The content type of the request. Supported types are:
|
449
388
|
#
|
@@ -501,16 +440,6 @@ module Aws::ConnectParticipant
|
|
501
440
|
include Aws::Structure
|
502
441
|
end
|
503
442
|
|
504
|
-
# @note When making an API call, you may pass SendMessageRequest
|
505
|
-
# data as a hash:
|
506
|
-
#
|
507
|
-
# {
|
508
|
-
# content_type: "ChatContentType", # required
|
509
|
-
# content: "ChatContent", # required
|
510
|
-
# client_token: "ClientToken",
|
511
|
-
# connection_token: "ParticipantToken", # required
|
512
|
-
# }
|
513
|
-
#
|
514
443
|
# @!attribute [rw] content_type
|
515
444
|
# The type of the content. Supported types are text/plain.
|
516
445
|
# @return [String]
|
@@ -575,17 +504,6 @@ module Aws::ConnectParticipant
|
|
575
504
|
include Aws::Structure
|
576
505
|
end
|
577
506
|
|
578
|
-
# @note When making an API call, you may pass StartAttachmentUploadRequest
|
579
|
-
# data as a hash:
|
580
|
-
#
|
581
|
-
# {
|
582
|
-
# content_type: "ContentType", # required
|
583
|
-
# attachment_size_in_bytes: 1, # required
|
584
|
-
# attachment_name: "AttachmentName", # required
|
585
|
-
# client_token: "NonEmptyClientToken", # required
|
586
|
-
# connection_token: "ParticipantToken", # required
|
587
|
-
# }
|
588
|
-
#
|
589
507
|
# @!attribute [rw] content_type
|
590
508
|
# Describes the MIME file type of the attachment. For a list of
|
591
509
|
# supported file types, see [Feature specifications][1] in the *Amazon
|
@@ -649,15 +567,6 @@ module Aws::ConnectParticipant
|
|
649
567
|
# A filtering option for where to start. For example, if you sent 100
|
650
568
|
# messages, start with message 50.
|
651
569
|
#
|
652
|
-
# @note When making an API call, you may pass StartPosition
|
653
|
-
# data as a hash:
|
654
|
-
#
|
655
|
-
# {
|
656
|
-
# id: "ChatItemId",
|
657
|
-
# absolute_time: "Instant",
|
658
|
-
# most_recent: 1,
|
659
|
-
# }
|
660
|
-
#
|
661
570
|
# @!attribute [rw] id
|
662
571
|
# The ID of the message or event where to start.
|
663
572
|
# @return [String]
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-connectparticipant/types'
|
15
15
|
require_relative 'aws-sdk-connectparticipant/client_api'
|
16
|
+
require_relative 'aws-sdk-connectparticipant/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-connectparticipant/client'
|
17
18
|
require_relative 'aws-sdk-connectparticipant/errors'
|
18
19
|
require_relative 'aws-sdk-connectparticipant/resource'
|
20
|
+
require_relative 'aws-sdk-connectparticipant/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-connectparticipant/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-connectparticipant/endpoints'
|
19
23
|
require_relative 'aws-sdk-connectparticipant/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Amazon Connect Participant Service. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-connectparticipant/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::ConnectParticipant
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.24.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-connectparticipant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-connectparticipant/client.rb
|
60
60
|
- lib/aws-sdk-connectparticipant/client_api.rb
|
61
61
|
- lib/aws-sdk-connectparticipant/customizations.rb
|
62
|
+
- lib/aws-sdk-connectparticipant/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-connectparticipant/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-connectparticipant/endpoints.rb
|
62
65
|
- lib/aws-sdk-connectparticipant/errors.rb
|
66
|
+
- lib/aws-sdk-connectparticipant/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-connectparticipant/resource.rb
|
64
68
|
- lib/aws-sdk-connectparticipant/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|