aws-sdk-pinpoint 1.34.0 → 1.35.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 +4 -4
- data/lib/aws-sdk-pinpoint.rb +7 -4
- data/lib/aws-sdk-pinpoint/client.rb +15 -5
- data/lib/aws-sdk-pinpoint/errors.rb +33 -0
- data/lib/aws-sdk-pinpoint/resource.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22c586f79413e4a62633d28630ddd08cb70fbf3a
|
4
|
+
data.tar.gz: 99067e3afc319b847f66f991d5a29c7e66d7d15e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2402c1771aa229448fb1b2977b058793bb2119e6bd60dac228aa103496e66782472a250a611945971738570d842a18e97b76c3d42de22682914d9e598a574510
|
7
|
+
data.tar.gz: cc8f9821ad74d1fab01b5f5c54484408bcfb1605b106aaada3722f0692593e98e7ae2e17a118ed86473919068405e0ccf46e5004adf4465466438a7ed3c6b0cf
|
data/lib/aws-sdk-pinpoint.rb
CHANGED
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-pinpoint/customizations'
|
|
24
24
|
# methods each accept a hash of request parameters and return a response
|
25
25
|
# structure.
|
26
26
|
#
|
27
|
+
# pinpoint = Aws::Pinpoint::Client.new
|
28
|
+
# resp = pinpoint.create_app(params)
|
29
|
+
#
|
27
30
|
# See {Client} for more information.
|
28
31
|
#
|
29
32
|
# # Errors
|
30
33
|
#
|
31
|
-
# Errors returned from Amazon Pinpoint
|
32
|
-
# extend {Errors::ServiceError}.
|
34
|
+
# Errors returned from Amazon Pinpoint are defined in the
|
35
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
33
36
|
#
|
34
37
|
# begin
|
35
38
|
# # do stuff
|
36
39
|
# rescue Aws::Pinpoint::Errors::ServiceError
|
37
|
-
# # rescues all
|
40
|
+
# # rescues all Amazon Pinpoint API errors
|
38
41
|
# end
|
39
42
|
#
|
40
43
|
# See {Errors} for more information.
|
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-pinpoint/customizations'
|
|
42
45
|
# @service
|
43
46
|
module Aws::Pinpoint
|
44
47
|
|
45
|
-
GEM_VERSION = '1.
|
48
|
+
GEM_VERSION = '1.35.0'
|
46
49
|
|
47
50
|
end
|
@@ -30,6 +30,16 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:pinpoint)
|
31
31
|
|
32
32
|
module Aws::Pinpoint
|
33
|
+
# An API client for Pinpoint. To construct a client, you need to configure a +:region+ and +:credentials+.
|
34
|
+
# client = Aws::Pinpoint::Client.new(
|
35
|
+
# region: region_name,
|
36
|
+
# credentials: credentials,
|
37
|
+
# # ...
|
38
|
+
# )
|
39
|
+
# For details on configuring region and credentials see
|
40
|
+
# the {developer-guide}[https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html].
|
41
|
+
#
|
42
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
43
|
class Client < Seahorse::Client::Base
|
34
44
|
|
35
45
|
include Aws::ClientStubs
|
@@ -209,16 +219,16 @@ module Aws::Pinpoint
|
|
209
219
|
# requests through. Formatted like 'http://proxy.com:123'.
|
210
220
|
#
|
211
221
|
# @option options [Float] :http_open_timeout (15) The number of
|
212
|
-
# seconds to wait when opening a HTTP session before
|
222
|
+
# seconds to wait when opening a HTTP session before raising a
|
213
223
|
# `Timeout::Error`.
|
214
224
|
#
|
215
225
|
# @option options [Integer] :http_read_timeout (60) The default
|
216
226
|
# number of seconds to wait for response data. This value can
|
217
227
|
# safely be set
|
218
|
-
# per-request on the session
|
228
|
+
# per-request on the session yielded by {#session_for}.
|
219
229
|
#
|
220
230
|
# @option options [Float] :http_idle_timeout (5) The number of
|
221
|
-
# seconds a connection is allowed to sit
|
231
|
+
# seconds a connection is allowed to sit idle before it is
|
222
232
|
# considered stale. Stale connections are closed and removed
|
223
233
|
# from the pool before making a request.
|
224
234
|
#
|
@@ -227,7 +237,7 @@ module Aws::Pinpoint
|
|
227
237
|
# request body. This option has no effect unless the request has
|
228
238
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
229
239
|
# disables this behaviour. This value can safely be set per
|
230
|
-
# request on the session
|
240
|
+
# request on the session yielded by {#session_for}.
|
231
241
|
#
|
232
242
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
233
243
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -10167,7 +10177,7 @@ module Aws::Pinpoint
|
|
10167
10177
|
params: params,
|
10168
10178
|
config: config)
|
10169
10179
|
context[:gem_name] = 'aws-sdk-pinpoint'
|
10170
|
-
context[:gem_version] = '1.
|
10180
|
+
context[:gem_version] = '1.35.0'
|
10171
10181
|
Seahorse::Client::Request.new(handlers, context)
|
10172
10182
|
end
|
10173
10183
|
|
@@ -6,6 +6,39 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Pinpoint
|
9
|
+
|
10
|
+
# When Pinpoint returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::Pinpoint::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all Pinpoint errors using ServiceError:
|
14
|
+
# begin
|
15
|
+
# # do stuff
|
16
|
+
# rescue Aws::Pinpoint::Errors::ServiceError
|
17
|
+
# # rescues all Pinpoint API errors
|
18
|
+
# end
|
19
|
+
#
|
20
|
+
# ## Request Context
|
21
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
22
|
+
# information about the request that generated the error, including:
|
23
|
+
# *
|
24
|
+
# * #params - The request params
|
25
|
+
# * #operation_name - Name of the API operation invoked
|
26
|
+
# * #http_request
|
27
|
+
# * #http_response
|
28
|
+
# * etc ...
|
29
|
+
#
|
30
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
31
|
+
#
|
32
|
+
# ## Error Classes
|
33
|
+
# * {BadRequestException}
|
34
|
+
# * {ForbiddenException}
|
35
|
+
# * {InternalServerErrorException}
|
36
|
+
# * {MethodNotAllowedException}
|
37
|
+
# * {NotFoundException}
|
38
|
+
# * {PayloadTooLargeException}
|
39
|
+
# * {TooManyRequestsException}
|
40
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
41
|
+
# if they are not defined above.
|
9
42
|
module Errors
|
10
43
|
|
11
44
|
extend Aws::Errors::DynamicErrors
|
@@ -6,6 +6,13 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Pinpoint
|
9
|
+
# This class provides a resource oriented interface for Pinpoint.
|
10
|
+
# To create a resource object:
|
11
|
+
# resource = Aws::Pinpoint::Resource.new(region: 'us-west-2')
|
12
|
+
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
+
# If you do not pass +:client+, a default client will be constructed.
|
14
|
+
# client = Aws::Pinpoint::Client.new(region: 'us-west-2')
|
15
|
+
# resource = Aws::Pinpoint::Resource.new(client: client)
|
9
16
|
class Resource
|
10
17
|
|
11
18
|
# @param options ({})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-pinpoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.35.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: 2020-03-
|
11
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|