aws-sdk-cloudwatchlogs 1.0.0 → 1.1.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: bf6a6888eb49304fa6af76ec682e0a5cb74f27b5
4
- data.tar.gz: 55506fa86d00d77edc2a0b374135247d336a9456
3
+ metadata.gz: 3e517c067b342b48a2ca55e75ceb73d6c22caaaa
4
+ data.tar.gz: 857ff7fbea13261a6eefa81844e5e6f294dc56fd
5
5
  SHA512:
6
- metadata.gz: 7ecddc97296b78c437b1c0865911628c4dd5a0b6e81820f91d10ac6f5d38c6006d832bf496e664ecb7d71fbe10aeb115e4afb8fb76e21d2cc72445bb5c5f5233
7
- data.tar.gz: 994ba3a18f573bfc80b64dc398fcd2f75968b46e1a03857e57a17cbb0c8bd69cd9adedd59f7b291907e2c43a9e3312dced6a186fc30e5186e5e6a4ddd1fe3c02
6
+ metadata.gz: b4ab8714b98bfd61c88694cf80aaef55a1b760ba82bd9f993046faf82c967d8b5c0a08ad531eb5ed45f3203eb5f4e5d93e5d4863c99684008d0ef05333931209
7
+ data.tar.gz: 4e65eca44aee95ade6dd3b6bc2d10b8fd2b0db557e31c2a9b25441e2e18dd41dd2be60d323cbce47957e4d1f8ae11e2e9ff0fd07a8349fc07d2b8177dc49fe2e
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-cloudwatchlogs/customizations'
42
42
  # @service
43
43
  module Aws::CloudWatchLogs
44
44
 
45
- GEM_VERSION = '1.0.0'
45
+ GEM_VERSION = '1.1.0'
46
46
 
47
47
  end
@@ -191,8 +191,8 @@ module Aws::CloudWatchLogs
191
191
  #
192
192
  # You can export logs from multiple log groups or multiple time ranges
193
193
  # to the same S3 bucket. To separate out log data for each export task,
194
- # you can specify a prefix that will be used as the Amazon S3 key prefix
195
- # for all exported objects.
194
+ # you can specify a prefix to be used as the Amazon S3 key prefix for
195
+ # all exported objects.
196
196
  #
197
197
  # @option params [String] :task_name
198
198
  # The name of the export task.
@@ -206,12 +206,12 @@ module Aws::CloudWatchLogs
206
206
  #
207
207
  # @option params [required, Integer] :from
208
208
  # The start time of the range for the request, expressed as the number
209
- # of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a
210
- # timestamp earlier than this time are not exported.
209
+ # of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time
210
+ # stamp earlier than this time are not exported.
211
211
  #
212
212
  # @option params [required, Integer] :to
213
213
  # The end time of the range for the request, expressed as the number of
214
- # milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a timestamp
214
+ # milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp
215
215
  # later than this time are not exported.
216
216
  #
217
217
  # @option params [required, String] :destination
@@ -428,6 +428,29 @@ module Aws::CloudWatchLogs
428
428
  req.send_request(options)
429
429
  end
430
430
 
431
+ # Deletes a resource policy from this account. This revokes the access
432
+ # of the identities in that policy to put log events to this account.
433
+ #
434
+ # @option params [String] :policy_name
435
+ # The name of the policy to be revoked. This parameter is required.
436
+ #
437
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
438
+ #
439
+ # @example Request syntax with placeholder values
440
+ #
441
+ # resp = client.delete_resource_policy({
442
+ # policy_name: "PolicyName",
443
+ # })
444
+ #
445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy AWS API Documentation
446
+ #
447
+ # @overload delete_resource_policy(params = {})
448
+ # @param [Hash] params ({})
449
+ def delete_resource_policy(params = {}, options = {})
450
+ req = build_request(:delete_resource_policy, params)
451
+ req.send_request(options)
452
+ end
453
+
431
454
  # Deletes the specified retention policy.
432
455
  #
433
456
  # Log events do not expire if they belong to log groups without a
@@ -646,7 +669,7 @@ module Aws::CloudWatchLogs
646
669
  # @option params [String] :log_stream_name_prefix
647
670
  # The prefix to match.
648
671
  #
649
- # You cannot specify this parameter if `orderBy` is `LastEventTime`.
672
+ # iIf `orderBy` is `LastEventTime`,you cannot specify this parameter.
650
673
  #
651
674
  # @option params [String] :order_by
652
675
  # If the value is `LogStreamName`, the results are ordered by log stream
@@ -658,7 +681,7 @@ module Aws::CloudWatchLogs
658
681
  #
659
682
  # lastEventTimestamp represents the time of the most recent log event in
660
683
  # the log stream in CloudWatch Logs. This number is expressed as the
661
- # number of milliseconds since Jan 1, 1970 00:00:00 UTC.
684
+ # number of milliseconds after Jan 1, 1970 00:00:00 UTC.
662
685
  # lastEventTimeStamp updates on an eventual consistency basis. It
663
686
  # typically updates in less than an hour from ingestion, but may take
664
687
  # longer in some rare situations.
@@ -777,6 +800,45 @@ module Aws::CloudWatchLogs
777
800
  req.send_request(options)
778
801
  end
779
802
 
803
+ # Lists the resource policies in this account.
804
+ #
805
+ # @option params [String] :next_token
806
+ # The token for the next set of items to return. The token expires after
807
+ # 24 hours.
808
+ #
809
+ # @option params [Integer] :limit
810
+ # The maximum number of resource policies to be displayed with one call
811
+ # of this API.
812
+ #
813
+ # @return [Types::DescribeResourcePoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
814
+ #
815
+ # * {Types::DescribeResourcePoliciesResponse#resource_policies #resource_policies} => Array<Types::ResourcePolicy>
816
+ # * {Types::DescribeResourcePoliciesResponse#next_token #next_token} => String
817
+ #
818
+ # @example Request syntax with placeholder values
819
+ #
820
+ # resp = client.describe_resource_policies({
821
+ # next_token: "NextToken",
822
+ # limit: 1,
823
+ # })
824
+ #
825
+ # @example Response structure
826
+ #
827
+ # resp.resource_policies #=> Array
828
+ # resp.resource_policies[0].policy_name #=> String
829
+ # resp.resource_policies[0].policy_document #=> String
830
+ # resp.resource_policies[0].last_updated_time #=> Integer
831
+ # resp.next_token #=> String
832
+ #
833
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies AWS API Documentation
834
+ #
835
+ # @overload describe_resource_policies(params = {})
836
+ # @param [Hash] params ({})
837
+ def describe_resource_policies(params = {}, options = {})
838
+ req = build_request(:describe_resource_policies, params)
839
+ req.send_request(options)
840
+ end
841
+
780
842
  # Lists the subscription filters for the specified log group. You can
781
843
  # list all the subscription filters or filter the results by prefix. The
782
844
  # results are ASCII-sorted by filter name.
