aws-sdk-cloudwatchevents 1.7.0 → 1.8.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 515b9b918eb6b90e47280a25dc01c48bc132524e
|
4
|
+
data.tar.gz: d9327fc075594a6575b1da18e7dc12ca9eb76eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33519b982d51b00fa1e9d4eb624fccac27c3274813a1122428cdabb5835c685fd2487382ec1248f3447107b9e357a427363376be2b44d294ecc026f9e0ee7175
|
7
|
+
data.tar.gz: 5596f717cb14cdbf515927ad6cc3eaae2c1e4dca3328bdb5d00b7982d429ee01441db581de1344cd522b4000e337f5c740457af688c86bbcd767834b66e532f9
|
@@ -540,17 +540,21 @@ module Aws::CloudWatchEvents
|
|
540
540
|
req.send_request(options)
|
541
541
|
end
|
542
542
|
|
543
|
-
# Running `PutPermission` permits the specified AWS account
|
544
|
-
# events to your account's default *event bus*.
|
545
|
-
# in your account are triggered by these events
|
546
|
-
# event bus.
|
543
|
+
# Running `PutPermission` permits the specified AWS account or AWS
|
544
|
+
# organization to put events to your account's default *event bus*.
|
545
|
+
# CloudWatch Events rules in your account are triggered by these events
|
546
|
+
# arriving to your default event bus.
|
547
547
|
#
|
548
548
|
# For another account to send events to your account, that external
|
549
549
|
# account must have a CloudWatch Events rule with your account's
|
550
550
|
# default event bus as a target.
|
551
551
|
#
|
552
552
|
# To enable multiple AWS accounts to put events to your default event
|
553
|
-
# bus, run `PutPermission` once for each of these accounts.
|
553
|
+
# bus, run `PutPermission` once for each of these accounts. Or, if all
|
554
|
+
# the accounts are members of the same AWS organization, you can run
|
555
|
+
# `PutPermission` once specifying `Principal` as "*" and specifying
|
556
|
+
# the AWS organization ID in `Condition`, to grant permissions to all
|
557
|
+
# accounts in that organization.
|
554
558
|
#
|
555
559
|
# The permission policy on the default event bus cannot exceed 10 KB in
|
556
560
|
# size.
|
@@ -564,11 +568,12 @@ module Aws::CloudWatchEvents
|
|
564
568
|
# your default event bus. Specify "*" to permit any account to put
|
565
569
|
# events to your default event bus.
|
566
570
|
#
|
567
|
-
# If you specify "*"
|
568
|
-
# events. To create more secure rules,
|
569
|
-
# for each rule contains an `account`
|
570
|
-
# from which to receive events. Rules
|
571
|
-
# any events sent from other
|
571
|
+
# If you specify "*" without specifying `Condition`, avoid creating
|
572
|
+
# rules that may match undesirable events. To create more secure rules,
|
573
|
+
# make sure that the event pattern for each rule contains an `account`
|
574
|
+
# field with a specific account ID from which to receive events. Rules
|
575
|
+
# with an account field do not match any events sent from other
|
576
|
+
# accounts.
|
572
577
|
#
|
573
578
|
# @option params [required, String] :statement_id
|
574
579
|
# An identifier string for the external account that you are granting
|
@@ -576,6 +581,23 @@ module Aws::CloudWatchEvents
|
|
576
581
|
# external account, specify this `StatementId` when you run
|
577
582
|
# RemovePermission.
|
578
583
|
#
|
584
|
+
# @option params [Types::Condition] :condition
|
585
|
+
# This parameter enables you to limit the permission to accounts that
|
586
|
+
# fulfill a certain condition, such as being a member of a certain AWS
|
587
|
+
# organization. For more information about AWS Organizations, see [What
|
588
|
+
# Is AWS Organizations][1] in the *AWS Organizations User Guide*.
|
589
|
+
#
|
590
|
+
# If you specify `Condition` with an AWS organization ID, and specify
|
591
|
+
# "*" as the value for `Principal`, you grant permission to all the
|
592
|
+
# accounts in the named organization.
|
593
|
+
#
|
594
|
+
# The `Condition` is a JSON string which must contain `Type`, `Key`, and
|
595
|
+
# `Value` fields.
|
596
|
+
#
|
597
|
+
#
|
598
|
+
#
|
599
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
|
600
|
+
#
|
579
601
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
580
602
|
#
|
581
603
|
# @example Request syntax with placeholder values
|
@@ -584,6 +606,11 @@ module Aws::CloudWatchEvents
|
|
584
606
|
# action: "Action", # required
|
585
607
|
# principal: "Principal", # required
|
586
608
|
# statement_id: "StatementId", # required
|
609
|
+
# condition: {
|
610
|
+
# type: "String", # required
|
611
|
+
# key: "String", # required
|
612
|
+
# value: "String", # required
|
613
|
+
# },
|
587
614
|
# })
|
588
615
|
#
|
589
616
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission AWS API Documentation
|
@@ -1000,7 +1027,7 @@ module Aws::CloudWatchEvents
|
|
1000
1027
|
params: params,
|
1001
1028
|
config: config)
|
1002
1029
|
context[:gem_name] = 'aws-sdk-cloudwatchevents'
|
1003
|
-
context[:gem_version] = '1.
|
1030
|
+
context[:gem_version] = '1.8.0'
|
1004
1031
|
Seahorse::Client::Request.new(handlers, context)
|
1005
1032
|
end
|
1006
1033
|
|
@@ -20,6 +20,7 @@ module Aws::CloudWatchEvents
|
|
20
20
|
BatchRetryStrategy = Shapes::StructureShape.new(name: 'BatchRetryStrategy')
|
21
21
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
22
22
|
ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
|
23
|
+
Condition = Shapes::StructureShape.new(name: 'Condition')
|
23
24
|
DeleteRuleRequest = Shapes::StructureShape.new(name: 'DeleteRuleRequest')
|
24
25
|
DescribeEventBusRequest = Shapes::StructureShape.new(name: 'DescribeEventBusRequest')
|
25
26
|
DescribeEventBusResponse = Shapes::StructureShape.new(name: 'DescribeEventBusResponse')
|
@@ -124,6 +125,11 @@ module Aws::CloudWatchEvents
|
|
124
125
|
BatchRetryStrategy.add_member(:attempts, Shapes::ShapeRef.new(shape: Integer, location_name: "Attempts"))
|
125
126
|
BatchRetryStrategy.struct_class = Types::BatchRetryStrategy
|
126
127
|
|
128
|
+
Condition.add_member(:type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Type"))
|
129
|
+
Condition.add_member(:key, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Key"))
|
130
|
+
Condition.add_member(:value, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Value"))
|
131
|
+
Condition.struct_class = Types::Condition
|
132
|
+
|
127
133
|
DeleteRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
|
128
134
|
DeleteRuleRequest.struct_class = Types::DeleteRuleRequest
|
129
135
|
|
@@ -225,6 +231,7 @@ module Aws::CloudWatchEvents
|
|
225
231
|
PutPermissionRequest.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "Action"))
|
226
232
|
PutPermissionRequest.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, required: true, location_name: "Principal"))
|
227
233
|
PutPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
|
234
|
+
PutPermissionRequest.add_member(:condition, Shapes::ShapeRef.new(shape: Condition, location_name: "Condition"))
|
228
235
|
PutPermissionRequest.struct_class = Types::PutPermissionRequest
|
229
236
|
|
230
237
|
PutRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: RuleName, required: true, location_name: "Name"))
|
@@ -146,6 +146,49 @@ module Aws::CloudWatchEvents
|
|
146
146
|
include Aws::Structure
|
147
147
|
end
|
148
148
|
|
149
|
+
# A JSON string which you can use to limit the event bus permissions you
|
150
|
+
# are granting to only accounts that fulfill the condition. Currently,
|
151
|
+
# the only supported condition is membership in a certain AWS
|
152
|
+
# organization. The string must contain `Type`, `Key`, and `Value`
|
153
|
+
# fields. The `Value` field specifies the ID of the AWS organization.
|
154
|
+
# Following is an example value for `Condition`\:
|
155
|
+
#
|
156
|
+
# `'\{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value":
|
157
|
+
# "o-1234567890"\}'`
|
158
|
+
#
|
159
|
+
# @note When making an API call, you may pass Condition
|
160
|
+
# data as a hash:
|
161
|
+
#
|
162
|
+
# {
|
163
|
+
# type: "String", # required
|
164
|
+
# key: "String", # required
|
165
|
+
# value: "String", # required
|
166
|
+
# }
|
167
|
+
#
|
168
|
+
# @!attribute [rw] type
|
169
|
+
# Specifies the type of condition. Currently the only supported value
|
170
|
+
# is `StringEquals`.
|
171
|
+
# @return [String]
|
172
|
+
#
|
173
|
+
# @!attribute [rw] key
|
174
|
+
# Specifies the key for the condition. Currently the only supported
|
175
|
+
# key is `aws:PrincipalOrgID`.
|
176
|
+
# @return [String]
|
177
|
+
#
|
178
|
+
# @!attribute [rw] value
|
179
|
+
# Specifies the value for the key. Currently, this must be the ID of
|
180
|
+
# the organization.
|
181
|
+
# @return [String]
|
182
|
+
#
|
183
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Condition AWS API Documentation
|
184
|
+
#
|
185
|
+
class Condition < Struct.new(
|
186
|
+
:type,
|
187
|
+
:key,
|
188
|
+
:value)
|
189
|
+
include Aws::Structure
|
190
|
+
end
|
191
|
+
|
149
192
|
# @note When making an API call, you may pass DeleteRuleRequest
|
150
193
|
# data as a hash:
|
151
194
|
#
|
@@ -788,6 +831,11 @@ module Aws::CloudWatchEvents
|
|
788
831
|
# action: "Action", # required
|
789
832
|
# principal: "Principal", # required
|
790
833
|
# statement_id: "StatementId", # required
|
834
|
+
# condition: {
|
835
|
+
# type: "String", # required
|
836
|
+
# key: "String", # required
|
837
|
+
# value: "String", # required
|
838
|
+
# },
|
791
839
|
# }
|
792
840
|
#
|
793
841
|
# @!attribute [rw] action
|
@@ -800,11 +848,12 @@ module Aws::CloudWatchEvents
|
|
800
848
|
# your default event bus. Specify "*" to permit any account to put
|
801
849
|
# events to your default event bus.
|
802
850
|
#
|
803
|
-
# If you specify "*"
|
804
|
-
# undesirable events. To create more secure
|
805
|
-
# event pattern for each rule contains an
|
806
|
-
# specific account ID from which to receive
|
807
|
-
# account field do not match any events sent
|
851
|
+
# If you specify "*" without specifying `Condition`, avoid creating
|
852
|
+
# rules that may match undesirable events. To create more secure
|
853
|
+
# rules, make sure that the event pattern for each rule contains an
|
854
|
+
# `account` field with a specific account ID from which to receive
|
855
|
+
# events. Rules with an account field do not match any events sent
|
856
|
+
# from other accounts.
|
808
857
|
# @return [String]
|
809
858
|
#
|
810
859
|
# @!attribute [rw] statement_id
|
@@ -814,12 +863,32 @@ module Aws::CloudWatchEvents
|
|
814
863
|
# RemovePermission.
|
815
864
|
# @return [String]
|
816
865
|
#
|
866
|
+
# @!attribute [rw] condition
|
867
|
+
# This parameter enables you to limit the permission to accounts that
|
868
|
+
# fulfill a certain condition, such as being a member of a certain AWS
|
869
|
+
# organization. For more information about AWS Organizations, see
|
870
|
+
# [What Is AWS Organizations][1] in the *AWS Organizations User
|
871
|
+
# Guide*.
|
872
|
+
#
|
873
|
+
# If you specify `Condition` with an AWS organization ID, and specify
|
874
|
+
# "*" as the value for `Principal`, you grant permission to all the
|
875
|
+
# accounts in the named organization.
|
876
|
+
#
|
877
|
+
# The `Condition` is a JSON string which must contain `Type`, `Key`,
|
878
|
+
# and `Value` fields.
|
879
|
+
#
|
880
|
+
#
|
881
|
+
#
|
882
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html
|
883
|
+
# @return [Types::Condition]
|
884
|
+
#
|
817
885
|
# @see http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermissionRequest AWS API Documentation
|
818
886
|
#
|
819
887
|
class PutPermissionRequest < Struct.new(
|
820
888
|
:action,
|
821
889
|
:principal,
|
822
|
-
:statement_id
|
890
|
+
:statement_id,
|
891
|
+
:condition)
|
823
892
|
include Aws::Structure
|
824
893
|
end
|
825
894
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudwatchevents
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.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: 2018-
|
11
|
+
date: 2018-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|