| 1 | package Paws::CloudWatchLogs; | ||||||||||
| 2 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 22 | ▶ | sub service { 'logs' } | ||||||||
|
Subroutine
service: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 4 | 17 | ▶ | sub signing_name { 'logs' } | ||||||||
|
Subroutine
signing_name: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 5 | 17 | ▶ | sub version { '2014-03-28' } | ||||||||
|
Subroutine
version: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 6 | 17 | ▶ | sub target_prefix { 'Logs_20140328' } | ||||||||
|
Subroutine
target_prefix: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 7 | 17 | ▶ | sub json_version { "1.1" } | ||||||||
|
Subroutine
json_version: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 8 | 3 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | |||||||||
| 9 | 22 | ▶ | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 22 | { base => 'rand', type => 'exponential', growth_factor => 2 } | |||||||||
| 11 | 3 | }); | |||||||||
| 12 | 22 | ▶ | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 22 | ] }); | |||||||||
| 14 | |||||||||||
| 15 | 3 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller'; | |||||||||
| 16 | |||||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | sub AssociateKmsKey { | ||||||||
|
Subroutine
AssociateKmsKey: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 0 | my $self = shift; | |||||||||
| 20 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::AssociateKmsKey', @_); | |||||||||
| 21 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 22 | } | ||||||||||
| 23 | 0 | ▶ | sub CancelExportTask { | ||||||||
|
Subroutine
CancelExportTask: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 24 | 0 | my $self = shift; | |||||||||
| 25 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::CancelExportTask', @_); | |||||||||
| 26 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 27 | } | ||||||||||
| 28 | 0 | ▶ | sub CreateExportTask { | ||||||||
|
Subroutine
CreateExportTask: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 29 | 0 | my $self = shift; | |||||||||
| 30 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::CreateExportTask', @_); | |||||||||
| 31 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 32 | } | ||||||||||
| 33 | 3 | ▶ | sub CreateLogGroup { | ||||||||
|
Subroutine
CreateLogGroup: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 34 | 3 | my $self = shift; | |||||||||
| 35 | 3 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::CreateLogGroup', @_); | |||||||||
| 36 | 3 | return $self->caller->do_call($self, $call_object); | |||||||||
| 37 | } | ||||||||||
| 38 | 2 | ▶ | sub CreateLogStream { | ||||||||
|
Subroutine
CreateLogStream: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 39 | 2 | my $self = shift; | |||||||||
| 40 | 2 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::CreateLogStream', @_); | |||||||||
| 41 | 2 | return $self->caller->do_call($self, $call_object); | |||||||||
| 42 | } | ||||||||||
| 43 | 0 | ▶ | sub DeleteDestination { | ||||||||
|
Subroutine
DeleteDestination: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 44 | 0 | my $self = shift; | |||||||||
| 45 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DeleteDestination', @_); | |||||||||
| 46 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 47 | } | ||||||||||
| 48 | 2 | ▶ | sub DeleteLogGroup { | ||||||||
|
Subroutine
DeleteLogGroup: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 49 | 2 | my $self = shift; | |||||||||
| 50 | 2 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DeleteLogGroup', @_); | |||||||||
| 51 | 2 | return $self->caller->do_call($self, $call_object); | |||||||||
| 52 | } | ||||||||||
| 53 | 2 | ▶ | sub DeleteLogStream { | ||||||||
|
Subroutine
DeleteLogStream: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 54 | 2 | my $self = shift; | |||||||||
| 55 | 2 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DeleteLogStream', @_); | |||||||||
| 56 | 2 | return $self->caller->do_call($self, $call_object); | |||||||||
| 57 | } | ||||||||||
| 58 | 0 | ▶ | sub DeleteMetricFilter { | ||||||||
|
Subroutine
DeleteMetricFilter: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 59 | 0 | my $self = shift; | |||||||||
| 60 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DeleteMetricFilter', @_); | |||||||||
| 61 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 62 | } | ||||||||||
| 63 | 0 | ▶ | sub DeleteQueryDefinition { | ||||||||
|
Subroutine
DeleteQueryDefinition: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 64 | 0 | my $self = shift; | |||||||||
| 65 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DeleteQueryDefinition', @_); | |||||||||
| 66 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 67 | } | ||||||||||
| 68 | 0 | ▶ | sub DeleteResourcePolicy { | ||||||||
|
Subroutine
DeleteResourcePolicy: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 69 | 0 | my $self = shift; | |||||||||
| 70 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DeleteResourcePolicy', @_); | |||||||||
| 71 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 72 | } | ||||||||||
| 73 | 0 | ▶ | sub DeleteRetentionPolicy { | ||||||||
|
Subroutine
DeleteRetentionPolicy: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 74 | 0 | my $self = shift; | |||||||||
| 75 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DeleteRetentionPolicy', @_); | |||||||||
| 76 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 77 | } | ||||||||||
| 78 | 0 | ▶ | sub DeleteSubscriptionFilter { | ||||||||
|
Subroutine
DeleteSubscriptionFilter: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 79 | 0 | my $self = shift; | |||||||||
| 80 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DeleteSubscriptionFilter', @_); | |||||||||
| 81 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 82 | } | ||||||||||
| 83 | 0 | ▶ | sub DescribeDestinations { | ||||||||
|
Subroutine
DescribeDestinations: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 84 | 0 | my $self = shift; | |||||||||
| 85 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeDestinations', @_); | |||||||||
| 86 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 87 | } | ||||||||||
| 88 | 0 | ▶ | sub DescribeExportTasks { | ||||||||
|
Subroutine
DescribeExportTasks: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 89 | 0 | my $self = shift; | |||||||||
| 90 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeExportTasks', @_); | |||||||||
| 91 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 92 | } | ||||||||||
| 93 | 4 | ▶ | sub DescribeLogGroups { | ||||||||
|
Subroutine
DescribeLogGroups: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 94 | 4 | my $self = shift; | |||||||||
| 95 | 4 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeLogGroups', @_); | |||||||||
| 96 | 4 | return $self->caller->do_call($self, $call_object); | |||||||||
| 97 | } | ||||||||||
| 98 | 2 | ▶ | sub DescribeLogStreams { | ||||||||
|
Subroutine
DescribeLogStreams: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 99 | 2 | my $self = shift; | |||||||||
| 100 | 2 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeLogStreams', @_); | |||||||||
| 101 | 2 | return $self->caller->do_call($self, $call_object); | |||||||||
| 102 | } | ||||||||||
| 103 | 0 | ▶ | sub DescribeMetricFilters { | ||||||||
|
Subroutine
DescribeMetricFilters: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 104 | 0 | my $self = shift; | |||||||||
| 105 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeMetricFilters', @_); | |||||||||
| 106 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 107 | } | ||||||||||
| 108 | 0 | ▶ | sub DescribeQueries { | ||||||||
|
Subroutine
DescribeQueries: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 109 | 0 | my $self = shift; | |||||||||
| 110 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeQueries', @_); | |||||||||
| 111 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 112 | } | ||||||||||
| 113 | 0 | ▶ | sub DescribeQueryDefinitions { | ||||||||
|
Subroutine
DescribeQueryDefinitions: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 114 | 0 | my $self = shift; | |||||||||
| 115 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeQueryDefinitions', @_); | |||||||||
| 116 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 117 | } | ||||||||||
| 118 | 0 | ▶ | sub DescribeResourcePolicies { | ||||||||
|
Subroutine
DescribeResourcePolicies: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 119 | 0 | my $self = shift; | |||||||||
| 120 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeResourcePolicies', @_); | |||||||||
| 121 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 122 | } | ||||||||||
| 123 | 0 | ▶ | sub DescribeSubscriptionFilters { | ||||||||
|
Subroutine
DescribeSubscriptionFilters: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 124 | 0 | my $self = shift; | |||||||||
| 125 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DescribeSubscriptionFilters', @_); | |||||||||
| 126 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 127 | } | ||||||||||
| 128 | 0 | ▶ | sub DisassociateKmsKey { | ||||||||
|
Subroutine
DisassociateKmsKey: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 129 | 0 | my $self = shift; | |||||||||
| 130 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::DisassociateKmsKey', @_); | |||||||||
| 131 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 132 | } | ||||||||||
| 133 | 2 | ▶ | sub FilterLogEvents { | ||||||||
|
Subroutine
FilterLogEvents: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 134 | 2 | my $self = shift; | |||||||||
| 135 | 2 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::FilterLogEvents', @_); | |||||||||
| 136 | 2 | return $self->caller->do_call($self, $call_object); | |||||||||
| 137 | } | ||||||||||
| 138 | 1 | ▶ | sub GetLogEvents { | ||||||||
|
Subroutine
GetLogEvents: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 139 | 1 | my $self = shift; | |||||||||
| 140 | 1 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::GetLogEvents', @_); | |||||||||
| 141 | 1 | return $self->caller->do_call($self, $call_object); | |||||||||
| 142 | } | ||||||||||
| 143 | 0 | ▶ | sub GetLogGroupFields { | ||||||||
|
Subroutine
GetLogGroupFields: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 144 | 0 | my $self = shift; | |||||||||
| 145 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::GetLogGroupFields', @_); | |||||||||
| 146 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 147 | } | ||||||||||
| 148 | 0 | ▶ | sub GetLogRecord { | ||||||||
|
Subroutine
GetLogRecord: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 149 | 0 | my $self = shift; | |||||||||
| 150 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::GetLogRecord', @_); | |||||||||
| 151 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 152 | } | ||||||||||
| 153 | 0 | ▶ | sub GetQueryResults { | ||||||||
|
Subroutine
GetQueryResults: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 154 | 0 | my $self = shift; | |||||||||
| 155 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::GetQueryResults', @_); | |||||||||
| 156 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 157 | } | ||||||||||
| 158 | 0 | ▶ | sub ListTagsLogGroup { | ||||||||
|
Subroutine
ListTagsLogGroup: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 159 | 0 | my $self = shift; | |||||||||
| 160 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::ListTagsLogGroup', @_); | |||||||||
| 161 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 162 | } | ||||||||||
| 163 | 0 | ▶ | sub PutDestination { | ||||||||
|
Subroutine
PutDestination: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 164 | 0 | my $self = shift; | |||||||||
| 165 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::PutDestination', @_); | |||||||||
| 166 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 167 | } | ||||||||||
| 168 | 0 | ▶ | sub PutDestinationPolicy { | ||||||||
|
Subroutine
PutDestinationPolicy: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 169 | 0 | my $self = shift; | |||||||||
| 170 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::PutDestinationPolicy', @_); | |||||||||
| 171 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 172 | } | ||||||||||
| 173 | 4 | ▶ | sub PutLogEvents { | ||||||||
|
Subroutine
PutLogEvents: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 174 | 4 | my $self = shift; | |||||||||
| 175 | 4 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::PutLogEvents', @_); | |||||||||
| 176 | 4 | return $self->caller->do_call($self, $call_object); | |||||||||
| 177 | } | ||||||||||
| 178 | 0 | ▶ | sub PutMetricFilter { | ||||||||
|
Subroutine
PutMetricFilter: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 179 | 0 | my $self = shift; | |||||||||
| 180 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::PutMetricFilter', @_); | |||||||||
| 181 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 182 | } | ||||||||||
| 183 | 0 | ▶ | sub PutQueryDefinition { | ||||||||
|
Subroutine
PutQueryDefinition: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 184 | 0 | my $self = shift; | |||||||||
| 185 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::PutQueryDefinition', @_); | |||||||||
| 186 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 187 | } | ||||||||||
| 188 | 0 | ▶ | sub PutResourcePolicy { | ||||||||
|
Subroutine
PutResourcePolicy: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 189 | 0 | my $self = shift; | |||||||||
| 190 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::PutResourcePolicy', @_); | |||||||||
| 191 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 192 | } | ||||||||||
| 193 | 0 | ▶ | sub PutRetentionPolicy { | ||||||||
|
Subroutine
PutRetentionPolicy: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 194 | 0 | my $self = shift; | |||||||||
| 195 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::PutRetentionPolicy', @_); | |||||||||
| 196 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 197 | } | ||||||||||
| 198 | 0 | ▶ | sub PutSubscriptionFilter { | ||||||||
|
Subroutine
PutSubscriptionFilter: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 199 | 0 | my $self = shift; | |||||||||
| 200 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::PutSubscriptionFilter', @_); | |||||||||
| 201 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 202 | } | ||||||||||
| 203 | 0 | ▶ | sub StartQuery { | ||||||||
|
Subroutine
StartQuery: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 204 | 0 | my $self = shift; | |||||||||
| 205 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::StartQuery', @_); | |||||||||
| 206 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 207 | } | ||||||||||
| 208 | 0 | ▶ | sub StopQuery { | ||||||||
|
Subroutine
StopQuery: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 209 | 0 | my $self = shift; | |||||||||
| 210 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::StopQuery', @_); | |||||||||
| 211 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 212 | } | ||||||||||
| 213 | 0 | ▶ | sub TagLogGroup { | ||||||||
|
Subroutine
TagLogGroup: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 214 | 0 | my $self = shift; | |||||||||
| 215 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::TagLogGroup', @_); | |||||||||
| 216 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 217 | } | ||||||||||
| 218 | 0 | ▶ | sub TestMetricFilter { | ||||||||
|
Subroutine
TestMetricFilter: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 219 | 0 | my $self = shift; | |||||||||
| 220 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::TestMetricFilter', @_); | |||||||||
| 221 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 222 | } | ||||||||||
| 223 | 0 | ▶ | sub UntagLogGroup { | ||||||||
|
Subroutine
UntagLogGroup: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 224 | 0 | my $self = shift; | |||||||||
| 225 | 0 | my $call_object = $self->new_with_coercions('Paws::CloudWatchLogs::UntagLogGroup', @_); | |||||||||
| 226 | 0 | return $self->caller->do_call($self, $call_object); | |||||||||
| 227 | } | ||||||||||
| 228 | |||||||||||
| 229 | 0 | ▶ | sub DescribeAllDestinations { | ||||||||
|
Subroutine
DescribeAllDestinations: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 230 | 0 | my $self = shift; | |||||||||
| 231 | |||||||||||
| 232 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 233 | 0 | my $result = $self->DescribeDestinations(@_); | |||||||||
| 234 | 0 | my $next_result = $result; | |||||||||
| 235 | |||||||||||
| 236 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 237 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 238 | 0 | $next_result = $self->DescribeDestinations(@_, nextToken => $next_result->nextToken); | |||||||||
| 239 | 0 | push @{ $result->destinations }, @{ $next_result->destinations }; | |||||||||
| 240 | } | ||||||||||
| 241 | 0 | return $result; | |||||||||
| 242 | } else { | ||||||||||
| 243 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 244 | 0 | $callback->($_ => 'destinations') foreach (@{ $result->destinations }); | |||||||||
| 245 | 0 | $result = $self->DescribeDestinations(@_, nextToken => $result->nextToken); | |||||||||
| 246 | } | ||||||||||
| 247 | 0 | $callback->($_ => 'destinations') foreach (@{ $result->destinations }); | |||||||||
| 248 | } | ||||||||||
| 249 | |||||||||||
| 250 | return undef | ||||||||||
| 251 | 0 | } | |||||||||
| 252 | 0 | ▶ | sub DescribeAllExportTasks { | ||||||||
|
Subroutine
DescribeAllExportTasks: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 253 | 0 | my $self = shift; | |||||||||
| 254 | |||||||||||
| 255 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 256 | 0 | my $result = $self->DescribeExportTasks(@_); | |||||||||
| 257 | 0 | my $next_result = $result; | |||||||||
| 258 | |||||||||||
| 259 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 260 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 261 | 0 | $next_result = $self->DescribeExportTasks(@_, nextToken => $next_result->nextToken); | |||||||||
| 262 | 0 | push @{ $result->exportTasks }, @{ $next_result->exportTasks }; | |||||||||
| 263 | } | ||||||||||
| 264 | 0 | return $result; | |||||||||
| 265 | } else { | ||||||||||
| 266 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 267 | 0 | $callback->($_ => 'exportTasks') foreach (@{ $result->exportTasks }); | |||||||||
| 268 | 0 | $result = $self->DescribeExportTasks(@_, nextToken => $result->nextToken); | |||||||||
| 269 | } | ||||||||||
| 270 | 0 | $callback->($_ => 'exportTasks') foreach (@{ $result->exportTasks }); | |||||||||
| 271 | } | ||||||||||
| 272 | |||||||||||
| 273 | return undef | ||||||||||
| 274 | 0 | } | |||||||||
| 275 | 0 | ▶ | sub DescribeAllLogGroups { | ||||||||
|
Subroutine
DescribeAllLogGroups: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 276 | 0 | my $self = shift; | |||||||||
| 277 | |||||||||||
| 278 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 279 | 0 | my $result = $self->DescribeLogGroups(@_); | |||||||||
| 280 | 0 | my $next_result = $result; | |||||||||
| 281 | |||||||||||
| 282 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 283 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 284 | 0 | $next_result = $self->DescribeLogGroups(@_, nextToken => $next_result->nextToken); | |||||||||
| 285 | 0 | push @{ $result->logGroups }, @{ $next_result->logGroups }; | |||||||||
| 286 | } | ||||||||||
| 287 | 0 | return $result; | |||||||||
| 288 | } else { | ||||||||||
| 289 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 290 | 0 | $callback->($_ => 'logGroups') foreach (@{ $result->logGroups }); | |||||||||
| 291 | 0 | $result = $self->DescribeLogGroups(@_, nextToken => $result->nextToken); | |||||||||
| 292 | } | ||||||||||
| 293 | 0 | $callback->($_ => 'logGroups') foreach (@{ $result->logGroups }); | |||||||||
| 294 | } | ||||||||||
| 295 | |||||||||||
| 296 | return undef | ||||||||||
| 297 | 0 | } | |||||||||
| 298 | 0 | ▶ | sub DescribeAllLogStreams { | ||||||||
|
Subroutine
DescribeAllLogStreams: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 299 | 0 | my $self = shift; | |||||||||
| 300 | |||||||||||
| 301 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 302 | 0 | my $result = $self->DescribeLogStreams(@_); | |||||||||
| 303 | 0 | my $next_result = $result; | |||||||||
| 304 | |||||||||||
| 305 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 306 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 307 | 0 | $next_result = $self->DescribeLogStreams(@_, nextToken => $next_result->nextToken); | |||||||||
| 308 | 0 | push @{ $result->logStreams }, @{ $next_result->logStreams }; | |||||||||
| 309 | } | ||||||||||
| 310 | 0 | return $result; | |||||||||
| 311 | } else { | ||||||||||
| 312 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 313 | 0 | $callback->($_ => 'logStreams') foreach (@{ $result->logStreams }); | |||||||||
| 314 | 0 | $result = $self->DescribeLogStreams(@_, nextToken => $result->nextToken); | |||||||||
| 315 | } | ||||||||||
| 316 | 0 | $callback->($_ => 'logStreams') foreach (@{ $result->logStreams }); | |||||||||
| 317 | } | ||||||||||
| 318 | |||||||||||
| 319 | return undef | ||||||||||
| 320 | 0 | } | |||||||||
| 321 | 0 | ▶ | sub DescribeAllMetricFilters { | ||||||||
|
Subroutine
DescribeAllMetricFilters: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 322 | 0 | my $self = shift; | |||||||||
| 323 | |||||||||||
| 324 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 325 | 0 | my $result = $self->DescribeMetricFilters(@_); | |||||||||
| 326 | 0 | my $next_result = $result; | |||||||||
| 327 | |||||||||||
| 328 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 329 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 330 | 0 | $next_result = $self->DescribeMetricFilters(@_, nextToken => $next_result->nextToken); | |||||||||
| 331 | 0 | push @{ $result->metricFilters }, @{ $next_result->metricFilters }; | |||||||||
| 332 | } | ||||||||||
| 333 | 0 | return $result; | |||||||||
| 334 | } else { | ||||||||||
| 335 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 336 | 0 | $callback->($_ => 'metricFilters') foreach (@{ $result->metricFilters }); | |||||||||
| 337 | 0 | $result = $self->DescribeMetricFilters(@_, nextToken => $result->nextToken); | |||||||||
| 338 | } | ||||||||||
| 339 | 0 | $callback->($_ => 'metricFilters') foreach (@{ $result->metricFilters }); | |||||||||
| 340 | } | ||||||||||
| 341 | |||||||||||
| 342 | return undef | ||||||||||
| 343 | 0 | } | |||||||||
| 344 | 0 | ▶ | sub DescribeAllQueries { | ||||||||
|
Subroutine
DescribeAllQueries: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 345 | 0 | my $self = shift; | |||||||||
| 346 | |||||||||||
| 347 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 348 | 0 | my $result = $self->DescribeQueries(@_); | |||||||||
| 349 | 0 | my $next_result = $result; | |||||||||
| 350 | |||||||||||
| 351 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 352 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 353 | 0 | $next_result = $self->DescribeQueries(@_, nextToken => $next_result->nextToken); | |||||||||
| 354 | 0 | push @{ $result->queries }, @{ $next_result->queries }; | |||||||||
| 355 | } | ||||||||||
| 356 | 0 | return $result; | |||||||||
| 357 | } else { | ||||||||||
| 358 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 359 | 0 | $callback->($_ => 'queries') foreach (@{ $result->queries }); | |||||||||
| 360 | 0 | $result = $self->DescribeQueries(@_, nextToken => $result->nextToken); | |||||||||
| 361 | } | ||||||||||
| 362 | 0 | $callback->($_ => 'queries') foreach (@{ $result->queries }); | |||||||||
| 363 | } | ||||||||||
| 364 | |||||||||||
| 365 | return undef | ||||||||||
| 366 | 0 | } | |||||||||
| 367 | 0 | ▶ | sub DescribeAllResourcePolicies { | ||||||||
|
Subroutine
DescribeAllResourcePolicies: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 368 | 0 | my $self = shift; | |||||||||
| 369 | |||||||||||
| 370 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 371 | 0 | my $result = $self->DescribeResourcePolicies(@_); | |||||||||
| 372 | 0 | my $next_result = $result; | |||||||||
| 373 | |||||||||||
| 374 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 375 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 376 | 0 | $next_result = $self->DescribeResourcePolicies(@_, nextToken => $next_result->nextToken); | |||||||||
| 377 | 0 | push @{ $result->resourcePolicies }, @{ $next_result->resourcePolicies }; | |||||||||
| 378 | } | ||||||||||
| 379 | 0 | return $result; | |||||||||
| 380 | } else { | ||||||||||
| 381 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 382 | 0 | $callback->($_ => 'resourcePolicies') foreach (@{ $result->resourcePolicies }); | |||||||||
| 383 | 0 | $result = $self->DescribeResourcePolicies(@_, nextToken => $result->nextToken); | |||||||||
| 384 | } | ||||||||||
| 385 | 0 | $callback->($_ => 'resourcePolicies') foreach (@{ $result->resourcePolicies }); | |||||||||
| 386 | } | ||||||||||
| 387 | |||||||||||
| 388 | return undef | ||||||||||
| 389 | 0 | } | |||||||||
| 390 | 0 | ▶ | sub DescribeAllSubscriptionFilters { | ||||||||
|
Subroutine
DescribeAllSubscriptionFilters: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 391 | 0 | my $self = shift; | |||||||||
| 392 | |||||||||||
| 393 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 394 | 0 | my $result = $self->DescribeSubscriptionFilters(@_); | |||||||||
| 395 | 0 | my $next_result = $result; | |||||||||
| 396 | |||||||||||
| 397 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 398 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 399 | 0 | $next_result = $self->DescribeSubscriptionFilters(@_, nextToken => $next_result->nextToken); | |||||||||
| 400 | 0 | push @{ $result->subscriptionFilters }, @{ $next_result->subscriptionFilters }; | |||||||||
| 401 | } | ||||||||||
| 402 | 0 | return $result; | |||||||||
| 403 | } else { | ||||||||||
| 404 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 405 | 0 | $callback->($_ => 'subscriptionFilters') foreach (@{ $result->subscriptionFilters }); | |||||||||
| 406 | 0 | $result = $self->DescribeSubscriptionFilters(@_, nextToken => $result->nextToken); | |||||||||
| 407 | } | ||||||||||
| 408 | 0 | $callback->($_ => 'subscriptionFilters') foreach (@{ $result->subscriptionFilters }); | |||||||||
| 409 | } | ||||||||||
| 410 | |||||||||||
| 411 | return undef | ||||||||||
| 412 | 0 | } | |||||||||
| 413 | 0 | ▶ | sub FilterAllLogEvents { | ||||||||
|
Subroutine
FilterAllLogEvents: not called CC=9 SCAR=45.0
Pod
documented
| |||||||||||
| 414 | 0 | my $self = shift; | |||||||||
| 415 | |||||||||||
| 416 | 0 | ▶ | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 417 | 0 | my $result = $self->FilterLogEvents(@_); | |||||||||
| 418 | 0 | my $next_result = $result; | |||||||||
| 419 | |||||||||||
| 420 | 0 | ▶ | if (not defined $callback) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 421 | 0 | ▶ | while ($next_result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 422 | 0 | $next_result = $self->FilterLogEvents(@_, nextToken => $next_result->nextToken); | |||||||||
| 423 | 0 | push @{ $result->events }, @{ $next_result->events }; | |||||||||
| 424 | 0 | push @{ $result->searchedLogStreams }, @{ $next_result->searchedLogStreams }; | |||||||||
| 425 | } | ||||||||||
| 426 | 0 | return $result; | |||||||||
| 427 | } else { | ||||||||||
| 428 | 0 | ▶ | while ($result->nextToken) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 429 | 0 | $callback->($_ => 'events') foreach (@{ $result->events }); | |||||||||
| 430 | 0 | $callback->($_ => 'searchedLogStreams') foreach (@{ $result->searchedLogStreams }); | |||||||||
| 431 | 0 | $result = $self->FilterLogEvents(@_, nextToken => $result->nextToken); | |||||||||
| 432 | } | ||||||||||
| 433 | 0 | $callback->($_ => 'events') foreach (@{ $result->events }); | |||||||||
| 434 | 0 | $callback->($_ => 'searchedLogStreams') foreach (@{ $result->searchedLogStreams }); | |||||||||
| 435 | } | ||||||||||
| 436 | |||||||||||
| 437 | return undef | ||||||||||
| 438 | 0 | } | |||||||||
| 439 | |||||||||||
| 440 | |||||||||||
| 441 | 0 | ▶ | sub operations { qw/AssociateKmsKey CancelExportTask CreateExportTask CreateLogGroup CreateLogStream DeleteDestination DeleteLogGroup DeleteLogStream DeleteMetricFilter DeleteQueryDefinition DeleteResourcePolicy DeleteRetentionPolicy DeleteSubscriptionFilter DescribeDestinations DescribeExportTasks DescribeLogGroups DescribeLogStreams DescribeMetricFilters DescribeQueries DescribeQueryDefinitions DescribeResourcePolicies DescribeSubscriptionFilters DisassociateKmsKey FilterLogEvents GetLogEvents GetLogGroupFields GetLogRecord GetQueryResults ListTagsLogGroup PutDestination PutDestinationPolicy PutLogEvents PutMetricFilter PutQueryDefinition PutResourcePolicy PutRetentionPolicy PutSubscriptionFilter StartQuery StopQuery TagLogGroup TestMetricFilter UntagLogGroup / } | ||||||||
|
Subroutine
operations: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 442 | |||||||||||
| 443 | 3 | 1; | |||||||||
| 444 | |||||||||||
| 445 | ### main pod documentation begin ### | ||||||||||
| 446 | |||||||||||
| 447 | =head1 NAME | ||||||||||
| 448 | |||||||||||
| 449 | Paws::CloudWatchLogs - Perl Interface to AWS Amazon CloudWatch Logs | ||||||||||
| 450 | |||||||||||
| 451 | =head1 SYNOPSIS | ||||||||||
| 452 | |||||||||||
| 453 | use Paws; | ||||||||||
| 454 | |||||||||||
| 455 | my $obj = Paws->service('CloudWatchLogs'); | ||||||||||
| 456 | my $res = $obj->Method( | ||||||||||
| 457 | Arg1 => $val1, | ||||||||||
| 458 | Arg2 => [ 'V1', 'V2' ], | ||||||||||
| 459 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||||||||||
| 460 | # of the arguments type | ||||||||||
| 461 | Arg3 => { Att1 => 'Val1' }, | ||||||||||
| 462 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||||||||||
| 463 | # the constructor of the arguments type | ||||||||||
| 464 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||||||||||
| 465 | ); | ||||||||||
| 466 | |||||||||||
| 467 | =head1 DESCRIPTION | ||||||||||
| 468 | |||||||||||
| 469 | You can use Amazon CloudWatch Logs to monitor, store, and access your | ||||||||||
| 470 | log files from EC2 instances, AWS CloudTrail, and other sources. You | ||||||||||
| 471 | can then retrieve the associated log data from CloudWatch Logs using | ||||||||||
| 472 | the CloudWatch console, CloudWatch Logs commands in the AWS CLI, | ||||||||||
| 473 | CloudWatch Logs API, or CloudWatch Logs SDK. | ||||||||||
| 474 | |||||||||||
| 475 | You can use CloudWatch Logs to: | ||||||||||
| 476 | |||||||||||
| 477 | =over | ||||||||||
| 478 | |||||||||||
| 479 | =item * | ||||||||||
| 480 | |||||||||||
| 481 | B<Monitor logs from EC2 instances in real-time>: You can use CloudWatch | ||||||||||
| 482 | Logs to monitor applications and systems using log data. For example, | ||||||||||
| 483 | CloudWatch Logs can track the number of errors that occur in your | ||||||||||
| 484 | application logs and send you a notification whenever the rate of | ||||||||||
| 485 | errors exceeds a threshold that you specify. CloudWatch Logs uses your | ||||||||||
| 486 | log data for monitoring so no code changes are required. For example, | ||||||||||
| 487 | you can monitor application logs for specific literal terms (such as | ||||||||||
| 488 | "NullReferenceException") or count the number of occurrences of a | ||||||||||
| 489 | literal term at a particular position in log data (such as "404" status | ||||||||||
| 490 | codes in an Apache access log). When the term you are searching for is | ||||||||||
| 491 | found, CloudWatch Logs reports the data to a CloudWatch metric that you | ||||||||||
| 492 | specify. | ||||||||||
| 493 | |||||||||||
| 494 | =item * | ||||||||||
| 495 | |||||||||||
| 496 | B<Monitor AWS CloudTrail logged events>: You can create alarms in | ||||||||||
| 497 | CloudWatch and receive notifications of particular API activity as | ||||||||||
| 498 | captured by CloudTrail. You can use the notification to perform | ||||||||||
| 499 | troubleshooting. | ||||||||||
| 500 | |||||||||||
| 501 | =item * | ||||||||||
| 502 | |||||||||||
| 503 | B<Archive log data>: You can use CloudWatch Logs to store your log data | ||||||||||
| 504 | in highly durable storage. You can change the log retention setting so | ||||||||||
| 505 | that any log events older than this setting are automatically deleted. | ||||||||||
| 506 | The CloudWatch Logs agent makes it easy to quickly send both rotated | ||||||||||
| 507 | and non-rotated log data off of a host and into the log service. You | ||||||||||
| 508 | can then access the raw log data when you need it. | ||||||||||
| 509 | |||||||||||
| 510 | =back | ||||||||||
| 511 | |||||||||||
| 512 | |||||||||||
| 513 | For the AWS API documentation, see L<https://docs.aws.amazon.com/cloudwatch/> | ||||||||||
| 514 | |||||||||||
| 515 | |||||||||||
| 516 | =head1 METHODS | ||||||||||
| 517 | |||||||||||
| 518 | =head2 AssociateKmsKey | ||||||||||
| 519 | |||||||||||
| 520 | =over | ||||||||||
| 521 | |||||||||||
| 522 | =item KmsKeyId => Str | ||||||||||
| 523 | |||||||||||
| 524 | =item LogGroupName => Str | ||||||||||
| 525 | |||||||||||
| 526 | |||||||||||
| 527 | =back | ||||||||||
| 528 | |||||||||||
| 529 | Each argument is described in detail in: L<Paws::CloudWatchLogs::AssociateKmsKey> | ||||||||||
| 530 | |||||||||||
| 531 | Returns: nothing | ||||||||||
| 532 | |||||||||||
| 533 | Associates the specified AWS Key Management Service (AWS KMS) customer | ||||||||||
| 534 | master key (CMK) with the specified log group. | ||||||||||
| 535 | |||||||||||
| 536 | Associating an AWS KMS CMK with a log group overrides any existing | ||||||||||
| 537 | associations between the log group and a CMK. After a CMK is associated | ||||||||||
| 538 | with a log group, all newly ingested data for the log group is | ||||||||||
| 539 | encrypted using the CMK. This association is stored as long as the data | ||||||||||
| 540 | encrypted with the CMK is still within Amazon CloudWatch Logs. This | ||||||||||
| 541 | enables Amazon CloudWatch Logs to decrypt this data whenever it is | ||||||||||
| 542 | requested. | ||||||||||
| 543 | |||||||||||
| 544 | CloudWatch Logs supports only symmetric CMKs. Do not use an associate | ||||||||||
| 545 | an asymmetric CMK with your log group. For more information, see Using | ||||||||||
| 546 | Symmetric and Asymmetric Keys | ||||||||||
| 547 | (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html). | ||||||||||
| 548 | |||||||||||
| 549 | It can take up to 5 minutes for this operation to take effect. | ||||||||||
| 550 | |||||||||||
| 551 | If you attempt to associate a CMK with a log group but the CMK does not | ||||||||||
| 552 | exist or the CMK is disabled, you receive an | ||||||||||
| 553 | C<InvalidParameterException> error. | ||||||||||
| 554 | |||||||||||
| 555 | |||||||||||
| 556 | =head2 CancelExportTask | ||||||||||
| 557 | |||||||||||
| 558 | =over | ||||||||||
| 559 | |||||||||||
| 560 | =item TaskId => Str | ||||||||||
| 561 | |||||||||||
| 562 | |||||||||||
| 563 | =back | ||||||||||
| 564 | |||||||||||
| 565 | Each argument is described in detail in: L<Paws::CloudWatchLogs::CancelExportTask> | ||||||||||
| 566 | |||||||||||
| 567 | Returns: nothing | ||||||||||
| 568 | |||||||||||
| 569 | Cancels the specified export task. | ||||||||||
| 570 | |||||||||||
| 571 | The task must be in the C<PENDING> or C<RUNNING> state. | ||||||||||
| 572 | |||||||||||
| 573 | |||||||||||
| 574 | =head2 CreateExportTask | ||||||||||
| 575 | |||||||||||
| 576 | =over | ||||||||||
| 577 | |||||||||||
| 578 | =item Destination => Str | ||||||||||
| 579 | |||||||||||
| 580 | =item From => Int | ||||||||||
| 581 | |||||||||||
| 582 | =item LogGroupName => Str | ||||||||||
| 583 | |||||||||||
| 584 | =item To => Int | ||||||||||
| 585 | |||||||||||
| 586 | =item [DestinationPrefix => Str] | ||||||||||
| 587 | |||||||||||
| 588 | =item [LogStreamNamePrefix => Str] | ||||||||||
| 589 | |||||||||||
| 590 | =item [TaskName => Str] | ||||||||||
| 591 | |||||||||||
| 592 | |||||||||||
| 593 | =back | ||||||||||
| 594 | |||||||||||
| 595 | Each argument is described in detail in: L<Paws::CloudWatchLogs::CreateExportTask> | ||||||||||
| 596 | |||||||||||
| 597 | Returns: a L<Paws::CloudWatchLogs::CreateExportTaskResponse> instance | ||||||||||
| 598 | |||||||||||
| 599 | Creates an export task, which allows you to efficiently export data | ||||||||||
| 600 | from a log group to an Amazon S3 bucket. When you perform a | ||||||||||
| 601 | C<CreateExportTask> operation, you must use credentials that have | ||||||||||
| 602 | permission to write to the S3 bucket that you specify as the | ||||||||||
| 603 | destination. | ||||||||||
| 604 | |||||||||||
| 605 | This is an asynchronous call. If all the required information is | ||||||||||
| 606 | provided, this operation initiates an export task and responds with the | ||||||||||
| 607 | ID of the task. After the task has started, you can use | ||||||||||
| 608 | DescribeExportTasks | ||||||||||
| 609 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html) | ||||||||||
| 610 | to get the status of the export task. Each account can only have one | ||||||||||
| 611 | active (C<RUNNING> or C<PENDING>) export task at a time. To cancel an | ||||||||||
| 612 | export task, use CancelExportTask | ||||||||||
| 613 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CancelExportTask.html). | ||||||||||
| 614 | |||||||||||
| 615 | You can export logs from multiple log groups or multiple time ranges to | ||||||||||
| 616 | the same S3 bucket. To separate out log data for each export task, you | ||||||||||
| 617 | can specify a prefix to be used as the Amazon S3 key prefix for all | ||||||||||
| 618 | exported objects. | ||||||||||
| 619 | |||||||||||
| 620 | Exporting to S3 buckets that are encrypted with AES-256 is supported. | ||||||||||
| 621 | Exporting to S3 buckets encrypted with SSE-KMS is not supported. | ||||||||||
| 622 | |||||||||||
| 623 | |||||||||||
| 624 | =head2 CreateLogGroup | ||||||||||
| 625 | |||||||||||
| 626 | =over | ||||||||||
| 627 | |||||||||||
| 628 | =item LogGroupName => Str | ||||||||||
| 629 | |||||||||||
| 630 | =item [KmsKeyId => Str] | ||||||||||
| 631 | |||||||||||
| 632 | =item [Tags => L<Paws::CloudWatchLogs::Tags>] | ||||||||||
| 633 | |||||||||||
| 634 | |||||||||||
| 635 | =back | ||||||||||
| 636 | |||||||||||
| 637 | Each argument is described in detail in: L<Paws::CloudWatchLogs::CreateLogGroup> | ||||||||||
| 638 | |||||||||||
| 639 | Returns: nothing | ||||||||||
| 640 | |||||||||||
| 641 | Creates a log group with the specified name. You can create up to | ||||||||||
| 642 | 20,000 log groups per account. | ||||||||||
| 643 | |||||||||||
| 644 | You must use the following guidelines when naming a log group: | ||||||||||
| 645 | |||||||||||
| 646 | =over | ||||||||||
| 647 | |||||||||||
| 648 | =item * | ||||||||||
| 649 | |||||||||||
| 650 | Log group names must be unique within a region for an AWS account. | ||||||||||
| 651 | |||||||||||
| 652 | =item * | ||||||||||
| 653 | |||||||||||
| 654 | Log group names can be between 1 and 512 characters long. | ||||||||||
| 655 | |||||||||||
| 656 | =item * | ||||||||||
| 657 | |||||||||||
| 658 | Log group names consist of the following characters: a-z, A-Z, 0-9, '_' | ||||||||||
| 659 | (underscore), '-' (hyphen), '/' (forward slash), '.' (period), and '#' | ||||||||||
| 660 | (number sign) | ||||||||||
| 661 | |||||||||||
| 662 | =back | ||||||||||
| 663 | |||||||||||
| 664 | When you create a log group, by default the log events in the log group | ||||||||||
| 665 | never expire. To set a retention policy so that events expire and are | ||||||||||
| 666 | deleted after a specified time, use PutRetentionPolicy | ||||||||||
| 667 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html). | ||||||||||
| 668 | |||||||||||
| 669 | If you associate a AWS Key Management Service (AWS KMS) customer master | ||||||||||
| 670 | key (CMK) with the log group, ingested data is encrypted using the CMK. | ||||||||||
| 671 | This association is stored as long as the data encrypted with the CMK | ||||||||||
| 672 | is still within Amazon CloudWatch Logs. This enables Amazon CloudWatch | ||||||||||
| 673 | Logs to decrypt this data whenever it is requested. | ||||||||||
| 674 | |||||||||||
| 675 | If you attempt to associate a CMK with the log group but the CMK does | ||||||||||
| 676 | not exist or the CMK is disabled, you receive an | ||||||||||
| 677 | C<InvalidParameterException> error. | ||||||||||
| 678 | |||||||||||
| 679 | CloudWatch Logs supports only symmetric CMKs. Do not associate an | ||||||||||
| 680 | asymmetric CMK with your log group. For more information, see Using | ||||||||||
| 681 | Symmetric and Asymmetric Keys | ||||||||||
| 682 | (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html). | ||||||||||
| 683 | |||||||||||
| 684 | |||||||||||
| 685 | =head2 CreateLogStream | ||||||||||
| 686 | |||||||||||
| 687 | =over | ||||||||||
| 688 | |||||||||||
| 689 | =item LogGroupName => Str | ||||||||||
| 690 | |||||||||||
| 691 | =item LogStreamName => Str | ||||||||||
| 692 | |||||||||||
| 693 | |||||||||||
| 694 | =back | ||||||||||
| 695 | |||||||||||
| 696 | Each argument is described in detail in: L<Paws::CloudWatchLogs::CreateLogStream> | ||||||||||
| 697 | |||||||||||
| 698 | Returns: nothing | ||||||||||
| 699 | |||||||||||
| 700 | Creates a log stream for the specified log group. A log stream is a | ||||||||||
| 701 | sequence of log events that originate from a single source, such as an | ||||||||||
| 702 | application instance or a resource that is being monitored. | ||||||||||
| 703 | |||||||||||
| 704 | There is no limit on the number of log streams that you can create for | ||||||||||
| 705 | a log group. There is a limit of 50 TPS on C<CreateLogStream> | ||||||||||
| 706 | operations, after which transactions are throttled. | ||||||||||
| 707 | |||||||||||
| 708 | You must use the following guidelines when naming a log stream: | ||||||||||
| 709 | |||||||||||
| 710 | =over | ||||||||||
| 711 | |||||||||||
| 712 | =item * | ||||||||||
| 713 | |||||||||||
| 714 | Log stream names must be unique within the log group. | ||||||||||
| 715 | |||||||||||
| 716 | =item * | ||||||||||
| 717 | |||||||||||
| 718 | Log stream names can be between 1 and 512 characters long. | ||||||||||
| 719 | |||||||||||
| 720 | =item * | ||||||||||
| 721 | |||||||||||
| 722 | The ':' (colon) and '*' (asterisk) characters are not allowed. | ||||||||||
| 723 | |||||||||||
| 724 | =back | ||||||||||
| 725 | |||||||||||
| 726 | |||||||||||
| 727 | |||||||||||
| 728 | =head2 DeleteDestination | ||||||||||
| 729 | |||||||||||
| 730 | =over | ||||||||||
| 731 | |||||||||||
| 732 | =item DestinationName => Str | ||||||||||
| 733 | |||||||||||
| 734 | |||||||||||
| 735 | =back | ||||||||||
| 736 | |||||||||||
| 737 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DeleteDestination> | ||||||||||
| 738 | |||||||||||
| 739 | Returns: nothing | ||||||||||
| 740 | |||||||||||
| 741 | Deletes the specified destination, and eventually disables all the | ||||||||||
| 742 | subscription filters that publish to it. This operation does not delete | ||||||||||
| 743 | the physical resource encapsulated by the destination. | ||||||||||
| 744 | |||||||||||
| 745 | |||||||||||
| 746 | =head2 DeleteLogGroup | ||||||||||
| 747 | |||||||||||
| 748 | =over | ||||||||||
| 749 | |||||||||||
| 750 | =item LogGroupName => Str | ||||||||||
| 751 | |||||||||||
| 752 | |||||||||||
| 753 | =back | ||||||||||
| 754 | |||||||||||
| 755 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DeleteLogGroup> | ||||||||||
| 756 | |||||||||||
| 757 | Returns: nothing | ||||||||||
| 758 | |||||||||||
| 759 | Deletes the specified log group and permanently deletes all the | ||||||||||
| 760 | archived log events associated with the log group. | ||||||||||
| 761 | |||||||||||
| 762 | |||||||||||
| 763 | =head2 DeleteLogStream | ||||||||||
| 764 | |||||||||||
| 765 | =over | ||||||||||
| 766 | |||||||||||
| 767 | =item LogGroupName => Str | ||||||||||
| 768 | |||||||||||
| 769 | =item LogStreamName => Str | ||||||||||
| 770 | |||||||||||
| 771 | |||||||||||
| 772 | =back | ||||||||||
| 773 | |||||||||||
| 774 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DeleteLogStream> | ||||||||||
| 775 | |||||||||||
| 776 | Returns: nothing | ||||||||||
| 777 | |||||||||||
| 778 | Deletes the specified log stream and permanently deletes all the | ||||||||||
| 779 | archived log events associated with the log stream. | ||||||||||
| 780 | |||||||||||
| 781 | |||||||||||
| 782 | =head2 DeleteMetricFilter | ||||||||||
| 783 | |||||||||||
| 784 | =over | ||||||||||
| 785 | |||||||||||
| 786 | =item FilterName => Str | ||||||||||
| 787 | |||||||||||
| 788 | =item LogGroupName => Str | ||||||||||
| 789 | |||||||||||
| 790 | |||||||||||
| 791 | =back | ||||||||||
| 792 | |||||||||||
| 793 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DeleteMetricFilter> | ||||||||||
| 794 | |||||||||||
| 795 | Returns: nothing | ||||||||||
| 796 | |||||||||||
| 797 | Deletes the specified metric filter. | ||||||||||
| 798 | |||||||||||
| 799 | |||||||||||
| 800 | =head2 DeleteQueryDefinition | ||||||||||
| 801 | |||||||||||
| 802 | =over | ||||||||||
| 803 | |||||||||||
| 804 | =item QueryDefinitionId => Str | ||||||||||
| 805 | |||||||||||
| 806 | |||||||||||
| 807 | =back | ||||||||||
| 808 | |||||||||||
| 809 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DeleteQueryDefinition> | ||||||||||
| 810 | |||||||||||
| 811 | Returns: a L<Paws::CloudWatchLogs::DeleteQueryDefinitionResponse> instance | ||||||||||
| 812 | |||||||||||
| 813 | Deletes a saved CloudWatch Logs Insights query definition. A query | ||||||||||
| 814 | definition contains details about a saved CloudWatch Logs Insights | ||||||||||
| 815 | query. | ||||||||||
| 816 | |||||||||||
| 817 | Each C<DeleteQueryDefinition> operation can delete one query | ||||||||||
| 818 | definition. | ||||||||||
| 819 | |||||||||||
| 820 | You must have the C<logs:DeleteQueryDefinition> permission to be able | ||||||||||
| 821 | to perform this operation. | ||||||||||
| 822 | |||||||||||
| 823 | |||||||||||
| 824 | =head2 DeleteResourcePolicy | ||||||||||
| 825 | |||||||||||
| 826 | =over | ||||||||||
| 827 | |||||||||||
| 828 | =item [PolicyName => Str] | ||||||||||
| 829 | |||||||||||
| 830 | |||||||||||
| 831 | =back | ||||||||||
| 832 | |||||||||||
| 833 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DeleteResourcePolicy> | ||||||||||
| 834 | |||||||||||
| 835 | Returns: nothing | ||||||||||
| 836 | |||||||||||
| 837 | Deletes a resource policy from this account. This revokes the access of | ||||||||||
| 838 | the identities in that policy to put log events to this account. | ||||||||||
| 839 | |||||||||||
| 840 | |||||||||||
| 841 | =head2 DeleteRetentionPolicy | ||||||||||
| 842 | |||||||||||
| 843 | =over | ||||||||||
| 844 | |||||||||||
| 845 | =item LogGroupName => Str | ||||||||||
| 846 | |||||||||||
| 847 | |||||||||||
| 848 | =back | ||||||||||
| 849 | |||||||||||
| 850 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DeleteRetentionPolicy> | ||||||||||
| 851 | |||||||||||
| 852 | Returns: nothing | ||||||||||
| 853 | |||||||||||
| 854 | Deletes the specified retention policy. | ||||||||||
| 855 | |||||||||||
| 856 | Log events do not expire if they belong to log groups without a | ||||||||||
| 857 | retention policy. | ||||||||||
| 858 | |||||||||||
| 859 | |||||||||||
| 860 | =head2 DeleteSubscriptionFilter | ||||||||||
| 861 | |||||||||||
| 862 | =over | ||||||||||
| 863 | |||||||||||
| 864 | =item FilterName => Str | ||||||||||
| 865 | |||||||||||
| 866 | =item LogGroupName => Str | ||||||||||
| 867 | |||||||||||
| 868 | |||||||||||
| 869 | =back | ||||||||||
| 870 | |||||||||||
| 871 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DeleteSubscriptionFilter> | ||||||||||
| 872 | |||||||||||
| 873 | Returns: nothing | ||||||||||
| 874 | |||||||||||
| 875 | Deletes the specified subscription filter. | ||||||||||
| 876 | |||||||||||
| 877 | |||||||||||
| 878 | =head2 DescribeDestinations | ||||||||||
| 879 | |||||||||||
| 880 | =over | ||||||||||
| 881 | |||||||||||
| 882 | =item [DestinationNamePrefix => Str] | ||||||||||
| 883 | |||||||||||
| 884 | =item [Limit => Int] | ||||||||||
| 885 | |||||||||||
| 886 | =item [NextToken => Str] | ||||||||||
| 887 | |||||||||||
| 888 | |||||||||||
| 889 | =back | ||||||||||
| 890 | |||||||||||
| 891 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeDestinations> | ||||||||||
| 892 | |||||||||||
| 893 | Returns: a L<Paws::CloudWatchLogs::DescribeDestinationsResponse> instance | ||||||||||
| 894 | |||||||||||
| 895 | Lists all your destinations. The results are ASCII-sorted by | ||||||||||
| 896 | destination name. | ||||||||||
| 897 | |||||||||||
| 898 | |||||||||||
| 899 | =head2 DescribeExportTasks | ||||||||||
| 900 | |||||||||||
| 901 | =over | ||||||||||
| 902 | |||||||||||
| 903 | =item [Limit => Int] | ||||||||||
| 904 | |||||||||||
| 905 | =item [NextToken => Str] | ||||||||||
| 906 | |||||||||||
| 907 | =item [StatusCode => Str] | ||||||||||
| 908 | |||||||||||
| 909 | =item [TaskId => Str] | ||||||||||
| 910 | |||||||||||
| 911 | |||||||||||
| 912 | =back | ||||||||||
| 913 | |||||||||||
| 914 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeExportTasks> | ||||||||||
| 915 | |||||||||||
| 916 | Returns: a L<Paws::CloudWatchLogs::DescribeExportTasksResponse> instance | ||||||||||
| 917 | |||||||||||
| 918 | Lists the specified export tasks. You can list all your export tasks or | ||||||||||
| 919 | filter the results based on task ID or task status. | ||||||||||
| 920 | |||||||||||
| 921 | |||||||||||
| 922 | =head2 DescribeLogGroups | ||||||||||
| 923 | |||||||||||
| 924 | =over | ||||||||||
| 925 | |||||||||||
| 926 | =item [Limit => Int] | ||||||||||
| 927 | |||||||||||
| 928 | =item [LogGroupNamePrefix => Str] | ||||||||||
| 929 | |||||||||||
| 930 | =item [NextToken => Str] | ||||||||||
| 931 | |||||||||||
| 932 | |||||||||||
| 933 | =back | ||||||||||
| 934 | |||||||||||
| 935 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeLogGroups> | ||||||||||
| 936 | |||||||||||
| 937 | Returns: a L<Paws::CloudWatchLogs::DescribeLogGroupsResponse> instance | ||||||||||
| 938 | |||||||||||
| 939 | Lists the specified log groups. You can list all your log groups or | ||||||||||
| 940 | filter the results by prefix. The results are ASCII-sorted by log group | ||||||||||
| 941 | name. | ||||||||||
| 942 | |||||||||||
| 943 | |||||||||||
| 944 | =head2 DescribeLogStreams | ||||||||||
| 945 | |||||||||||
| 946 | =over | ||||||||||
| 947 | |||||||||||
| 948 | =item LogGroupName => Str | ||||||||||
| 949 | |||||||||||
| 950 | =item [Descending => Bool] | ||||||||||
| 951 | |||||||||||
| 952 | =item [Limit => Int] | ||||||||||
| 953 | |||||||||||
| 954 | =item [LogStreamNamePrefix => Str] | ||||||||||
| 955 | |||||||||||
| 956 | =item [NextToken => Str] | ||||||||||
| 957 | |||||||||||
| 958 | =item [OrderBy => Str] | ||||||||||
| 959 | |||||||||||
| 960 | |||||||||||
| 961 | =back | ||||||||||
| 962 | |||||||||||
| 963 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeLogStreams> | ||||||||||
| 964 | |||||||||||
| 965 | Returns: a L<Paws::CloudWatchLogs::DescribeLogStreamsResponse> instance | ||||||||||
| 966 | |||||||||||
| 967 | Lists the log streams for the specified log group. You can list all the | ||||||||||
| 968 | log streams or filter the results by prefix. You can also control how | ||||||||||
| 969 | the results are ordered. | ||||||||||
| 970 | |||||||||||
| 971 | This operation has a limit of five transactions per second, after which | ||||||||||
| 972 | transactions are throttled. | ||||||||||
| 973 | |||||||||||
| 974 | |||||||||||
| 975 | =head2 DescribeMetricFilters | ||||||||||
| 976 | |||||||||||
| 977 | =over | ||||||||||
| 978 | |||||||||||
| 979 | =item [FilterNamePrefix => Str] | ||||||||||
| 980 | |||||||||||
| 981 | =item [Limit => Int] | ||||||||||
| 982 | |||||||||||
| 983 | =item [LogGroupName => Str] | ||||||||||
| 984 | |||||||||||
| 985 | =item [MetricName => Str] | ||||||||||
| 986 | |||||||||||
| 987 | =item [MetricNamespace => Str] | ||||||||||
| 988 | |||||||||||
| 989 | =item [NextToken => Str] | ||||||||||
| 990 | |||||||||||
| 991 | |||||||||||
| 992 | =back | ||||||||||
| 993 | |||||||||||
| 994 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeMetricFilters> | ||||||||||
| 995 | |||||||||||
| 996 | Returns: a L<Paws::CloudWatchLogs::DescribeMetricFiltersResponse> instance | ||||||||||
| 997 | |||||||||||
| 998 | Lists the specified metric filters. You can list all of the metric | ||||||||||
| 999 | filters or filter the results by log name, prefix, metric name, or | ||||||||||
| 1000 | metric namespace. The results are ASCII-sorted by filter name. | ||||||||||
| 1001 | |||||||||||
| 1002 | |||||||||||
| 1003 | =head2 DescribeQueries | ||||||||||
| 1004 | |||||||||||
| 1005 | =over | ||||||||||
| 1006 | |||||||||||
| 1007 | =item [LogGroupName => Str] | ||||||||||
| 1008 | |||||||||||
| 1009 | =item [MaxResults => Int] | ||||||||||
| 1010 | |||||||||||
| 1011 | =item [NextToken => Str] | ||||||||||
| 1012 | |||||||||||
| 1013 | =item [Status => Str] | ||||||||||
| 1014 | |||||||||||
| 1015 | |||||||||||
| 1016 | =back | ||||||||||
| 1017 | |||||||||||
| 1018 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeQueries> | ||||||||||
| 1019 | |||||||||||
| 1020 | Returns: a L<Paws::CloudWatchLogs::DescribeQueriesResponse> instance | ||||||||||
| 1021 | |||||||||||
| 1022 | Returns a list of CloudWatch Logs Insights queries that are scheduled, | ||||||||||
| 1023 | executing, or have been executed recently in this account. You can | ||||||||||
| 1024 | request all queries or limit it to queries of a specific log group or | ||||||||||
| 1025 | queries with a certain status. | ||||||||||
| 1026 | |||||||||||
| 1027 | |||||||||||
| 1028 | =head2 DescribeQueryDefinitions | ||||||||||
| 1029 | |||||||||||
| 1030 | =over | ||||||||||
| 1031 | |||||||||||
| 1032 | =item [MaxResults => Int] | ||||||||||
| 1033 | |||||||||||
| 1034 | =item [NextToken => Str] | ||||||||||
| 1035 | |||||||||||
| 1036 | =item [QueryDefinitionNamePrefix => Str] | ||||||||||
| 1037 | |||||||||||
| 1038 | |||||||||||
| 1039 | =back | ||||||||||
| 1040 | |||||||||||
| 1041 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeQueryDefinitions> | ||||||||||
| 1042 | |||||||||||
| 1043 | Returns: a L<Paws::CloudWatchLogs::DescribeQueryDefinitionsResponse> instance | ||||||||||
| 1044 | |||||||||||
| 1045 | This operation returns a paginated list of your saved CloudWatch Logs | ||||||||||
| 1046 | Insights query definitions. | ||||||||||
| 1047 | |||||||||||
| 1048 | You can use the C<queryDefinitionNamePrefix> parameter to limit the | ||||||||||
| 1049 | results to only the query definitions that have names that start with a | ||||||||||
| 1050 | certain string. | ||||||||||
| 1051 | |||||||||||
| 1052 | |||||||||||
| 1053 | =head2 DescribeResourcePolicies | ||||||||||
| 1054 | |||||||||||
| 1055 | =over | ||||||||||
| 1056 | |||||||||||
| 1057 | =item [Limit => Int] | ||||||||||
| 1058 | |||||||||||
| 1059 | =item [NextToken => Str] | ||||||||||
| 1060 | |||||||||||
| 1061 | |||||||||||
| 1062 | =back | ||||||||||
| 1063 | |||||||||||
| 1064 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeResourcePolicies> | ||||||||||
| 1065 | |||||||||||
| 1066 | Returns: a L<Paws::CloudWatchLogs::DescribeResourcePoliciesResponse> instance | ||||||||||
| 1067 | |||||||||||
| 1068 | Lists the resource policies in this account. | ||||||||||
| 1069 | |||||||||||
| 1070 | |||||||||||
| 1071 | =head2 DescribeSubscriptionFilters | ||||||||||
| 1072 | |||||||||||
| 1073 | =over | ||||||||||
| 1074 | |||||||||||
| 1075 | =item LogGroupName => Str | ||||||||||
| 1076 | |||||||||||
| 1077 | =item [FilterNamePrefix => Str] | ||||||||||
| 1078 | |||||||||||
| 1079 | =item [Limit => Int] | ||||||||||
| 1080 | |||||||||||
| 1081 | =item [NextToken => Str] | ||||||||||
| 1082 | |||||||||||
| 1083 | |||||||||||
| 1084 | =back | ||||||||||
| 1085 | |||||||||||
| 1086 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DescribeSubscriptionFilters> | ||||||||||
| 1087 | |||||||||||
| 1088 | Returns: a L<Paws::CloudWatchLogs::DescribeSubscriptionFiltersResponse> instance | ||||||||||
| 1089 | |||||||||||
| 1090 | Lists the subscription filters for the specified log group. You can | ||||||||||
| 1091 | list all the subscription filters or filter the results by prefix. The | ||||||||||
| 1092 | results are ASCII-sorted by filter name. | ||||||||||
| 1093 | |||||||||||
| 1094 | |||||||||||
| 1095 | =head2 DisassociateKmsKey | ||||||||||
| 1096 | |||||||||||
| 1097 | =over | ||||||||||
| 1098 | |||||||||||
| 1099 | =item LogGroupName => Str | ||||||||||
| 1100 | |||||||||||
| 1101 | |||||||||||
| 1102 | =back | ||||||||||
| 1103 | |||||||||||
| 1104 | Each argument is described in detail in: L<Paws::CloudWatchLogs::DisassociateKmsKey> | ||||||||||
| 1105 | |||||||||||
| 1106 | Returns: nothing | ||||||||||
| 1107 | |||||||||||
| 1108 | Disassociates the associated AWS Key Management Service (AWS KMS) | ||||||||||
| 1109 | customer master key (CMK) from the specified log group. | ||||||||||
| 1110 | |||||||||||
| 1111 | After the AWS KMS CMK is disassociated from the log group, AWS | ||||||||||
| 1112 | CloudWatch Logs stops encrypting newly ingested data for the log group. | ||||||||||
| 1113 | All previously ingested data remains encrypted, and AWS CloudWatch Logs | ||||||||||
| 1114 | requires permissions for the CMK whenever the encrypted data is | ||||||||||
| 1115 | requested. | ||||||||||
| 1116 | |||||||||||
| 1117 | Note that it can take up to 5 minutes for this operation to take | ||||||||||
| 1118 | effect. | ||||||||||
| 1119 | |||||||||||
| 1120 | |||||||||||
| 1121 | =head2 FilterLogEvents | ||||||||||
| 1122 | |||||||||||
| 1123 | =over | ||||||||||
| 1124 | |||||||||||
| 1125 | =item LogGroupName => Str | ||||||||||
| 1126 | |||||||||||
| 1127 | =item [EndTime => Int] | ||||||||||
| 1128 | |||||||||||
| 1129 | =item [FilterPattern => Str] | ||||||||||
| 1130 | |||||||||||
| 1131 | =item [Interleaved => Bool] | ||||||||||
| 1132 | |||||||||||
| 1133 | =item [Limit => Int] | ||||||||||
| 1134 | |||||||||||
| 1135 | =item [LogStreamNamePrefix => Str] | ||||||||||
| 1136 | |||||||||||
| 1137 | =item [LogStreamNames => ArrayRef[Str|Undef]] | ||||||||||
| 1138 | |||||||||||
| 1139 | =item [NextToken => Str] | ||||||||||
| 1140 | |||||||||||
| 1141 | =item [StartTime => Int] | ||||||||||
| 1142 | |||||||||||
| 1143 | |||||||||||
| 1144 | =back | ||||||||||
| 1145 | |||||||||||
| 1146 | Each argument is described in detail in: L<Paws::CloudWatchLogs::FilterLogEvents> | ||||||||||
| 1147 | |||||||||||
| 1148 | Returns: a L<Paws::CloudWatchLogs::FilterLogEventsResponse> instance | ||||||||||
| 1149 | |||||||||||
| 1150 | Lists log events from the specified log group. You can list all the log | ||||||||||
| 1151 | events or filter the results using a filter pattern, a time range, and | ||||||||||
| 1152 | the name of the log stream. | ||||||||||
| 1153 | |||||||||||
| 1154 | By default, this operation returns as many log events as can fit in 1 | ||||||||||
| 1155 | MB (up to 10,000 log events) or all the events found within the time | ||||||||||
| 1156 | range that you specify. If the results include a token, then there are | ||||||||||
| 1157 | more log events available, and you can get additional results by | ||||||||||
| 1158 | specifying the token in a subsequent call. This operation can return | ||||||||||
| 1159 | empty results while there are more log events available through the | ||||||||||
| 1160 | token. | ||||||||||
| 1161 | |||||||||||
| 1162 | The returned log events are sorted by event timestamp, the timestamp | ||||||||||
| 1163 | when the event was ingested by CloudWatch Logs, and the ID of the | ||||||||||
| 1164 | C<PutLogEvents> request. | ||||||||||
| 1165 | |||||||||||
| 1166 | |||||||||||
| 1167 | =head2 GetLogEvents | ||||||||||
| 1168 | |||||||||||
| 1169 | =over | ||||||||||
| 1170 | |||||||||||
| 1171 | =item LogGroupName => Str | ||||||||||
| 1172 | |||||||||||
| 1173 | =item LogStreamName => Str | ||||||||||
| 1174 | |||||||||||
| 1175 | =item [EndTime => Int] | ||||||||||
| 1176 | |||||||||||
| 1177 | =item [Limit => Int] | ||||||||||
| 1178 | |||||||||||
| 1179 | =item [NextToken => Str] | ||||||||||
| 1180 | |||||||||||
| 1181 | =item [StartFromHead => Bool] | ||||||||||
| 1182 | |||||||||||
| 1183 | =item [StartTime => Int] | ||||||||||
| 1184 | |||||||||||
| 1185 | |||||||||||
| 1186 | =back | ||||||||||
| 1187 | |||||||||||
| 1188 | Each argument is described in detail in: L<Paws::CloudWatchLogs::GetLogEvents> | ||||||||||
| 1189 | |||||||||||
| 1190 | Returns: a L<Paws::CloudWatchLogs::GetLogEventsResponse> instance | ||||||||||
| 1191 | |||||||||||
| 1192 | Lists log events from the specified log stream. You can list all of the | ||||||||||
| 1193 | log events or filter using a time range. | ||||||||||
| 1194 | |||||||||||
| 1195 | By default, this operation returns as many log events as can fit in a | ||||||||||
| 1196 | response size of 1MB (up to 10,000 log events). You can get additional | ||||||||||
| 1197 | log events by specifying one of the tokens in a subsequent call. This | ||||||||||
| 1198 | operation can return empty results while there are more log events | ||||||||||
| 1199 | available through the token. | ||||||||||
| 1200 | |||||||||||
| 1201 | |||||||||||
| 1202 | =head2 GetLogGroupFields | ||||||||||
| 1203 | |||||||||||
| 1204 | =over | ||||||||||
| 1205 | |||||||||||
| 1206 | =item LogGroupName => Str | ||||||||||
| 1207 | |||||||||||
| 1208 | =item [Time => Int] | ||||||||||
| 1209 | |||||||||||
| 1210 | |||||||||||
| 1211 | =back | ||||||||||
| 1212 | |||||||||||
| 1213 | Each argument is described in detail in: L<Paws::CloudWatchLogs::GetLogGroupFields> | ||||||||||
| 1214 | |||||||||||
| 1215 | Returns: a L<Paws::CloudWatchLogs::GetLogGroupFieldsResponse> instance | ||||||||||
| 1216 | |||||||||||
| 1217 | Returns a list of the fields that are included in log events in the | ||||||||||
| 1218 | specified log group, along with the percentage of log events that | ||||||||||
| 1219 | contain each field. The search is limited to a time period that you | ||||||||||
| 1220 | specify. | ||||||||||
| 1221 | |||||||||||
| 1222 | In the results, fields that start with @ are fields generated by | ||||||||||
| 1223 | CloudWatch Logs. For example, C<@timestamp> is the timestamp of each | ||||||||||
| 1224 | log event. For more information about the fields that are generated by | ||||||||||
| 1225 | CloudWatch logs, see Supported Logs and Discovered Fields | ||||||||||
| 1226 | (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html). | ||||||||||
| 1227 | |||||||||||
| 1228 | The response results are sorted by the frequency percentage, starting | ||||||||||
| 1229 | with the highest percentage. | ||||||||||
| 1230 | |||||||||||
| 1231 | |||||||||||
| 1232 | =head2 GetLogRecord | ||||||||||
| 1233 | |||||||||||
| 1234 | =over | ||||||||||
| 1235 | |||||||||||
| 1236 | =item LogRecordPointer => Str | ||||||||||
| 1237 | |||||||||||
| 1238 | |||||||||||
| 1239 | =back | ||||||||||
| 1240 | |||||||||||
| 1241 | Each argument is described in detail in: L<Paws::CloudWatchLogs::GetLogRecord> | ||||||||||
| 1242 | |||||||||||
| 1243 | Returns: a L<Paws::CloudWatchLogs::GetLogRecordResponse> instance | ||||||||||
| 1244 | |||||||||||
| 1245 | Retrieves all of the fields and values of a single log event. All | ||||||||||
| 1246 | fields are retrieved, even if the original query that produced the | ||||||||||
| 1247 | C<logRecordPointer> retrieved only a subset of fields. Fields are | ||||||||||
| 1248 | returned as field name/field value pairs. | ||||||||||
| 1249 | |||||||||||
| 1250 | The full unparsed log event is returned within C<@message>. | ||||||||||
| 1251 | |||||||||||
| 1252 | |||||||||||
| 1253 | =head2 GetQueryResults | ||||||||||
| 1254 | |||||||||||
| 1255 | =over | ||||||||||
| 1256 | |||||||||||
| 1257 | =item QueryId => Str | ||||||||||
| 1258 | |||||||||||
| 1259 | |||||||||||
| 1260 | =back | ||||||||||
| 1261 | |||||||||||
| 1262 | Each argument is described in detail in: L<Paws::CloudWatchLogs::GetQueryResults> | ||||||||||
| 1263 | |||||||||||
| 1264 | Returns: a L<Paws::CloudWatchLogs::GetQueryResultsResponse> instance | ||||||||||
| 1265 | |||||||||||
| 1266 | Returns the results from the specified query. | ||||||||||
| 1267 | |||||||||||
| 1268 | Only the fields requested in the query are returned, along with a | ||||||||||
| 1269 | C<@ptr> field, which is the identifier for the log record. You can use | ||||||||||
| 1270 | the value of C<@ptr> in a GetLogRecord | ||||||||||
| 1271 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html) | ||||||||||
| 1272 | operation to get the full log record. | ||||||||||
| 1273 | |||||||||||
| 1274 | C<GetQueryResults> does not start a query execution. To run a query, | ||||||||||
| 1275 | use StartQuery | ||||||||||
| 1276 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html). | ||||||||||
| 1277 | |||||||||||
| 1278 | If the value of the C<Status> field in the output is C<Running>, this | ||||||||||
| 1279 | operation returns only partial results. If you see a value of | ||||||||||
| 1280 | C<Scheduled> or C<Running> for the status, you can retry the operation | ||||||||||
| 1281 | later to see the final results. | ||||||||||
| 1282 | |||||||||||
| 1283 | |||||||||||
| 1284 | =head2 ListTagsLogGroup | ||||||||||
| 1285 | |||||||||||
| 1286 | =over | ||||||||||
| 1287 | |||||||||||
| 1288 | =item LogGroupName => Str | ||||||||||
| 1289 | |||||||||||
| 1290 | |||||||||||
| 1291 | =back | ||||||||||
| 1292 | |||||||||||
| 1293 | Each argument is described in detail in: L<Paws::CloudWatchLogs::ListTagsLogGroup> | ||||||||||
| 1294 | |||||||||||
| 1295 | Returns: a L<Paws::CloudWatchLogs::ListTagsLogGroupResponse> instance | ||||||||||
| 1296 | |||||||||||
| 1297 | Lists the tags for the specified log group. | ||||||||||
| 1298 | |||||||||||
| 1299 | |||||||||||
| 1300 | =head2 PutDestination | ||||||||||
| 1301 | |||||||||||
| 1302 | =over | ||||||||||
| 1303 | |||||||||||
| 1304 | =item DestinationName => Str | ||||||||||
| 1305 | |||||||||||
| 1306 | =item RoleArn => Str | ||||||||||
| 1307 | |||||||||||
| 1308 | =item TargetArn => Str | ||||||||||
| 1309 | |||||||||||
| 1310 | |||||||||||
| 1311 | =back | ||||||||||
| 1312 | |||||||||||
| 1313 | Each argument is described in detail in: L<Paws::CloudWatchLogs::PutDestination> | ||||||||||
| 1314 | |||||||||||
| 1315 | Returns: a L<Paws::CloudWatchLogs::PutDestinationResponse> instance | ||||||||||
| 1316 | |||||||||||
| 1317 | Creates or updates a destination. This operation is used only to create | ||||||||||
| 1318 | destinations for cross-account subscriptions. | ||||||||||
| 1319 | |||||||||||
| 1320 | A destination encapsulates a physical resource (such as an Amazon | ||||||||||
| 1321 | Kinesis stream) and enables you to subscribe to a real-time stream of | ||||||||||
| 1322 | log events for a different account, ingested using PutLogEvents | ||||||||||
| 1323 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html). | ||||||||||
| 1324 | |||||||||||
| 1325 | Through an access policy, a destination controls what is written to it. | ||||||||||
| 1326 | By default, C<PutDestination> does not set any access policy with the | ||||||||||
| 1327 | destination, which means a cross-account user cannot call | ||||||||||
| 1328 | PutSubscriptionFilter | ||||||||||
| 1329 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html) | ||||||||||
| 1330 | against this destination. To enable this, the destination owner must | ||||||||||
| 1331 | call PutDestinationPolicy | ||||||||||
| 1332 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html) | ||||||||||
| 1333 | after C<PutDestination>. | ||||||||||
| 1334 | |||||||||||
| 1335 | To perform a C<PutDestination> operation, you must also have the | ||||||||||
| 1336 | C<iam:PassRole> permission. | ||||||||||
| 1337 | |||||||||||
| 1338 | |||||||||||
| 1339 | =head2 PutDestinationPolicy | ||||||||||
| 1340 | |||||||||||
| 1341 | =over | ||||||||||
| 1342 | |||||||||||
| 1343 | =item AccessPolicy => Str | ||||||||||
| 1344 | |||||||||||
| 1345 | =item DestinationName => Str | ||||||||||
| 1346 | |||||||||||
| 1347 | |||||||||||
| 1348 | =back | ||||||||||
| 1349 | |||||||||||
| 1350 | Each argument is described in detail in: L<Paws::CloudWatchLogs::PutDestinationPolicy> | ||||||||||
| 1351 | |||||||||||
| 1352 | Returns: nothing | ||||||||||
| 1353 | |||||||||||
| 1354 | Creates or updates an access policy associated with an existing | ||||||||||
| 1355 | destination. An access policy is an IAM policy document | ||||||||||
| 1356 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) | ||||||||||
| 1357 | that is used to authorize claims to register a subscription filter | ||||||||||
| 1358 | against a given destination. | ||||||||||
| 1359 | |||||||||||
| 1360 | If multiple AWS accounts are sending logs to this destination, each | ||||||||||
| 1361 | sender account must be listed separately in the policy. The policy does | ||||||||||
| 1362 | not support specifying C<*> as the Principal or the use of the | ||||||||||
| 1363 | C<aws:PrincipalOrgId> global key. | ||||||||||
| 1364 | |||||||||||
| 1365 | |||||||||||
| 1366 | =head2 PutLogEvents | ||||||||||
| 1367 | |||||||||||
| 1368 | =over | ||||||||||
| 1369 | |||||||||||
| 1370 | =item LogEvents => ArrayRef[L<Paws::CloudWatchLogs::InputLogEvent>] | ||||||||||
| 1371 | |||||||||||
| 1372 | =item LogGroupName => Str | ||||||||||
| 1373 | |||||||||||
| 1374 | =item LogStreamName => Str | ||||||||||
| 1375 | |||||||||||
| 1376 | =item [SequenceToken => Str] | ||||||||||
| 1377 | |||||||||||
| 1378 | |||||||||||
| 1379 | =back | ||||||||||
| 1380 | |||||||||||
| 1381 | Each argument is described in detail in: L<Paws::CloudWatchLogs::PutLogEvents> | ||||||||||
| 1382 | |||||||||||
| 1383 | Returns: a L<Paws::CloudWatchLogs::PutLogEventsResponse> instance | ||||||||||
| 1384 | |||||||||||
| 1385 | Uploads a batch of log events to the specified log stream. | ||||||||||
| 1386 | |||||||||||
| 1387 | You must include the sequence token obtained from the response of the | ||||||||||
| 1388 | previous call. An upload in a newly created log stream does not require | ||||||||||
| 1389 | a sequence token. You can also get the sequence token in the | ||||||||||
| 1390 | C<expectedSequenceToken> field from C<InvalidSequenceTokenException>. | ||||||||||
| 1391 | If you call C<PutLogEvents> twice within a narrow time period using the | ||||||||||
| 1392 | same value for C<sequenceToken>, both calls might be successful or one | ||||||||||
| 1393 | might be rejected. | ||||||||||
| 1394 | |||||||||||
| 1395 | The batch of events must satisfy the following constraints: | ||||||||||
| 1396 | |||||||||||
| 1397 | =over | ||||||||||
| 1398 | |||||||||||
| 1399 | =item * | ||||||||||
| 1400 | |||||||||||
| 1401 | The maximum batch size is 1,048,576 bytes. This size is calculated as | ||||||||||
| 1402 | the sum of all event messages in UTF-8, plus 26 bytes for each log | ||||||||||
| 1403 | event. | ||||||||||
| 1404 | |||||||||||
| 1405 | =item * | ||||||||||
| 1406 | |||||||||||
| 1407 | None of the log events in the batch can be more than 2 hours in the | ||||||||||
| 1408 | future. | ||||||||||
| 1409 | |||||||||||
| 1410 | =item * | ||||||||||
| 1411 | |||||||||||
| 1412 | None of the log events in the batch can be older than 14 days or older | ||||||||||
| 1413 | than the retention period of the log group. | ||||||||||
| 1414 | |||||||||||
| 1415 | =item * | ||||||||||
| 1416 | |||||||||||
| 1417 | The log events in the batch must be in chronological order by their | ||||||||||
| 1418 | timestamp. The timestamp is the time the event occurred, expressed as | ||||||||||
| 1419 | the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In AWS | ||||||||||
| 1420 | Tools for PowerShell and the AWS SDK for .NET, the timestamp is | ||||||||||
| 1421 | specified in .NET format: yyyy-mm-ddThh:mm:ss. For example, | ||||||||||
| 1422 | 2017-09-15T13:45:30.) | ||||||||||
| 1423 | |||||||||||
| 1424 | =item * | ||||||||||
| 1425 | |||||||||||
| 1426 | A batch of log events in a single request cannot span more than 24 | ||||||||||
| 1427 | hours. Otherwise, the operation fails. | ||||||||||
| 1428 | |||||||||||
| 1429 | =item * | ||||||||||
| 1430 | |||||||||||
| 1431 | The maximum number of log events in a batch is 10,000. | ||||||||||
| 1432 | |||||||||||
| 1433 | =item * | ||||||||||
| 1434 | |||||||||||
| 1435 | There is a quota of 5 requests per second per log stream. Additional | ||||||||||
| 1436 | requests are throttled. This quota can't be changed. | ||||||||||
| 1437 | |||||||||||
| 1438 | =back | ||||||||||
| 1439 | |||||||||||
| 1440 | If a call to C<PutLogEvents> returns "UnrecognizedClientException" the | ||||||||||
| 1441 | most likely cause is an invalid AWS access key ID or secret key. | ||||||||||
| 1442 | |||||||||||
| 1443 | |||||||||||
| 1444 | =head2 PutMetricFilter | ||||||||||
| 1445 | |||||||||||
| 1446 | =over | ||||||||||
| 1447 | |||||||||||
| 1448 | =item FilterName => Str | ||||||||||
| 1449 | |||||||||||
| 1450 | =item FilterPattern => Str | ||||||||||
| 1451 | |||||||||||
| 1452 | =item LogGroupName => Str | ||||||||||
| 1453 | |||||||||||
| 1454 | =item MetricTransformations => ArrayRef[L<Paws::CloudWatchLogs::MetricTransformation>] | ||||||||||
| 1455 | |||||||||||
| 1456 | |||||||||||
| 1457 | =back | ||||||||||
| 1458 | |||||||||||
| 1459 | Each argument is described in detail in: L<Paws::CloudWatchLogs::PutMetricFilter> | ||||||||||
| 1460 | |||||||||||
| 1461 | Returns: nothing | ||||||||||
| 1462 | |||||||||||
| 1463 | Creates or updates a metric filter and associates it with the specified | ||||||||||
| 1464 | log group. Metric filters allow you to configure rules to extract | ||||||||||
| 1465 | metric data from log events ingested through PutLogEvents | ||||||||||
| 1466 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html). | ||||||||||
| 1467 | |||||||||||
| 1468 | The maximum number of metric filters that can be associated with a log | ||||||||||
| 1469 | group is 100. | ||||||||||
| 1470 | |||||||||||
| 1471 | When you create a metric filter, you can also optionally assign a unit | ||||||||||
| 1472 | and dimensions to the metric that is created. | ||||||||||
| 1473 | |||||||||||
| 1474 | Metrics extracted from log events are charged as custom metrics. To | ||||||||||
| 1475 | prevent unexpected high charges, do not specify high-cardinality fields | ||||||||||
| 1476 | such as C<IPAddress> or C<requestID> as dimensions. Each different | ||||||||||
| 1477 | value found for a dimension is treated as a separate metric and accrues | ||||||||||
| 1478 | charges as a separate custom metric. | ||||||||||
| 1479 | |||||||||||
| 1480 | To help prevent accidental high charges, Amazon disables a metric | ||||||||||
| 1481 | filter if it generates 1000 different name/value pairs for the | ||||||||||
| 1482 | dimensions that you have specified within a certain amount of time. | ||||||||||
| 1483 | |||||||||||
| 1484 | You can also set up a billing alarm to alert you if your charges are | ||||||||||
| 1485 | higher than expected. For more information, see Creating a Billing | ||||||||||
| 1486 | Alarm to Monitor Your Estimated AWS Charges | ||||||||||
| 1487 | (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html). | ||||||||||
| 1488 | |||||||||||
| 1489 | |||||||||||
| 1490 | =head2 PutQueryDefinition | ||||||||||
| 1491 | |||||||||||
| 1492 | =over | ||||||||||
| 1493 | |||||||||||
| 1494 | =item Name => Str | ||||||||||
| 1495 | |||||||||||
| 1496 | =item QueryString => Str | ||||||||||
| 1497 | |||||||||||
| 1498 | =item [LogGroupNames => ArrayRef[Str|Undef]] | ||||||||||
| 1499 | |||||||||||
| 1500 | =item [QueryDefinitionId => Str] | ||||||||||
| 1501 | |||||||||||
| 1502 | |||||||||||
| 1503 | =back | ||||||||||
| 1504 | |||||||||||
| 1505 | Each argument is described in detail in: L<Paws::CloudWatchLogs::PutQueryDefinition> | ||||||||||
| 1506 | |||||||||||
| 1507 | Returns: a L<Paws::CloudWatchLogs::PutQueryDefinitionResponse> instance | ||||||||||
| 1508 | |||||||||||
| 1509 | Creates or updates a query definition for CloudWatch Logs Insights. For | ||||||||||
| 1510 | more information, see Analyzing Log Data with CloudWatch Logs Insights | ||||||||||
| 1511 | (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html). | ||||||||||
| 1512 | |||||||||||
| 1513 | To update a query definition, specify its C<queryDefinitionId> in your | ||||||||||
| 1514 | request. The values of C<name>, C<queryString>, and C<logGroupNames> | ||||||||||
| 1515 | are changed to the values that you specify in your update operation. No | ||||||||||
| 1516 | current values are retained from the current query definition. For | ||||||||||
| 1517 | example, if you update a current query definition that includes log | ||||||||||
| 1518 | groups, and you don't specify the C<logGroupNames> parameter in your | ||||||||||
| 1519 | update operation, the query definition changes to contain no log | ||||||||||
| 1520 | groups. | ||||||||||
| 1521 | |||||||||||
| 1522 | You must have the C<logs:PutQueryDefinition> permission to be able to | ||||||||||
| 1523 | perform this operation. | ||||||||||
| 1524 | |||||||||||
| 1525 | |||||||||||
| 1526 | =head2 PutResourcePolicy | ||||||||||
| 1527 | |||||||||||
| 1528 | =over | ||||||||||
| 1529 | |||||||||||
| 1530 | =item [PolicyDocument => Str] | ||||||||||
| 1531 | |||||||||||
| 1532 | =item [PolicyName => Str] | ||||||||||
| 1533 | |||||||||||
| 1534 | |||||||||||
| 1535 | =back | ||||||||||
| 1536 | |||||||||||
| 1537 | Each argument is described in detail in: L<Paws::CloudWatchLogs::PutResourcePolicy> | ||||||||||
| 1538 | |||||||||||
| 1539 | Returns: a L<Paws::CloudWatchLogs::PutResourcePolicyResponse> instance | ||||||||||
| 1540 | |||||||||||
| 1541 | Creates or updates a resource policy allowing other AWS services to put | ||||||||||
| 1542 | log events to this account, such as Amazon Route 53. An account can | ||||||||||
| 1543 | have up to 10 resource policies per AWS Region. | ||||||||||
| 1544 | |||||||||||
| 1545 | |||||||||||
| 1546 | =head2 PutRetentionPolicy | ||||||||||
| 1547 | |||||||||||
| 1548 | =over | ||||||||||
| 1549 | |||||||||||
| 1550 | =item LogGroupName => Str | ||||||||||
| 1551 | |||||||||||
| 1552 | =item RetentionInDays => Int | ||||||||||
| 1553 | |||||||||||
| 1554 | |||||||||||
| 1555 | =back | ||||||||||
| 1556 | |||||||||||
| 1557 | Each argument is described in detail in: L<Paws::CloudWatchLogs::PutRetentionPolicy> | ||||||||||
| 1558 | |||||||||||
| 1559 | Returns: nothing | ||||||||||
| 1560 | |||||||||||
| 1561 | Sets the retention of the specified log group. A retention policy | ||||||||||
| 1562 | allows you to configure the number of days for which to retain log | ||||||||||
| 1563 | events in the specified log group. | ||||||||||
| 1564 | |||||||||||
| 1565 | |||||||||||
| 1566 | =head2 PutSubscriptionFilter | ||||||||||
| 1567 | |||||||||||
| 1568 | =over | ||||||||||
| 1569 | |||||||||||
| 1570 | =item DestinationArn => Str | ||||||||||
| 1571 | |||||||||||
| 1572 | =item FilterName => Str | ||||||||||
| 1573 | |||||||||||
| 1574 | =item FilterPattern => Str | ||||||||||
| 1575 | |||||||||||
| 1576 | =item LogGroupName => Str | ||||||||||
| 1577 | |||||||||||
| 1578 | =item [Distribution => Str] | ||||||||||
| 1579 | |||||||||||
| 1580 | =item [RoleArn => Str] | ||||||||||
| 1581 | |||||||||||
| 1582 | |||||||||||
| 1583 | =back | ||||||||||
| 1584 | |||||||||||
| 1585 | Each argument is described in detail in: L<Paws::CloudWatchLogs::PutSubscriptionFilter> | ||||||||||
| 1586 | |||||||||||
| 1587 | Returns: nothing | ||||||||||
| 1588 | |||||||||||
| 1589 | Creates or updates a subscription filter and associates it with the | ||||||||||
| 1590 | specified log group. Subscription filters allow you to subscribe to a | ||||||||||
| 1591 | real-time stream of log events ingested through PutLogEvents | ||||||||||
| 1592 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html) | ||||||||||
| 1593 | and have them delivered to a specific destination. When log events are | ||||||||||
| 1594 | sent to the receiving service, they are Base64 encoded and compressed | ||||||||||
| 1595 | with the gzip format. | ||||||||||
| 1596 | |||||||||||
| 1597 | The following destinations are supported for subscription filters: | ||||||||||
| 1598 | |||||||||||
| 1599 | =over | ||||||||||
| 1600 | |||||||||||
| 1601 | =item * | ||||||||||
| 1602 | |||||||||||
| 1603 | An Amazon Kinesis stream belonging to the same account as the | ||||||||||
| 1604 | subscription filter, for same-account delivery. | ||||||||||
| 1605 | |||||||||||
| 1606 | =item * | ||||||||||
| 1607 | |||||||||||
| 1608 | A logical destination that belongs to a different account, for | ||||||||||
| 1609 | cross-account delivery. | ||||||||||
| 1610 | |||||||||||
| 1611 | =item * | ||||||||||
| 1612 | |||||||||||
| 1613 | An Amazon Kinesis Firehose delivery stream that belongs to the same | ||||||||||
| 1614 | account as the subscription filter, for same-account delivery. | ||||||||||
| 1615 | |||||||||||
| 1616 | =item * | ||||||||||
| 1617 | |||||||||||
| 1618 | An AWS Lambda function that belongs to the same account as the | ||||||||||
| 1619 | subscription filter, for same-account delivery. | ||||||||||
| 1620 | |||||||||||
| 1621 | =back | ||||||||||
| 1622 | |||||||||||
| 1623 | Each log group can have up to two subscription filters associated with | ||||||||||
| 1624 | it. If you are updating an existing filter, you must specify the | ||||||||||
| 1625 | correct name in C<filterName>. | ||||||||||
| 1626 | |||||||||||
| 1627 | To perform a C<PutSubscriptionFilter> operation, you must also have the | ||||||||||
| 1628 | C<iam:PassRole> permission. | ||||||||||
| 1629 | |||||||||||
| 1630 | |||||||||||
| 1631 | =head2 StartQuery | ||||||||||
| 1632 | |||||||||||
| 1633 | =over | ||||||||||
| 1634 | |||||||||||
| 1635 | =item EndTime => Int | ||||||||||
| 1636 | |||||||||||
| 1637 | =item QueryString => Str | ||||||||||
| 1638 | |||||||||||
| 1639 | =item StartTime => Int | ||||||||||
| 1640 | |||||||||||
| 1641 | =item [Limit => Int] | ||||||||||
| 1642 | |||||||||||
| 1643 | =item [LogGroupName => Str] | ||||||||||
| 1644 | |||||||||||
| 1645 | =item [LogGroupNames => ArrayRef[Str|Undef]] | ||||||||||
| 1646 | |||||||||||
| 1647 | |||||||||||
| 1648 | =back | ||||||||||
| 1649 | |||||||||||
| 1650 | Each argument is described in detail in: L<Paws::CloudWatchLogs::StartQuery> | ||||||||||
| 1651 | |||||||||||
| 1652 | Returns: a L<Paws::CloudWatchLogs::StartQueryResponse> instance | ||||||||||
| 1653 | |||||||||||
| 1654 | Schedules a query of a log group using CloudWatch Logs Insights. You | ||||||||||
| 1655 | specify the log group and time range to query and the query string to | ||||||||||
| 1656 | use. | ||||||||||
| 1657 | |||||||||||
| 1658 | For more information, see CloudWatch Logs Insights Query Syntax | ||||||||||
| 1659 | (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html). | ||||||||||
| 1660 | |||||||||||
| 1661 | Queries time out after 15 minutes of execution. If your queries are | ||||||||||
| 1662 | timing out, reduce the time range being searched or partition your | ||||||||||
| 1663 | query into a number of queries. | ||||||||||
| 1664 | |||||||||||
| 1665 | |||||||||||
| 1666 | =head2 StopQuery | ||||||||||
| 1667 | |||||||||||
| 1668 | =over | ||||||||||
| 1669 | |||||||||||
| 1670 | =item QueryId => Str | ||||||||||
| 1671 | |||||||||||
| 1672 | |||||||||||
| 1673 | =back | ||||||||||
| 1674 | |||||||||||
| 1675 | Each argument is described in detail in: L<Paws::CloudWatchLogs::StopQuery> | ||||||||||
| 1676 | |||||||||||
| 1677 | Returns: a L<Paws::CloudWatchLogs::StopQueryResponse> instance | ||||||||||
| 1678 | |||||||||||
| 1679 | Stops a CloudWatch Logs Insights query that is in progress. If the | ||||||||||
| 1680 | query has already ended, the operation returns an error indicating that | ||||||||||
| 1681 | the specified query is not running. | ||||||||||
| 1682 | |||||||||||
| 1683 | |||||||||||
| 1684 | =head2 TagLogGroup | ||||||||||
| 1685 | |||||||||||
| 1686 | =over | ||||||||||
| 1687 | |||||||||||
| 1688 | =item LogGroupName => Str | ||||||||||
| 1689 | |||||||||||
| 1690 | =item Tags => L<Paws::CloudWatchLogs::Tags> | ||||||||||
| 1691 | |||||||||||
| 1692 | |||||||||||
| 1693 | =back | ||||||||||
| 1694 | |||||||||||
| 1695 | Each argument is described in detail in: L<Paws::CloudWatchLogs::TagLogGroup> | ||||||||||
| 1696 | |||||||||||
| 1697 | Returns: nothing | ||||||||||
| 1698 | |||||||||||
| 1699 | Adds or updates the specified tags for the specified log group. | ||||||||||
| 1700 | |||||||||||
| 1701 | To list the tags for a log group, use ListTagsLogGroup | ||||||||||
| 1702 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html). | ||||||||||
| 1703 | To remove tags, use UntagLogGroup | ||||||||||
| 1704 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html). | ||||||||||
| 1705 | |||||||||||
| 1706 | For more information about tags, see Tag Log Groups in Amazon | ||||||||||
| 1707 | CloudWatch Logs | ||||||||||
| 1708 | (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging) | ||||||||||
| 1709 | in the I<Amazon CloudWatch Logs User Guide>. | ||||||||||
| 1710 | |||||||||||
| 1711 | |||||||||||
| 1712 | =head2 TestMetricFilter | ||||||||||
| 1713 | |||||||||||
| 1714 | =over | ||||||||||
| 1715 | |||||||||||
| 1716 | =item FilterPattern => Str | ||||||||||
| 1717 | |||||||||||
| 1718 | =item LogEventMessages => ArrayRef[Str|Undef] | ||||||||||
| 1719 | |||||||||||
| 1720 | |||||||||||
| 1721 | =back | ||||||||||
| 1722 | |||||||||||
| 1723 | Each argument is described in detail in: L<Paws::CloudWatchLogs::TestMetricFilter> | ||||||||||
| 1724 | |||||||||||
| 1725 | Returns: a L<Paws::CloudWatchLogs::TestMetricFilterResponse> instance | ||||||||||
| 1726 | |||||||||||
| 1727 | Tests the filter pattern of a metric filter against a sample of log | ||||||||||
| 1728 | event messages. You can use this operation to validate the correctness | ||||||||||
| 1729 | of a metric filter pattern. | ||||||||||
| 1730 | |||||||||||
| 1731 | |||||||||||
| 1732 | =head2 UntagLogGroup | ||||||||||
| 1733 | |||||||||||
| 1734 | =over | ||||||||||
| 1735 | |||||||||||
| 1736 | =item LogGroupName => Str | ||||||||||
| 1737 | |||||||||||
| 1738 | =item Tags => ArrayRef[Str|Undef] | ||||||||||
| 1739 | |||||||||||
| 1740 | |||||||||||
| 1741 | =back | ||||||||||
| 1742 | |||||||||||
| 1743 | Each argument is described in detail in: L<Paws::CloudWatchLogs::UntagLogGroup> | ||||||||||
| 1744 | |||||||||||
| 1745 | Returns: nothing | ||||||||||
| 1746 | |||||||||||
| 1747 | Removes the specified tags from the specified log group. | ||||||||||
| 1748 | |||||||||||
| 1749 | To list the tags for a log group, use ListTagsLogGroup | ||||||||||
| 1750 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html). | ||||||||||
| 1751 | To add tags, use TagLogGroup | ||||||||||
| 1752 | (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagLogGroup.html). | ||||||||||
| 1753 | |||||||||||
| 1754 | |||||||||||
| 1755 | |||||||||||
| 1756 | |||||||||||
| 1757 | =head1 PAGINATORS | ||||||||||
| 1758 | |||||||||||
| 1759 | Paginator methods are helpers that repetively call methods that return partial results | ||||||||||
| 1760 | |||||||||||
| 1761 | =head2 DescribeAllDestinations(sub { },[DestinationNamePrefix => Str, Limit => Int, NextToken => Str]) | ||||||||||
| 1762 | |||||||||||
| 1763 | =head2 DescribeAllDestinations([DestinationNamePrefix => Str, Limit => Int, NextToken => Str]) | ||||||||||
| 1764 | |||||||||||
| 1765 | |||||||||||
| 1766 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1767 | |||||||||||
| 1768 | - destinations, passing the object as the first parameter, and the string 'destinations' as the second parameter | ||||||||||
| 1769 | |||||||||||
| 1770 | If not, it will return a a L<Paws::CloudWatchLogs::DescribeDestinationsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1771 | |||||||||||
| 1772 | |||||||||||
| 1773 | =head2 DescribeAllExportTasks(sub { },[Limit => Int, NextToken => Str, StatusCode => Str, TaskId => Str]) | ||||||||||
| 1774 | |||||||||||
| 1775 | =head2 DescribeAllExportTasks([Limit => Int, NextToken => Str, StatusCode => Str, TaskId => Str]) | ||||||||||
| 1776 | |||||||||||
| 1777 | |||||||||||
| 1778 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1779 | |||||||||||
| 1780 | - exportTasks, passing the object as the first parameter, and the string 'exportTasks' as the second parameter | ||||||||||
| 1781 | |||||||||||
| 1782 | If not, it will return a a L<Paws::CloudWatchLogs::DescribeExportTasksResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1783 | |||||||||||
| 1784 | |||||||||||
| 1785 | =head2 DescribeAllLogGroups(sub { },[Limit => Int, LogGroupNamePrefix => Str, NextToken => Str]) | ||||||||||
| 1786 | |||||||||||
| 1787 | =head2 DescribeAllLogGroups([Limit => Int, LogGroupNamePrefix => Str, NextToken => Str]) | ||||||||||
| 1788 | |||||||||||
| 1789 | |||||||||||
| 1790 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1791 | |||||||||||
| 1792 | - logGroups, passing the object as the first parameter, and the string 'logGroups' as the second parameter | ||||||||||
| 1793 | |||||||||||
| 1794 | If not, it will return a a L<Paws::CloudWatchLogs::DescribeLogGroupsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1795 | |||||||||||
| 1796 | |||||||||||
| 1797 | =head2 DescribeAllLogStreams(sub { },LogGroupName => Str, [Descending => Bool, Limit => Int, LogStreamNamePrefix => Str, NextToken => Str, OrderBy => Str]) | ||||||||||
| 1798 | |||||||||||
| 1799 | =head2 DescribeAllLogStreams(LogGroupName => Str, [Descending => Bool, Limit => Int, LogStreamNamePrefix => Str, NextToken => Str, OrderBy => Str]) | ||||||||||
| 1800 | |||||||||||
| 1801 | |||||||||||
| 1802 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1803 | |||||||||||
| 1804 | - logStreams, passing the object as the first parameter, and the string 'logStreams' as the second parameter | ||||||||||
| 1805 | |||||||||||
| 1806 | If not, it will return a a L<Paws::CloudWatchLogs::DescribeLogStreamsResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1807 | |||||||||||
| 1808 | |||||||||||
| 1809 | =head2 DescribeAllMetricFilters(sub { },[FilterNamePrefix => Str, Limit => Int, LogGroupName => Str, MetricName => Str, MetricNamespace => Str, NextToken => Str]) | ||||||||||
| 1810 | |||||||||||
| 1811 | =head2 DescribeAllMetricFilters([FilterNamePrefix => Str, Limit => Int, LogGroupName => Str, MetricName => Str, MetricNamespace => Str, NextToken => Str]) | ||||||||||
| 1812 | |||||||||||
| 1813 | |||||||||||
| 1814 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1815 | |||||||||||
| 1816 | - metricFilters, passing the object as the first parameter, and the string 'metricFilters' as the second parameter | ||||||||||
| 1817 | |||||||||||
| 1818 | If not, it will return a a L<Paws::CloudWatchLogs::DescribeMetricFiltersResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1819 | |||||||||||
| 1820 | |||||||||||
| 1821 | =head2 DescribeAllQueries(sub { },[LogGroupName => Str, MaxResults => Int, NextToken => Str, Status => Str]) | ||||||||||
| 1822 | |||||||||||
| 1823 | =head2 DescribeAllQueries([LogGroupName => Str, MaxResults => Int, NextToken => Str, Status => Str]) | ||||||||||
| 1824 | |||||||||||
| 1825 | |||||||||||
| 1826 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1827 | |||||||||||
| 1828 | - queries, passing the object as the first parameter, and the string 'queries' as the second parameter | ||||||||||
| 1829 | |||||||||||
| 1830 | If not, it will return a a L<Paws::CloudWatchLogs::DescribeQueriesResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1831 | |||||||||||
| 1832 | |||||||||||
| 1833 | =head2 DescribeAllResourcePolicies(sub { },[Limit => Int, NextToken => Str]) | ||||||||||
| 1834 | |||||||||||
| 1835 | =head2 DescribeAllResourcePolicies([Limit => Int, NextToken => Str]) | ||||||||||
| 1836 | |||||||||||
| 1837 | |||||||||||
| 1838 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1839 | |||||||||||
| 1840 | - resourcePolicies, passing the object as the first parameter, and the string 'resourcePolicies' as the second parameter | ||||||||||
| 1841 | |||||||||||
| 1842 | If not, it will return a a L<Paws::CloudWatchLogs::DescribeResourcePoliciesResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1843 | |||||||||||
| 1844 | |||||||||||
| 1845 | =head2 DescribeAllSubscriptionFilters(sub { },LogGroupName => Str, [FilterNamePrefix => Str, Limit => Int, NextToken => Str]) | ||||||||||
| 1846 | |||||||||||
| 1847 | =head2 DescribeAllSubscriptionFilters(LogGroupName => Str, [FilterNamePrefix => Str, Limit => Int, NextToken => Str]) | ||||||||||
| 1848 | |||||||||||
| 1849 | |||||||||||
| 1850 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1851 | |||||||||||
| 1852 | - subscriptionFilters, passing the object as the first parameter, and the string 'subscriptionFilters' as the second parameter | ||||||||||
| 1853 | |||||||||||
| 1854 | If not, it will return a a L<Paws::CloudWatchLogs::DescribeSubscriptionFiltersResponse> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1855 | |||||||||||
| 1856 | |||||||||||
| 1857 | =head2 FilterAllLogEvents(sub { },LogGroupName => Str, [EndTime => Int, FilterPattern => Str, Interleaved => Bool, Limit => Int, LogStreamNamePrefix => Str, LogStreamNames => ArrayRef[Str|Undef], NextToken => Str, StartTime => Int]) | ||||||||||
| 1858 | |||||||||||
| 1859 | =head2 FilterAllLogEvents(LogGroupName => Str, [EndTime => Int, FilterPattern => Str, Interleaved => Bool, Limit => Int, LogStreamNamePrefix => Str, LogStreamNames => ArrayRef[Str|Undef], NextToken => Str, StartTime => Int]) | ||||||||||
| 1860 | |||||||||||
| 1861 | |||||||||||
| 1862 | If passed a sub as first parameter, it will call the sub for each element found in : | ||||||||||
| 1863 | |||||||||||
| 1864 | - events, passing the object as the first parameter, and the string 'events' as the second parameter | ||||||||||
| 1865 | |||||||||||
| 1866 | - searchedLogStreams, passing the object as the first parameter, and the string 'searchedLogStreams' as the second parameter | ||||||||||
| 1867 | |||||||||||
| 1868 | If not, it will return a a L<Paws::CloudWatchLogs::FilterLogEventsResponse> instance with all the C<param>s; andC<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||||||||||
| 1869 | |||||||||||
| 1870 | |||||||||||
| 1871 | |||||||||||
| 1872 | |||||||||||
| 1873 | |||||||||||
| 1874 | =head1 SEE ALSO | ||||||||||
| 1875 | |||||||||||
| 1876 | This service class forms part of L<Paws> | ||||||||||
| 1877 | |||||||||||
| 1878 | =head1 BUGS and CONTRIBUTIONS | ||||||||||
| 1879 | |||||||||||
| 1880 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||||||||||
| 1881 | |||||||||||
| 1882 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||||||||||
| 1883 | |||||||||||
| 1884 | =cut | ||||||||||
| 1885 | |||||||||||