@@ -835,8 +897,8 @@ module Aws::CloudWatchLogs
835
897
  # log events or filter the results using a filter pattern, a time range,
836
898
  # and the name of the log stream.
837
899
  #
838
- # By default, this operation returns as many log events as can fit in
839
- # 1MB (up to 10,000 log events), or all the events found within the time
900
+ # By default, this operation returns as many log events as can fit in 1
901
+ # MB (up to 10,000 log events), or all the events found within the time
840
902
  # range that you specify. If the results include a token, then there are
841
903
  # more log events available, and you can get additional results by
842
904
  # specifying the token in a subsequent call.
@@ -849,12 +911,12 @@ module Aws::CloudWatchLogs
849
911
  #
850
912
  # @option params [Integer] :start_time
851
913
  # The start of the time range, expressed as the number of milliseconds
852
- # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to this
914
+ # after Jan 1, 1970 00:00:00 UTC. Events with a time stamp before this
853
915
  # time are not returned.
854
916
  #
855
917
  # @option params [Integer] :end_time
856
918
  # The end of the time range, expressed as the number of milliseconds
857
- # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than
919
+ # after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than
858
920
  # this time are not returned.
859
921
  #
860
922
  # @option params [String] :filter_pattern
@@ -871,9 +933,9 @@ module Aws::CloudWatchLogs
871
933
  # @option params [Boolean] :interleaved
872
934
  # If the value is true, the operation makes a best effort to provide
873
935
  # responses that contain events from multiple log streams within the log
874
- # group interleaved in a single response. If the value is false all the
875
- # matched log events in the first log stream are searched first, then
876
- # those in the next log stream, and so on. The default is false.
936
+ # group, interleaved in a single response. If the value is false, all
937
+ # the matched log events in the first log stream are searched first,
938
+ # then those in the next log stream, and so on. The default is false.
877
939
  #
878
940
  # @return [Types::FilterLogEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
879
941
  #
@@ -920,9 +982,9 @@ module Aws::CloudWatchLogs
920
982
  # log events or filter using a time range.
921
983
  #
922
984
  # By default, this operation returns as many log events as can fit in a
923
- # response size of 1MB (up to 10,000 log events). If the results include
924
- # tokens, there are more log events available. You can get additional
925
- # log events by specifying one of the tokens in a subsequent call.
985
+ # response size of 1 MB (up to 10,000 log events). You can get
986
+ # additional log events by specifying one of the tokens in a subsequent
987
+ # call.
926
988
  #
927
989
  # @option params [required, String] :log_group_name
928
990
  # The name of the log group.
@@ -932,12 +994,12 @@ module Aws::CloudWatchLogs
932
994
  #
933
995
  # @option params [Integer] :start_time
934
996
  # The start of the time range, expressed as the number of milliseconds
935
- # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than
997
+ # after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than
936
998
  # this time are not included.
937
999
  #
938
1000
  # @option params [Integer] :end_time
939
1001
  # The end of the time range, expressed as the number of milliseconds
940
- # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than
1002
+ # after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than
941
1003
  # this time are not included.
942
1004
  #
943
1005
  # @option params [String] :next_token
@@ -947,7 +1009,7 @@ module Aws::CloudWatchLogs
947
1009
  # @option params [Integer] :limit
948
1010
  # The maximum number of log events returned. If you don't specify a
949
1011
  # value, the maximum is as many log events as can fit in a response size
950
- # of 1MB, up to 10,000 log events.
1012
+ # of 1 MB, up to 10,000 log events.
951
1013
  #
952
1014
  # @option params [Boolean] :start_from_head
953
1015
  # If the value is true, the earliest log events are returned first. If
@@ -1022,28 +1084,29 @@ module Aws::CloudWatchLogs
1022
1084
  end
1023
1085
 
1024
1086
  # Creates or updates a destination. A destination encapsulates a
1025
- # physical resource (such as a Kinesis stream) and enables you to
1026
- # subscribe to a real-time stream of log events of a different account,
1027
- # ingested using PutLogEvents. Currently, the only supported physical
1028
- # resource is a Amazon Kinesis stream belonging to the same account as
1087
+ # physical resource (such as an Amazon Kinesis stream) and enables you
1088
+ # to subscribe to a real-time stream of log events for a different
1089
+ # account, ingested using PutLogEvents. Currently, the only supported
1090
+ # physical resource is a Kinesis stream belonging to the same account as
1029
1091
  # the destination.
1030
1092
  #
1031
- # A destination controls what is written to its Amazon Kinesis stream
1032
- # through an access policy. By default, `PutDestination` does not set
1033
- # any access policy with the destination, which means a cross-account
1034
- # user cannot call PutSubscriptionFilter against this destination. To
1035
- # enable this, the destination owner must call PutDestinationPolicy
1036
- # after `PutDestination`.
1093
+ # Through an access policy, a destination controls what is written to
1094
+ # its Kinesis stream. By default, `PutDestination` does not set any
1095
+ # access policy with the destination, which means a cross-account user
1096
+ # cannot call PutSubscriptionFilter against this destination. To enable
1097
+ # this, the destination owner must call PutDestinationPolicy after
1098
+ # `PutDestination`.
1037
1099
  #
1038
1100
  # @option params [required, String] :destination_name
1039
1101
  # A name for the destination.
1040
1102
  #
1041
1103
  # @option params [required, String] :target_arn
1042
- # The ARN of an Amazon Kinesis stream to deliver matching log events to.
1104
+ # The ARN of an Amazon Kinesis stream to which to deliver matching log
1105
+ # events.
1043
1106
  #
1044
1107
  # @option params [required, String] :role_arn
1045
1108
  # The ARN of an IAM role that grants CloudWatch Logs permissions to call
1046
- # Amazon Kinesis PutRecord on the destination stream.
1109
+ # the Amazon Kinesis PutRecord operation on the destination stream.
1047
1110
  #
1048
1111
  # @return [Types::PutDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1049
1112
  #
@@ -1114,7 +1177,9 @@ module Aws::CloudWatchLogs
1114
1177
  # You must include the sequence token obtained from the response of the
1115
1178
  # previous call. An upload in a newly created log stream does not
1116
1179
  # require a sequence token. You can also get the sequence token using
1117
- # DescribeLogStreams.
1180
+ # DescribeLogStreams. If you call `PutLogEvents` twice within a narrow
1181
+ # time period using the same value for `sequenceToken`, both calls may
1182
+ # be successful, or one may be rejected.
1118
1183
  #
1119
1184
  # The batch of events must satisfy the following constraints:
1120
1185
  #
@@ -1129,8 +1194,8 @@ module Aws::CloudWatchLogs
1129
1194
  # retention period of the log group.
1130
1195
  #
1131
1196
  # * The log events in the batch must be in chronological ordered by
1132
- # their timestamp (the time the event occurred, expressed as the
1133
- # number of milliseconds since Jan 1, 1970 00:00:00 UTC).
1197
+ # their time stamp (the time the event occurred, expressed as the
1198
+ # number of milliseconds after Jan 1, 1970 00:00:00 UTC).
1134
1199
  #
