aws-sdk-codestarnotifications 1.20.0 → 1.22.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/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-codestarnotifications/client.rb +20 -3
- data/lib/aws-sdk-codestarnotifications/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-codestarnotifications/endpoint_provider.rb +51 -0
- data/lib/aws-sdk-codestarnotifications/endpoints.rb +197 -0
- data/lib/aws-sdk-codestarnotifications/plugins/endpoints.rb +94 -0
- data/lib/aws-sdk-codestarnotifications/types.rb +0 -179
- data/lib/aws-sdk-codestarnotifications.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: 829a78f8fd4117c258a6fd92e94fbaeb2629b4884177571cd68303657c998978
|
4
|
+
data.tar.gz: 1c5fe39366909fca76ebe12c86fbb3b24e5c7b8038da9ca5057bd654dd39474c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f48726bd04754944ff9e3eb4c8ba5b8573e94d55fe587431bf13469199d58ebd7eee741ee47bd236429e416c30e0ab4433cbf6de587cc037bc70a5fb0f4d976
|
7
|
+
data.tar.gz: '09202d0bcd6db296e5c2f599e65a7da8c44b04b1c1c9264dcfbf27757c372dbab16e936de4c0510ddbd0e521994fb7d5bbaaf17b8bed044cff59194e1985c4c9'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.22.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.21.0 (2022-10-25)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
15
|
+
|
4
16
|
1.20.0 (2022-09-16)
|
5
17
|
------------------
|
6
18
|
|
@@ -110,4 +122,4 @@ Unreleased Changes
|
|
110
122
|
1.0.0 (2019-11-05)
|
111
123
|
------------------
|
112
124
|
|
113
|
-
* Feature - Initial release of `aws-sdk-codestarnotifications`.
|
125
|
+
* Feature - Initial release of `aws-sdk-codestarnotifications`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.22.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(:codestarnotifications)
|
@@ -79,8 +79,9 @@ module Aws::CodeStarNotifications
|
|
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::CodeStarNotifications::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::CodeStarNotifications
|
|
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::CodeStarNotifications
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::CodeStarNotifications::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::CodeStarNotifications::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
|
#
|
@@ -978,7 +995,7 @@ module Aws::CodeStarNotifications
|
|
978
995
|
params: params,
|
979
996
|
config: config)
|
980
997
|
context[:gem_name] = 'aws-sdk-codestarnotifications'
|
981
|
-
context[:gem_version] = '1.
|
998
|
+
context[:gem_version] = '1.22.0'
|
982
999
|
Seahorse::Client::Request.new(handlers, context)
|
983
1000
|
end
|
984
1001
|
|
@@ -0,0 +1,66 @@
|
|
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::CodeStarNotifications
|
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
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,51 @@
|
|
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::CodeStarNotifications
|
11
|
+
class EndpointProvider
|
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
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"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codestar-notifications-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codestar-notifications-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codestar-notifications.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codestar-notifications.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,197 @@
|
|
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::CodeStarNotifications
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class CreateNotificationRule
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::CodeStarNotifications::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 DeleteNotificationRule
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::CodeStarNotifications::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 DeleteTarget
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::CodeStarNotifications::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 DescribeNotificationRule
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::CodeStarNotifications::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 ListEventTypes
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::CodeStarNotifications::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 ListNotificationRules
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::CodeStarNotifications::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 ListTagsForResource
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::CodeStarNotifications::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 ListTargets
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::CodeStarNotifications::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
|
+
class Subscribe
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class TagResource
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class Unsubscribe
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class UntagResource
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class UpdateNotificationRule
|
183
|
+
def self.build(context)
|
184
|
+
unless context.config.regional_endpoint
|
185
|
+
endpoint = context.config.endpoint.to_s
|
186
|
+
end
|
187
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
188
|
+
region: context.config.region,
|
189
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
end
|
197
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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::CodeStarNotifications
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::CodeStarNotifications::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::CodeStarNotifications::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::CodeStarNotifications::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 :create_notification_rule
|
60
|
+
Aws::CodeStarNotifications::Endpoints::CreateNotificationRule.build(context)
|
61
|
+
when :delete_notification_rule
|
62
|
+
Aws::CodeStarNotifications::Endpoints::DeleteNotificationRule.build(context)
|
63
|
+
when :delete_target
|
64
|
+
Aws::CodeStarNotifications::Endpoints::DeleteTarget.build(context)
|
65
|
+
when :describe_notification_rule
|
66
|
+
Aws::CodeStarNotifications::Endpoints::DescribeNotificationRule.build(context)
|
67
|
+
when :list_event_types
|
68
|
+
Aws::CodeStarNotifications::Endpoints::ListEventTypes.build(context)
|
69
|
+
when :list_notification_rules
|
70
|
+
Aws::CodeStarNotifications::Endpoints::ListNotificationRules.build(context)
|
71
|
+
when :list_tags_for_resource
|
72
|
+
Aws::CodeStarNotifications::Endpoints::ListTagsForResource.build(context)
|
73
|
+
when :list_targets
|
74
|
+
Aws::CodeStarNotifications::Endpoints::ListTargets.build(context)
|
75
|
+
when :subscribe
|
76
|
+
Aws::CodeStarNotifications::Endpoints::Subscribe.build(context)
|
77
|
+
when :tag_resource
|
78
|
+
Aws::CodeStarNotifications::Endpoints::TagResource.build(context)
|
79
|
+
when :unsubscribe
|
80
|
+
Aws::CodeStarNotifications::Endpoints::Unsubscribe.build(context)
|
81
|
+
when :untag_resource
|
82
|
+
Aws::CodeStarNotifications::Endpoints::UntagResource.build(context)
|
83
|
+
when :update_notification_rule
|
84
|
+
Aws::CodeStarNotifications::Endpoints::UpdateNotificationRule.build(context)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def add_handlers(handlers, _config)
|
90
|
+
handlers.add(Handler, step: :build, priority: 75)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -52,27 +52,6 @@ module Aws::CodeStarNotifications
|
|
52
52
|
include Aws::Structure
|
53
53
|
end
|
54
54
|
|
55
|
-
# @note When making an API call, you may pass CreateNotificationRuleRequest
|
56
|
-
# data as a hash:
|
57
|
-
#
|
58
|
-
# {
|
59
|
-
# name: "NotificationRuleName", # required
|
60
|
-
# event_type_ids: ["EventTypeId"], # required
|
61
|
-
# resource: "NotificationRuleResource", # required
|
62
|
-
# targets: [ # required
|
63
|
-
# {
|
64
|
-
# target_type: "TargetType",
|
65
|
-
# target_address: "TargetAddress",
|
66
|
-
# },
|
67
|
-
# ],
|
68
|
-
# detail_type: "BASIC", # required, accepts BASIC, FULL
|
69
|
-
# client_request_token: "ClientRequestToken",
|
70
|
-
# tags: {
|
71
|
-
# "TagKey" => "TagValue",
|
72
|
-
# },
|
73
|
-
# status: "ENABLED", # accepts ENABLED, DISABLED
|
74
|
-
# }
|
75
|
-
#
|
76
55
|
# @!attribute [rw] name
|
77
56
|
# The name for the notification rule. Notification rule names must be
|
78
57
|
# unique in your Amazon Web Services account.
|
@@ -160,13 +139,6 @@ module Aws::CodeStarNotifications
|
|
160
139
|
include Aws::Structure
|
161
140
|
end
|
162
141
|
|
163
|
-
# @note When making an API call, you may pass DeleteNotificationRuleRequest
|
164
|
-
# data as a hash:
|
165
|
-
#
|
166
|
-
# {
|
167
|
-
# arn: "NotificationRuleArn", # required
|
168
|
-
# }
|
169
|
-
#
|
170
142
|
# @!attribute [rw] arn
|
171
143
|
# The Amazon Resource Name (ARN) of the notification rule you want to
|
172
144
|
# delete.
|
@@ -192,14 +164,6 @@ module Aws::CodeStarNotifications
|
|
192
164
|
include Aws::Structure
|
193
165
|
end
|
194
166
|
|
195
|
-
# @note When making an API call, you may pass DeleteTargetRequest
|
196
|
-
# data as a hash:
|
197
|
-
#
|
198
|
-
# {
|
199
|
-
# target_address: "TargetAddress", # required
|
200
|
-
# force_unsubscribe_all: false,
|
201
|
-
# }
|
202
|
-
#
|
203
167
|
# @!attribute [rw] target_address
|
204
168
|
# The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot
|
205
169
|
# client to delete.
|
@@ -225,13 +189,6 @@ module Aws::CodeStarNotifications
|
|
225
189
|
#
|
226
190
|
class DeleteTargetResult < Aws::EmptyStructure; end
|
227
191
|
|
228
|
-
# @note When making an API call, you may pass DescribeNotificationRuleRequest
|
229
|
-
# data as a hash:
|
230
|
-
#
|
231
|
-
# {
|
232
|
-
# arn: "NotificationRuleArn", # required
|
233
|
-
# }
|
234
|
-
#
|
235
192
|
# @!attribute [rw] arn
|
236
193
|
# The Amazon Resource Name (ARN) of the notification rule.
|
237
194
|
# @return [String]
|
@@ -384,14 +341,6 @@ module Aws::CodeStarNotifications
|
|
384
341
|
# Information about a filter to apply to the list of returned event
|
385
342
|
# types. You can filter by resource type or service name.
|
386
343
|
#
|
387
|
-
# @note When making an API call, you may pass ListEventTypesFilter
|
388
|
-
# data as a hash:
|
389
|
-
#
|
390
|
-
# {
|
391
|
-
# name: "RESOURCE_TYPE", # required, accepts RESOURCE_TYPE, SERVICE_NAME
|
392
|
-
# value: "ListEventTypesFilterValue", # required
|
393
|
-
# }
|
394
|
-
#
|
395
344
|
# @!attribute [rw] name
|
396
345
|
# The system-generated name of the filter type you want to filter by.
|
397
346
|
# @return [String]
|
@@ -410,20 +359,6 @@ module Aws::CodeStarNotifications
|
|
410
359
|
include Aws::Structure
|
411
360
|
end
|
412
361
|
|
413
|
-
# @note When making an API call, you may pass ListEventTypesRequest
|
414
|
-
# data as a hash:
|
415
|
-
#
|
416
|
-
# {
|
417
|
-
# filters: [
|
418
|
-
# {
|
419
|
-
# name: "RESOURCE_TYPE", # required, accepts RESOURCE_TYPE, SERVICE_NAME
|
420
|
-
# value: "ListEventTypesFilterValue", # required
|
421
|
-
# },
|
422
|
-
# ],
|
423
|
-
# next_token: "NextToken",
|
424
|
-
# max_results: 1,
|
425
|
-
# }
|
426
|
-
#
|
427
362
|
# @!attribute [rw] filters
|
428
363
|
# The filters to use to return information by service or resource
|
429
364
|
# type.
|
@@ -473,14 +408,6 @@ module Aws::CodeStarNotifications
|
|
473
408
|
# notification rules. You can filter by event type, owner, resource, or
|
474
409
|
# target.
|
475
410
|
#
|
476
|
-
# @note When making an API call, you may pass ListNotificationRulesFilter
|
477
|
-
# data as a hash:
|
478
|
-
#
|
479
|
-
# {
|
480
|
-
# name: "EVENT_TYPE_ID", # required, accepts EVENT_TYPE_ID, CREATED_BY, RESOURCE, TARGET_ADDRESS
|
481
|
-
# value: "ListNotificationRulesFilterValue", # required
|
482
|
-
# }
|
483
|
-
#
|
484
411
|
# @!attribute [rw] name
|
485
412
|
# The name of the attribute you want to use to filter the returned
|
486
413
|
# notification rules.
|
@@ -502,20 +429,6 @@ module Aws::CodeStarNotifications
|
|
502
429
|
include Aws::Structure
|
503
430
|
end
|
504
431
|
|
505
|
-
# @note When making an API call, you may pass ListNotificationRulesRequest
|
506
|
-
# data as a hash:
|
507
|
-
#
|
508
|
-
# {
|
509
|
-
# filters: [
|
510
|
-
# {
|
511
|
-
# name: "EVENT_TYPE_ID", # required, accepts EVENT_TYPE_ID, CREATED_BY, RESOURCE, TARGET_ADDRESS
|
512
|
-
# value: "ListNotificationRulesFilterValue", # required
|
513
|
-
# },
|
514
|
-
# ],
|
515
|
-
# next_token: "NextToken",
|
516
|
-
# max_results: 1,
|
517
|
-
# }
|
518
|
-
#
|
519
432
|
# @!attribute [rw] filters
|
520
433
|
# The filters to use to return information by service or resource
|
521
434
|
# type. For valid values, see ListNotificationRulesFilter.
|
@@ -566,13 +479,6 @@ module Aws::CodeStarNotifications
|
|
566
479
|
include Aws::Structure
|
567
480
|
end
|
568
481
|
|
569
|
-
# @note When making an API call, you may pass ListTagsForResourceRequest
|
570
|
-
# data as a hash:
|
571
|
-
#
|
572
|
-
# {
|
573
|
-
# arn: "NotificationRuleArn", # required
|
574
|
-
# }
|
575
|
-
#
|
576
482
|
# @!attribute [rw] arn
|
577
483
|
# The Amazon Resource Name (ARN) for the notification rule.
|
578
484
|
# @return [String]
|
@@ -604,14 +510,6 @@ module Aws::CodeStarNotifications
|
|
604
510
|
# and a Value of `SNS`, and a Name of `TARGET_STATUS` and a Value of
|
605
511
|
# `ACTIVE`.
|
606
512
|
#
|
607
|
-
# @note When making an API call, you may pass ListTargetsFilter
|
608
|
-
# data as a hash:
|
609
|
-
#
|
610
|
-
# {
|
611
|
-
# name: "TARGET_TYPE", # required, accepts TARGET_TYPE, TARGET_ADDRESS, TARGET_STATUS
|
612
|
-
# value: "ListTargetsFilterValue", # required
|
613
|
-
# }
|
614
|
-
#
|
615
513
|
# @!attribute [rw] name
|
616
514
|
# The name of the attribute you want to use to filter the returned
|
617
515
|
# targets.
|
@@ -633,20 +531,6 @@ module Aws::CodeStarNotifications
|
|
633
531
|
include Aws::Structure
|
634
532
|
end
|
635
533
|
|
636
|
-
# @note When making an API call, you may pass ListTargetsRequest
|
637
|
-
# data as a hash:
|
638
|
-
#
|
639
|
-
# {
|
640
|
-
# filters: [
|
641
|
-
# {
|
642
|
-
# name: "TARGET_TYPE", # required, accepts TARGET_TYPE, TARGET_ADDRESS, TARGET_STATUS
|
643
|
-
# value: "ListTargetsFilterValue", # required
|
644
|
-
# },
|
645
|
-
# ],
|
646
|
-
# next_token: "NextToken",
|
647
|
-
# max_results: 1,
|
648
|
-
# }
|
649
|
-
#
|
650
534
|
# @!attribute [rw] filters
|
651
535
|
# The filters to use to return information by service or resource
|
652
536
|
# type. Valid filters include target type, target address, and target
|
@@ -744,18 +628,6 @@ module Aws::CodeStarNotifications
|
|
744
628
|
include Aws::Structure
|
745
629
|
end
|
746
630
|
|
747
|
-
# @note When making an API call, you may pass SubscribeRequest
|
748
|
-
# data as a hash:
|
749
|
-
#
|
750
|
-
# {
|
751
|
-
# arn: "NotificationRuleArn", # required
|
752
|
-
# target: { # required
|
753
|
-
# target_type: "TargetType",
|
754
|
-
# target_address: "TargetAddress",
|
755
|
-
# },
|
756
|
-
# client_request_token: "ClientRequestToken",
|
757
|
-
# }
|
758
|
-
#
|
759
631
|
# @!attribute [rw] arn
|
760
632
|
# The Amazon Resource Name (ARN) of the notification rule for which
|
761
633
|
# you want to create the association.
|
@@ -794,16 +666,6 @@ module Aws::CodeStarNotifications
|
|
794
666
|
include Aws::Structure
|
795
667
|
end
|
796
668
|
|
797
|
-
# @note When making an API call, you may pass TagResourceRequest
|
798
|
-
# data as a hash:
|
799
|
-
#
|
800
|
-
# {
|
801
|
-
# arn: "NotificationRuleArn", # required
|
802
|
-
# tags: { # required
|
803
|
-
# "TagKey" => "TagValue",
|
804
|
-
# },
|
805
|
-
# }
|
806
|
-
#
|
807
669
|
# @!attribute [rw] arn
|
808
670
|
# The Amazon Resource Name (ARN) of the notification rule to tag.
|
809
671
|
# @return [String]
|
@@ -837,14 +699,6 @@ module Aws::CodeStarNotifications
|
|
837
699
|
# Information about the Chatbot topics or Chatbot clients associated
|
838
700
|
# with a notification rule.
|
839
701
|
#
|
840
|
-
# @note When making an API call, you may pass Target
|
841
|
-
# data as a hash:
|
842
|
-
#
|
843
|
-
# {
|
844
|
-
# target_type: "TargetType",
|
845
|
-
# target_address: "TargetAddress",
|
846
|
-
# }
|
847
|
-
#
|
848
702
|
# @!attribute [rw] target_type
|
849
703
|
# The target type. Can be an Chatbot topic or Chatbot client.
|
850
704
|
#
|
@@ -896,14 +750,6 @@ module Aws::CodeStarNotifications
|
|
896
750
|
include Aws::Structure
|
897
751
|
end
|
898
752
|
|
899
|
-
# @note When making an API call, you may pass UnsubscribeRequest
|
900
|
-
# data as a hash:
|
901
|
-
#
|
902
|
-
# {
|
903
|
-
# arn: "NotificationRuleArn", # required
|
904
|
-
# target_address: "TargetAddress", # required
|
905
|
-
# }
|
906
|
-
#
|
907
753
|
# @!attribute [rw] arn
|
908
754
|
# The Amazon Resource Name (ARN) of the notification rule.
|
909
755
|
# @return [String]
|
@@ -935,14 +781,6 @@ module Aws::CodeStarNotifications
|
|
935
781
|
include Aws::Structure
|
936
782
|
end
|
937
783
|
|
938
|
-
# @note When making an API call, you may pass UntagResourceRequest
|
939
|
-
# data as a hash:
|
940
|
-
#
|
941
|
-
# {
|
942
|
-
# arn: "NotificationRuleArn", # required
|
943
|
-
# tag_keys: ["TagKey"], # required
|
944
|
-
# }
|
945
|
-
#
|
946
784
|
# @!attribute [rw] arn
|
947
785
|
# The Amazon Resource Name (ARN) of the notification rule from which
|
948
786
|
# to remove the tags.
|
@@ -965,23 +803,6 @@ module Aws::CodeStarNotifications
|
|
965
803
|
#
|
966
804
|
class UntagResourceResult < Aws::EmptyStructure; end
|
967
805
|
|
968
|
-
# @note When making an API call, you may pass UpdateNotificationRuleRequest
|
969
|
-
# data as a hash:
|
970
|
-
#
|
971
|
-
# {
|
972
|
-
# arn: "NotificationRuleArn", # required
|
973
|
-
# name: "NotificationRuleName",
|
974
|
-
# status: "ENABLED", # accepts ENABLED, DISABLED
|
975
|
-
# event_type_ids: ["EventTypeId"],
|
976
|
-
# targets: [
|
977
|
-
# {
|
978
|
-
# target_type: "TargetType",
|
979
|
-
# target_address: "TargetAddress",
|
980
|
-
# },
|
981
|
-
# ],
|
982
|
-
# detail_type: "BASIC", # accepts BASIC, FULL
|
983
|
-
# }
|
984
|
-
#
|
985
806
|
# @!attribute [rw] arn
|
986
807
|
# The Amazon Resource Name (ARN) of the notification rule.
|
987
808
|
# @return [String]
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-codestarnotifications/types'
|
15
15
|
require_relative 'aws-sdk-codestarnotifications/client_api'
|
16
|
+
require_relative 'aws-sdk-codestarnotifications/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-codestarnotifications/client'
|
17
18
|
require_relative 'aws-sdk-codestarnotifications/errors'
|
18
19
|
require_relative 'aws-sdk-codestarnotifications/resource'
|
20
|
+
require_relative 'aws-sdk-codestarnotifications/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-codestarnotifications/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-codestarnotifications/endpoints'
|
19
23
|
require_relative 'aws-sdk-codestarnotifications/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS CodeStar Notifications. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-codestarnotifications/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::CodeStarNotifications
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.22.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codestarnotifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.22.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:
|
11
|
+
date: 2023-01-18 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-codestarnotifications/client.rb
|
60
60
|
- lib/aws-sdk-codestarnotifications/client_api.rb
|
61
61
|
- lib/aws-sdk-codestarnotifications/customizations.rb
|
62
|
+
- lib/aws-sdk-codestarnotifications/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-codestarnotifications/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-codestarnotifications/endpoints.rb
|
62
65
|
- lib/aws-sdk-codestarnotifications/errors.rb
|
66
|
+
- lib/aws-sdk-codestarnotifications/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-codestarnotifications/resource.rb
|
64
68
|
- lib/aws-sdk-codestarnotifications/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|