aws-sdk-cloudwatchlogs 1.55.0 → 1.57.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +515 -129
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +87 -0
- data/lib/aws-sdk-cloudwatchlogs/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-cloudwatchlogs/endpoint_provider.rb +84 -85
- data/lib/aws-sdk-cloudwatchlogs/endpoints.rb +42 -0
- data/lib/aws-sdk-cloudwatchlogs/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-cloudwatchlogs/types.rb +429 -104
- data/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- metadata +2 -2
@@ -14,6 +14,8 @@ module Aws::CloudWatchLogs
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
AccessPolicy = Shapes::StringShape.new(name: 'AccessPolicy')
|
17
|
+
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
18
|
+
AccountIds = Shapes::ListShape.new(name: 'AccountIds')
|
17
19
|
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
18
20
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
19
21
|
AssociateKmsKeyRequest = Shapes::StructureShape.new(name: 'AssociateKmsKeyRequest')
|
@@ -23,8 +25,11 @@ module Aws::CloudWatchLogs
|
|
23
25
|
CreateLogGroupRequest = Shapes::StructureShape.new(name: 'CreateLogGroupRequest')
|
24
26
|
CreateLogStreamRequest = Shapes::StructureShape.new(name: 'CreateLogStreamRequest')
|
25
27
|
DataAlreadyAcceptedException = Shapes::StructureShape.new(name: 'DataAlreadyAcceptedException')
|
28
|
+
DataProtectionPolicyDocument = Shapes::StringShape.new(name: 'DataProtectionPolicyDocument')
|
29
|
+
DataProtectionStatus = Shapes::StringShape.new(name: 'DataProtectionStatus')
|
26
30
|
Days = Shapes::IntegerShape.new(name: 'Days')
|
27
31
|
DefaultValue = Shapes::FloatShape.new(name: 'DefaultValue')
|
32
|
+
DeleteDataProtectionPolicyRequest = Shapes::StructureShape.new(name: 'DeleteDataProtectionPolicyRequest')
|
28
33
|
DeleteDestinationRequest = Shapes::StructureShape.new(name: 'DeleteDestinationRequest')
|
29
34
|
DeleteLogGroupRequest = Shapes::StructureShape.new(name: 'DeleteLogGroupRequest')
|
30
35
|
DeleteLogStreamRequest = Shapes::StructureShape.new(name: 'DeleteLogStreamRequest')
|
@@ -88,6 +93,8 @@ module Aws::CloudWatchLogs
|
|
88
93
|
FilteredLogEvent = Shapes::StructureShape.new(name: 'FilteredLogEvent')
|
89
94
|
FilteredLogEvents = Shapes::ListShape.new(name: 'FilteredLogEvents')
|
90
95
|
ForceUpdate = Shapes::BooleanShape.new(name: 'ForceUpdate')
|
96
|
+
GetDataProtectionPolicyRequest = Shapes::StructureShape.new(name: 'GetDataProtectionPolicyRequest')
|
97
|
+
GetDataProtectionPolicyResponse = Shapes::StructureShape.new(name: 'GetDataProtectionPolicyResponse')
|
91
98
|
GetLogEventsRequest = Shapes::StructureShape.new(name: 'GetLogEventsRequest')
|
92
99
|
GetLogEventsResponse = Shapes::StructureShape.new(name: 'GetLogEventsResponse')
|
93
100
|
GetLogGroupFieldsRequest = Shapes::StructureShape.new(name: 'GetLogGroupFieldsRequest')
|
@@ -96,6 +103,7 @@ module Aws::CloudWatchLogs
|
|
96
103
|
GetLogRecordResponse = Shapes::StructureShape.new(name: 'GetLogRecordResponse')
|
97
104
|
GetQueryResultsRequest = Shapes::StructureShape.new(name: 'GetQueryResultsRequest')
|
98
105
|
GetQueryResultsResponse = Shapes::StructureShape.new(name: 'GetQueryResultsResponse')
|
106
|
+
IncludeLinkedAccounts = Shapes::BooleanShape.new(name: 'IncludeLinkedAccounts')
|
99
107
|
InputLogEvent = Shapes::StructureShape.new(name: 'InputLogEvent')
|
100
108
|
InputLogEvents = Shapes::ListShape.new(name: 'InputLogEvents')
|
101
109
|
InputLogStreamNames = Shapes::ListShape.new(name: 'InputLogStreamNames')
|
@@ -113,7 +121,10 @@ module Aws::CloudWatchLogs
|
|
113
121
|
LogGroup = Shapes::StructureShape.new(name: 'LogGroup')
|
114
122
|
LogGroupField = Shapes::StructureShape.new(name: 'LogGroupField')
|
115
123
|
LogGroupFieldList = Shapes::ListShape.new(name: 'LogGroupFieldList')
|
124
|
+
LogGroupIdentifier = Shapes::StringShape.new(name: 'LogGroupIdentifier')
|
125
|
+
LogGroupIdentifiers = Shapes::ListShape.new(name: 'LogGroupIdentifiers')
|
116
126
|
LogGroupName = Shapes::StringShape.new(name: 'LogGroupName')
|
127
|
+
LogGroupNamePattern = Shapes::StringShape.new(name: 'LogGroupNamePattern')
|
117
128
|
LogGroupNames = Shapes::ListShape.new(name: 'LogGroupNames')
|
118
129
|
LogGroups = Shapes::ListShape.new(name: 'LogGroups')
|
119
130
|
LogRecord = Shapes::MapShape.new(name: 'LogRecord')
|
@@ -141,6 +152,8 @@ module Aws::CloudWatchLogs
|
|
141
152
|
Percentage = Shapes::IntegerShape.new(name: 'Percentage')
|
142
153
|
PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
|
143
154
|
PolicyName = Shapes::StringShape.new(name: 'PolicyName')
|
155
|
+
PutDataProtectionPolicyRequest = Shapes::StructureShape.new(name: 'PutDataProtectionPolicyRequest')
|
156
|
+
PutDataProtectionPolicyResponse = Shapes::StructureShape.new(name: 'PutDataProtectionPolicyResponse')
|
144
157
|
PutDestinationPolicyRequest = Shapes::StructureShape.new(name: 'PutDestinationPolicyRequest')
|
145
158
|
PutDestinationRequest = Shapes::StructureShape.new(name: 'PutDestinationRequest')
|
146
159
|
PutDestinationResponse = Shapes::StructureShape.new(name: 'PutDestinationResponse')
|
@@ -205,11 +218,14 @@ module Aws::CloudWatchLogs
|
|
205
218
|
Timestamp = Shapes::IntegerShape.new(name: 'Timestamp')
|
206
219
|
Token = Shapes::StringShape.new(name: 'Token')
|
207
220
|
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
221
|
+
Unmask = Shapes::BooleanShape.new(name: 'Unmask')
|
208
222
|
UnrecognizedClientException = Shapes::StructureShape.new(name: 'UnrecognizedClientException')
|
209
223
|
UntagLogGroupRequest = Shapes::StructureShape.new(name: 'UntagLogGroupRequest')
|
210
224
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
211
225
|
Value = Shapes::StringShape.new(name: 'Value')
|
212
226
|
|
227
|
+
AccountIds.member = Shapes::ShapeRef.new(shape: AccountId)
|
228
|
+
|
213
229
|
AssociateKmsKeyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
214
230
|
AssociateKmsKeyRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, required: true, location_name: "kmsKeyId"))
|
215
231
|
AssociateKmsKeyRequest.struct_class = Types::AssociateKmsKeyRequest
|
@@ -241,6 +257,9 @@ module Aws::CloudWatchLogs
|
|
241
257
|
DataAlreadyAcceptedException.add_member(:expected_sequence_token, Shapes::ShapeRef.new(shape: SequenceToken, location_name: "expectedSequenceToken"))
|
242
258
|
DataAlreadyAcceptedException.struct_class = Types::DataAlreadyAcceptedException
|
243
259
|
|
260
|
+
DeleteDataProtectionPolicyRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, required: true, location_name: "logGroupIdentifier"))
|
261
|
+
DeleteDataProtectionPolicyRequest.struct_class = Types::DeleteDataProtectionPolicyRequest
|
262
|
+
|
244
263
|
DeleteDestinationRequest.add_member(:destination_name, Shapes::ShapeRef.new(shape: DestinationName, required: true, location_name: "destinationName"))
|
245
264
|
DeleteDestinationRequest.struct_class = Types::DeleteDestinationRequest
|
246
265
|
|
@@ -290,9 +309,12 @@ module Aws::CloudWatchLogs
|
|
290
309
|
DescribeExportTasksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
291
310
|
DescribeExportTasksResponse.struct_class = Types::DescribeExportTasksResponse
|
292
311
|
|
312
|
+
DescribeLogGroupsRequest.add_member(:account_identifiers, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIdentifiers"))
|
293
313
|
DescribeLogGroupsRequest.add_member(:log_group_name_prefix, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupNamePrefix"))
|
314
|
+
DescribeLogGroupsRequest.add_member(:log_group_name_pattern, Shapes::ShapeRef.new(shape: LogGroupNamePattern, location_name: "logGroupNamePattern"))
|
294
315
|
DescribeLogGroupsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
295
316
|
DescribeLogGroupsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeLimit, location_name: "limit"))
|
317
|
+
DescribeLogGroupsRequest.add_member(:include_linked_accounts, Shapes::ShapeRef.new(shape: IncludeLinkedAccounts, location_name: "includeLinkedAccounts"))
|
296
318
|
DescribeLogGroupsRequest.struct_class = Types::DescribeLogGroupsRequest
|
297
319
|
|
298
320
|
DescribeLogGroupsResponse.add_member(:log_groups, Shapes::ShapeRef.new(shape: LogGroups, location_name: "logGroups"))
|
@@ -300,6 +322,7 @@ module Aws::CloudWatchLogs
|
|
300
322
|
DescribeLogGroupsResponse.struct_class = Types::DescribeLogGroupsResponse
|
301
323
|
|
302
324
|
DescribeLogStreamsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
325
|
+
DescribeLogStreamsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
303
326
|
DescribeLogStreamsRequest.add_member(:log_stream_name_prefix, Shapes::ShapeRef.new(shape: LogStreamName, location_name: "logStreamNamePrefix"))
|
304
327
|
DescribeLogStreamsRequest.add_member(:order_by, Shapes::ShapeRef.new(shape: OrderBy, location_name: "orderBy"))
|
305
328
|
DescribeLogStreamsRequest.add_member(:descending, Shapes::ShapeRef.new(shape: Descending, location_name: "descending"))
|
@@ -401,6 +424,7 @@ module Aws::CloudWatchLogs
|
|
401
424
|
ExtractedValues.value = Shapes::ShapeRef.new(shape: Value)
|
402
425
|
|
403
426
|
FilterLogEventsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
427
|
+
FilterLogEventsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
404
428
|
FilterLogEventsRequest.add_member(:log_stream_names, Shapes::ShapeRef.new(shape: InputLogStreamNames, location_name: "logStreamNames"))
|
405
429
|
FilterLogEventsRequest.add_member(:log_stream_name_prefix, Shapes::ShapeRef.new(shape: LogStreamName, location_name: "logStreamNamePrefix"))
|
406
430
|
FilterLogEventsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
|
@@ -409,6 +433,7 @@ module Aws::CloudWatchLogs
|
|
409
433
|
FilterLogEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
410
434
|
FilterLogEventsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: EventsLimit, location_name: "limit"))
|
411
435
|
FilterLogEventsRequest.add_member(:interleaved, Shapes::ShapeRef.new(shape: Interleaved, deprecated: true, location_name: "interleaved", metadata: {"deprecatedMessage"=>"Starting on June 17, 2019, this parameter will be ignored and the value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group."}))
|
436
|
+
FilterLogEventsRequest.add_member(:unmask, Shapes::ShapeRef.new(shape: Unmask, location_name: "unmask"))
|
412
437
|
FilterLogEventsRequest.struct_class = Types::FilterLogEventsRequest
|
413
438
|
|
414
439
|
FilterLogEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: FilteredLogEvents, location_name: "events"))
|
@@ -425,13 +450,23 @@ module Aws::CloudWatchLogs
|
|
425
450
|
|
426
451
|
FilteredLogEvents.member = Shapes::ShapeRef.new(shape: FilteredLogEvent)
|
427
452
|
|
453
|
+
GetDataProtectionPolicyRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, required: true, location_name: "logGroupIdentifier"))
|
454
|
+
GetDataProtectionPolicyRequest.struct_class = Types::GetDataProtectionPolicyRequest
|
455
|
+
|
456
|
+
GetDataProtectionPolicyResponse.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
457
|
+
GetDataProtectionPolicyResponse.add_member(:policy_document, Shapes::ShapeRef.new(shape: DataProtectionPolicyDocument, location_name: "policyDocument"))
|
458
|
+
GetDataProtectionPolicyResponse.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedTime"))
|
459
|
+
GetDataProtectionPolicyResponse.struct_class = Types::GetDataProtectionPolicyResponse
|
460
|
+
|
428
461
|
GetLogEventsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
462
|
+
GetLogEventsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
429
463
|
GetLogEventsRequest.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: LogStreamName, required: true, location_name: "logStreamName"))
|
430
464
|
GetLogEventsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
|
431
465
|
GetLogEventsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
|
432
466
|
GetLogEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
433
467
|
GetLogEventsRequest.add_member(:limit, Shapes::ShapeRef.new(shape: EventsLimit, location_name: "limit"))
|
434
468
|
GetLogEventsRequest.add_member(:start_from_head, Shapes::ShapeRef.new(shape: StartFromHead, location_name: "startFromHead"))
|
469
|
+
GetLogEventsRequest.add_member(:unmask, Shapes::ShapeRef.new(shape: Unmask, location_name: "unmask"))
|
435
470
|
GetLogEventsRequest.struct_class = Types::GetLogEventsRequest
|
436
471
|
|
437
472
|
GetLogEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: OutputLogEvents, location_name: "events"))
|
@@ -441,12 +476,14 @@ module Aws::CloudWatchLogs
|
|
441
476
|
|
442
477
|
GetLogGroupFieldsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
|
443
478
|
GetLogGroupFieldsRequest.add_member(:time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "time"))
|
479
|
+
GetLogGroupFieldsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
444
480
|
GetLogGroupFieldsRequest.struct_class = Types::GetLogGroupFieldsRequest
|
445
481
|
|
446
482
|
GetLogGroupFieldsResponse.add_member(:log_group_fields, Shapes::ShapeRef.new(shape: LogGroupFieldList, location_name: "logGroupFields"))
|
447
483
|
GetLogGroupFieldsResponse.struct_class = Types::GetLogGroupFieldsResponse
|
448
484
|
|
449
485
|
GetLogRecordRequest.add_member(:log_record_pointer, Shapes::ShapeRef.new(shape: LogRecordPointer, required: true, location_name: "logRecordPointer"))
|
486
|
+
GetLogRecordRequest.add_member(:unmask, Shapes::ShapeRef.new(shape: Unmask, location_name: "unmask"))
|
450
487
|
GetLogRecordRequest.struct_class = Types::GetLogRecordRequest
|
451
488
|
|
452
489
|
GetLogRecordResponse.add_member(:log_record, Shapes::ShapeRef.new(shape: LogRecord, location_name: "logRecord"))
|
@@ -496,6 +533,7 @@ module Aws::CloudWatchLogs
|
|
496
533
|
LogGroup.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn"))
|
497
534
|
LogGroup.add_member(:stored_bytes, Shapes::ShapeRef.new(shape: StoredBytes, location_name: "storedBytes"))
|
498
535
|
LogGroup.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
|
536
|
+
LogGroup.add_member(:data_protection_status, Shapes::ShapeRef.new(shape: DataProtectionStatus, location_name: "dataProtectionStatus"))
|
499
537
|
LogGroup.struct_class = Types::LogGroup
|
500
538
|
|
501
539
|
LogGroupField.add_member(:name, Shapes::ShapeRef.new(shape: Field, location_name: "name"))
|
@@ -504,6 +542,8 @@ module Aws::CloudWatchLogs
|
|
504
542
|
|
505
543
|
LogGroupFieldList.member = Shapes::ShapeRef.new(shape: LogGroupField)
|
506
544
|
|
545
|
+
LogGroupIdentifiers.member = Shapes::ShapeRef.new(shape: LogGroupIdentifier)
|
546
|
+
|
507
547
|
LogGroupNames.member = Shapes::ShapeRef.new(shape: LogGroupName)
|
508
548
|
|
509
549
|
LogGroups.member = Shapes::ShapeRef.new(shape: LogGroup)
|
@@ -561,6 +601,15 @@ module Aws::CloudWatchLogs
|
|
561
601
|
|
562
602
|
OutputLogEvents.member = Shapes::ShapeRef.new(shape: OutputLogEvent)
|
563
603
|
|
604
|
+
PutDataProtectionPolicyRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, required: true, location_name: "logGroupIdentifier"))
|
605
|
+
PutDataProtectionPolicyRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: DataProtectionPolicyDocument, required: true, location_name: "policyDocument"))
|
606
|
+
PutDataProtectionPolicyRequest.struct_class = Types::PutDataProtectionPolicyRequest
|
607
|
+
|
608
|
+
PutDataProtectionPolicyResponse.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
609
|
+
PutDataProtectionPolicyResponse.add_member(:policy_document, Shapes::ShapeRef.new(shape: DataProtectionPolicyDocument, location_name: "policyDocument"))
|
610
|
+
PutDataProtectionPolicyResponse.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedTime"))
|
611
|
+
PutDataProtectionPolicyResponse.struct_class = Types::PutDataProtectionPolicyResponse
|
612
|
+
|
564
613
|
PutDestinationPolicyRequest.add_member(:destination_name, Shapes::ShapeRef.new(shape: DestinationName, required: true, location_name: "destinationName"))
|
565
614
|
PutDestinationPolicyRequest.add_member(:access_policy, Shapes::ShapeRef.new(shape: AccessPolicy, required: true, location_name: "accessPolicy"))
|
566
615
|
PutDestinationPolicyRequest.add_member(:force_update, Shapes::ShapeRef.new(shape: ForceUpdate, location_name: "forceUpdate"))
|
@@ -684,6 +733,7 @@ module Aws::CloudWatchLogs
|
|
684
733
|
|
685
734
|
StartQueryRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
686
735
|
StartQueryRequest.add_member(:log_group_names, Shapes::ShapeRef.new(shape: LogGroupNames, location_name: "logGroupNames"))
|
736
|
+
StartQueryRequest.add_member(:log_group_identifiers, Shapes::ShapeRef.new(shape: LogGroupIdentifiers, location_name: "logGroupIdentifiers"))
|
687
737
|
StartQueryRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "startTime"))
|
688
738
|
StartQueryRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "endTime"))
|
689
739
|
StartQueryRequest.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "queryString"))
|
@@ -829,6 +879,18 @@ module Aws::CloudWatchLogs
|
|
829
879
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
830
880
|
end)
|
831
881
|
|
882
|
+
api.add_operation(:delete_data_protection_policy, Seahorse::Model::Operation.new.tap do |o|
|
883
|
+
o.name = "DeleteDataProtectionPolicy"
|
884
|
+
o.http_method = "POST"
|
885
|
+
o.http_request_uri = "/"
|
886
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteDataProtectionPolicyRequest)
|
887
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
888
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
889
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
|
890
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
891
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
892
|
+
end)
|
893
|
+
|
832
894
|
api.add_operation(:delete_destination, Seahorse::Model::Operation.new.tap do |o|
|
833
895
|
o.name = "DeleteDestination"
|
834
896
|
o.http_method = "POST"
|
@@ -1076,6 +1138,18 @@ module Aws::CloudWatchLogs
|
|
1076
1138
|
)
|
1077
1139
|
end)
|
1078
1140
|
|
1141
|
+
api.add_operation(:get_data_protection_policy, Seahorse::Model::Operation.new.tap do |o|
|
1142
|
+
o.name = "GetDataProtectionPolicy"
|
1143
|
+
o.http_method = "POST"
|
1144
|
+
o.http_request_uri = "/"
|
1145
|
+
o.input = Shapes::ShapeRef.new(shape: GetDataProtectionPolicyRequest)
|
1146
|
+
o.output = Shapes::ShapeRef.new(shape: GetDataProtectionPolicyResponse)
|
1147
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1148
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
|
1149
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1150
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1151
|
+
end)
|
1152
|
+
|
1079
1153
|
api.add_operation(:get_log_events, Seahorse::Model::Operation.new.tap do |o|
|
1080
1154
|
o.name = "GetLogEvents"
|
1081
1155
|
o.http_method = "POST"
|
@@ -1150,6 +1224,19 @@ module Aws::CloudWatchLogs
|
|
1150
1224
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1151
1225
|
end)
|
1152
1226
|
|
1227
|
+
api.add_operation(:put_data_protection_policy, Seahorse::Model::Operation.new.tap do |o|
|
1228
|
+
o.name = "PutDataProtectionPolicy"
|
1229
|
+
o.http_method = "POST"
|
1230
|
+
o.http_request_uri = "/"
|
1231
|
+
o.input = Shapes::ShapeRef.new(shape: PutDataProtectionPolicyRequest)
|
1232
|
+
o.output = Shapes::ShapeRef.new(shape: PutDataProtectionPolicyResponse)
|
1233
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1234
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1235
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
|
1236
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1237
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
1238
|
+
end)
|
1239
|
+
|
1153
1240
|
api.add_operation(:put_destination, Seahorse::Model::Operation.new.tap do |o|
|
1154
1241
|
o.name = "PutDestination"
|
1155
1242
|
o.http_method = "POST"
|
@@ -50,6 +50,9 @@ module Aws::CloudWatchLogs
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -29,91 +29,90 @@ module Aws::CloudWatchLogs
|
|
29
29
|
# @api private
|
30
30
|
RULES = <<-JSON
|
31
31
|
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
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
|
82
82
|
end
|
83
83
|
|
84
|
+
class DeleteDataProtectionPolicy
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::CloudWatchLogs::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
|
+
|
84
98
|
class DeleteDestination
|
85
99
|
def self.build(context)
|
86
100
|
unless context.config.regional_endpoint
|
@@ -347,6 +361,20 @@ module Aws::CloudWatchLogs
|
|
347
361
|
end
|
348
362
|
end
|
349
363
|
|
364
|
+
class GetDataProtectionPolicy
|
365
|
+
def self.build(context)
|
366
|
+
unless context.config.regional_endpoint
|
367
|
+
endpoint = context.config.endpoint.to_s
|
368
|
+
end
|
369
|
+
Aws::CloudWatchLogs::EndpointParameters.new(
|
370
|
+
region: context.config.region,
|
371
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
372
|
+
use_fips: context.config.use_fips_endpoint,
|
373
|
+
endpoint: endpoint,
|
374
|
+
)
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
350
378
|
class GetLogEvents
|
351
379
|
def self.build(context)
|
352
380
|
unless context.config.regional_endpoint
|
@@ -431,6 +459,20 @@ module Aws::CloudWatchLogs
|
|
431
459
|
end
|
432
460
|
end
|
433
461
|
|
462
|
+
class PutDataProtectionPolicy
|
463
|
+
def self.build(context)
|
464
|
+
unless context.config.regional_endpoint
|
465
|
+
endpoint = context.config.endpoint.to_s
|
466
|
+
end
|
467
|
+
Aws::CloudWatchLogs::EndpointParameters.new(
|
468
|
+
region: context.config.region,
|
469
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
470
|
+
use_fips: context.config.use_fips_endpoint,
|
471
|
+
endpoint: endpoint,
|
472
|
+
)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
434
476
|
class PutDestination
|
435
477
|
def self.build(context)
|
436
478
|
unless context.config.regional_endpoint
|
@@ -66,6 +66,8 @@ module Aws::CloudWatchLogs
|
|
66
66
|
Aws::CloudWatchLogs::Endpoints::CreateLogGroup.build(context)
|
67
67
|
when :create_log_stream
|
68
68
|
Aws::CloudWatchLogs::Endpoints::CreateLogStream.build(context)
|
69
|
+
when :delete_data_protection_policy
|
70
|
+
Aws::CloudWatchLogs::Endpoints::DeleteDataProtectionPolicy.build(context)
|
69
71
|
when :delete_destination
|
70
72
|
Aws::CloudWatchLogs::Endpoints::DeleteDestination.build(context)
|
71
73
|
when :delete_log_group
|
@@ -104,6 +106,8 @@ module Aws::CloudWatchLogs
|
|
104
106
|
Aws::CloudWatchLogs::Endpoints::DisassociateKmsKey.build(context)
|
105
107
|
when :filter_log_events
|
106
108
|
Aws::CloudWatchLogs::Endpoints::FilterLogEvents.build(context)
|
109
|
+
when :get_data_protection_policy
|
110
|
+
Aws::CloudWatchLogs::Endpoints::GetDataProtectionPolicy.build(context)
|
107
111
|
when :get_log_events
|
108
112
|
Aws::CloudWatchLogs::Endpoints::GetLogEvents.build(context)
|
109
113
|
when :get_log_group_fields
|
@@ -116,6 +120,8 @@ module Aws::CloudWatchLogs
|
|
116
120
|
Aws::CloudWatchLogs::Endpoints::ListTagsForResource.build(context)
|
117
121
|
when :list_tags_log_group
|
118
122
|
Aws::CloudWatchLogs::Endpoints::ListTagsLogGroup.build(context)
|
123
|
+
when :put_data_protection_policy
|
124
|
+
Aws::CloudWatchLogs::Endpoints::PutDataProtectionPolicy.build(context)
|
119
125
|
when :put_destination
|
120
126
|
Aws::CloudWatchLogs::Endpoints::PutDestination.build(context)
|
121
127
|
when :put_destination_policy
|