1135
1200
  # * The maximum number of log events in a batch is 10,000.
1136
1201
  #
@@ -1147,7 +1212,12 @@ module Aws::CloudWatchLogs
1147
1212
  # The log events.
1148
1213
  #
1149
1214
  # @option params [String] :sequence_token
1150
- # The sequence token.
1215
+ # The sequence token obtained from the response of the previous
1216
+ # `PutLogEvents` call. An upload in a newly created log stream does not
1217
+ # require a sequence token. You can also get the sequence token using
1218
+ # DescribeLogStreams. If you call `PutLogEvents` twice within a narrow
1219
+ # time period using the same value for `sequenceToken`, both calls may
1220
+ # be successful, or one may be rejected.
1151
1221
  #
1152
1222
  # @return [Types::PutLogEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1153
1223
  #
@@ -1202,8 +1272,7 @@ module Aws::CloudWatchLogs
1202
1272
  # events.
1203
1273
  #
1204
1274
  # @option params [required, Array<Types::MetricTransformation>] :metric_transformations
1205
- # A collection of information needed to define how metric data gets
1206
- # emitted.
1275
+ # A collection of information that defines how metric data gets emitted.
1207
1276
  #
1208
1277
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1209
1278
  #
@@ -1232,8 +1301,56 @@ module Aws::CloudWatchLogs
1232
1301
  req.send_request(options)
1233
1302
  end
1234
1303
 
1304
+ # Creates or updates a resource policy allowing other AWS services to
1305
+ # put log events to this account, such as Amazon Route 53. An account
1306
+ # can have up to 50 resource policies per region.
1307
+ #
1308
+ # @option params [String] :policy_name
1309
+ # Name of the new policy. This parameter is required.
1310
+ #
1311
+ # @option params [String] :policy_document
1312
+ # Details of the new policy, including the identity of the principal
1313
+ # that is enabled to put logs to this account. This is formatted as a
1314
+ # JSON string.
1315
+ #
1316
+ # The following example creates a resource policy enabling the Route 53
1317
+ # service to put DNS query logs in to the specified log group. Replace
1318
+ # "logArn" with the ARN of your CloudWatch Logs resource, such as a
1319
+ # log group or log stream.
1320
+ #
1321
+ # \\\{ "Version": "2012-10-17" "Statement": \[ \\\{ "Sid":
1322
+ # "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal":
1323
+ # \\\{ "Service": \[ "route53.amazonaws.com" \] \\},
1324
+ # "Action":"logs:PutLogEvents", "Resource": logArn \\} \] \\}
1325
+ #
1326
+ # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1327
+ #
1328
+ # * {Types::PutResourcePolicyResponse#resource_policy #resource_policy} => Types::ResourcePolicy
1329
+ #
1330
+ # @example Request syntax with placeholder values
1331
+ #
1332
+ # resp = client.put_resource_policy({
1333
+ # policy_name: "PolicyName",
1334
+ # policy_document: "PolicyDocument",
1335
+ # })
1336
+ #
1337
+ # @example Response structure
1338
+ #
1339
+ # resp.resource_policy.policy_name #=> String
1340
+ # resp.resource_policy.policy_document #=> String
1341
+ # resp.resource_policy.last_updated_time #=> Integer
1342
+ #
1343
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy AWS API Documentation
1344
+ #
1345
+ # @overload put_resource_policy(params = {})
1346
+ # @param [Hash] params ({})
1347
+ def put_resource_policy(params = {}, options = {})
1348
+ req = build_request(:put_resource_policy, params)
1349
+ req.send_request(options)
1350
+ end
1351
+
1235
1352
  # Sets the retention of the specified log group. A retention policy
1236
- # allows you to configure the number of days you want to retain log
1353
+ # allows you to configure the number of days for which to retain log
1237
1354
  # events in the specified log group.
1238
1355
  #
1239
1356
  # @option params [required, String] :log_group_name
@@ -1274,15 +1391,15 @@ module Aws::CloudWatchLogs
1274
1391
  # * A logical destination that belongs to a different account, for
1275
1392
  # cross-account delivery.
1276
1393
  #
1277
- # * An Amazon Kinesis Firehose stream that belongs to the same account
1278
- # as the subscription filter, for same-account delivery.
1394
+ # * An Amazon Kinesis Firehose delivery stream that belongs to the same
1395
+ # account as the subscription filter, for same-account delivery.
1279
1396
  #
1280
1397
  # * An AWS Lambda function that belongs to the same account as the
1281
1398
  # subscription filter, for same-account delivery.
1282
1399
  #
1283
1400
  # There can only be one subscription filter associated with a log group.
1284
1401
  # If you are updating an existing filter, you must specify the correct
1285
- # name in `filterName`. Otherwise, the call will fail because you cannot
1402
+ # name in `filterName`. Otherwise, the call fails because you cannot
1286
1403
  # associate a second filter with a log group.
1287
1404
  #
1288
1405
  # @option params [required, String] :log_group_name
@@ -1291,9 +1408,9 @@ module Aws::CloudWatchLogs
1291
1408
  # @option params [required, String] :filter_name
1292
1409
  # A name for the subscription filter. If you are updating an existing
1293
1410
  # filter, you must specify the correct name in `filterName`. Otherwise,
1294
- # the call will fail because you cannot associate a second filter with a
1295
- # log group. To find the name of the filter currently associated with a
1296
- # log group, use DescribeSubscriptionFilters.
1411
+ # the call fails because you cannot associate a second filter with a log
1412
+ # group. To find the name of the filter currently associated with a log
1413
+ # group, use DescribeSubscriptionFilters.
1297
1414
  #
1298
1415
  # @option params [required, String] :filter_pattern
1299
1416
  # A filter pattern for subscribing to a filtered stream of log events.
@@ -1308,8 +1425,8 @@ module Aws::CloudWatchLogs
1308
1425
  # * A logical destination (specified using an ARN) belonging to a
1309
1426
  # different account, for cross-account delivery.
1310
1427
  #
1311
- # * An Amazon Kinesis Firehose stream belonging to the same account as
1312
- # the subscription filter, for same-account delivery.
1428
+ # * An Amazon Kinesis Firehose delivery stream belonging to the same
1429
+ # account as the subscription filter, for same-account delivery.
1313
1430
  #
1314
1431
  # * An AWS Lambda function belonging to the same account as the
1315
1432
  # subscription filter, for same-account delivery.
@@ -1392,9 +1509,9 @@ module Aws::CloudWatchLogs
1392
1509
  #
1393
1510
  # @option params [required, String] :filter_pattern
1394
1511
  # A symbolic description of how CloudWatch Logs should interpret the
1395
- # data in each log event. For example, a log event may contain
1396
- # timestamps, IP addresses, strings, and so on. You use the filter
1397
- # pattern to specify what to look for in the log event message.
1512
+ # data in each log event. For example, a log event may contain time
1513
+ # stamps, IP addresses, strings, and so on. You use the filter pattern
1514
+ # to specify what to look for in the log event message.
1398
1515
  #
1399
1516
  # @option params [required, Array<String>] :log_event_messages
1400
1517
  # The log event messages to test.
@@ -1469,7 +1586,7 @@ module Aws::CloudWatchLogs
1469
1586
  params: params,
1470
1587
  config: config)
1471
1588
  context[:gem_name] = 'aws-sdk-cloudwatchlogs'
1472
- context[:gem_version] = '1.0.0'
1589
+ context[:gem_version] = '1.1.0'
1473
1590
  Seahorse::Client::Request.new(handlers, context)
1474
1591
  end
1475
1592
 
@@ -25,6 +25,7 @@ module Aws::CloudWatchLogs
25
25
  DeleteLogGroupRequest = Shapes::StructureShape.new(name: 'DeleteLogGroupRequest')
26
26
  DeleteLogStreamRequest = Shapes::StructureShape.new(name: 'DeleteLogStreamRequest')
27
27
  DeleteMetricFilterRequest = Shapes::StructureShape.new(name: 'DeleteMetricFilterRequest')
28
+ DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
28
29
  DeleteRetentionPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRetentionPolicyRequest')
29
30
  DeleteSubscriptionFilterRequest = Shapes::StructureShape.new(name: 'DeleteSubscriptionFilterRequest')
30
31
  Descending = Shapes::BooleanShape.new(name: 'Descending')
@@ -39,6 +40,8 @@ module Aws::CloudWatchLogs
39
40
  DescribeLogStreamsResponse = Shapes::StructureShape.new(name: 'DescribeLogStreamsResponse')
40
41
  DescribeMetricFiltersRequest = Shapes::StructureShape.new(name: 'DescribeMetricFiltersRequest')
41
42
  DescribeMetricFiltersResponse = Shapes::StructureShape.new(name: 'DescribeMetricFiltersResponse')
43
+ DescribeResourcePoliciesRequest = Shapes::StructureShape.new(name: 'DescribeResourcePoliciesRequest')
44
+ DescribeResourcePoliciesResponse = Shapes::StructureShape.new(name: 'DescribeResourcePoliciesResponse')
42
45
  DescribeSubscriptionFiltersRequest = Shapes::StructureShape.new(name: 'DescribeSubscriptionFiltersRequest')
43
46
  DescribeSubscriptionFiltersResponse = Shapes::StructureShape.new(name: 'DescribeSubscriptionFiltersResponse')
44
47
  Destination = Shapes::StructureShape.new(name: 'Destination')
@@ -102,17 +105,23 @@ module Aws::CloudWatchLogs
102
105
  OrderBy = Shapes::StringShape.new(name: 'OrderBy')
103
106
  OutputLogEvent = Shapes::StructureShape.new(name: 'OutputLogEvent')
104
107
  OutputLogEvents = Shapes::ListShape.new(name: 'OutputLogEvents')
108
+ PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
109
+ PolicyName = Shapes::StringShape.new(name: 'PolicyName')
105
110
  PutDestinationPolicyRequest = Shapes::StructureShape.new(name: 'PutDestinationPolicyRequest')
106
111
  PutDestinationRequest = Shapes::StructureShape.new(name: 'PutDestinationRequest')
107
112
  PutDestinationResponse = Shapes::StructureShape.new(name: 'PutDestinationResponse')
108
113
  PutLogEventsRequest = Shapes::StructureShape.new(name: 'PutLogEventsRequest')
109
114
  PutLogEventsResponse = Shapes::StructureShape.new(name: 'PutLogEventsResponse')
110
115
  PutMetricFilterRequest = Shapes::StructureShape.new(name: 'PutMetricFilterRequest')
116
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
117
+ PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
111
118
  PutRetentionPolicyRequest = Shapes::StructureShape.new(name: 'PutRetentionPolicyRequest')
112
119
  PutSubscriptionFilterRequest = Shapes::StructureShape.new(name: 'PutSubscriptionFilterRequest')
113
120
  RejectedLogEventsInfo = Shapes::StructureShape.new(name: 'RejectedLogEventsInfo')
114
121
  ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
115
122
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
123
+ ResourcePolicies = Shapes::ListShape.new(name: 'ResourcePolicies')
124
+ ResourcePolicy = Shapes::StructureShape.new(name: 'ResourcePolicy')
116
125
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
117
126
  SearchedLogStream = Shapes::StructureShape.new(name: 'SearchedLogStream')
118
127
  SearchedLogStreams = Shapes::ListShape.new(name: 'SearchedLogStreams')
@@ -173,6 +182,9 @@ module Aws::CloudWatchLogs
173
182
  DeleteMetricFilterRequest.add_member(:filter_name, Shapes::ShapeRef.new(shape: FilterName, required: true, location_name: "filterName"))
174
183
  DeleteMetricFilterRequest.struct_class = Types::DeleteMetricFilterRequest
175
184
 
185
+ DeleteResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
186
+ DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
187
+
176
188
  DeleteRetentionPolicyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
177
189
  DeleteRetentionPolicyRequest.struct_class = Types::DeleteRetentionPolicyRequest
178
190
 
@@ -232,6 +244,14 @@ module Aws::CloudWatchLogs
232
244
  DescribeMetricFiltersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
233
245
  DescribeMetricFiltersResponse.struct_class = Types::DescribeMetricFiltersResponse
234
246
 
247
+ DescribeResourcePoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
248
+ DescribeResourcePoliciesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeLimit, location_name: "limit"))
249
+ DescribeResourcePoliciesRequest.struct_class = Types::DescribeResourcePoliciesRequest
250
+
251
+ DescribeResourcePoliciesResponse.add_member(:resource_policies, Shapes::ShapeRef.new(shape: ResourcePolicies, location_name: "resourcePolicies"))
252
+ DescribeResourcePoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
253
+ DescribeResourcePoliciesResponse.struct_class = Types::DescribeResourcePoliciesResponse
254
+
235
255
  DescribeSubscriptionFiltersRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
236
256
  DescribeSubscriptionFiltersRequest.add_member(:filter_name_prefix, Shapes::ShapeRef.new(shape: FilterName, location_name: "filterNamePrefix"))
237
257
  DescribeSubscriptionFiltersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -409,6 +429,13 @@ module Aws::CloudWatchLogs
409
429
  PutMetricFilterRequest.add_member(:metric_transformations, Shapes::ShapeRef.new(shape: MetricTransformations, required: true, location_name: "metricTransformations"))
410
430
  PutMetricFilterRequest.struct_class = Types::PutMetricFilterRequest
411
431
 
432
+ PutResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
433
+ PutResourcePolicyRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policyDocument"))
434
+ PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
435
+
436
+ PutResourcePolicyResponse.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "resourcePolicy"))
437
+ PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
438
+
412
439
  PutRetentionPolicyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
413
440
  PutRetentionPolicyRequest.add_member(:retention_in_days, Shapes::ShapeRef.new(shape: Days, required: true, location_name: "retentionInDays"))
414
441
  PutRetentionPolicyRequest.struct_class = Types::PutRetentionPolicyRequest
@@ -426,6 +453,13 @@ module Aws::CloudWatchLogs
426
453
  RejectedLogEventsInfo.add_member(:expired_log_event_end_index, Shapes::ShapeRef.new(shape: LogEventIndex, location_name: "expiredLogEventEndIndex"))
427
454
  RejectedLogEventsInfo.struct_class = Types::RejectedLogEventsInfo
428
455
 
456
+ ResourcePolicies.member = Shapes::ShapeRef.new(shape: ResourcePolicy)
457
+
458
+ ResourcePolicy.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
459
+ ResourcePolicy.add_member(:policy_document, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policyDocument"))
460
+ ResourcePolicy.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedTime"))
461
+ ResourcePolicy.struct_class = Types::ResourcePolicy
462
+
429
463
  SearchedLogStream.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: LogStreamName, location_name: "logStreamName"))
430
464
  SearchedLogStream.add_member(:searched_completely, Shapes::ShapeRef.new(shape: LogStreamSearchedCompletely, location_name: "searchedCompletely"))
431
465
  SearchedLogStream.struct_class = Types::SearchedLogStream
@@ -579,6 +613,17 @@ module Aws::CloudWatchLogs
579
613
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
580
614
  end)
581
615
 
616
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
617
+ o.name = "DeleteResourcePolicy"
618
+ o.http_method = "POST"
619
+ o.http_request_uri = "/"
620
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
621
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
622
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
623
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
624
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
625
+ end)
626
+
582
627
  api.add_operation(:delete_retention_policy, Seahorse::Model::Operation.new.tap do |o|
583
628
  o.name = "DeleteRetentionPolicy"
584
629
  o.http_method = "POST"
@@ -679,6 +724,16 @@ module Aws::CloudWatchLogs
679
724
  )
680
725
  end)
681
726
 
727
+ api.add_operation(:describe_resource_policies, Seahorse::Model::Operation.new.tap do |o|
728
+ o.name = "DescribeResourcePolicies"
729
+ o.http_method = "POST"
730
+ o.http_request_uri = "/"
731
+ o.input = Shapes::ShapeRef.new(shape: DescribeResourcePoliciesRequest)
732
+ o.output = Shapes::ShapeRef.new(shape: DescribeResourcePoliciesResponse)
733
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
734
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
735
+ end)
736
+
682
737
  api.add_operation(:describe_subscription_filters, Seahorse::Model::Operation.new.tap do |o|
683
738
  o.name = "DescribeSubscriptionFilters"
684
739
  o.http_method = "POST"
@@ -788,6 +843,17 @@ module Aws::CloudWatchLogs
788
843
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
789
844
  end)
790
845
 
846
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
847
+ o.name = "PutResourcePolicy"
848
+ o.http_method = "POST"
849
+ o.http_request_uri = "/"
850
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
851
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
852
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
853
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
854
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
855
+ end)
856
+
791
857
  api.add_operation(:put_retention_policy, Seahorse::Model::Operation.new.tap do |o|
792
858
  o.name = "PutRetentionPolicy"
793
859
  o.http_method = "POST"
@@ -54,14 +54,14 @@ module Aws::CloudWatchLogs
54
54
  #
55
55
  # @!attribute [rw] from
56
56
  # The start time of the range for the request, expressed as the number
57
- # of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a
58
- # timestamp earlier than this time are not exported.
57
+ # of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time
58
+ # stamp earlier than this time are not exported.
59
59
  # @return [Integer]
60
60
  #
61
61
  # @!attribute [rw] to
62
62
  # The end time of the range for the request, expressed as the number
63
- # of milliseconds since Jan 1, 1970 00:00:00 UTC. Events with a
64
- # timestamp later than this time are not exported.
63
+ # of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time
64
+ # stamp later than this time are not exported.
65
65
  # @return [Integer]
66
66
  #
67
67
  # @!attribute [rw] destination
@@ -232,6 +232,24 @@ module Aws::CloudWatchLogs
232
232
  include Aws::Structure
233
233
  end
234
234
 
235
+ # @note When making an API call, you may pass DeleteResourcePolicyRequest
236
+ # data as a hash:
237
+ #
238
+ # {
239
+ # policy_name: "PolicyName",
240
+ # }
241
+ #
242
+ # @!attribute [rw] policy_name
243
+ # The name of the policy to be revoked. This parameter is required.
244
+ # @return [String]
245
+ #
246
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicyRequest AWS API Documentation
247
+ #
248
+ class DeleteResourcePolicyRequest < Struct.new(
249
+ :policy_name)
250
+ include Aws::Structure
251
+ end
252
+
235
253
  # @note When making an API call, you may pass DeleteRetentionPolicyRequest
236
254
  # data as a hash:
237
255
  #
@@ -449,7 +467,7 @@ module Aws::CloudWatchLogs
449
467
  # @!attribute [rw] log_stream_name_prefix
450
468
  # The prefix to match.
451
469
  #
452
- # You cannot specify this parameter if `orderBy` is `LastEventTime`.
470
+ # iIf `orderBy` is `LastEventTime`,you cannot specify this parameter.
453
471
  # @return [String]
454
472
  #
455
473
  # @!attribute [rw] order_by
@@ -462,7 +480,7 @@ module Aws::CloudWatchLogs
462
480
  #
463
481
  # lastEventTimestamp represents the time of the most recent log event
464
482
  # in the log stream in CloudWatch Logs. This number is expressed as
465
- # the number of milliseconds since Jan 1, 1970 00:00:00 UTC.
483
+ # the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
466
484
  # lastEventTimeStamp updates on an eventual consistency basis. It
467
485
  # typically updates in less than an hour from ingestion, but may take
468
486
  # longer in some rare situations.
@@ -580,6 +598,49 @@ module Aws::CloudWatchLogs
580
598
  include Aws::Structure
581
599
  end
582
600
 
601
+ # @note When making an API call, you may pass DescribeResourcePoliciesRequest
602
+ # data as a hash:
603
+ #
604
+ # {
605
+ # next_token: "NextToken",
606
+ # limit: 1,
607
+ # }
608
+ #
609
+ # @!attribute [rw] next_token
610
+ # The token for the next set of items to return. The token expires
611
+ # after 24 hours.
612
+ # @return [String]
613
+ #
614
+ # @!attribute [rw] limit
615
+ # The maximum number of resource policies to be displayed with one
616
+ # call of this API.
617
+ # @return [Integer]
618
+ #
619
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePoliciesRequest AWS API Documentation
620
+ #
621
+ class DescribeResourcePoliciesRequest < Struct.new(
622
+ :next_token,
623
+ :limit)
624
+ include Aws::Structure
625
+ end
626
+
627
+ # @!attribute [rw] resource_policies
628
+ # The resource policies that exist in this account.
629
+ # @return [Array<Types::ResourcePolicy>]
630
+ #
631
+ # @!attribute [rw] next_token
632
+ # The token for the next set of items to return. The token expires
633
+ # after 24 hours.
634
+ # @return [String]
635
+ #
636
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePoliciesResponse AWS API Documentation
637
+ #
638
+ class DescribeResourcePoliciesResponse < Struct.new(
639
+ :resource_policies,
640
+ :next_token)
641
+ include Aws::Structure
642
+ end
643
+
583
644
  # @note When making an API call, you may pass DescribeSubscriptionFiltersRequest
584
645
  # data as a hash:
585
646
  #
@@ -644,8 +705,8 @@ module Aws::CloudWatchLogs
644
705
  # @return [String]
645
706
  #
646
707
  # @!attribute [rw] target_arn
647
- # The Amazon Resource Name (ARN) of the physical target where the log
648
- # events will be delivered (for example, a Kinesis stream).
708
+ # The Amazon Resource Name (ARN) of the physical target to where the
709
+ # log events are delivered (for example, a Kinesis stream).
649
710
  # @return [String]
650
711
  #
651
712
  # @!attribute [rw] role_arn
@@ -664,7 +725,7 @@ module Aws::CloudWatchLogs
664
725
  #
665
726
  # @!attribute [rw] creation_time
666
727
  # The creation time of the destination, expressed as the number of
667
- # milliseconds since Jan 1, 1970 00:00:00 UTC.
728
+ # milliseconds after Jan 1, 1970 00:00:00 UTC.
668
729
  # @return [Integer]
669
730
  #
670
731
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/Destination AWS API Documentation
@@ -694,14 +755,14 @@ module Aws::CloudWatchLogs
694
755
  # @return [String]
695
756
  #
696
757
  # @!attribute [rw] from
697
- # The start time, expressed as the number of milliseconds since Jan 1,
698
- # 1970 00:00:00 UTC. Events with a timestamp prior to this time are
699
- # not exported.
758
+ # The start time, expressed as the number of milliseconds after Jan 1,
759
+ # 1970 00:00:00 UTC. Events with a time stamp before this time are not
760
+ # exported.
700
761
  # @return [Integer]
701
762
  #
702
763
  # @!attribute [rw] to
703
- # The end time, expressed as the number of milliseconds since Jan 1,
704
- # 1970 00:00:00 UTC. Events with a timestamp later than this time are
764
+ # The end time, expressed as the number of milliseconds after Jan 1,
765
+ # 1970 00:00:00 UTC. Events with a time stamp later than this time are
705
766
  # not exported.
706
767
  # @return [Integer]
707
768
  #
@@ -741,12 +802,12 @@ module Aws::CloudWatchLogs
741
802
  #
742
803
  # @!attribute [rw] creation_time
743
804
  # The creation time of the export task, expressed as the number of
744
- # milliseconds since Jan 1, 1970 00:00:00 UTC.
805
+ # milliseconds after Jan 1, 1970 00:00:00 UTC.
745
806
  # @return [Integer]
746
807
  #
747
808
  # @!attribute [rw] completion_time
748
809
  # The completion time of the export task, expressed as the number of
749
- # milliseconds since Jan 1, 1970 00:00:00 UTC.
810
+ # milliseconds after Jan 1, 1970 00:00:00 UTC.
750
811
  # @return [Integer]
751
812
  #
752
813
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ExportTaskExecutionInfo AWS API Documentation
@@ -799,13 +860,13 @@ module Aws::CloudWatchLogs
799
860
  #
800
861
  # @!attribute [rw] start_time
801
862
  # The start of the time range, expressed as the number of milliseconds
802
- # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp prior to
803
- # this time are not returned.
863
+ # after Jan 1, 1970 00:00:00 UTC. Events with a time stamp before this
864
+ # time are not returned.
804
865
  # @return [Integer]
805
866
  #
806
867
  # @!attribute [rw] end_time
807
868
  # The end of the time range, expressed as the number of milliseconds
808
- # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than
869
+ # after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than
809
870
  # this time are not returned.
810
871
  # @return [Integer]
811
872
  #
@@ -827,7 +888,7 @@ module Aws::CloudWatchLogs
827
888
  # @!attribute [rw] interleaved
828
889
  # If the value is true, the operation makes a best effort to provide
829
890
  # responses that contain events from multiple log streams within the
830
- # log group interleaved in a single response. If the value is false
891
+ # log group, interleaved in a single response. If the value is false,
831
892
  # all the matched log events in the first log stream are searched
832
893
  # first, then those in the next log stream, and so on. The default is
833
894
  # false.
@@ -878,7 +939,7 @@ module Aws::CloudWatchLogs
878
939
  #
879
940
  # @!attribute [rw] timestamp
880
941
  # The time the event occurred, expressed as the number of milliseconds
881
- # since Jan 1, 1970 00:00:00 UTC.
942
+ # after Jan 1, 1970 00:00:00 UTC.
882
943
  # @return [Integer]
883
944
  #
884
945
  # @!attribute [rw] message
@@ -887,7 +948,7 @@ module Aws::CloudWatchLogs
887
948
  #
888
949
  # @!attribute [rw] ingestion_time
889
950
  # The time the event was ingested, expressed as the number of
890
- # milliseconds since Jan 1, 1970 00:00:00 UTC.
951
+ # milliseconds after Jan 1, 1970 00:00:00 UTC.
891
952
  # @return [Integer]
892
953
  #
893
954
  # @!attribute [rw] event_id
@@ -928,13 +989,13 @@ module Aws::CloudWatchLogs
928
989
  #
929
990
  # @!attribute [rw] start_time
930
991
  # The start of the time range, expressed as the number of milliseconds
931
- # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than
932
- # this time are not included.
992
+ # after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier
993
+ # than this time are not included.
933
994
  # @return [Integer]
934
995
  #
935
996
  # @!attribute [rw] end_time
936
997
  # The end of the time range, expressed as the number of milliseconds
937
- # since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than
998
+ # after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than
938
999
  # this time are not included.
939
1000
  # @return [Integer]
940
1001
  #
@@ -946,7 +1007,7 @@ module Aws::CloudWatchLogs
946
1007
  # @!attribute [rw] limit
947
1008
  # The maximum number of log events returned. If you don't specify a
948
1009
  # value, the maximum is as many log events as can fit in a response
949
- # size of 1MB, up to 10,000 log events.
1010
+ # size of 1 MB, up to 10,000 log events.
950
1011
  # @return [Integer]
951
1012
  #
952
1013
  # @!attribute [rw] start_from_head
@@ -1004,7 +1065,7 @@ module Aws::CloudWatchLogs
1004
1065
  #
1005
1066
  # @!attribute [rw] timestamp
1006
1067
  # The time the event occurred, expressed as the number of milliseconds
1007
- # since Jan 1, 1970 00:00:00 UTC.
1068
+ # fter Jan 1, 1970 00:00:00 UTC.
1008
1069
  # @return [Integer]
1009
1070
  #
1010
1071
  # @!attribute [rw] message
@@ -1056,7 +1117,7 @@ module Aws::CloudWatchLogs
1056
1117
  #
1057
1118
  # @!attribute [rw] creation_time
1058
1119
  # The creation time of the log group, expressed as the number of
1059
- # milliseconds since Jan 1, 1970 00:00:00 UTC.
1120
+ # milliseconds after Jan 1, 1970 00:00:00 UTC.
1060
1121
  # @return [Integer]
1061
1122
  #
1062
1123
  # @!attribute [rw] retention_in_days
@@ -1098,24 +1159,24 @@ module Aws::CloudWatchLogs
1098
1159
  #
1099
1160
  # @!attribute [rw] creation_time
1100
1161
  # The creation time of the stream, expressed as the number of
1101
- # milliseconds since Jan 1, 1970 00:00:00 UTC.
1162
+ # milliseconds after Jan 1, 1970 00:00:00 UTC.
1102
1163
  # @return [Integer]
1103
1164
  #
1104
1165
  # @!attribute [rw] first_event_timestamp
1105
1166
  # The time of the first event, expressed as the number of milliseconds
1106
- # since Jan 1, 1970 00:00:00 UTC.
1167
+ # after Jan 1, 1970 00:00:00 UTC.
1107
1168
  # @return [Integer]
1108
1169
  #
1109
1170
  # @!attribute [rw] last_event_timestamp
1110
1171
  # the time of the most recent log event in the log stream in
1111
1172
  # CloudWatch Logs. This number is expressed as the number of
1112
- # milliseconds since Jan 1, 1970 00:00:00 UTC. lastEventTime updates
1173
+ # milliseconds after Jan 1, 1970 00:00:00 UTC. lastEventTime updates
1113
1174
  # on an eventual consistency basis. It typically updates in less than
1114
1175
  # an hour from ingestion, but may take longer in some rare situations.
1115
1176
  # @return [Integer]
1116
1177
  #
1117
1178
  # @!attribute [rw] last_ingestion_time
1118
- # The ingestion time, expressed as the number of milliseconds since
1179
+ # The ingestion time, expressed as the number of milliseconds after
1119
1180
  # Jan 1, 1970 00:00:00 UTC.
1120
1181
  # @return [Integer]
1121
1182
  #
@@ -1155,9 +1216,9 @@ module Aws::CloudWatchLogs
1155
1216
  #
1156
1217
  # @!attribute [rw] filter_pattern
1157
1218
  # A symbolic description of how CloudWatch Logs should interpret the
1158
- # data in each log event. For example, a log event may contain
1159
- # timestamps, IP addresses, strings, and so on. You use the filter
1160
- # pattern to specify what to look for in the log event message.
1219
+ # data in each log event. For example, a log event may contain time
1220
+ # stamps, IP addresses, strings, and so on. You use the filter pattern
1221
+ # to specify what to look for in the log event message.
1161
1222
  # @return [String]
1162
1223
  #
1163
1224
  # @!attribute [rw] metric_transformations
@@ -1166,7 +1227,7 @@ module Aws::CloudWatchLogs
1166
1227
  #
1167
1228
  # @!attribute [rw] creation_time
1168
1229
  # The creation time of the metric filter, expressed as the number of
1169
- # milliseconds since Jan 1, 1970 00:00:00 UTC.
1230
+ # milliseconds after Jan 1, 1970 00:00:00 UTC.
1170
1231
  # @return [Integer]
1171
1232
  #
1172
1233
  # @!attribute [rw] log_group_name
@@ -1207,7 +1268,7 @@ module Aws::CloudWatchLogs
1207
1268
  include Aws::Structure
1208
1269
  end
1209
1270
 
1210
- # Indicates how to transform ingested log events into metric data in a
1271
+ # Indicates how to transform ingested log events in to metric data in a
1211
1272
  # CloudWatch metric.
1212
1273
  #
1213
1274
  # @note When making an API call, you may pass MetricTransformation
@@ -1252,7 +1313,7 @@ module Aws::CloudWatchLogs
1252
1313
  #
1253
1314
  # @!attribute [rw] timestamp
1254
1315
  # The time the event occurred, expressed as the number of milliseconds
1255
- # since Jan 1, 1970 00:00:00 UTC.
1316
+ # after Jan 1, 1970 00:00:00 UTC.
1256
1317
  # @return [Integer]
1257
1318
  #
1258
1319
  # @!attribute [rw] message
@@ -1261,7 +1322,7 @@ module Aws::CloudWatchLogs
1261
1322
  #
1262
1323
  # @!attribute [rw] ingestion_time
1263
1324
  # The time the event was ingested, expressed as the number of
1264
- # milliseconds since Jan 1, 1970 00:00:00 UTC.
1325
+ # milliseconds after Jan 1, 1970 00:00:00 UTC.
1265
1326
  # @return [Integer]
1266
1327
  #
1267
1328
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/OutputLogEvent AWS API Documentation
@@ -1312,13 +1373,14 @@ module Aws::CloudWatchLogs
1312
1373
  # @return [String]
1313
1374
  #
1314
1375
  # @!attribute [rw] target_arn
1315
- # The ARN of an Amazon Kinesis stream to deliver matching log events
1316
- # to.
1376
+ # The ARN of an Amazon Kinesis stream to which to deliver matching log
1377
+ # events.
1317
1378
  # @return [String]
1318
1379
  #
1319
1380
  # @!attribute [rw] role_arn
1320
1381
  # The ARN of an IAM role that grants CloudWatch Logs permissions to
1321
- # call Amazon Kinesis PutRecord on the destination stream.
1382
+ # call the Amazon Kinesis PutRecord operation on the destination
1383
+ # stream.
1322
1384
  # @return [String]
1323
1385
  #
1324
1386
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationRequest AWS API Documentation
@@ -1369,7 +1431,12 @@ module Aws::CloudWatchLogs
1369
1431
  # @return [Array<Types::InputLogEvent>]
1370
1432
  #
1371
1433
  # @!attribute [rw] sequence_token
1372
- # The sequence token.
1434
+ # The sequence token obtained from the response of the previous
1435
+ # `PutLogEvents` call. An upload in a newly created log stream does
1436
+ # not require a sequence token. You can also get the sequence token
1437
+ # using DescribeLogStreams. If you call `PutLogEvents` twice within a
1438
+ # narrow time period using the same value for `sequenceToken`, both
1439
+ # calls may be successful, or one may be rejected.
1373
1440
  # @return [String]
1374
1441
  #
1375
1442
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEventsRequest AWS API Documentation
@@ -1429,7 +1496,7 @@ module Aws::CloudWatchLogs
1429
1496
  # @return [String]
1430
1497
  #
1431
1498
  # @!attribute [rw] metric_transformations
1432
- # A collection of information needed to define how metric data gets
1499
+ # A collection of information that defines how metric data gets
1433
1500
  # emitted.
1434
1501
  # @return [Array<Types::MetricTransformation>]
1435
1502
  #
@@ -1443,6 +1510,54 @@ module Aws::CloudWatchLogs
1443
1510
  include Aws::Structure
1444
1511
  end
1445
1512
 
1513
+ # @note When making an API call, you may pass PutResourcePolicyRequest
1514
+ # data as a hash:
1515
+ #
1516
+ # {
1517
+ # policy_name: "PolicyName",
1518
+ # policy_document: "PolicyDocument",
1519
+ # }
1520
+ #
1521
+ # @!attribute [rw] policy_name
1522
+ # Name of the new policy. This parameter is required.
1523
+ # @return [String]
1524
+ #
1525
+ # @!attribute [rw] policy_document
1526
+ # Details of the new policy, including the identity of the principal
1527
+ # that is enabled to put logs to this account. This is formatted as a
1528
+ # JSON string.
1529
+ #
1530
+ # The following example creates a resource policy enabling the Route
1531
+ # 53 service to put DNS query logs in to the specified log group.
1532
+ # Replace "logArn" with the ARN of your CloudWatch Logs resource,
1533
+ # such as a log group or log stream.
1534
+ #
1535
+ # \\\{ "Version": "2012-10-17" "Statement": \[ \\\{ "Sid":
1536
+ # "Route53LogsToCloudWatchLogs", "Effect": "Allow",
1537
+ # "Principal": \\\{ "Service": \[ "route53.amazonaws.com" \]
1538
+ # \\}, "Action":"logs:PutLogEvents", "Resource": logArn \\} \]
1539
+ # \\}
1540
+ # @return [String]
1541
+ #
1542
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyRequest AWS API Documentation
1543
+ #
1544
+ class PutResourcePolicyRequest < Struct.new(
1545
+ :policy_name,
1546
+ :policy_document)
1547
+ include Aws::Structure
1548
+ end
1549
+
1550
+ # @!attribute [rw] resource_policy
1551
+ # The new policy.
1552
+ # @return [Types::ResourcePolicy]
1553
+ #
1554
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyResponse AWS API Documentation
1555
+ #
1556
+ class PutResourcePolicyResponse < Struct.new(
1557
+ :resource_policy)
1558
+ include Aws::Structure
1559
+ end
1560
+
1446
1561
  # @note When making an API call, you may pass PutRetentionPolicyRequest
1447
1562
  # data as a hash:
1448
1563
  #
@@ -1488,7 +1603,7 @@ module Aws::CloudWatchLogs
1488
1603
  # @!attribute [rw] filter_name
1489
1604
  # A name for the subscription filter. If you are updating an existing
1490
1605
  # filter, you must specify the correct name in `filterName`.
1491
- # Otherwise, the call will fail because you cannot associate a second
1606
+ # Otherwise, the call fails because you cannot associate a second
1492
1607
  # filter with a log group. To find the name of the filter currently
1493
1608
  # associated with a log group, use DescribeSubscriptionFilters.
1494
1609
  # @return [String]
@@ -1507,8 +1622,8 @@ module Aws::CloudWatchLogs
1507
1622
  # * A logical destination (specified using an ARN) belonging to a
1508
1623
  # different account, for cross-account delivery.
1509
1624
  #
1510
- # * An Amazon Kinesis Firehose stream belonging to the same account as
1511
- # the subscription filter, for same-account delivery.
1625
+ # * An Amazon Kinesis Firehose delivery stream belonging to the same
1626
+ # account as the subscription filter, for same-account delivery.
1512
1627
  #
1513
1628
  # * An AWS Lambda function belonging to the same account as the
1514
1629
  # subscription filter, for same-account delivery.
@@ -1563,6 +1678,31 @@ module Aws::CloudWatchLogs
1563
1678
  include Aws::Structure
1564
1679
  end
1565
1680
 
1681
+ # A policy enabling one or more entities to put logs to a log group in
1682
+ # this account.
1683
+ #
1684
+ # @!attribute [rw] policy_name
1685
+ # The name of the resource policy.
1686
+ # @return [String]
1687
+ #
1688
+ # @!attribute [rw] policy_document
1689
+ # The details of the policy.
1690
+ # @return [String]
1691
+ #
1692
+ # @!attribute [rw] last_updated_time
1693
+ # Time stamp showing when this policy was last updated, expressed as
1694
+ # the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1695
+ # @return [Integer]
1696
+ #
1697
+ # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ResourcePolicy AWS API Documentation
1698
+ #
1699
+ class ResourcePolicy < Struct.new(
1700
+ :policy_name,
1701
+ :policy_document,
1702
+ :last_updated_time)
1703
+ include Aws::Structure
1704
+ end
1705
+
1566
1706
  # Represents the search status of a log stream.
1567
1707
  #
1568
1708
  # @!attribute [rw] log_stream_name
@@ -1593,9 +1733,9 @@ module Aws::CloudWatchLogs
1593
1733
  #
1594
1734
  # @!attribute [rw] filter_pattern
1595
1735
  # A symbolic description of how CloudWatch Logs should interpret the
1596
- # data in each log event. For example, a log event may contain
1597
- # timestamps, IP addresses, strings, and so on. You use the filter
1598
- # pattern to specify what to look for in the log event message.
1736
+ # data in each log event. For example, a log event may contain time
1737
+ # stamps, IP addresses, strings, and so on. You use the filter pattern
1738
+ # to specify what to look for in the log event message.
1599
1739
  # @return [String]
1600
1740
  #
1601
1741
  # @!attribute [rw] destination_arn
@@ -1612,7 +1752,7 @@ module Aws::CloudWatchLogs
1612
1752
  #
1613
1753
  # @!attribute [rw] creation_time
1614
1754
  # The creation time of the subscription filter, expressed as the
1615
- # number of milliseconds since Jan 1, 1970 00:00:00 UTC.
1755
+ # number of milliseconds after Jan 1, 1970 00:00:00 UTC.
1616
1756
  # @return [Integer]
1617
1757
  #
1618
1758
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/SubscriptionFilter AWS API Documentation
@@ -1664,9 +1804,9 @@ module Aws::CloudWatchLogs
1664
1804
  #
1665
1805
  # @!attribute [rw] filter_pattern
1666
1806
  # A symbolic description of how CloudWatch Logs should interpret the
1667
- # data in each log event. For example, a log event may contain
1668
- # timestamps, IP addresses, strings, and so on. You use the filter
1669
- # pattern to specify what to look for in the log event message.
1807
+ # data in each log event. For example, a log event may contain time
1808
+ # stamps, IP addresses, strings, and so on. You use the filter pattern
1809
+ # to specify what to look for in the log event message.
1670
1810
  # @return [String]
1671
1811
  #
1672
1812
  # @!attribute [rw] log_event_messages
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatchlogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -56,7 +56,9 @@ files:
56
56
  homepage: http://github.com/aws/aws-sdk-ruby
57
57
  licenses:
58
58
  - Apache-2.0
59
- metadata: {}
59
+ metadata:
60
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-cloudwatchlogs
61
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-cloudwatchlogs/CHANGELOG.md
60
62
  post_install_message:
61
63
  rdoc_options: []
62
64
  require_paths: