UNPKG

239 kBPlain TextView Raw
1{
2 "author": {
3 "name": "Amazon Web Services",
4 "organization": true,
5 "roles": [
6 "author"
7 ],
8 "url": "https://aws.amazon.com"
9 },
10 "dependencies": {
11 "@aws-cdk/aws-cloudwatch": "1.204.0",
12 "@aws-cdk/aws-iam": "1.204.0",
13 "@aws-cdk/aws-kms": "1.204.0",
14 "@aws-cdk/aws-s3-assets": "1.204.0",
15 "@aws-cdk/core": "1.204.0",
16 "@aws-cdk/cx-api": "1.204.0",
17 "constructs": "^3.3.69"
18 },
19 "dependencyClosure": {
20 "@aws-cdk/assets": {
21 "targets": {
22 "dotnet": {
23 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
24 "namespace": "Amazon.CDK.Assets",
25 "packageId": "Amazon.CDK.Assets"
26 },
27 "java": {
28 "maven": {
29 "artifactId": "cdk-assets",
30 "groupId": "software.amazon.awscdk"
31 },
32 "package": "software.amazon.awscdk.assets"
33 },
34 "js": {
35 "npm": "@aws-cdk/assets"
36 },
37 "python": {
38 "classifiers": [
39 "Framework :: AWS CDK",
40 "Framework :: AWS CDK :: 1"
41 ],
42 "distName": "aws-cdk.assets",
43 "module": "aws_cdk.assets"
44 }
45 }
46 },
47 "@aws-cdk/aws-cloudwatch": {
48 "targets": {
49 "dotnet": {
50 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
51 "namespace": "Amazon.CDK.AWS.CloudWatch",
52 "packageId": "Amazon.CDK.AWS.CloudWatch"
53 },
54 "java": {
55 "maven": {
56 "artifactId": "cloudwatch",
57 "groupId": "software.amazon.awscdk"
58 },
59 "package": "software.amazon.awscdk.services.cloudwatch"
60 },
61 "js": {
62 "npm": "@aws-cdk/aws-cloudwatch"
63 },
64 "python": {
65 "classifiers": [
66 "Framework :: AWS CDK",
67 "Framework :: AWS CDK :: 1"
68 ],
69 "distName": "aws-cdk.aws-cloudwatch",
70 "module": "aws_cdk.aws_cloudwatch"
71 }
72 }
73 },
74 "@aws-cdk/aws-events": {
75 "targets": {
76 "dotnet": {
77 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
78 "namespace": "Amazon.CDK.AWS.Events",
79 "packageId": "Amazon.CDK.AWS.Events"
80 },
81 "java": {
82 "maven": {
83 "artifactId": "events",
84 "groupId": "software.amazon.awscdk"
85 },
86 "package": "software.amazon.awscdk.services.events"
87 },
88 "js": {
89 "npm": "@aws-cdk/aws-events"
90 },
91 "python": {
92 "classifiers": [
93 "Framework :: AWS CDK",
94 "Framework :: AWS CDK :: 1"
95 ],
96 "distName": "aws-cdk.aws-events",
97 "module": "aws_cdk.aws_events"
98 }
99 }
100 },
101 "@aws-cdk/aws-iam": {
102 "targets": {
103 "dotnet": {
104 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
105 "namespace": "Amazon.CDK.AWS.IAM",
106 "packageId": "Amazon.CDK.AWS.IAM"
107 },
108 "java": {
109 "maven": {
110 "artifactId": "iam",
111 "groupId": "software.amazon.awscdk"
112 },
113 "package": "software.amazon.awscdk.services.iam"
114 },
115 "js": {
116 "npm": "@aws-cdk/aws-iam"
117 },
118 "python": {
119 "classifiers": [
120 "Framework :: AWS CDK",
121 "Framework :: AWS CDK :: 1"
122 ],
123 "distName": "aws-cdk.aws-iam",
124 "module": "aws_cdk.aws_iam"
125 }
126 }
127 },
128 "@aws-cdk/aws-kms": {
129 "targets": {
130 "dotnet": {
131 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
132 "namespace": "Amazon.CDK.AWS.KMS",
133 "packageId": "Amazon.CDK.AWS.KMS"
134 },
135 "java": {
136 "maven": {
137 "artifactId": "kms",
138 "groupId": "software.amazon.awscdk"
139 },
140 "package": "software.amazon.awscdk.services.kms"
141 },
142 "js": {
143 "npm": "@aws-cdk/aws-kms"
144 },
145 "python": {
146 "classifiers": [
147 "Framework :: AWS CDK",
148 "Framework :: AWS CDK :: 1"
149 ],
150 "distName": "aws-cdk.aws-kms",
151 "module": "aws_cdk.aws_kms"
152 }
153 }
154 },
155 "@aws-cdk/aws-s3": {
156 "targets": {
157 "dotnet": {
158 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
159 "namespace": "Amazon.CDK.AWS.S3",
160 "packageId": "Amazon.CDK.AWS.S3"
161 },
162 "java": {
163 "maven": {
164 "artifactId": "s3",
165 "groupId": "software.amazon.awscdk"
166 },
167 "package": "software.amazon.awscdk.services.s3"
168 },
169 "js": {
170 "npm": "@aws-cdk/aws-s3"
171 },
172 "python": {
173 "classifiers": [
174 "Framework :: AWS CDK",
175 "Framework :: AWS CDK :: 1"
176 ],
177 "distName": "aws-cdk.aws-s3",
178 "module": "aws_cdk.aws_s3"
179 }
180 }
181 },
182 "@aws-cdk/aws-s3-assets": {
183 "targets": {
184 "dotnet": {
185 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
186 "namespace": "Amazon.CDK.AWS.S3.Assets",
187 "packageId": "Amazon.CDK.AWS.S3.Assets"
188 },
189 "java": {
190 "maven": {
191 "artifactId": "s3-assets",
192 "groupId": "software.amazon.awscdk"
193 },
194 "package": "software.amazon.awscdk.services.s3.assets"
195 },
196 "js": {
197 "npm": "@aws-cdk/aws-s3-assets"
198 },
199 "python": {
200 "classifiers": [
201 "Framework :: AWS CDK",
202 "Framework :: AWS CDK :: 1"
203 ],
204 "distName": "aws-cdk.aws-s3-assets",
205 "module": "aws_cdk.aws_s3_assets"
206 }
207 }
208 },
209 "@aws-cdk/cloud-assembly-schema": {
210 "targets": {
211 "dotnet": {
212 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
213 "namespace": "Amazon.CDK.CloudAssembly.Schema",
214 "packageId": "Amazon.CDK.CloudAssembly.Schema"
215 },
216 "java": {
217 "maven": {
218 "artifactId": "cdk-cloud-assembly-schema",
219 "groupId": "software.amazon.awscdk"
220 },
221 "package": "software.amazon.awscdk.cloudassembly.schema"
222 },
223 "js": {
224 "npm": "@aws-cdk/cloud-assembly-schema"
225 },
226 "python": {
227 "classifiers": [
228 "Framework :: AWS CDK",
229 "Framework :: AWS CDK :: 1"
230 ],
231 "distName": "aws-cdk.cloud-assembly-schema",
232 "module": "aws_cdk.cloud_assembly_schema"
233 }
234 }
235 },
236 "@aws-cdk/core": {
237 "targets": {
238 "dotnet": {
239 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
240 "namespace": "Amazon.CDK",
241 "packageId": "Amazon.CDK"
242 },
243 "java": {
244 "maven": {
245 "artifactId": "core",
246 "groupId": "software.amazon.awscdk"
247 },
248 "package": "software.amazon.awscdk.core"
249 },
250 "js": {
251 "npm": "@aws-cdk/core"
252 },
253 "python": {
254 "classifiers": [
255 "Framework :: AWS CDK",
256 "Framework :: AWS CDK :: 1"
257 ],
258 "distName": "aws-cdk.core",
259 "module": "aws_cdk.core"
260 }
261 }
262 },
263 "@aws-cdk/cx-api": {
264 "targets": {
265 "dotnet": {
266 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
267 "namespace": "Amazon.CDK.CXAPI",
268 "packageId": "Amazon.CDK.CXAPI"
269 },
270 "java": {
271 "maven": {
272 "artifactId": "cdk-cx-api",
273 "groupId": "software.amazon.awscdk"
274 },
275 "package": "software.amazon.awscdk.cxapi"
276 },
277 "js": {
278 "npm": "@aws-cdk/cx-api"
279 },
280 "python": {
281 "classifiers": [
282 "Framework :: AWS CDK",
283 "Framework :: AWS CDK :: 1"
284 ],
285 "distName": "aws-cdk.cx-api",
286 "module": "aws_cdk.cx_api"
287 }
288 }
289 },
290 "@aws-cdk/region-info": {
291 "targets": {
292 "dotnet": {
293 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
294 "namespace": "Amazon.CDK.RegionInfo",
295 "packageId": "Amazon.CDK.RegionInfo"
296 },
297 "java": {
298 "maven": {
299 "artifactId": "cdk-region-info",
300 "groupId": "software.amazon.awscdk"
301 },
302 "package": "software.amazon.awscdk.regioninfo"
303 },
304 "js": {
305 "npm": "@aws-cdk/region-info"
306 },
307 "python": {
308 "classifiers": [
309 "Framework :: AWS CDK",
310 "Framework :: AWS CDK :: 1"
311 ],
312 "distName": "aws-cdk.region-info",
313 "module": "aws_cdk.region_info"
314 }
315 }
316 },
317 "constructs": {
318 "targets": {
319 "dotnet": {
320 "namespace": "Constructs",
321 "packageId": "Constructs"
322 },
323 "go": {
324 "moduleName": "github.com/aws/constructs-go"
325 },
326 "java": {
327 "maven": {
328 "artifactId": "constructs",
329 "groupId": "software.constructs"
330 },
331 "package": "software.constructs"
332 },
333 "js": {
334 "npm": "constructs"
335 },
336 "python": {
337 "distName": "constructs",
338 "module": "constructs"
339 }
340 }
341 }
342 },
343 "description": "The CDK Construct Library for AWS::Logs",
344 "docs": {
345 "deprecated": "AWS CDK v1 has reached End-of-Support on 2023-06-01.\nThis package is no longer being updated, and users should migrate to AWS CDK v2.\n\nFor more information on how to migrate, see https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html",
346 "stability": "stable"
347 },
348 "homepage": "https://github.com/aws/aws-cdk",
349 "jsiiVersion": "1.84.0 (build 5404dcf)",
350 "keywords": [
351 "aws",
352 "cdk",
353 "constructs",
354 "logs"
355 ],
356 "license": "Apache-2.0",
357 "metadata": {
358 "jsii": {
359 "compiledWithDeprecationWarnings": true,
360 "pacmak": {
361 "hasDefaultInterfaces": true
362 },
363 "rosetta": {
364 "strict": true
365 }
366 }
367 },
368 "name": "@aws-cdk/aws-logs",
369 "readme": {
370 "markdown": "# Amazon CloudWatch Logs Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![End-of-Support](https://img.shields.io/badge/End--of--Support-critical.svg?style=for-the-badge)\n\n> AWS CDK v1 has reached End-of-Support on 2023-06-01.\n> This package is no longer being updated, and users should migrate to AWS CDK v2.\n>\n> For more information on how to migrate, see the [_Migrating to AWS CDK v2_ guide][doc].\n>\n> [doc]: https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis library supplies constructs for working with CloudWatch Logs.\n\n## Log Groups/Streams\n\nThe basic unit of CloudWatch is a *Log Group*. Every log group typically has the\nsame kind of data logged to it, in the same format. If there are multiple\napplications or services logging into the Log Group, each of them creates a new\n*Log Stream*.\n\nEvery log operation creates a \"log event\", which can consist of a simple string\nor a single-line JSON object. JSON objects have the advantage that they afford\nmore filtering abilities (see below).\n\nThe only configurable attribute for log streams is the retention period, which\nconfigures after how much time the events in the log stream expire and are\ndeleted.\n\nThe default retention period if not supplied is 2 years, but it can be set to\none of the values in the `RetentionDays` enum to configure a different\nretention period (including infinite retention).\n\n```ts lit=test/example.retention.lit.ts\n// Configure log group for short retention\nconst logGroup = new LogGroup(stack, 'LogGroup', {\n retention: RetentionDays.ONE_WEEK,\n});\n// Configure log group for infinite retention\nconst logGroup = new LogGroup(stack, 'LogGroup', {\n retention: Infinity,\n});\n```\n\n## LogRetention\n\nThe `LogRetention` construct is a way to control the retention period of log groups that are created outside of the CDK. The construct is usually\nused on log groups that are auto created by AWS services, such as [AWS\nlambda](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs.html).\n\nThis is implemented using a [CloudFormation custom\nresource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html)\nwhich pre-creates the log group if it doesn't exist, and sets the specified log retention period (never expire, by default).\n\nBy default, the log group will be created in the same region as the stack. The `logGroupRegion` property can be used to configure\nlog groups in other regions. This is typically useful when controlling retention for log groups auto-created by global services that\npublish their log group to a specific region, such as AWS Chatbot creating a log group in `us-east-1`.\n\n## Resource Policy\n\nCloudWatch Resource Policies allow other AWS services or IAM Principals to put log events into the log groups.\nA resource policy is automatically created when `addToResourcePolicy` is called on the LogGroup for the first time:\n\n```ts\nconst logGroup = new logs.LogGroup(this, 'LogGroup');\nlogGroup.addToResourcePolicy(new iam.PolicyStatement({\n actions: ['logs:CreateLogStream', 'logs:PutLogEvents'],\n principals: [new iam.ServicePrincipal('es.amazonaws.com')],\n resources: [logGroup.logGroupArn],\n}));\n```\n\nOr more conveniently, write permissions to the log group can be granted as follows which gives same result as in the above example.\n\n```ts\nconst logGroup = new logs.LogGroup(this, 'LogGroup');\nlogGroup.grantWrite(new iam.ServicePrincipal('es.amazonaws.com'));\n```\n\nBe aware that any ARNs or tokenized values passed to the resource policy will be converted into AWS Account IDs.\nThis is because CloudWatch Logs Resource Policies do not accept ARNs as principals, but they do accept\nAccount ID strings. Non-ARN principals, like Service principals or Any princpals, are accepted by CloudWatch.\n\n## Encrypting Log Groups\n\nBy default, log group data is always encrypted in CloudWatch Logs. You have the\noption to encrypt log group data using a AWS KMS customer master key (CMK) should\nyou not wish to use the default AWS encryption. Keep in mind that if you decide to\nencrypt a log group, any service or IAM identity that needs to read the encrypted\nlog streams in the future will require the same CMK to decrypt the data.\n\nHere's a simple example of creating an encrypted Log Group using a KMS CMK.\n\n```ts\nimport * as kms from '@aws-cdk/aws-kms';\n\nnew logs.LogGroup(this, 'LogGroup', {\n encryptionKey: new kms.Key(this, 'Key'),\n});\n```\n\nSee the AWS documentation for more detailed information about [encrypting CloudWatch\nLogs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/encrypt-log-data-kms.html).\n\n## Subscriptions and Destinations\n\nLog events matching a particular filter can be sent to either a Lambda function\nor a Kinesis stream.\n\nIf the Kinesis stream lives in a different account, a `CrossAccountDestination`\nobject needs to be added in the destination account which will act as a proxy\nfor the remote Kinesis stream. This object is automatically created for you\nif you use the CDK Kinesis library.\n\nCreate a `SubscriptionFilter`, initialize it with an appropriate `Pattern` (see\nbelow) and supply the intended destination:\n\n```ts\nimport * as destinations from '@aws-cdk/aws-logs-destinations';\ndeclare const fn: lambda.Function;\ndeclare const logGroup: logs.LogGroup;\n\nnew logs.SubscriptionFilter(this, 'Subscription', {\n logGroup,\n destination: new destinations.LambdaDestination(fn),\n filterPattern: logs.FilterPattern.allTerms(\"ERROR\", \"MainThread\"),\n});\n```\n\n## Metric Filters\n\nCloudWatch Logs can extract and emit metrics based on a textual log stream.\nDepending on your needs, this may be a more convenient way of generating metrics\nfor you application than making calls to CloudWatch Metrics yourself.\n\nA `MetricFilter` either emits a fixed number every time it sees a log event\nmatching a particular pattern (see below), or extracts a number from the log\nevent and uses that as the metric value.\n\nExample:\n\n```ts lit=test/integ.metricfilter.lit.ts\nnew MetricFilter(this, 'MetricFilter', {\n logGroup,\n metricNamespace: 'MyApp',\n metricName: 'Latency',\n filterPattern: FilterPattern.exists('$.latency'),\n metricValue: '$.latency',\n});\n```\n\nRemember that if you want to use a value from the log event as the metric value,\nyou must mention it in your pattern somewhere.\n\nA very simple MetricFilter can be created by using the `logGroup.extractMetric()`\nhelper function:\n\n```ts\ndeclare const logGroup: logs.LogGroup;\nlogGroup.extractMetric('$.jsonField', 'Namespace', 'MetricName');\n```\n\nWill extract the value of `jsonField` wherever it occurs in JSON-structed\nlog records in the LogGroup, and emit them to CloudWatch Metrics under\nthe name `Namespace/MetricName`.\n\n### Exposing Metric on a Metric Filter\n\nYou can expose a metric on a metric filter by calling the `MetricFilter.metric()` API.\nThis has a default of `statistic = 'avg'` if the statistic is not set in the `props`.\n\n```ts\ndeclare const logGroup: logs.LogGroup;\nconst mf = new logs.MetricFilter(this, 'MetricFilter', {\n logGroup,\n metricNamespace: 'MyApp',\n metricName: 'Latency',\n filterPattern: logs.FilterPattern.exists('$.latency'),\n metricValue: '$.latency',\n});\n\n//expose a metric from the metric filter\nconst metric = mf.metric();\n\n//you can use the metric to create a new alarm\nnew cloudwatch.Alarm(this, 'alarm from metric filter', {\n metric,\n threshold: 100,\n evaluationPeriods: 2,\n});\n```\n\n## Patterns\n\nPatterns describe which log events match a subscription or metric filter. There\nare three types of patterns:\n\n* Text patterns\n* JSON patterns\n* Space-delimited table patterns\n\nAll patterns are constructed by using static functions on the `FilterPattern`\nclass.\n\nIn addition to the patterns above, the following special patterns exist:\n\n* `FilterPattern.allEvents()`: matches all log events.\n* `FilterPattern.literal(string)`: if you already know what pattern expression to\n use, this function takes a string and will use that as the log pattern. For\n more information, see the [Filter and Pattern\n Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).\n\n### Text Patterns\n\nText patterns match if the literal strings appear in the text form of the log\nline.\n\n* `FilterPattern.allTerms(term, term, ...)`: matches if all of the given terms\n (substrings) appear in the log event.\n* `FilterPattern.anyTerm(term, term, ...)`: matches if all of the given terms\n (substrings) appear in the log event.\n* `FilterPattern.anyTermGroup([term, term, ...], [term, term, ...], ...)`: matches if\n all of the terms in any of the groups (specified as arrays) matches. This is\n an OR match.\n\nExamples:\n\n```ts\n// Search for lines that contain both \"ERROR\" and \"MainThread\"\nconst pattern1 = logs.FilterPattern.allTerms('ERROR', 'MainThread');\n\n// Search for lines that either contain both \"ERROR\" and \"MainThread\", or\n// both \"WARN\" and \"Deadlock\".\nconst pattern2 = logs.FilterPattern.anyTermGroup(\n ['ERROR', 'MainThread'],\n ['WARN', 'Deadlock'],\n);\n```\n\n## JSON Patterns\n\nJSON patterns apply if the log event is the JSON representation of an object\n(without any other characters, so it cannot include a prefix such as timestamp\nor log level). JSON patterns can make comparisons on the values inside the\nfields.\n\n* **Strings**: the comparison operators allowed for strings are `=` and `!=`.\n String values can start or end with a `*` wildcard.\n* **Numbers**: the comparison operators allowed for numbers are `=`, `!=`,\n `<`, `<=`, `>`, `>=`.\n\nFields in the JSON structure are identified by identifier the complete object as `$`\nand then descending into it, such as `$.field` or `$.list[0].field`.\n\n* `FilterPattern.stringValue(field, comparison, string)`: matches if the given\n field compares as indicated with the given string value.\n* `FilterPattern.numberValue(field, comparison, number)`: matches if the given\n field compares as indicated with the given numerical value.\n* `FilterPattern.isNull(field)`: matches if the given field exists and has the\n value `null`.\n* `FilterPattern.notExists(field)`: matches if the given field is not in the JSON\n structure.\n* `FilterPattern.exists(field)`: matches if the given field is in the JSON\n structure.\n* `FilterPattern.booleanValue(field, boolean)`: matches if the given field\n is exactly the given boolean value.\n* `FilterPattern.all(jsonPattern, jsonPattern, ...)`: matches if all of the\n given JSON patterns match. This makes an AND combination of the given\n patterns.\n* `FilterPattern.any(jsonPattern, jsonPattern, ...)`: matches if any of the\n given JSON patterns match. This makes an OR combination of the given\n patterns.\n\nExample:\n\n```ts\n// Search for all events where the component field is equal to\n// \"HttpServer\" and either error is true or the latency is higher\n// than 1000.\nconst pattern = logs.FilterPattern.all(\n logs.FilterPattern.stringValue('$.component', '=', 'HttpServer'),\n logs.FilterPattern.any(\n logs.FilterPattern.booleanValue('$.error', true),\n logs.FilterPattern.numberValue('$.latency', '>', 1000),\n ),\n);\n```\n\n## Space-delimited table patterns\n\nIf the log events are rows of a space-delimited table, this pattern can be used\nto identify the columns in that structure and add conditions on any of them. The\ncanonical example where you would apply this type of pattern is Apache server\nlogs.\n\nText that is surrounded by `\"...\"` quotes or `[...]` square brackets will\nbe treated as one column.\n\n* `FilterPattern.spaceDelimited(column, column, ...)`: construct a\n `SpaceDelimitedTextPattern` object with the indicated columns. The columns\n map one-by-one the columns found in the log event. The string `\"...\"` may\n be used to specify an arbitrary number of unnamed columns anywhere in the\n name list (but may only be specified once).\n\nAfter constructing a `SpaceDelimitedTextPattern`, you can use the following\ntwo members to add restrictions:\n\n* `pattern.whereString(field, comparison, string)`: add a string condition.\n The rules are the same as for JSON patterns.\n* `pattern.whereNumber(field, comparison, number)`: add a numerical condition.\n The rules are the same as for JSON patterns.\n\nMultiple restrictions can be added on the same column; they must all apply.\n\nExample:\n\n```ts\n// Search for all events where the component is \"HttpServer\" and the\n// result code is not equal to 200.\nconst pattern = logs.FilterPattern.spaceDelimited('time', 'component', '...', 'result_code', 'latency')\n .whereString('component', '=', 'HttpServer')\n .whereNumber('result_code', '!=', 200);\n```\n\n## Logs Insights Query Definition\n\nCreates a query definition for CloudWatch Logs Insights.\n\nExample:\n\n```ts\nnew logs.QueryDefinition(this, 'QueryDefinition', {\n queryDefinitionName: 'MyQuery',\n queryString: new logs.QueryString({\n fields: ['@timestamp', '@message'],\n sort: '@timestamp desc',\n limit: 20,\n }),\n});\n```\n\n## Notes\n\nBe aware that Log Group ARNs will always have the string `:*` appended to\nthem, to match the behavior of [the CloudFormation `AWS::Logs::LogGroup`\nresource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#aws-resource-logs-loggroup-return-values).\n"
371 },
372 "repository": {
373 "directory": "packages/@aws-cdk/aws-logs",
374 "type": "git",
375 "url": "https://github.com/aws/aws-cdk.git"
376 },
377 "schema": "jsii/0.10.0",
378 "targets": {
379 "dotnet": {
380 "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
381 "namespace": "Amazon.CDK.AWS.Logs",
382 "packageId": "Amazon.CDK.AWS.Logs"
383 },
384 "java": {
385 "maven": {
386 "artifactId": "logs",
387 "groupId": "software.amazon.awscdk"
388 },
389 "package": "software.amazon.awscdk.services.logs"
390 },
391 "js": {
392 "npm": "@aws-cdk/aws-logs"
393 },
394 "python": {
395 "classifiers": [
396 "Framework :: AWS CDK",
397 "Framework :: AWS CDK :: 1"
398 ],
399 "distName": "aws-cdk.aws-logs",
400 "module": "aws_cdk.aws_logs"
401 }
402 },
403 "types": {
404 "@aws-cdk/aws-logs.CfnDestination": {
405 "assembly": "@aws-cdk/aws-logs",
406 "base": "@aws-cdk/core.CfnResource",
407 "docs": {
408 "custom": {
409 "cloudformationResource": "AWS::Logs::Destination",
410 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html",
411 "exampleMetadata": "fixture=_generated"
412 },
413 "remarks": "The AWS::Logs::Destination resource specifies a CloudWatch Logs destination. A destination encapsulates a physical resource (such as an Amazon Kinesis data stream) and enables you to subscribe that resource to a stream of log events.",
414 "stability": "external",
415 "summary": "A CloudFormation `AWS::Logs::Destination`.",
416 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnDestination = new logs.CfnDestination(this, 'MyCfnDestination', {\n destinationName: 'destinationName',\n roleArn: 'roleArn',\n targetArn: 'targetArn',\n\n // the properties below are optional\n destinationPolicy: 'destinationPolicy',\n});"
417 },
418 "fqn": "@aws-cdk/aws-logs.CfnDestination",
419 "initializer": {
420 "docs": {
421 "stability": "external",
422 "summary": "Create a new `AWS::Logs::Destination`."
423 },
424 "locationInModule": {
425 "filename": "lib/logs.generated.ts",
426 "line": 183
427 },
428 "parameters": [
429 {
430 "docs": {
431 "summary": "- scope in which this resource is defined."
432 },
433 "name": "scope",
434 "type": {
435 "fqn": "@aws-cdk/core.Construct"
436 }
437 },
438 {
439 "docs": {
440 "summary": "- scoped id of the resource."
441 },
442 "name": "id",
443 "type": {
444 "primitive": "string"
445 }
446 },
447 {
448 "docs": {
449 "summary": "- resource properties."
450 },
451 "name": "props",
452 "type": {
453 "fqn": "@aws-cdk/aws-logs.CfnDestinationProps"
454 }
455 }
456 ]
457 },
458 "interfaces": [
459 "@aws-cdk/core.IInspectable"
460 ],
461 "kind": "class",
462 "locationInModule": {
463 "filename": "lib/logs.generated.ts",
464 "line": 117
465 },
466 "methods": [
467 {
468 "docs": {
469 "stability": "external",
470 "summary": "Examines the CloudFormation resource and discloses attributes."
471 },
472 "locationInModule": {
473 "filename": "lib/logs.generated.ts",
474 "line": 202
475 },
476 "name": "inspect",
477 "overrides": "@aws-cdk/core.IInspectable",
478 "parameters": [
479 {
480 "docs": {
481 "summary": "- tree inspector to collect and process attributes."
482 },
483 "name": "inspector",
484 "type": {
485 "fqn": "@aws-cdk/core.TreeInspector"
486 }
487 }
488 ]
489 },
490 {
491 "docs": {
492 "stability": "external"
493 },
494 "locationInModule": {
495 "filename": "lib/logs.generated.ts",
496 "line": 216
497 },
498 "name": "renderProperties",
499 "overrides": "@aws-cdk/core.CfnResource",
500 "parameters": [
501 {
502 "name": "props",
503 "type": {
504 "collection": {
505 "elementtype": {
506 "primitive": "any"
507 },
508 "kind": "map"
509 }
510 }
511 }
512 ],
513 "protected": true,
514 "returns": {
515 "type": {
516 "collection": {
517 "elementtype": {
518 "primitive": "any"
519 },
520 "kind": "map"
521 }
522 }
523 }
524 }
525 ],
526 "name": "CfnDestination",
527 "properties": [
528 {
529 "const": true,
530 "docs": {
531 "stability": "external",
532 "summary": "The CloudFormation resource type name for this resource class."
533 },
534 "immutable": true,
535 "locationInModule": {
536 "filename": "lib/logs.generated.ts",
537 "line": 121
538 },
539 "name": "CFN_RESOURCE_TYPE_NAME",
540 "static": true,
541 "type": {
542 "primitive": "string"
543 }
544 },
545 {
546 "docs": {
547 "custom": {
548 "cloudformationAttribute": "Arn"
549 },
550 "stability": "external",
551 "summary": "The ARN of the CloudWatch Logs destination, such as `arn:aws:logs:us-west-1:123456789012:destination:MyDestination` ."
552 },
553 "immutable": true,
554 "locationInModule": {
555 "filename": "lib/logs.generated.ts",
556 "line": 146
557 },
558 "name": "attrArn",
559 "type": {
560 "primitive": "string"
561 }
562 },
563 {
564 "docs": {
565 "stability": "external"
566 },
567 "immutable": true,
568 "locationInModule": {
569 "filename": "lib/logs.generated.ts",
570 "line": 207
571 },
572 "name": "cfnProperties",
573 "overrides": "@aws-cdk/core.CfnResource",
574 "protected": true,
575 "type": {
576 "collection": {
577 "elementtype": {
578 "primitive": "any"
579 },
580 "kind": "map"
581 }
582 }
583 },
584 {
585 "docs": {
586 "custom": {
587 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationname"
588 },
589 "stability": "external",
590 "summary": "The name of the destination."
591 },
592 "locationInModule": {
593 "filename": "lib/logs.generated.ts",
594 "line": 153
595 },
596 "name": "destinationName",
597 "type": {
598 "primitive": "string"
599 }
600 },
601 {
602 "docs": {
603 "custom": {
604 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-rolearn"
605 },
606 "stability": "external",
607 "summary": "The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource."
608 },
609 "locationInModule": {
610 "filename": "lib/logs.generated.ts",
611 "line": 160
612 },
613 "name": "roleArn",
614 "type": {
615 "primitive": "string"
616 }
617 },
618 {
619 "docs": {
620 "custom": {
621 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-targetarn"
622 },
623 "stability": "external",
624 "summary": "The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream)."
625 },
626 "locationInModule": {
627 "filename": "lib/logs.generated.ts",
628 "line": 167
629 },
630 "name": "targetArn",
631 "type": {
632 "primitive": "string"
633 }
634 },
635 {
636 "docs": {
637 "custom": {
638 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationpolicy"
639 },
640 "stability": "external",
641 "summary": "An IAM policy document that governs which AWS accounts can create subscription filters against this destination."
642 },
643 "locationInModule": {
644 "filename": "lib/logs.generated.ts",
645 "line": 174
646 },
647 "name": "destinationPolicy",
648 "optional": true,
649 "type": {
650 "primitive": "string"
651 }
652 }
653 ],
654 "symbolId": "lib/logs.generated:CfnDestination"
655 },
656 "@aws-cdk/aws-logs.CfnDestinationProps": {
657 "assembly": "@aws-cdk/aws-logs",
658 "datatype": true,
659 "docs": {
660 "custom": {
661 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html",
662 "exampleMetadata": "fixture=_generated"
663 },
664 "stability": "external",
665 "summary": "Properties for defining a `CfnDestination`.",
666 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnDestinationProps: logs.CfnDestinationProps = {\n destinationName: 'destinationName',\n roleArn: 'roleArn',\n targetArn: 'targetArn',\n\n // the properties below are optional\n destinationPolicy: 'destinationPolicy',\n};"
667 },
668 "fqn": "@aws-cdk/aws-logs.CfnDestinationProps",
669 "kind": "interface",
670 "locationInModule": {
671 "filename": "lib/logs.generated.ts",
672 "line": 19
673 },
674 "name": "CfnDestinationProps",
675 "properties": [
676 {
677 "abstract": true,
678 "docs": {
679 "custom": {
680 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationname"
681 },
682 "stability": "external",
683 "summary": "The name of the destination."
684 },
685 "immutable": true,
686 "locationInModule": {
687 "filename": "lib/logs.generated.ts",
688 "line": 26
689 },
690 "name": "destinationName",
691 "type": {
692 "primitive": "string"
693 }
694 },
695 {
696 "abstract": true,
697 "docs": {
698 "custom": {
699 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-rolearn"
700 },
701 "stability": "external",
702 "summary": "The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource."
703 },
704 "immutable": true,
705 "locationInModule": {
706 "filename": "lib/logs.generated.ts",
707 "line": 33
708 },
709 "name": "roleArn",
710 "type": {
711 "primitive": "string"
712 }
713 },
714 {
715 "abstract": true,
716 "docs": {
717 "custom": {
718 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-targetarn"
719 },
720 "stability": "external",
721 "summary": "The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream)."
722 },
723 "immutable": true,
724 "locationInModule": {
725 "filename": "lib/logs.generated.ts",
726 "line": 40
727 },
728 "name": "targetArn",
729 "type": {
730 "primitive": "string"
731 }
732 },
733 {
734 "abstract": true,
735 "docs": {
736 "custom": {
737 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-destination.html#cfn-logs-destination-destinationpolicy"
738 },
739 "stability": "external",
740 "summary": "An IAM policy document that governs which AWS accounts can create subscription filters against this destination."
741 },
742 "immutable": true,
743 "locationInModule": {
744 "filename": "lib/logs.generated.ts",
745 "line": 47
746 },
747 "name": "destinationPolicy",
748 "optional": true,
749 "type": {
750 "primitive": "string"
751 }
752 }
753 ],
754 "symbolId": "lib/logs.generated:CfnDestinationProps"
755 },
756 "@aws-cdk/aws-logs.CfnLogGroup": {
757 "assembly": "@aws-cdk/aws-logs",
758 "base": "@aws-cdk/core.CfnResource",
759 "docs": {
760 "custom": {
761 "cloudformationResource": "AWS::Logs::LogGroup",
762 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html",
763 "exampleMetadata": "fixture=_generated"
764 },
765 "remarks": "The `AWS::Logs::LogGroup` resource specifies a log group. A log group defines common properties for log streams, such as their retention and access control rules. Each log stream must belong to one log group.\n\nYou can create up to 1,000,000 log groups per Region per account. You must use the following guidelines when naming a log group:\n\n- Log group names must be unique within a Region for an AWS account.\n- Log group names can be between 1 and 512 characters long.\n- Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), and '.' (period).",
766 "stability": "external",
767 "summary": "A CloudFormation `AWS::Logs::LogGroup`.",
768 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const dataProtectionPolicy: any;\nconst cfnLogGroup = new logs.CfnLogGroup(this, 'MyCfnLogGroup', /* all optional props */ {\n dataProtectionPolicy: dataProtectionPolicy,\n kmsKeyId: 'kmsKeyId',\n logGroupName: 'logGroupName',\n retentionInDays: 123,\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});"
769 },
770 "fqn": "@aws-cdk/aws-logs.CfnLogGroup",
771 "initializer": {
772 "docs": {
773 "stability": "external",
774 "summary": "Create a new `AWS::Logs::LogGroup`."
775 },
776 "locationInModule": {
777 "filename": "lib/logs.generated.ts",
778 "line": 437
779 },
780 "parameters": [
781 {
782 "docs": {
783 "summary": "- scope in which this resource is defined."
784 },
785 "name": "scope",
786 "type": {
787 "fqn": "@aws-cdk/core.Construct"
788 }
789 },
790 {
791 "docs": {
792 "summary": "- scoped id of the resource."
793 },
794 "name": "id",
795 "type": {
796 "primitive": "string"
797 }
798 },
799 {
800 "docs": {
801 "summary": "- resource properties."
802 },
803 "name": "props",
804 "optional": true,
805 "type": {
806 "fqn": "@aws-cdk/aws-logs.CfnLogGroupProps"
807 }
808 }
809 ]
810 },
811 "interfaces": [
812 "@aws-cdk/core.IInspectable"
813 ],
814 "kind": "class",
815 "locationInModule": {
816 "filename": "lib/logs.generated.ts",
817 "line": 352
818 },
819 "methods": [
820 {
821 "docs": {
822 "stability": "external",
823 "summary": "Examines the CloudFormation resource and discloses attributes."
824 },
825 "locationInModule": {
826 "filename": "lib/logs.generated.ts",
827 "line": 459
828 },
829 "name": "inspect",
830 "overrides": "@aws-cdk/core.IInspectable",
831 "parameters": [
832 {
833 "docs": {
834 "summary": "- tree inspector to collect and process attributes."
835 },
836 "name": "inspector",
837 "type": {
838 "fqn": "@aws-cdk/core.TreeInspector"
839 }
840 }
841 ]
842 },
843 {
844 "docs": {
845 "stability": "external"
846 },
847 "locationInModule": {
848 "filename": "lib/logs.generated.ts",
849 "line": 474
850 },
851 "name": "renderProperties",
852 "overrides": "@aws-cdk/core.CfnResource",
853 "parameters": [
854 {
855 "name": "props",
856 "type": {
857 "collection": {
858 "elementtype": {
859 "primitive": "any"
860 },
861 "kind": "map"
862 }
863 }
864 }
865 ],
866 "protected": true,
867 "returns": {
868 "type": {
869 "collection": {
870 "elementtype": {
871 "primitive": "any"
872 },
873 "kind": "map"
874 }
875 }
876 }
877 }
878 ],
879 "name": "CfnLogGroup",
880 "properties": [
881 {
882 "const": true,
883 "docs": {
884 "stability": "external",
885 "summary": "The CloudFormation resource type name for this resource class."
886 },
887 "immutable": true,
888 "locationInModule": {
889 "filename": "lib/logs.generated.ts",
890 "line": 356
891 },
892 "name": "CFN_RESOURCE_TYPE_NAME",
893 "static": true,
894 "type": {
895 "primitive": "string"
896 }
897 },
898 {
899 "docs": {
900 "custom": {
901 "cloudformationAttribute": "Arn"
902 },
903 "stability": "external",
904 "summary": "The ARN of the log group, such as `arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:*`."
905 },
906 "immutable": true,
907 "locationInModule": {
908 "filename": "lib/logs.generated.ts",
909 "line": 381
910 },
911 "name": "attrArn",
912 "type": {
913 "primitive": "string"
914 }
915 },
916 {
917 "docs": {
918 "stability": "external"
919 },
920 "immutable": true,
921 "locationInModule": {
922 "filename": "lib/logs.generated.ts",
923 "line": 464
924 },
925 "name": "cfnProperties",
926 "overrides": "@aws-cdk/core.CfnResource",
927 "protected": true,
928 "type": {
929 "collection": {
930 "elementtype": {
931 "primitive": "any"
932 },
933 "kind": "map"
934 }
935 }
936 },
937 {
938 "docs": {
939 "custom": {
940 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-tags"
941 },
942 "remarks": "For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .",
943 "stability": "external",
944 "summary": "An array of key-value pairs to apply to the log group."
945 },
946 "immutable": true,
947 "locationInModule": {
948 "filename": "lib/logs.generated.ts",
949 "line": 428
950 },
951 "name": "tags",
952 "type": {
953 "fqn": "@aws-cdk/core.TagManager"
954 }
955 },
956 {
957 "docs": {
958 "custom": {
959 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-dataprotectionpolicy"
960 },
961 "remarks": "A data protection policy can help safeguard sensitive data that's ingested by the log group by auditing and masking the sensitive log data. When a user who does not have permission to view masked data views a log event that includes masked data, the sensitive data is replaced by asterisks.\n\nFor more information, including a list of types of data that can be audited and masked, see [Protect sensitive log data with masking](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html) .",
962 "stability": "external",
963 "summary": "Creates a data protection policy and assigns it to the log group."
964 },
965 "locationInModule": {
966 "filename": "lib/logs.generated.ts",
967 "line": 390
968 },
969 "name": "dataProtectionPolicy",
970 "type": {
971 "primitive": "any"
972 }
973 },
974 {
975 "docs": {
976 "custom": {
977 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-kmskeyid"
978 },
979 "remarks": "To associate an AWS KMS key with the log group, specify the ARN of that KMS key here. If you do so, ingested data is encrypted using this key. This association is stored as long as the data encrypted with the KMS key is still within CloudWatch Logs . This enables CloudWatch Logs to decrypt this data whenever it is requested.\n\nIf you attempt to associate a KMS key with the log group but the KMS key doesn't exist or is deactivated, you will receive an `InvalidParameterException` error.\n\nLog group data is always encrypted in CloudWatch Logs . If you omit this key, the encryption does not use AWS KMS . For more information, see [Encrypt log data in CloudWatch Logs using AWS Key Management Service](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/encrypt-log-data-kms.html)",
980 "stability": "external",
981 "summary": "The Amazon Resource Name (ARN) of the AWS KMS key to use when encrypting log data."
982 },
983 "locationInModule": {
984 "filename": "lib/logs.generated.ts",
985 "line": 403
986 },
987 "name": "kmsKeyId",
988 "optional": true,
989 "type": {
990 "primitive": "string"
991 }
992 },
993 {
994 "docs": {
995 "custom": {
996 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-loggroupname"
997 },
998 "remarks": "If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.",
999 "stability": "external",
1000 "summary": "The name of the log group."
1001 },
1002 "locationInModule": {
1003 "filename": "lib/logs.generated.ts",
1004 "line": 410
1005 },
1006 "name": "logGroupName",
1007 "optional": true,
1008 "type": {
1009 "primitive": "string"
1010 }
1011 },
1012 {
1013 "docs": {
1014 "custom": {
1015 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-retentionindays"
1016 },
1017 "remarks": "Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653.\n\nTo set a log group so that its log events do not expire, use [DeleteRetentionPolicy](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html) .",
1018 "stability": "external",
1019 "summary": "The number of days to retain the log events in the specified log group."
1020 },
1021 "locationInModule": {
1022 "filename": "lib/logs.generated.ts",
1023 "line": 419
1024 },
1025 "name": "retentionInDays",
1026 "optional": true,
1027 "type": {
1028 "primitive": "number"
1029 }
1030 }
1031 ],
1032 "symbolId": "lib/logs.generated:CfnLogGroup"
1033 },
1034 "@aws-cdk/aws-logs.CfnLogGroupProps": {
1035 "assembly": "@aws-cdk/aws-logs",
1036 "datatype": true,
1037 "docs": {
1038 "custom": {
1039 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html",
1040 "exampleMetadata": "fixture=_generated"
1041 },
1042 "stability": "external",
1043 "summary": "Properties for defining a `CfnLogGroup`.",
1044 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const dataProtectionPolicy: any;\nconst cfnLogGroupProps: logs.CfnLogGroupProps = {\n dataProtectionPolicy: dataProtectionPolicy,\n kmsKeyId: 'kmsKeyId',\n logGroupName: 'logGroupName',\n retentionInDays: 123,\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};"
1045 },
1046 "fqn": "@aws-cdk/aws-logs.CfnLogGroupProps",
1047 "kind": "interface",
1048 "locationInModule": {
1049 "filename": "lib/logs.generated.ts",
1050 "line": 229
1051 },
1052 "name": "CfnLogGroupProps",
1053 "properties": [
1054 {
1055 "abstract": true,
1056 "docs": {
1057 "custom": {
1058 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-dataprotectionpolicy"
1059 },
1060 "remarks": "A data protection policy can help safeguard sensitive data that's ingested by the log group by auditing and masking the sensitive log data. When a user who does not have permission to view masked data views a log event that includes masked data, the sensitive data is replaced by asterisks.\n\nFor more information, including a list of types of data that can be audited and masked, see [Protect sensitive log data with masking](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html) .",
1061 "stability": "external",
1062 "summary": "Creates a data protection policy and assigns it to the log group."
1063 },
1064 "immutable": true,
1065 "locationInModule": {
1066 "filename": "lib/logs.generated.ts",
1067 "line": 238
1068 },
1069 "name": "dataProtectionPolicy",
1070 "optional": true,
1071 "type": {
1072 "primitive": "any"
1073 }
1074 },
1075 {
1076 "abstract": true,
1077 "docs": {
1078 "custom": {
1079 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-kmskeyid"
1080 },
1081 "remarks": "To associate an AWS KMS key with the log group, specify the ARN of that KMS key here. If you do so, ingested data is encrypted using this key. This association is stored as long as the data encrypted with the KMS key is still within CloudWatch Logs . This enables CloudWatch Logs to decrypt this data whenever it is requested.\n\nIf you attempt to associate a KMS key with the log group but the KMS key doesn't exist or is deactivated, you will receive an `InvalidParameterException` error.\n\nLog group data is always encrypted in CloudWatch Logs . If you omit this key, the encryption does not use AWS KMS . For more information, see [Encrypt log data in CloudWatch Logs using AWS Key Management Service](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/encrypt-log-data-kms.html)",
1082 "stability": "external",
1083 "summary": "The Amazon Resource Name (ARN) of the AWS KMS key to use when encrypting log data."
1084 },
1085 "immutable": true,
1086 "locationInModule": {
1087 "filename": "lib/logs.generated.ts",
1088 "line": 251
1089 },
1090 "name": "kmsKeyId",
1091 "optional": true,
1092 "type": {
1093 "primitive": "string"
1094 }
1095 },
1096 {
1097 "abstract": true,
1098 "docs": {
1099 "custom": {
1100 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-loggroupname"
1101 },
1102 "remarks": "If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.",
1103 "stability": "external",
1104 "summary": "The name of the log group."
1105 },
1106 "immutable": true,
1107 "locationInModule": {
1108 "filename": "lib/logs.generated.ts",
1109 "line": 258
1110 },
1111 "name": "logGroupName",
1112 "optional": true,
1113 "type": {
1114 "primitive": "string"
1115 }
1116 },
1117 {
1118 "abstract": true,
1119 "docs": {
1120 "custom": {
1121 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-retentionindays"
1122 },
1123 "remarks": "Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653.\n\nTo set a log group so that its log events do not expire, use [DeleteRetentionPolicy](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html) .",
1124 "stability": "external",
1125 "summary": "The number of days to retain the log events in the specified log group."
1126 },
1127 "immutable": true,
1128 "locationInModule": {
1129 "filename": "lib/logs.generated.ts",
1130 "line": 267
1131 },
1132 "name": "retentionInDays",
1133 "optional": true,
1134 "type": {
1135 "primitive": "number"
1136 }
1137 },
1138 {
1139 "abstract": true,
1140 "docs": {
1141 "custom": {
1142 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html#cfn-logs-loggroup-tags"
1143 },
1144 "remarks": "For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .",
1145 "stability": "external",
1146 "summary": "An array of key-value pairs to apply to the log group."
1147 },
1148 "immutable": true,
1149 "locationInModule": {
1150 "filename": "lib/logs.generated.ts",
1151 "line": 276
1152 },
1153 "name": "tags",
1154 "optional": true,
1155 "type": {
1156 "collection": {
1157 "elementtype": {
1158 "fqn": "@aws-cdk/core.CfnTag"
1159 },
1160 "kind": "array"
1161 }
1162 }
1163 }
1164 ],
1165 "symbolId": "lib/logs.generated:CfnLogGroupProps"
1166 },
1167 "@aws-cdk/aws-logs.CfnLogStream": {
1168 "assembly": "@aws-cdk/aws-logs",
1169 "base": "@aws-cdk/core.CfnResource",
1170 "docs": {
1171 "custom": {
1172 "cloudformationResource": "AWS::Logs::LogStream",
1173 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html",
1174 "exampleMetadata": "fixture=_generated"
1175 },
1176 "remarks": "The `AWS::Logs::LogStream` resource specifies an Amazon CloudWatch Logs log stream in a specific log group. A log stream represents the sequence of events coming from an application instance or resource that you are monitoring.\n\nThere is no limit on the number of log streams that you can create for a log group.\n\nYou must use the following guidelines when naming a log stream:\n\n- Log stream names must be unique within the log group.\n- Log stream names can be between 1 and 512 characters long.\n- The ':' (colon) and '*' (asterisk) characters are not allowed.",
1177 "stability": "external",
1178 "summary": "A CloudFormation `AWS::Logs::LogStream`.",
1179 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnLogStream = new logs.CfnLogStream(this, 'MyCfnLogStream', {\n logGroupName: 'logGroupName',\n\n // the properties below are optional\n logStreamName: 'logStreamName',\n});"
1180 },
1181 "fqn": "@aws-cdk/aws-logs.CfnLogStream",
1182 "initializer": {
1183 "docs": {
1184 "stability": "external",
1185 "summary": "Create a new `AWS::Logs::LogStream`."
1186 },
1187 "locationInModule": {
1188 "filename": "lib/logs.generated.ts",
1189 "line": 617
1190 },
1191 "parameters": [
1192 {
1193 "docs": {
1194 "summary": "- scope in which this resource is defined."
1195 },
1196 "name": "scope",
1197 "type": {
1198 "fqn": "@aws-cdk/core.Construct"
1199 }
1200 },
1201 {
1202 "docs": {
1203 "summary": "- scoped id of the resource."
1204 },
1205 "name": "id",
1206 "type": {
1207 "primitive": "string"
1208 }
1209 },
1210 {
1211 "docs": {
1212 "summary": "- resource properties."
1213 },
1214 "name": "props",
1215 "type": {
1216 "fqn": "@aws-cdk/aws-logs.CfnLogStreamProps"
1217 }
1218 }
1219 ]
1220 },
1221 "interfaces": [
1222 "@aws-cdk/core.IInspectable"
1223 ],
1224 "kind": "class",
1225 "locationInModule": {
1226 "filename": "lib/logs.generated.ts",
1227 "line": 571
1228 },
1229 "methods": [
1230 {
1231 "docs": {
1232 "stability": "external",
1233 "summary": "Examines the CloudFormation resource and discloses attributes."
1234 },
1235 "locationInModule": {
1236 "filename": "lib/logs.generated.ts",
1237 "line": 631
1238 },
1239 "name": "inspect",
1240 "overrides": "@aws-cdk/core.IInspectable",
1241 "parameters": [
1242 {
1243 "docs": {
1244 "summary": "- tree inspector to collect and process attributes."
1245 },
1246 "name": "inspector",
1247 "type": {
1248 "fqn": "@aws-cdk/core.TreeInspector"
1249 }
1250 }
1251 ]
1252 },
1253 {
1254 "docs": {
1255 "stability": "external"
1256 },
1257 "locationInModule": {
1258 "filename": "lib/logs.generated.ts",
1259 "line": 643
1260 },
1261 "name": "renderProperties",
1262 "overrides": "@aws-cdk/core.CfnResource",
1263 "parameters": [
1264 {
1265 "name": "props",
1266 "type": {
1267 "collection": {
1268 "elementtype": {
1269 "primitive": "any"
1270 },
1271 "kind": "map"
1272 }
1273 }
1274 }
1275 ],
1276 "protected": true,
1277 "returns": {
1278 "type": {
1279 "collection": {
1280 "elementtype": {
1281 "primitive": "any"
1282 },
1283 "kind": "map"
1284 }
1285 }
1286 }
1287 }
1288 ],
1289 "name": "CfnLogStream",
1290 "properties": [
1291 {
1292 "const": true,
1293 "docs": {
1294 "stability": "external",
1295 "summary": "The CloudFormation resource type name for this resource class."
1296 },
1297 "immutable": true,
1298 "locationInModule": {
1299 "filename": "lib/logs.generated.ts",
1300 "line": 575
1301 },
1302 "name": "CFN_RESOURCE_TYPE_NAME",
1303 "static": true,
1304 "type": {
1305 "primitive": "string"
1306 }
1307 },
1308 {
1309 "docs": {
1310 "stability": "external"
1311 },
1312 "immutable": true,
1313 "locationInModule": {
1314 "filename": "lib/logs.generated.ts",
1315 "line": 636
1316 },
1317 "name": "cfnProperties",
1318 "overrides": "@aws-cdk/core.CfnResource",
1319 "protected": true,
1320 "type": {
1321 "collection": {
1322 "elementtype": {
1323 "primitive": "any"
1324 },
1325 "kind": "map"
1326 }
1327 }
1328 },
1329 {
1330 "docs": {
1331 "custom": {
1332 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname"
1333 },
1334 "stability": "external",
1335 "summary": "The name of the log group where the log stream is created."
1336 },
1337 "locationInModule": {
1338 "filename": "lib/logs.generated.ts",
1339 "line": 601
1340 },
1341 "name": "logGroupName",
1342 "type": {
1343 "primitive": "string"
1344 }
1345 },
1346 {
1347 "docs": {
1348 "custom": {
1349 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname"
1350 },
1351 "remarks": "The name must be unique within the log group.",
1352 "stability": "external",
1353 "summary": "The name of the log stream."
1354 },
1355 "locationInModule": {
1356 "filename": "lib/logs.generated.ts",
1357 "line": 608
1358 },
1359 "name": "logStreamName",
1360 "optional": true,
1361 "type": {
1362 "primitive": "string"
1363 }
1364 }
1365 ],
1366 "symbolId": "lib/logs.generated:CfnLogStream"
1367 },
1368 "@aws-cdk/aws-logs.CfnLogStreamProps": {
1369 "assembly": "@aws-cdk/aws-logs",
1370 "datatype": true,
1371 "docs": {
1372 "custom": {
1373 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html",
1374 "exampleMetadata": "fixture=_generated"
1375 },
1376 "stability": "external",
1377 "summary": "Properties for defining a `CfnLogStream`.",
1378 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnLogStreamProps: logs.CfnLogStreamProps = {\n logGroupName: 'logGroupName',\n\n // the properties below are optional\n logStreamName: 'logStreamName',\n};"
1379 },
1380 "fqn": "@aws-cdk/aws-logs.CfnLogStreamProps",
1381 "kind": "interface",
1382 "locationInModule": {
1383 "filename": "lib/logs.generated.ts",
1384 "line": 487
1385 },
1386 "name": "CfnLogStreamProps",
1387 "properties": [
1388 {
1389 "abstract": true,
1390 "docs": {
1391 "custom": {
1392 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname"
1393 },
1394 "stability": "external",
1395 "summary": "The name of the log group where the log stream is created."
1396 },
1397 "immutable": true,
1398 "locationInModule": {
1399 "filename": "lib/logs.generated.ts",
1400 "line": 494
1401 },
1402 "name": "logGroupName",
1403 "type": {
1404 "primitive": "string"
1405 }
1406 },
1407 {
1408 "abstract": true,
1409 "docs": {
1410 "custom": {
1411 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname"
1412 },
1413 "remarks": "The name must be unique within the log group.",
1414 "stability": "external",
1415 "summary": "The name of the log stream."
1416 },
1417 "immutable": true,
1418 "locationInModule": {
1419 "filename": "lib/logs.generated.ts",
1420 "line": 501
1421 },
1422 "name": "logStreamName",
1423 "optional": true,
1424 "type": {
1425 "primitive": "string"
1426 }
1427 }
1428 ],
1429 "symbolId": "lib/logs.generated:CfnLogStreamProps"
1430 },
1431 "@aws-cdk/aws-logs.CfnMetricFilter": {
1432 "assembly": "@aws-cdk/aws-logs",
1433 "base": "@aws-cdk/core.CfnResource",
1434 "docs": {
1435 "custom": {
1436 "cloudformationResource": "AWS::Logs::MetricFilter",
1437 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html",
1438 "exampleMetadata": "fixture=_generated"
1439 },
1440 "remarks": "The `AWS::Logs::MetricFilter` resource specifies a metric filter that describes how CloudWatch Logs extracts information from logs and transforms it into Amazon CloudWatch metrics. If you have multiple metric filters that are associated with a log group, all the filters are applied to the log streams in that group.\n\nThe maximum number of metric filters that can be associated with a log group is 100.",
1441 "stability": "external",
1442 "summary": "A CloudFormation `AWS::Logs::MetricFilter`.",
1443 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnMetricFilter = new logs.CfnMetricFilter(this, 'MyCfnMetricFilter', {\n filterPattern: 'filterPattern',\n logGroupName: 'logGroupName',\n metricTransformations: [{\n metricName: 'metricName',\n metricNamespace: 'metricNamespace',\n metricValue: 'metricValue',\n\n // the properties below are optional\n defaultValue: 123,\n dimensions: [{\n key: 'key',\n value: 'value',\n }],\n unit: 'unit',\n }],\n\n // the properties below are optional\n filterName: 'filterName',\n});"
1444 },
1445 "fqn": "@aws-cdk/aws-logs.CfnMetricFilter",
1446 "initializer": {
1447 "docs": {
1448 "stability": "external",
1449 "summary": "Create a new `AWS::Logs::MetricFilter`."
1450 },
1451 "locationInModule": {
1452 "filename": "lib/logs.generated.ts",
1453 "line": 816
1454 },
1455 "parameters": [
1456 {
1457 "docs": {
1458 "summary": "- scope in which this resource is defined."
1459 },
1460 "name": "scope",
1461 "type": {
1462 "fqn": "@aws-cdk/core.Construct"
1463 }
1464 },
1465 {
1466 "docs": {
1467 "summary": "- scoped id of the resource."
1468 },
1469 "name": "id",
1470 "type": {
1471 "primitive": "string"
1472 }
1473 },
1474 {
1475 "docs": {
1476 "summary": "- resource properties."
1477 },
1478 "name": "props",
1479 "type": {
1480 "fqn": "@aws-cdk/aws-logs.CfnMetricFilterProps"
1481 }
1482 }
1483 ]
1484 },
1485 "interfaces": [
1486 "@aws-cdk/core.IInspectable"
1487 ],
1488 "kind": "class",
1489 "locationInModule": {
1490 "filename": "lib/logs.generated.ts",
1491 "line": 756
1492 },
1493 "methods": [
1494 {
1495 "docs": {
1496 "stability": "external",
1497 "summary": "Examines the CloudFormation resource and discloses attributes."
1498 },
1499 "locationInModule": {
1500 "filename": "lib/logs.generated.ts",
1501 "line": 834
1502 },
1503 "name": "inspect",
1504 "overrides": "@aws-cdk/core.IInspectable",
1505 "parameters": [
1506 {
1507 "docs": {
1508 "summary": "- tree inspector to collect and process attributes."
1509 },
1510 "name": "inspector",
1511 "type": {
1512 "fqn": "@aws-cdk/core.TreeInspector"
1513 }
1514 }
1515 ]
1516 },
1517 {
1518 "docs": {
1519 "stability": "external"
1520 },
1521 "locationInModule": {
1522 "filename": "lib/logs.generated.ts",
1523 "line": 848
1524 },
1525 "name": "renderProperties",
1526 "overrides": "@aws-cdk/core.CfnResource",
1527 "parameters": [
1528 {
1529 "name": "props",
1530 "type": {
1531 "collection": {
1532 "elementtype": {
1533 "primitive": "any"
1534 },
1535 "kind": "map"
1536 }
1537 }
1538 }
1539 ],
1540 "protected": true,
1541 "returns": {
1542 "type": {
1543 "collection": {
1544 "elementtype": {
1545 "primitive": "any"
1546 },
1547 "kind": "map"
1548 }
1549 }
1550 }
1551 }
1552 ],
1553 "name": "CfnMetricFilter",
1554 "properties": [
1555 {
1556 "const": true,
1557 "docs": {
1558 "stability": "external",
1559 "summary": "The CloudFormation resource type name for this resource class."
1560 },
1561 "immutable": true,
1562 "locationInModule": {
1563 "filename": "lib/logs.generated.ts",
1564 "line": 760
1565 },
1566 "name": "CFN_RESOURCE_TYPE_NAME",
1567 "static": true,
1568 "type": {
1569 "primitive": "string"
1570 }
1571 },
1572 {
1573 "docs": {
1574 "stability": "external"
1575 },
1576 "immutable": true,
1577 "locationInModule": {
1578 "filename": "lib/logs.generated.ts",
1579 "line": 839
1580 },
1581 "name": "cfnProperties",
1582 "overrides": "@aws-cdk/core.CfnResource",
1583 "protected": true,
1584 "type": {
1585 "collection": {
1586 "elementtype": {
1587 "primitive": "any"
1588 },
1589 "kind": "map"
1590 }
1591 }
1592 },
1593 {
1594 "docs": {
1595 "custom": {
1596 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-logs-metricfilter-filterpattern"
1597 },
1598 "remarks": "For more information, see [Filter and Pattern Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) .",
1599 "stability": "external",
1600 "summary": "A filter pattern for extracting metric data out of ingested log events."
1601 },
1602 "locationInModule": {
1603 "filename": "lib/logs.generated.ts",
1604 "line": 786
1605 },
1606 "name": "filterPattern",
1607 "type": {
1608 "primitive": "string"
1609 }
1610 },
1611 {
1612 "docs": {
1613 "custom": {
1614 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-logs-metricfilter-loggroupname"
1615 },
1616 "stability": "external",
1617 "summary": "The name of an existing log group that you want to associate with this metric filter."
1618 },
1619 "locationInModule": {
1620 "filename": "lib/logs.generated.ts",
1621 "line": 793
1622 },
1623 "name": "logGroupName",
1624 "type": {
1625 "primitive": "string"
1626 }
1627 },
1628 {
1629 "docs": {
1630 "custom": {
1631 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-logs-metricfilter-metrictransformations"
1632 },
1633 "stability": "external",
1634 "summary": "The metric transformations."
1635 },
1636 "locationInModule": {
1637 "filename": "lib/logs.generated.ts",
1638 "line": 800
1639 },
1640 "name": "metricTransformations",
1641 "type": {
1642 "union": {
1643 "types": [
1644 {
1645 "fqn": "@aws-cdk/core.IResolvable"
1646 },
1647 {
1648 "collection": {
1649 "elementtype": {
1650 "union": {
1651 "types": [
1652 {
1653 "fqn": "@aws-cdk/core.IResolvable"
1654 },
1655 {
1656 "fqn": "@aws-cdk/aws-logs.CfnMetricFilter.MetricTransformationProperty"
1657 }
1658 ]
1659 }
1660 },
1661 "kind": "array"
1662 }
1663 }
1664 ]
1665 }
1666 }
1667 },
1668 {
1669 "docs": {
1670 "custom": {
1671 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-logs-metricfilter-filtername"
1672 },
1673 "stability": "external",
1674 "summary": "The name of the metric filter."
1675 },
1676 "locationInModule": {
1677 "filename": "lib/logs.generated.ts",
1678 "line": 807
1679 },
1680 "name": "filterName",
1681 "optional": true,
1682 "type": {
1683 "primitive": "string"
1684 }
1685 }
1686 ],
1687 "symbolId": "lib/logs.generated:CfnMetricFilter"
1688 },
1689 "@aws-cdk/aws-logs.CfnMetricFilter.DimensionProperty": {
1690 "assembly": "@aws-cdk/aws-logs",
1691 "datatype": true,
1692 "docs": {
1693 "custom": {
1694 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-dimension.html",
1695 "exampleMetadata": "fixture=_generated"
1696 },
1697 "remarks": "Because dimensions are part of the unique identifier for a metric, whenever a unique dimension name/value pair is extracted from your logs, you are creating a new variation of that metric.\n\nFor more information about publishing dimensions with metrics created by metric filters, see [Publishing dimensions with metrics from values in JSON or space-delimited log events](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html#logs-metric-filters-dimensions) .\n\n> Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as `IPAddress` or `requestID` as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric.\n>\n> To help prevent accidental high charges, Amazon disables a metric filter if it generates 1000 different name/value pairs for the dimensions that you have specified within a certain amount of time.\n>\n> You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see [Creating a Billing Alarm to Monitor Your Estimated AWS Charges](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html) .",
1698 "stability": "external",
1699 "summary": "Specifies the CloudWatch metric dimensions to publish with this metric.",
1700 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst dimensionProperty: logs.CfnMetricFilter.DimensionProperty = {\n key: 'key',\n value: 'value',\n};"
1701 },
1702 "fqn": "@aws-cdk/aws-logs.CfnMetricFilter.DimensionProperty",
1703 "kind": "interface",
1704 "locationInModule": {
1705 "filename": "lib/logs.generated.ts",
1706 "line": 872
1707 },
1708 "name": "DimensionProperty",
1709 "namespace": "CfnMetricFilter",
1710 "properties": [
1711 {
1712 "abstract": true,
1713 "docs": {
1714 "custom": {
1715 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-dimension.html#cfn-logs-metricfilter-dimension-key"
1716 },
1717 "remarks": "Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:).",
1718 "stability": "external",
1719 "summary": "The name for the CloudWatch metric dimension that the metric filter creates."
1720 },
1721 "immutable": true,
1722 "locationInModule": {
1723 "filename": "lib/logs.generated.ts",
1724 "line": 880
1725 },
1726 "name": "key",
1727 "type": {
1728 "primitive": "string"
1729 }
1730 },
1731 {
1732 "abstract": true,
1733 "docs": {
1734 "custom": {
1735 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-dimension.html#cfn-logs-metricfilter-dimension-value"
1736 },
1737 "remarks": "This dimension will only be published for a metric if the value is found in the log event. For example, `$.eventType` for JSON log events, or `$server` for space-delimited log events.",
1738 "stability": "external",
1739 "summary": "The log event field that will contain the value for this dimension."
1740 },
1741 "immutable": true,
1742 "locationInModule": {
1743 "filename": "lib/logs.generated.ts",
1744 "line": 886
1745 },
1746 "name": "value",
1747 "type": {
1748 "primitive": "string"
1749 }
1750 }
1751 ],
1752 "symbolId": "lib/logs.generated:CfnMetricFilter.DimensionProperty"
1753 },
1754 "@aws-cdk/aws-logs.CfnMetricFilter.MetricTransformationProperty": {
1755 "assembly": "@aws-cdk/aws-logs",
1756 "datatype": true,
1757 "docs": {
1758 "custom": {
1759 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html",
1760 "exampleMetadata": "fixture=_generated"
1761 },
1762 "stability": "external",
1763 "summary": "`MetricTransformation` is a property of the `AWS::Logs::MetricFilter` resource that describes how to transform log streams into a CloudWatch metric.",
1764 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst metricTransformationProperty: logs.CfnMetricFilter.MetricTransformationProperty = {\n metricName: 'metricName',\n metricNamespace: 'metricNamespace',\n metricValue: 'metricValue',\n\n // the properties below are optional\n defaultValue: 123,\n dimensions: [{\n key: 'key',\n value: 'value',\n }],\n unit: 'unit',\n};"
1765 },
1766 "fqn": "@aws-cdk/aws-logs.CfnMetricFilter.MetricTransformationProperty",
1767 "kind": "interface",
1768 "locationInModule": {
1769 "filename": "lib/logs.generated.ts",
1770 "line": 952
1771 },
1772 "name": "MetricTransformationProperty",
1773 "namespace": "CfnMetricFilter",
1774 "properties": [
1775 {
1776 "abstract": true,
1777 "docs": {
1778 "custom": {
1779 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-logs-metricfilter-metrictransformation-metricname"
1780 },
1781 "stability": "external",
1782 "summary": "The name of the CloudWatch metric."
1783 },
1784 "immutable": true,
1785 "locationInModule": {
1786 "filename": "lib/logs.generated.ts",
1787 "line": 976
1788 },
1789 "name": "metricName",
1790 "type": {
1791 "primitive": "string"
1792 }
1793 },
1794 {
1795 "abstract": true,
1796 "docs": {
1797 "custom": {
1798 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-logs-metricfilter-metrictransformation-metricnamespace"
1799 },
1800 "remarks": "Use namespaces to group together metrics that are similar. For more information, see [Namespaces](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace) .",
1801 "stability": "external",
1802 "summary": "A custom namespace to contain your metric in CloudWatch."
1803 },
1804 "immutable": true,
1805 "locationInModule": {
1806 "filename": "lib/logs.generated.ts",
1807 "line": 982
1808 },
1809 "name": "metricNamespace",
1810 "type": {
1811 "primitive": "string"
1812 }
1813 },
1814 {
1815 "abstract": true,
1816 "docs": {
1817 "custom": {
1818 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-logs-metricfilter-metrictransformation-metricvalue"
1819 },
1820 "remarks": "For example, if you're counting the occurrences of a particular term like `Error` , specify 1 for the metric value. If you're counting the number of bytes transferred, reference the value that is in the log event by using $. followed by the name of the field that you specified in the filter pattern, such as `$.size` .",
1821 "stability": "external",
1822 "summary": "The value that is published to the CloudWatch metric."
1823 },
1824 "immutable": true,
1825 "locationInModule": {
1826 "filename": "lib/logs.generated.ts",
1827 "line": 988
1828 },
1829 "name": "metricValue",
1830 "type": {
1831 "primitive": "string"
1832 }
1833 },
1834 {
1835 "abstract": true,
1836 "docs": {
1837 "custom": {
1838 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-logs-metricfilter-metrictransformation-defaultvalue"
1839 },
1840 "remarks": "This value can be null.",
1841 "stability": "external",
1842 "summary": "(Optional) The value to emit when a filter pattern does not match a log event."
1843 },
1844 "immutable": true,
1845 "locationInModule": {
1846 "filename": "lib/logs.generated.ts",
1847 "line": 958
1848 },
1849 "name": "defaultValue",
1850 "optional": true,
1851 "type": {
1852 "primitive": "number"
1853 }
1854 },
1855 {
1856 "abstract": true,
1857 "docs": {
1858 "custom": {
1859 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-logs-metricfilter-metrictransformation-dimensions"
1860 },
1861 "remarks": "> Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as `IPAddress` or `requestID` as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric.\n>\n> CloudWatch Logs disables a metric filter if it generates 1000 different name/value pairs for your specified dimensions within a certain amount of time. This helps to prevent accidental high charges.\n>\n> You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see [Creating a Billing Alarm to Monitor Your Estimated AWS Charges](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html) .",
1862 "stability": "external",
1863 "summary": "The fields to use as dimensions for the metric. One metric filter can include as many as three dimensions."
1864 },
1865 "immutable": true,
1866 "locationInModule": {
1867 "filename": "lib/logs.generated.ts",
1868 "line": 970
1869 },
1870 "name": "dimensions",
1871 "optional": true,
1872 "type": {
1873 "union": {
1874 "types": [
1875 {
1876 "fqn": "@aws-cdk/core.IResolvable"
1877 },
1878 {
1879 "collection": {
1880 "elementtype": {
1881 "union": {
1882 "types": [
1883 {
1884 "fqn": "@aws-cdk/core.IResolvable"
1885 },
1886 {
1887 "fqn": "@aws-cdk/aws-logs.CfnMetricFilter.DimensionProperty"
1888 }
1889 ]
1890 }
1891 },
1892 "kind": "array"
1893 }
1894 }
1895 ]
1896 }
1897 }
1898 },
1899 {
1900 "abstract": true,
1901 "docs": {
1902 "custom": {
1903 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-logs-metricfilter-metrictransformation.html#cfn-logs-metricfilter-metrictransformation-unit"
1904 },
1905 "remarks": "If you omit this, the unit is set as `None` .",
1906 "stability": "external",
1907 "summary": "The unit to assign to the metric."
1908 },
1909 "immutable": true,
1910 "locationInModule": {
1911 "filename": "lib/logs.generated.ts",
1912 "line": 994
1913 },
1914 "name": "unit",
1915 "optional": true,
1916 "type": {
1917 "primitive": "string"
1918 }
1919 }
1920 ],
1921 "symbolId": "lib/logs.generated:CfnMetricFilter.MetricTransformationProperty"
1922 },
1923 "@aws-cdk/aws-logs.CfnMetricFilterProps": {
1924 "assembly": "@aws-cdk/aws-logs",
1925 "datatype": true,
1926 "docs": {
1927 "custom": {
1928 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html",
1929 "exampleMetadata": "fixture=_generated"
1930 },
1931 "stability": "external",
1932 "summary": "Properties for defining a `CfnMetricFilter`.",
1933 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnMetricFilterProps: logs.CfnMetricFilterProps = {\n filterPattern: 'filterPattern',\n logGroupName: 'logGroupName',\n metricTransformations: [{\n metricName: 'metricName',\n metricNamespace: 'metricNamespace',\n metricValue: 'metricValue',\n\n // the properties below are optional\n defaultValue: 123,\n dimensions: [{\n key: 'key',\n value: 'value',\n }],\n unit: 'unit',\n }],\n\n // the properties below are optional\n filterName: 'filterName',\n};"
1934 },
1935 "fqn": "@aws-cdk/aws-logs.CfnMetricFilterProps",
1936 "kind": "interface",
1937 "locationInModule": {
1938 "filename": "lib/logs.generated.ts",
1939 "line": 656
1940 },
1941 "name": "CfnMetricFilterProps",
1942 "properties": [
1943 {
1944 "abstract": true,
1945 "docs": {
1946 "custom": {
1947 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-logs-metricfilter-filterpattern"
1948 },
1949 "remarks": "For more information, see [Filter and Pattern Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) .",
1950 "stability": "external",
1951 "summary": "A filter pattern for extracting metric data out of ingested log events."
1952 },
1953 "immutable": true,
1954 "locationInModule": {
1955 "filename": "lib/logs.generated.ts",
1956 "line": 663
1957 },
1958 "name": "filterPattern",
1959 "type": {
1960 "primitive": "string"
1961 }
1962 },
1963 {
1964 "abstract": true,
1965 "docs": {
1966 "custom": {
1967 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-logs-metricfilter-loggroupname"
1968 },
1969 "stability": "external",
1970 "summary": "The name of an existing log group that you want to associate with this metric filter."
1971 },
1972 "immutable": true,
1973 "locationInModule": {
1974 "filename": "lib/logs.generated.ts",
1975 "line": 670
1976 },
1977 "name": "logGroupName",
1978 "type": {
1979 "primitive": "string"
1980 }
1981 },
1982 {
1983 "abstract": true,
1984 "docs": {
1985 "custom": {
1986 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-logs-metricfilter-metrictransformations"
1987 },
1988 "stability": "external",
1989 "summary": "The metric transformations."
1990 },
1991 "immutable": true,
1992 "locationInModule": {
1993 "filename": "lib/logs.generated.ts",
1994 "line": 677
1995 },
1996 "name": "metricTransformations",
1997 "type": {
1998 "union": {
1999 "types": [
2000 {
2001 "fqn": "@aws-cdk/core.IResolvable"
2002 },
2003 {
2004 "collection": {
2005 "elementtype": {
2006 "union": {
2007 "types": [
2008 {
2009 "fqn": "@aws-cdk/core.IResolvable"
2010 },
2011 {
2012 "fqn": "@aws-cdk/aws-logs.CfnMetricFilter.MetricTransformationProperty"
2013 }
2014 ]
2015 }
2016 },
2017 "kind": "array"
2018 }
2019 }
2020 ]
2021 }
2022 }
2023 },
2024 {
2025 "abstract": true,
2026 "docs": {
2027 "custom": {
2028 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html#cfn-logs-metricfilter-filtername"
2029 },
2030 "stability": "external",
2031 "summary": "The name of the metric filter."
2032 },
2033 "immutable": true,
2034 "locationInModule": {
2035 "filename": "lib/logs.generated.ts",
2036 "line": 684
2037 },
2038 "name": "filterName",
2039 "optional": true,
2040 "type": {
2041 "primitive": "string"
2042 }
2043 }
2044 ],
2045 "symbolId": "lib/logs.generated:CfnMetricFilterProps"
2046 },
2047 "@aws-cdk/aws-logs.CfnQueryDefinition": {
2048 "assembly": "@aws-cdk/aws-logs",
2049 "base": "@aws-cdk/core.CfnResource",
2050 "docs": {
2051 "custom": {
2052 "cloudformationResource": "AWS::Logs::QueryDefinition",
2053 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html",
2054 "exampleMetadata": "fixture=_generated"
2055 },
2056 "remarks": "Creates a query definition for CloudWatch Logs Insights. For more information, see [Analyzing Log Data with CloudWatch Logs Insights](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html) .",
2057 "stability": "external",
2058 "summary": "A CloudFormation `AWS::Logs::QueryDefinition`.",
2059 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnQueryDefinition = new logs.CfnQueryDefinition(this, 'MyCfnQueryDefinition', {\n name: 'name',\n queryString: 'queryString',\n\n // the properties below are optional\n logGroupNames: ['logGroupNames'],\n});"
2060 },
2061 "fqn": "@aws-cdk/aws-logs.CfnQueryDefinition",
2062 "initializer": {
2063 "docs": {
2064 "stability": "external",
2065 "summary": "Create a new `AWS::Logs::QueryDefinition`."
2066 },
2067 "locationInModule": {
2068 "filename": "lib/logs.generated.ts",
2069 "line": 1218
2070 },
2071 "parameters": [
2072 {
2073 "docs": {
2074 "summary": "- scope in which this resource is defined."
2075 },
2076 "name": "scope",
2077 "type": {
2078 "fqn": "@aws-cdk/core.Construct"
2079 }
2080 },
2081 {
2082 "docs": {
2083 "summary": "- scoped id of the resource."
2084 },
2085 "name": "id",
2086 "type": {
2087 "primitive": "string"
2088 }
2089 },
2090 {
2091 "docs": {
2092 "summary": "- resource properties."
2093 },
2094 "name": "props",
2095 "type": {
2096 "fqn": "@aws-cdk/aws-logs.CfnQueryDefinitionProps"
2097 }
2098 }
2099 ]
2100 },
2101 "interfaces": [
2102 "@aws-cdk/core.IInspectable"
2103 ],
2104 "kind": "class",
2105 "locationInModule": {
2106 "filename": "lib/logs.generated.ts",
2107 "line": 1159
2108 },
2109 "methods": [
2110 {
2111 "docs": {
2112 "stability": "external",
2113 "summary": "Examines the CloudFormation resource and discloses attributes."
2114 },
2115 "locationInModule": {
2116 "filename": "lib/logs.generated.ts",
2117 "line": 1235
2118 },
2119 "name": "inspect",
2120 "overrides": "@aws-cdk/core.IInspectable",
2121 "parameters": [
2122 {
2123 "docs": {
2124 "summary": "- tree inspector to collect and process attributes."
2125 },
2126 "name": "inspector",
2127 "type": {
2128 "fqn": "@aws-cdk/core.TreeInspector"
2129 }
2130 }
2131 ]
2132 },
2133 {
2134 "docs": {
2135 "stability": "external"
2136 },
2137 "locationInModule": {
2138 "filename": "lib/logs.generated.ts",
2139 "line": 1248
2140 },
2141 "name": "renderProperties",
2142 "overrides": "@aws-cdk/core.CfnResource",
2143 "parameters": [
2144 {
2145 "name": "props",
2146 "type": {
2147 "collection": {
2148 "elementtype": {
2149 "primitive": "any"
2150 },
2151 "kind": "map"
2152 }
2153 }
2154 }
2155 ],
2156 "protected": true,
2157 "returns": {
2158 "type": {
2159 "collection": {
2160 "elementtype": {
2161 "primitive": "any"
2162 },
2163 "kind": "map"
2164 }
2165 }
2166 }
2167 }
2168 ],
2169 "name": "CfnQueryDefinition",
2170 "properties": [
2171 {
2172 "const": true,
2173 "docs": {
2174 "stability": "external",
2175 "summary": "The CloudFormation resource type name for this resource class."
2176 },
2177 "immutable": true,
2178 "locationInModule": {
2179 "filename": "lib/logs.generated.ts",
2180 "line": 1163
2181 },
2182 "name": "CFN_RESOURCE_TYPE_NAME",
2183 "static": true,
2184 "type": {
2185 "primitive": "string"
2186 }
2187 },
2188 {
2189 "docs": {
2190 "custom": {
2191 "cloudformationAttribute": "QueryDefinitionId"
2192 },
2193 "stability": "external",
2194 "summary": "The ID of the query definition."
2195 },
2196 "immutable": true,
2197 "locationInModule": {
2198 "filename": "lib/logs.generated.ts",
2199 "line": 1188
2200 },
2201 "name": "attrQueryDefinitionId",
2202 "type": {
2203 "primitive": "string"
2204 }
2205 },
2206 {
2207 "docs": {
2208 "stability": "external"
2209 },
2210 "immutable": true,
2211 "locationInModule": {
2212 "filename": "lib/logs.generated.ts",
2213 "line": 1240
2214 },
2215 "name": "cfnProperties",
2216 "overrides": "@aws-cdk/core.CfnResource",
2217 "protected": true,
2218 "type": {
2219 "collection": {
2220 "elementtype": {
2221 "primitive": "any"
2222 },
2223 "kind": "map"
2224 }
2225 }
2226 },
2227 {
2228 "docs": {
2229 "custom": {
2230 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html#cfn-logs-querydefinition-name"
2231 },
2232 "stability": "external",
2233 "summary": "A name for the query definition."
2234 },
2235 "locationInModule": {
2236 "filename": "lib/logs.generated.ts",
2237 "line": 1195
2238 },
2239 "name": "name",
2240 "type": {
2241 "primitive": "string"
2242 }
2243 },
2244 {
2245 "docs": {
2246 "custom": {
2247 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html#cfn-logs-querydefinition-querystring"
2248 },
2249 "remarks": "For more information, see [CloudWatch Logs Insights Query Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html) .",
2250 "stability": "external",
2251 "summary": "The query string to use for this query definition."
2252 },
2253 "locationInModule": {
2254 "filename": "lib/logs.generated.ts",
2255 "line": 1202
2256 },
2257 "name": "queryString",
2258 "type": {
2259 "primitive": "string"
2260 }
2261 },
2262 {
2263 "docs": {
2264 "custom": {
2265 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html#cfn-logs-querydefinition-loggroupnames"
2266 },
2267 "stability": "external",
2268 "summary": "Use this parameter if you want the query to query only certain log groups."
2269 },
2270 "locationInModule": {
2271 "filename": "lib/logs.generated.ts",
2272 "line": 1209
2273 },
2274 "name": "logGroupNames",
2275 "optional": true,
2276 "type": {
2277 "collection": {
2278 "elementtype": {
2279 "primitive": "string"
2280 },
2281 "kind": "array"
2282 }
2283 }
2284 }
2285 ],
2286 "symbolId": "lib/logs.generated:CfnQueryDefinition"
2287 },
2288 "@aws-cdk/aws-logs.CfnQueryDefinitionProps": {
2289 "assembly": "@aws-cdk/aws-logs",
2290 "datatype": true,
2291 "docs": {
2292 "custom": {
2293 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html",
2294 "exampleMetadata": "fixture=_generated"
2295 },
2296 "stability": "external",
2297 "summary": "Properties for defining a `CfnQueryDefinition`.",
2298 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnQueryDefinitionProps: logs.CfnQueryDefinitionProps = {\n name: 'name',\n queryString: 'queryString',\n\n // the properties below are optional\n logGroupNames: ['logGroupNames'],\n};"
2299 },
2300 "fqn": "@aws-cdk/aws-logs.CfnQueryDefinitionProps",
2301 "kind": "interface",
2302 "locationInModule": {
2303 "filename": "lib/logs.generated.ts",
2304 "line": 1072
2305 },
2306 "name": "CfnQueryDefinitionProps",
2307 "properties": [
2308 {
2309 "abstract": true,
2310 "docs": {
2311 "custom": {
2312 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html#cfn-logs-querydefinition-name"
2313 },
2314 "stability": "external",
2315 "summary": "A name for the query definition."
2316 },
2317 "immutable": true,
2318 "locationInModule": {
2319 "filename": "lib/logs.generated.ts",
2320 "line": 1079
2321 },
2322 "name": "name",
2323 "type": {
2324 "primitive": "string"
2325 }
2326 },
2327 {
2328 "abstract": true,
2329 "docs": {
2330 "custom": {
2331 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html#cfn-logs-querydefinition-querystring"
2332 },
2333 "remarks": "For more information, see [CloudWatch Logs Insights Query Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html) .",
2334 "stability": "external",
2335 "summary": "The query string to use for this query definition."
2336 },
2337 "immutable": true,
2338 "locationInModule": {
2339 "filename": "lib/logs.generated.ts",
2340 "line": 1086
2341 },
2342 "name": "queryString",
2343 "type": {
2344 "primitive": "string"
2345 }
2346 },
2347 {
2348 "abstract": true,
2349 "docs": {
2350 "custom": {
2351 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html#cfn-logs-querydefinition-loggroupnames"
2352 },
2353 "stability": "external",
2354 "summary": "Use this parameter if you want the query to query only certain log groups."
2355 },
2356 "immutable": true,
2357 "locationInModule": {
2358 "filename": "lib/logs.generated.ts",
2359 "line": 1093
2360 },
2361 "name": "logGroupNames",
2362 "optional": true,
2363 "type": {
2364 "collection": {
2365 "elementtype": {
2366 "primitive": "string"
2367 },
2368 "kind": "array"
2369 }
2370 }
2371 }
2372 ],
2373 "symbolId": "lib/logs.generated:CfnQueryDefinitionProps"
2374 },
2375 "@aws-cdk/aws-logs.CfnResourcePolicy": {
2376 "assembly": "@aws-cdk/aws-logs",
2377 "base": "@aws-cdk/core.CfnResource",
2378 "docs": {
2379 "custom": {
2380 "cloudformationResource": "AWS::Logs::ResourcePolicy",
2381 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html",
2382 "exampleMetadata": "fixture=_generated"
2383 },
2384 "remarks": "Creates or updates a resource policy that allows other AWS services to put log events to this account. An account can have up to 10 resource policies per AWS Region.",
2385 "stability": "external",
2386 "summary": "A CloudFormation `AWS::Logs::ResourcePolicy`.",
2387 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnResourcePolicy = new logs.CfnResourcePolicy(this, 'MyCfnResourcePolicy', {\n policyDocument: 'policyDocument',\n policyName: 'policyName',\n});"
2388 },
2389 "fqn": "@aws-cdk/aws-logs.CfnResourcePolicy",
2390 "initializer": {
2391 "docs": {
2392 "stability": "external",
2393 "summary": "Create a new `AWS::Logs::ResourcePolicy`."
2394 },
2395 "locationInModule": {
2396 "filename": "lib/logs.generated.ts",
2397 "line": 1384
2398 },
2399 "parameters": [
2400 {
2401 "docs": {
2402 "summary": "- scope in which this resource is defined."
2403 },
2404 "name": "scope",
2405 "type": {
2406 "fqn": "@aws-cdk/core.Construct"
2407 }
2408 },
2409 {
2410 "docs": {
2411 "summary": "- scoped id of the resource."
2412 },
2413 "name": "id",
2414 "type": {
2415 "primitive": "string"
2416 }
2417 },
2418 {
2419 "docs": {
2420 "summary": "- resource properties."
2421 },
2422 "name": "props",
2423 "type": {
2424 "fqn": "@aws-cdk/aws-logs.CfnResourcePolicyProps"
2425 }
2426 }
2427 ]
2428 },
2429 "interfaces": [
2430 "@aws-cdk/core.IInspectable"
2431 ],
2432 "kind": "class",
2433 "locationInModule": {
2434 "filename": "lib/logs.generated.ts",
2435 "line": 1338
2436 },
2437 "methods": [
2438 {
2439 "docs": {
2440 "stability": "external",
2441 "summary": "Examines the CloudFormation resource and discloses attributes."
2442 },
2443 "locationInModule": {
2444 "filename": "lib/logs.generated.ts",
2445 "line": 1399
2446 },
2447 "name": "inspect",
2448 "overrides": "@aws-cdk/core.IInspectable",
2449 "parameters": [
2450 {
2451 "docs": {
2452 "summary": "- tree inspector to collect and process attributes."
2453 },
2454 "name": "inspector",
2455 "type": {
2456 "fqn": "@aws-cdk/core.TreeInspector"
2457 }
2458 }
2459 ]
2460 },
2461 {
2462 "docs": {
2463 "stability": "external"
2464 },
2465 "locationInModule": {
2466 "filename": "lib/logs.generated.ts",
2467 "line": 1411
2468 },
2469 "name": "renderProperties",
2470 "overrides": "@aws-cdk/core.CfnResource",
2471 "parameters": [
2472 {
2473 "name": "props",
2474 "type": {
2475 "collection": {
2476 "elementtype": {
2477 "primitive": "any"
2478 },
2479 "kind": "map"
2480 }
2481 }
2482 }
2483 ],
2484 "protected": true,
2485 "returns": {
2486 "type": {
2487 "collection": {
2488 "elementtype": {
2489 "primitive": "any"
2490 },
2491 "kind": "map"
2492 }
2493 }
2494 }
2495 }
2496 ],
2497 "name": "CfnResourcePolicy",
2498 "properties": [
2499 {
2500 "const": true,
2501 "docs": {
2502 "stability": "external",
2503 "summary": "The CloudFormation resource type name for this resource class."
2504 },
2505 "immutable": true,
2506 "locationInModule": {
2507 "filename": "lib/logs.generated.ts",
2508 "line": 1342
2509 },
2510 "name": "CFN_RESOURCE_TYPE_NAME",
2511 "static": true,
2512 "type": {
2513 "primitive": "string"
2514 }
2515 },
2516 {
2517 "docs": {
2518 "stability": "external"
2519 },
2520 "immutable": true,
2521 "locationInModule": {
2522 "filename": "lib/logs.generated.ts",
2523 "line": 1404
2524 },
2525 "name": "cfnProperties",
2526 "overrides": "@aws-cdk/core.CfnResource",
2527 "protected": true,
2528 "type": {
2529 "collection": {
2530 "elementtype": {
2531 "primitive": "any"
2532 },
2533 "kind": "map"
2534 }
2535 }
2536 },
2537 {
2538 "docs": {
2539 "custom": {
2540 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html#cfn-logs-resourcepolicy-policydocument"
2541 },
2542 "remarks": "It must be formatted in JSON, and you must use backslashes to escape characters that need to be escaped in JSON strings, such as double quote marks.",
2543 "stability": "external",
2544 "summary": "The details of the policy."
2545 },
2546 "locationInModule": {
2547 "filename": "lib/logs.generated.ts",
2548 "line": 1368
2549 },
2550 "name": "policyDocument",
2551 "type": {
2552 "primitive": "string"
2553 }
2554 },
2555 {
2556 "docs": {
2557 "custom": {
2558 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html#cfn-logs-resourcepolicy-policyname"
2559 },
2560 "stability": "external",
2561 "summary": "The name of the resource policy."
2562 },
2563 "locationInModule": {
2564 "filename": "lib/logs.generated.ts",
2565 "line": 1375
2566 },
2567 "name": "policyName",
2568 "type": {
2569 "primitive": "string"
2570 }
2571 }
2572 ],
2573 "symbolId": "lib/logs.generated:CfnResourcePolicy"
2574 },
2575 "@aws-cdk/aws-logs.CfnResourcePolicyProps": {
2576 "assembly": "@aws-cdk/aws-logs",
2577 "datatype": true,
2578 "docs": {
2579 "custom": {
2580 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html",
2581 "exampleMetadata": "fixture=_generated"
2582 },
2583 "stability": "external",
2584 "summary": "Properties for defining a `CfnResourcePolicy`.",
2585 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnResourcePolicyProps: logs.CfnResourcePolicyProps = {\n policyDocument: 'policyDocument',\n policyName: 'policyName',\n};"
2586 },
2587 "fqn": "@aws-cdk/aws-logs.CfnResourcePolicyProps",
2588 "kind": "interface",
2589 "locationInModule": {
2590 "filename": "lib/logs.generated.ts",
2591 "line": 1261
2592 },
2593 "name": "CfnResourcePolicyProps",
2594 "properties": [
2595 {
2596 "abstract": true,
2597 "docs": {
2598 "custom": {
2599 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html#cfn-logs-resourcepolicy-policydocument"
2600 },
2601 "remarks": "It must be formatted in JSON, and you must use backslashes to escape characters that need to be escaped in JSON strings, such as double quote marks.",
2602 "stability": "external",
2603 "summary": "The details of the policy."
2604 },
2605 "immutable": true,
2606 "locationInModule": {
2607 "filename": "lib/logs.generated.ts",
2608 "line": 1268
2609 },
2610 "name": "policyDocument",
2611 "type": {
2612 "primitive": "string"
2613 }
2614 },
2615 {
2616 "abstract": true,
2617 "docs": {
2618 "custom": {
2619 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html#cfn-logs-resourcepolicy-policyname"
2620 },
2621 "stability": "external",
2622 "summary": "The name of the resource policy."
2623 },
2624 "immutable": true,
2625 "locationInModule": {
2626 "filename": "lib/logs.generated.ts",
2627 "line": 1275
2628 },
2629 "name": "policyName",
2630 "type": {
2631 "primitive": "string"
2632 }
2633 }
2634 ],
2635 "symbolId": "lib/logs.generated:CfnResourcePolicyProps"
2636 },
2637 "@aws-cdk/aws-logs.CfnSubscriptionFilter": {
2638 "assembly": "@aws-cdk/aws-logs",
2639 "base": "@aws-cdk/core.CfnResource",
2640 "docs": {
2641 "custom": {
2642 "cloudformationResource": "AWS::Logs::SubscriptionFilter",
2643 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html",
2644 "exampleMetadata": "fixture=_generated"
2645 },
2646 "remarks": "The `AWS::Logs::SubscriptionFilter` resource specifies a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events and have them delivered to a specific destination. Currently, the supported destinations are:\n\n- An Amazon Kinesis data stream belonging to the same account as the subscription filter, for same-account delivery.\n- A logical destination that belongs to a different account, for cross-account delivery.\n- An Amazon Kinesis Firehose delivery stream that belongs to the same account as the subscription filter, for same-account delivery.\n- An AWS Lambda function that belongs to the same account as the subscription filter, for same-account delivery.\n\nThere can be as many as two subscription filters associated with a log group.",
2647 "stability": "external",
2648 "summary": "A CloudFormation `AWS::Logs::SubscriptionFilter`.",
2649 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnSubscriptionFilter = new logs.CfnSubscriptionFilter(this, 'MyCfnSubscriptionFilter', {\n destinationArn: 'destinationArn',\n filterPattern: 'filterPattern',\n logGroupName: 'logGroupName',\n\n // the properties below are optional\n distribution: 'distribution',\n filterName: 'filterName',\n roleArn: 'roleArn',\n});"
2650 },
2651 "fqn": "@aws-cdk/aws-logs.CfnSubscriptionFilter",
2652 "initializer": {
2653 "docs": {
2654 "stability": "external",
2655 "summary": "Create a new `AWS::Logs::SubscriptionFilter`."
2656 },
2657 "locationInModule": {
2658 "filename": "lib/logs.generated.ts",
2659 "line": 1623
2660 },
2661 "parameters": [
2662 {
2663 "docs": {
2664 "summary": "- scope in which this resource is defined."
2665 },
2666 "name": "scope",
2667 "type": {
2668 "fqn": "@aws-cdk/core.Construct"
2669 }
2670 },
2671 {
2672 "docs": {
2673 "summary": "- scoped id of the resource."
2674 },
2675 "name": "id",
2676 "type": {
2677 "primitive": "string"
2678 }
2679 },
2680 {
2681 "docs": {
2682 "summary": "- resource properties."
2683 },
2684 "name": "props",
2685 "type": {
2686 "fqn": "@aws-cdk/aws-logs.CfnSubscriptionFilterProps"
2687 }
2688 }
2689 ]
2690 },
2691 "interfaces": [
2692 "@aws-cdk/core.IInspectable"
2693 ],
2694 "kind": "class",
2695 "locationInModule": {
2696 "filename": "lib/logs.generated.ts",
2697 "line": 1549
2698 },
2699 "methods": [
2700 {
2701 "docs": {
2702 "stability": "external",
2703 "summary": "Examines the CloudFormation resource and discloses attributes."
2704 },
2705 "locationInModule": {
2706 "filename": "lib/logs.generated.ts",
2707 "line": 1643
2708 },
2709 "name": "inspect",
2710 "overrides": "@aws-cdk/core.IInspectable",
2711 "parameters": [
2712 {
2713 "docs": {
2714 "summary": "- tree inspector to collect and process attributes."
2715 },
2716 "name": "inspector",
2717 "type": {
2718 "fqn": "@aws-cdk/core.TreeInspector"
2719 }
2720 }
2721 ]
2722 },
2723 {
2724 "docs": {
2725 "stability": "external"
2726 },
2727 "locationInModule": {
2728 "filename": "lib/logs.generated.ts",
2729 "line": 1659
2730 },
2731 "name": "renderProperties",
2732 "overrides": "@aws-cdk/core.CfnResource",
2733 "parameters": [
2734 {
2735 "name": "props",
2736 "type": {
2737 "collection": {
2738 "elementtype": {
2739 "primitive": "any"
2740 },
2741 "kind": "map"
2742 }
2743 }
2744 }
2745 ],
2746 "protected": true,
2747 "returns": {
2748 "type": {
2749 "collection": {
2750 "elementtype": {
2751 "primitive": "any"
2752 },
2753 "kind": "map"
2754 }
2755 }
2756 }
2757 }
2758 ],
2759 "name": "CfnSubscriptionFilter",
2760 "properties": [
2761 {
2762 "const": true,
2763 "docs": {
2764 "stability": "external",
2765 "summary": "The CloudFormation resource type name for this resource class."
2766 },
2767 "immutable": true,
2768 "locationInModule": {
2769 "filename": "lib/logs.generated.ts",
2770 "line": 1553
2771 },
2772 "name": "CFN_RESOURCE_TYPE_NAME",
2773 "static": true,
2774 "type": {
2775 "primitive": "string"
2776 }
2777 },
2778 {
2779 "docs": {
2780 "stability": "external"
2781 },
2782 "immutable": true,
2783 "locationInModule": {
2784 "filename": "lib/logs.generated.ts",
2785 "line": 1648
2786 },
2787 "name": "cfnProperties",
2788 "overrides": "@aws-cdk/core.CfnResource",
2789 "protected": true,
2790 "type": {
2791 "collection": {
2792 "elementtype": {
2793 "primitive": "any"
2794 },
2795 "kind": "map"
2796 }
2797 }
2798 },
2799 {
2800 "docs": {
2801 "custom": {
2802 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-destinationarn"
2803 },
2804 "stability": "external",
2805 "summary": "The Amazon Resource Name (ARN) of the destination."
2806 },
2807 "locationInModule": {
2808 "filename": "lib/logs.generated.ts",
2809 "line": 1579
2810 },
2811 "name": "destinationArn",
2812 "type": {
2813 "primitive": "string"
2814 }
2815 },
2816 {
2817 "docs": {
2818 "custom": {
2819 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filterpattern"
2820 },
2821 "remarks": "For more information about the filter pattern syntax, see [Filter and Pattern Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) .",
2822 "stability": "external",
2823 "summary": "The filtering expressions that restrict what gets delivered to the destination AWS resource."
2824 },
2825 "locationInModule": {
2826 "filename": "lib/logs.generated.ts",
2827 "line": 1586
2828 },
2829 "name": "filterPattern",
2830 "type": {
2831 "primitive": "string"
2832 }
2833 },
2834 {
2835 "docs": {
2836 "custom": {
2837 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-loggroupname"
2838 },
2839 "remarks": "All log events that are uploaded to this log group are filtered and delivered to the specified AWS resource if the filter pattern matches the log events.",
2840 "stability": "external",
2841 "summary": "The log group to associate with the subscription filter."
2842 },
2843 "locationInModule": {
2844 "filename": "lib/logs.generated.ts",
2845 "line": 1593
2846 },
2847 "name": "logGroupName",
2848 "type": {
2849 "primitive": "string"
2850 }
2851 },
2852 {
2853 "docs": {
2854 "custom": {
2855 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-distribution"
2856 },
2857 "stability": "external",
2858 "summary": "The method used to distribute log data to the destination, which can be either random or grouped by log stream."
2859 },
2860 "locationInModule": {
2861 "filename": "lib/logs.generated.ts",
2862 "line": 1600
2863 },
2864 "name": "distribution",
2865 "optional": true,
2866 "type": {
2867 "primitive": "string"
2868 }
2869 },
2870 {
2871 "docs": {
2872 "custom": {
2873 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filtername"
2874 },
2875 "stability": "external",
2876 "summary": "The name of the subscription filter."
2877 },
2878 "locationInModule": {
2879 "filename": "lib/logs.generated.ts",
2880 "line": 1607
2881 },
2882 "name": "filterName",
2883 "optional": true,
2884 "type": {
2885 "primitive": "string"
2886 }
2887 },
2888 {
2889 "docs": {
2890 "custom": {
2891 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-rolearn"
2892 },
2893 "remarks": "You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.",
2894 "stability": "external",
2895 "summary": "The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream."
2896 },
2897 "locationInModule": {
2898 "filename": "lib/logs.generated.ts",
2899 "line": 1614
2900 },
2901 "name": "roleArn",
2902 "optional": true,
2903 "type": {
2904 "primitive": "string"
2905 }
2906 }
2907 ],
2908 "symbolId": "lib/logs.generated:CfnSubscriptionFilter"
2909 },
2910 "@aws-cdk/aws-logs.CfnSubscriptionFilterProps": {
2911 "assembly": "@aws-cdk/aws-logs",
2912 "datatype": true,
2913 "docs": {
2914 "custom": {
2915 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html",
2916 "exampleMetadata": "fixture=_generated"
2917 },
2918 "stability": "external",
2919 "summary": "Properties for defining a `CfnSubscriptionFilter`.",
2920 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst cfnSubscriptionFilterProps: logs.CfnSubscriptionFilterProps = {\n destinationArn: 'destinationArn',\n filterPattern: 'filterPattern',\n logGroupName: 'logGroupName',\n\n // the properties below are optional\n distribution: 'distribution',\n filterName: 'filterName',\n roleArn: 'roleArn',\n};"
2921 },
2922 "fqn": "@aws-cdk/aws-logs.CfnSubscriptionFilterProps",
2923 "kind": "interface",
2924 "locationInModule": {
2925 "filename": "lib/logs.generated.ts",
2926 "line": 1424
2927 },
2928 "name": "CfnSubscriptionFilterProps",
2929 "properties": [
2930 {
2931 "abstract": true,
2932 "docs": {
2933 "custom": {
2934 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-destinationarn"
2935 },
2936 "stability": "external",
2937 "summary": "The Amazon Resource Name (ARN) of the destination."
2938 },
2939 "immutable": true,
2940 "locationInModule": {
2941 "filename": "lib/logs.generated.ts",
2942 "line": 1431
2943 },
2944 "name": "destinationArn",
2945 "type": {
2946 "primitive": "string"
2947 }
2948 },
2949 {
2950 "abstract": true,
2951 "docs": {
2952 "custom": {
2953 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filterpattern"
2954 },
2955 "remarks": "For more information about the filter pattern syntax, see [Filter and Pattern Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) .",
2956 "stability": "external",
2957 "summary": "The filtering expressions that restrict what gets delivered to the destination AWS resource."
2958 },
2959 "immutable": true,
2960 "locationInModule": {
2961 "filename": "lib/logs.generated.ts",
2962 "line": 1438
2963 },
2964 "name": "filterPattern",
2965 "type": {
2966 "primitive": "string"
2967 }
2968 },
2969 {
2970 "abstract": true,
2971 "docs": {
2972 "custom": {
2973 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-loggroupname"
2974 },
2975 "remarks": "All log events that are uploaded to this log group are filtered and delivered to the specified AWS resource if the filter pattern matches the log events.",
2976 "stability": "external",
2977 "summary": "The log group to associate with the subscription filter."
2978 },
2979 "immutable": true,
2980 "locationInModule": {
2981 "filename": "lib/logs.generated.ts",
2982 "line": 1445
2983 },
2984 "name": "logGroupName",
2985 "type": {
2986 "primitive": "string"
2987 }
2988 },
2989 {
2990 "abstract": true,
2991 "docs": {
2992 "custom": {
2993 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-distribution"
2994 },
2995 "stability": "external",
2996 "summary": "The method used to distribute log data to the destination, which can be either random or grouped by log stream."
2997 },
2998 "immutable": true,
2999 "locationInModule": {
3000 "filename": "lib/logs.generated.ts",
3001 "line": 1452
3002 },
3003 "name": "distribution",
3004 "optional": true,
3005 "type": {
3006 "primitive": "string"
3007 }
3008 },
3009 {
3010 "abstract": true,
3011 "docs": {
3012 "custom": {
3013 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filtername"
3014 },
3015 "stability": "external",
3016 "summary": "The name of the subscription filter."
3017 },
3018 "immutable": true,
3019 "locationInModule": {
3020 "filename": "lib/logs.generated.ts",
3021 "line": 1459
3022 },
3023 "name": "filterName",
3024 "optional": true,
3025 "type": {
3026 "primitive": "string"
3027 }
3028 },
3029 {
3030 "abstract": true,
3031 "docs": {
3032 "custom": {
3033 "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-rolearn"
3034 },
3035 "remarks": "You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.",
3036 "stability": "external",
3037 "summary": "The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream."
3038 },
3039 "immutable": true,
3040 "locationInModule": {
3041 "filename": "lib/logs.generated.ts",
3042 "line": 1466
3043 },
3044 "name": "roleArn",
3045 "optional": true,
3046 "type": {
3047 "primitive": "string"
3048 }
3049 }
3050 ],
3051 "symbolId": "lib/logs.generated:CfnSubscriptionFilterProps"
3052 },
3053 "@aws-cdk/aws-logs.ColumnRestriction": {
3054 "assembly": "@aws-cdk/aws-logs",
3055 "datatype": true,
3056 "docs": {
3057 "stability": "stable",
3058 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst columnRestriction: logs.ColumnRestriction = {\n comparison: 'comparison',\n\n // the properties below are optional\n numberValue: 123,\n stringValue: 'stringValue',\n};",
3059 "custom": {
3060 "exampleMetadata": "fixture=_generated"
3061 }
3062 },
3063 "fqn": "@aws-cdk/aws-logs.ColumnRestriction",
3064 "kind": "interface",
3065 "locationInModule": {
3066 "filename": "lib/pattern.ts",
3067 "line": 369
3068 },
3069 "name": "ColumnRestriction",
3070 "properties": [
3071 {
3072 "abstract": true,
3073 "docs": {
3074 "stability": "stable",
3075 "summary": "Comparison operator to use."
3076 },
3077 "immutable": true,
3078 "locationInModule": {
3079 "filename": "lib/pattern.ts",
3080 "line": 373
3081 },
3082 "name": "comparison",
3083 "type": {
3084 "primitive": "string"
3085 }
3086 },
3087 {
3088 "abstract": true,
3089 "docs": {
3090 "remarks": "Exactly one of 'stringValue' and 'numberValue' must be set.",
3091 "stability": "stable",
3092 "summary": "Number value to compare to."
3093 },
3094 "immutable": true,
3095 "locationInModule": {
3096 "filename": "lib/pattern.ts",
3097 "line": 387
3098 },
3099 "name": "numberValue",
3100 "optional": true,
3101 "type": {
3102 "primitive": "number"
3103 }
3104 },
3105 {
3106 "abstract": true,
3107 "docs": {
3108 "remarks": "Exactly one of 'stringValue' and 'numberValue' must be set.",
3109 "stability": "stable",
3110 "summary": "String value to compare to."
3111 },
3112 "immutable": true,
3113 "locationInModule": {
3114 "filename": "lib/pattern.ts",
3115 "line": 380
3116 },
3117 "name": "stringValue",
3118 "optional": true,
3119 "type": {
3120 "primitive": "string"
3121 }
3122 }
3123 ],
3124 "symbolId": "lib/pattern:ColumnRestriction"
3125 },
3126 "@aws-cdk/aws-logs.CrossAccountDestination": {
3127 "assembly": "@aws-cdk/aws-logs",
3128 "base": "@aws-cdk/core.Resource",
3129 "docs": {
3130 "custom": {
3131 "resource": "AWS::Logs::Destination",
3132 "exampleMetadata": "fixture=_generated"
3133 },
3134 "remarks": "CrossAccountDestinations are used to subscribe a Kinesis stream in a\ndifferent account to a CloudWatch Subscription.\n\nConsumers will hardly ever need to use this class. Instead, directly\nsubscribe a Kinesis stream using the integration class in the\n`@aws-cdk/aws-logs-destinations` package; if necessary, a\n`CrossAccountDestination` will be created automatically.",
3135 "stability": "stable",
3136 "summary": "A new CloudWatch Logs Destination for use in cross-account scenarios.",
3137 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const role: iam.Role;\nconst crossAccountDestination = new logs.CrossAccountDestination(this, 'MyCrossAccountDestination', {\n role: role,\n targetArn: 'targetArn',\n\n // the properties below are optional\n destinationName: 'destinationName',\n});"
3138 },
3139 "fqn": "@aws-cdk/aws-logs.CrossAccountDestination",
3140 "initializer": {
3141 "docs": {
3142 "stability": "stable"
3143 },
3144 "locationInModule": {
3145 "filename": "lib/cross-account-destination.ts",
3146 "line": 76
3147 },
3148 "parameters": [
3149 {
3150 "name": "scope",
3151 "type": {
3152 "fqn": "constructs.Construct"
3153 }
3154 },
3155 {
3156 "name": "id",
3157 "type": {
3158 "primitive": "string"
3159 }
3160 },
3161 {
3162 "name": "props",
3163 "type": {
3164 "fqn": "@aws-cdk/aws-logs.CrossAccountDestinationProps"
3165 }
3166 }
3167 ]
3168 },
3169 "interfaces": [
3170 "@aws-cdk/aws-logs.ILogSubscriptionDestination"
3171 ],
3172 "kind": "class",
3173 "locationInModule": {
3174 "filename": "lib/cross-account-destination.ts",
3175 "line": 53
3176 },
3177 "methods": [
3178 {
3179 "docs": {
3180 "stability": "stable"
3181 },
3182 "locationInModule": {
3183 "filename": "lib/cross-account-destination.ts",
3184 "line": 100
3185 },
3186 "name": "addToPolicy",
3187 "parameters": [
3188 {
3189 "name": "statement",
3190 "type": {
3191 "fqn": "@aws-cdk/aws-iam.PolicyStatement"
3192 }
3193 }
3194 ]
3195 },
3196 {
3197 "docs": {
3198 "remarks": "If necessary, the destination can use the properties of the SubscriptionFilter\nobject itself to configure its permissions to allow the subscription to write\nto it.\n\nThe destination may reconfigure its own permissions in response to this\nfunction call.",
3199 "stability": "stable",
3200 "summary": "Return the properties required to send subscription events to this destination."
3201 },
3202 "locationInModule": {
3203 "filename": "lib/cross-account-destination.ts",
3204 "line": 104
3205 },
3206 "name": "bind",
3207 "overrides": "@aws-cdk/aws-logs.ILogSubscriptionDestination",
3208 "parameters": [
3209 {
3210 "name": "_scope",
3211 "type": {
3212 "fqn": "@aws-cdk/core.Construct"
3213 }
3214 },
3215 {
3216 "name": "_sourceLogGroup",
3217 "type": {
3218 "fqn": "@aws-cdk/aws-logs.ILogGroup"
3219 }
3220 }
3221 ],
3222 "returns": {
3223 "type": {
3224 "fqn": "@aws-cdk/aws-logs.LogSubscriptionDestinationConfig"
3225 }
3226 }
3227 }
3228 ],
3229 "name": "CrossAccountDestination",
3230 "properties": [
3231 {
3232 "docs": {
3233 "custom": {
3234 "attribute": "true"
3235 },
3236 "stability": "stable",
3237 "summary": "The ARN of this CrossAccountDestination object."
3238 },
3239 "immutable": true,
3240 "locationInModule": {
3241 "filename": "lib/cross-account-destination.ts",
3242 "line": 69
3243 },
3244 "name": "destinationArn",
3245 "type": {
3246 "primitive": "string"
3247 }
3248 },
3249 {
3250 "docs": {
3251 "custom": {
3252 "attribute": "true"
3253 },
3254 "stability": "stable",
3255 "summary": "The name of this CrossAccountDestination object."
3256 },
3257 "immutable": true,
3258 "locationInModule": {
3259 "filename": "lib/cross-account-destination.ts",
3260 "line": 63
3261 },
3262 "name": "destinationName",
3263 "type": {
3264 "primitive": "string"
3265 }
3266 },
3267 {
3268 "docs": {
3269 "stability": "stable",
3270 "summary": "Policy object of this CrossAccountDestination object."
3271 },
3272 "immutable": true,
3273 "locationInModule": {
3274 "filename": "lib/cross-account-destination.ts",
3275 "line": 57
3276 },
3277 "name": "policyDocument",
3278 "type": {
3279 "fqn": "@aws-cdk/aws-iam.PolicyDocument"
3280 }
3281 }
3282 ],
3283 "symbolId": "lib/cross-account-destination:CrossAccountDestination"
3284 },
3285 "@aws-cdk/aws-logs.CrossAccountDestinationProps": {
3286 "assembly": "@aws-cdk/aws-logs",
3287 "datatype": true,
3288 "docs": {
3289 "stability": "stable",
3290 "summary": "Properties for a CrossAccountDestination.",
3291 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const role: iam.Role;\nconst crossAccountDestinationProps: logs.CrossAccountDestinationProps = {\n role: role,\n targetArn: 'targetArn',\n\n // the properties below are optional\n destinationName: 'destinationName',\n};",
3292 "custom": {
3293 "exampleMetadata": "fixture=_generated"
3294 }
3295 },
3296 "fqn": "@aws-cdk/aws-logs.CrossAccountDestinationProps",
3297 "kind": "interface",
3298 "locationInModule": {
3299 "filename": "lib/cross-account-destination.ts",
3300 "line": 19
3301 },
3302 "name": "CrossAccountDestinationProps",
3303 "properties": [
3304 {
3305 "abstract": true,
3306 "docs": {
3307 "remarks": "The role must be assumable by 'logs.{REGION}.amazonaws.com'.",
3308 "stability": "stable",
3309 "summary": "The role to assume that grants permissions to write to 'target'."
3310 },
3311 "immutable": true,
3312 "locationInModule": {
3313 "filename": "lib/cross-account-destination.ts",
3314 "line": 32
3315 },
3316 "name": "role",
3317 "type": {
3318 "fqn": "@aws-cdk/aws-iam.IRole"
3319 }
3320 },
3321 {
3322 "abstract": true,
3323 "docs": {
3324 "stability": "stable",
3325 "summary": "The log destination target's ARN."
3326 },
3327 "immutable": true,
3328 "locationInModule": {
3329 "filename": "lib/cross-account-destination.ts",
3330 "line": 37
3331 },
3332 "name": "targetArn",
3333 "type": {
3334 "primitive": "string"
3335 }
3336 },
3337 {
3338 "abstract": true,
3339 "docs": {
3340 "default": "Automatically generated",
3341 "stability": "stable",
3342 "summary": "The name of the log destination."
3343 },
3344 "immutable": true,
3345 "locationInModule": {
3346 "filename": "lib/cross-account-destination.ts",
3347 "line": 25
3348 },
3349 "name": "destinationName",
3350 "optional": true,
3351 "type": {
3352 "primitive": "string"
3353 }
3354 }
3355 ],
3356 "symbolId": "lib/cross-account-destination:CrossAccountDestinationProps"
3357 },
3358 "@aws-cdk/aws-logs.FilterPattern": {
3359 "assembly": "@aws-cdk/aws-logs",
3360 "docs": {
3361 "stability": "stable",
3362 "summary": "A collection of static methods to generate appropriate ILogPatterns.",
3363 "example": "// Search for lines that contain both \"ERROR\" and \"MainThread\"\nconst pattern1 = logs.FilterPattern.allTerms('ERROR', 'MainThread');\n\n// Search for lines that either contain both \"ERROR\" and \"MainThread\", or\n// both \"WARN\" and \"Deadlock\".\nconst pattern2 = logs.FilterPattern.anyTermGroup(\n ['ERROR', 'MainThread'],\n ['WARN', 'Deadlock'],\n);",
3364 "custom": {
3365 "exampleMetadata": "infused"
3366 }
3367 },
3368 "fqn": "@aws-cdk/aws-logs.FilterPattern",
3369 "initializer": {
3370 "docs": {
3371 "stability": "stable"
3372 }
3373 },
3374 "kind": "class",
3375 "locationInModule": {
3376 "filename": "lib/pattern.ts",
3377 "line": 26
3378 },
3379 "methods": [
3380 {
3381 "docs": {
3382 "stability": "stable",
3383 "summary": "A JSON log pattern that matches if all given JSON log patterns match."
3384 },
3385 "locationInModule": {
3386 "filename": "lib/pattern.ts",
3387 "line": 162
3388 },
3389 "name": "all",
3390 "parameters": [
3391 {
3392 "name": "patterns",
3393 "type": {
3394 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3395 },
3396 "variadic": true
3397 }
3398 ],
3399 "returns": {
3400 "type": {
3401 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3402 }
3403 },
3404 "static": true,
3405 "variadic": true
3406 },
3407 {
3408 "docs": {
3409 "stability": "stable",
3410 "summary": "A log pattern that matches all events."
3411 },
3412 "locationInModule": {
3413 "filename": "lib/pattern.ts",
3414 "line": 43
3415 },
3416 "name": "allEvents",
3417 "returns": {
3418 "type": {
3419 "fqn": "@aws-cdk/aws-logs.IFilterPattern"
3420 }
3421 },
3422 "static": true
3423 },
3424 {
3425 "docs": {
3426 "stability": "stable",
3427 "summary": "A log pattern that matches if all the strings given appear in the event."
3428 },
3429 "locationInModule": {
3430 "filename": "lib/pattern.ts",
3431 "line": 52
3432 },
3433 "name": "allTerms",
3434 "parameters": [
3435 {
3436 "docs": {
3437 "remarks": "All terms must match.",
3438 "summary": "The words to search for."
3439 },
3440 "name": "terms",
3441 "type": {
3442 "primitive": "string"
3443 },
3444 "variadic": true
3445 }
3446 ],
3447 "returns": {
3448 "type": {
3449 "fqn": "@aws-cdk/aws-logs.IFilterPattern"
3450 }
3451 },
3452 "static": true,
3453 "variadic": true
3454 },
3455 {
3456 "docs": {
3457 "stability": "stable",
3458 "summary": "A JSON log pattern that matches if any of the given JSON log patterns match."
3459 },
3460 "locationInModule": {
3461 "filename": "lib/pattern.ts",
3462 "line": 171
3463 },
3464 "name": "any",
3465 "parameters": [
3466 {
3467 "name": "patterns",
3468 "type": {
3469 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3470 },
3471 "variadic": true
3472 }
3473 ],
3474 "returns": {
3475 "type": {
3476 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3477 }
3478 },
3479 "static": true,
3480 "variadic": true
3481 },
3482 {
3483 "docs": {
3484 "stability": "stable",
3485 "summary": "A log pattern that matches if any of the strings given appear in the event."
3486 },
3487 "locationInModule": {
3488 "filename": "lib/pattern.ts",
3489 "line": 61
3490 },
3491 "name": "anyTerm",
3492 "parameters": [
3493 {
3494 "docs": {
3495 "remarks": "Any terms must match.",
3496 "summary": "The words to search for."
3497 },
3498 "name": "terms",
3499 "type": {
3500 "primitive": "string"
3501 },
3502 "variadic": true
3503 }
3504 ],
3505 "returns": {
3506 "type": {
3507 "fqn": "@aws-cdk/aws-logs.IFilterPattern"
3508 }
3509 },
3510 "static": true,
3511 "variadic": true
3512 },
3513 {
3514 "docs": {
3515 "remarks": "A term group matches an event if all the terms in it appear in the event string.",
3516 "stability": "stable",
3517 "summary": "A log pattern that matches if any of the given term groups matches the event."
3518 },
3519 "locationInModule": {
3520 "filename": "lib/pattern.ts",
3521 "line": 72
3522 },
3523 "name": "anyTermGroup",
3524 "parameters": [
3525 {
3526 "docs": {
3527 "remarks": "Any one of the clauses must match.",
3528 "summary": "A list of term groups to search for."
3529 },
3530 "name": "termGroups",
3531 "type": {
3532 "collection": {
3533 "elementtype": {
3534 "primitive": "string"
3535 },
3536 "kind": "array"
3537 }
3538 },
3539 "variadic": true
3540 }
3541 ],
3542 "returns": {
3543 "type": {
3544 "fqn": "@aws-cdk/aws-logs.IFilterPattern"
3545 }
3546 },
3547 "static": true,
3548 "variadic": true
3549 },
3550 {
3551 "docs": {
3552 "stability": "stable",
3553 "summary": "A JSON log pattern that matches if the field exists and equals the boolean value."
3554 },
3555 "locationInModule": {
3556 "filename": "lib/pattern.ts",
3557 "line": 155
3558 },
3559 "name": "booleanValue",
3560 "parameters": [
3561 {
3562 "docs": {
3563 "remarks": "Example: \"$.myField\"",
3564 "summary": "Field inside JSON."
3565 },
3566 "name": "jsonField",
3567 "type": {
3568 "primitive": "string"
3569 }
3570 },
3571 {
3572 "docs": {
3573 "summary": "The value to match."
3574 },
3575 "name": "value",
3576 "type": {
3577 "primitive": "boolean"
3578 }
3579 }
3580 ],
3581 "returns": {
3582 "type": {
3583 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3584 }
3585 },
3586 "static": true
3587 },
3588 {
3589 "docs": {
3590 "remarks": "This is a readable convenience wrapper over 'field = *'",
3591 "stability": "stable",
3592 "summary": "A JSON log patter that matches if the field exists."
3593 },
3594 "locationInModule": {
3595 "filename": "lib/pattern.ts",
3596 "line": 145
3597 },
3598 "name": "exists",
3599 "parameters": [
3600 {
3601 "docs": {
3602 "remarks": "Example: \"$.myField\"",
3603 "summary": "Field inside JSON."
3604 },
3605 "name": "jsonField",
3606 "type": {
3607 "primitive": "string"
3608 }
3609 }
3610 ],
3611 "returns": {
3612 "type": {
3613 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3614 }
3615 },
3616 "static": true
3617 },
3618 {
3619 "docs": {
3620 "stability": "stable",
3621 "summary": "A JSON log pattern that matches if the field exists and has the special value 'null'."
3622 },
3623 "locationInModule": {
3624 "filename": "lib/pattern.ts",
3625 "line": 125
3626 },
3627 "name": "isNull",
3628 "parameters": [
3629 {
3630 "docs": {
3631 "remarks": "Example: \"$.myField\"",
3632 "summary": "Field inside JSON."
3633 },
3634 "name": "jsonField",
3635 "type": {
3636 "primitive": "string"
3637 }
3638 }
3639 ],
3640 "returns": {
3641 "type": {
3642 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3643 }
3644 },
3645 "static": true
3646 },
3647 {
3648 "docs": {
3649 "remarks": "See https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html\nfor information on writing log patterns.",
3650 "stability": "stable",
3651 "summary": "Use the given string as log pattern."
3652 },
3653 "locationInModule": {
3654 "filename": "lib/pattern.ts",
3655 "line": 36
3656 },
3657 "name": "literal",
3658 "parameters": [
3659 {
3660 "docs": {
3661 "summary": "The pattern string to use."
3662 },
3663 "name": "logPatternString",
3664 "type": {
3665 "primitive": "string"
3666 }
3667 }
3668 ],
3669 "returns": {
3670 "type": {
3671 "fqn": "@aws-cdk/aws-logs.IFilterPattern"
3672 }
3673 },
3674 "static": true
3675 },
3676 {
3677 "docs": {
3678 "stability": "stable",
3679 "summary": "A JSON log pattern that matches if the field does not exist."
3680 },
3681 "locationInModule": {
3682 "filename": "lib/pattern.ts",
3683 "line": 134
3684 },
3685 "name": "notExists",
3686 "parameters": [
3687 {
3688 "docs": {
3689 "remarks": "Example: \"$.myField\"",
3690 "summary": "Field inside JSON."
3691 },
3692 "name": "jsonField",
3693 "type": {
3694 "primitive": "string"
3695 }
3696 }
3697 ],
3698 "returns": {
3699 "type": {
3700 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3701 }
3702 },
3703 "static": true
3704 },
3705 {
3706 "docs": {
3707 "remarks": "This pattern only matches if the event is a JSON event, and the indicated field inside\ncompares with the value in the indicated way.\n\nUse '$' to indicate the root of the JSON structure. The comparison operator can only\ncompare equality or inequality. The '*' wildcard may appear in the value may at the\nstart or at the end.\n\nFor more information, see:\n\nhttps://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html",
3708 "stability": "stable",
3709 "summary": "A JSON log pattern that compares numerical values."
3710 },
3711 "locationInModule": {
3712 "filename": "lib/pattern.ts",
3713 "line": 116
3714 },
3715 "name": "numberValue",
3716 "parameters": [
3717 {
3718 "docs": {
3719 "remarks": "Example: \"$.myField\"",
3720 "summary": "Field inside JSON."
3721 },
3722 "name": "jsonField",
3723 "type": {
3724 "primitive": "string"
3725 }
3726 },
3727 {
3728 "docs": {
3729 "remarks": "One of =, !=, <, <=, >, >=.",
3730 "summary": "Comparison to carry out."
3731 },
3732 "name": "comparison",
3733 "type": {
3734 "primitive": "string"
3735 }
3736 },
3737 {
3738 "docs": {
3739 "summary": "The numerical value to compare to."
3740 },
3741 "name": "value",
3742 "type": {
3743 "primitive": "number"
3744 }
3745 }
3746 ],
3747 "returns": {
3748 "type": {
3749 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3750 }
3751 },
3752 "static": true
3753 },
3754 {
3755 "docs": {
3756 "remarks": "The log event is divided into space-delimited columns (optionally\nenclosed by \"\" or [] to capture spaces into column values), and names\nare given to each column.\n\n'...' may be specified once to match any number of columns.\n\nAfterwards, conditions may be added to individual columns.",
3757 "stability": "stable",
3758 "summary": "A space delimited log pattern matcher."
3759 },
3760 "locationInModule": {
3761 "filename": "lib/pattern.ts",
3762 "line": 190
3763 },
3764 "name": "spaceDelimited",
3765 "parameters": [
3766 {
3767 "docs": {
3768 "summary": "The columns in the space-delimited log stream."
3769 },
3770 "name": "columns",
3771 "type": {
3772 "primitive": "string"
3773 },
3774 "variadic": true
3775 }
3776 ],
3777 "returns": {
3778 "type": {
3779 "fqn": "@aws-cdk/aws-logs.SpaceDelimitedTextPattern"
3780 }
3781 },
3782 "static": true,
3783 "variadic": true
3784 },
3785 {
3786 "docs": {
3787 "remarks": "This pattern only matches if the event is a JSON event, and the indicated field inside\ncompares with the string value.\n\nUse '$' to indicate the root of the JSON structure. The comparison operator can only\ncompare equality or inequality. The '*' wildcard may appear in the value may at the\nstart or at the end.\n\nFor more information, see:\n\nhttps://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html",
3788 "stability": "stable",
3789 "summary": "A JSON log pattern that compares string values."
3790 },
3791 "locationInModule": {
3792 "filename": "lib/pattern.ts",
3793 "line": 94
3794 },
3795 "name": "stringValue",
3796 "parameters": [
3797 {
3798 "docs": {
3799 "remarks": "Example: \"$.myField\"",
3800 "summary": "Field inside JSON."
3801 },
3802 "name": "jsonField",
3803 "type": {
3804 "primitive": "string"
3805 }
3806 },
3807 {
3808 "docs": {
3809 "remarks": "Either = or !=.",
3810 "summary": "Comparison to carry out."
3811 },
3812 "name": "comparison",
3813 "type": {
3814 "primitive": "string"
3815 }
3816 },
3817 {
3818 "docs": {
3819 "remarks": "May use '*' as wildcard at start or end of string.",
3820 "summary": "The string value to compare to."
3821 },
3822 "name": "value",
3823 "type": {
3824 "primitive": "string"
3825 }
3826 }
3827 ],
3828 "returns": {
3829 "type": {
3830 "fqn": "@aws-cdk/aws-logs.JsonPattern"
3831 }
3832 },
3833 "static": true
3834 }
3835 ],
3836 "name": "FilterPattern",
3837 "symbolId": "lib/pattern:FilterPattern"
3838 },
3839 "@aws-cdk/aws-logs.IFilterPattern": {
3840 "assembly": "@aws-cdk/aws-logs",
3841 "docs": {
3842 "stability": "stable",
3843 "summary": "Interface for objects that can render themselves to log patterns."
3844 },
3845 "fqn": "@aws-cdk/aws-logs.IFilterPattern",
3846 "kind": "interface",
3847 "locationInModule": {
3848 "filename": "lib/pattern.ts",
3849 "line": 6
3850 },
3851 "name": "IFilterPattern",
3852 "properties": [
3853 {
3854 "abstract": true,
3855 "docs": {
3856 "stability": "stable"
3857 },
3858 "immutable": true,
3859 "locationInModule": {
3860 "filename": "lib/pattern.ts",
3861 "line": 7
3862 },
3863 "name": "logPatternString",
3864 "type": {
3865 "primitive": "string"
3866 }
3867 }
3868 ],
3869 "symbolId": "lib/pattern:IFilterPattern"
3870 },
3871 "@aws-cdk/aws-logs.ILogGroup": {
3872 "assembly": "@aws-cdk/aws-logs",
3873 "docs": {
3874 "stability": "stable"
3875 },
3876 "fqn": "@aws-cdk/aws-logs.ILogGroup",
3877 "interfaces": [
3878 "@aws-cdk/aws-iam.IResourceWithPolicy"
3879 ],
3880 "kind": "interface",
3881 "locationInModule": {
3882 "filename": "lib/log-group.ts",
3883 "line": 13
3884 },
3885 "methods": [
3886 {
3887 "abstract": true,
3888 "docs": {
3889 "stability": "stable",
3890 "summary": "Create a new Metric Filter on this Log Group."
3891 },
3892 "locationInModule": {
3893 "filename": "lib/log-group.ts",
3894 "line": 49
3895 },
3896 "name": "addMetricFilter",
3897 "parameters": [
3898 {
3899 "docs": {
3900 "summary": "Unique identifier for the construct in its parent."
3901 },
3902 "name": "id",
3903 "type": {
3904 "primitive": "string"
3905 }
3906 },
3907 {
3908 "docs": {
3909 "summary": "Properties for creating the MetricFilter."
3910 },
3911 "name": "props",
3912 "type": {
3913 "fqn": "@aws-cdk/aws-logs.MetricFilterOptions"
3914 }
3915 }
3916 ],
3917 "returns": {
3918 "type": {
3919 "fqn": "@aws-cdk/aws-logs.MetricFilter"
3920 }
3921 }
3922 },
3923 {
3924 "abstract": true,
3925 "docs": {
3926 "stability": "stable",
3927 "summary": "Create a new Log Stream for this Log Group."
3928 },
3929 "locationInModule": {
3930 "filename": "lib/log-group.ts",
3931 "line": 33
3932 },
3933 "name": "addStream",
3934 "parameters": [
3935 {
3936 "docs": {
3937 "summary": "Unique identifier for the construct in its parent."
3938 },
3939 "name": "id",
3940 "type": {
3941 "primitive": "string"
3942 }
3943 },
3944 {
3945 "docs": {
3946 "summary": "Properties for creating the LogStream."
3947 },
3948 "name": "props",
3949 "optional": true,
3950 "type": {
3951 "fqn": "@aws-cdk/aws-logs.StreamOptions"
3952 }
3953 }
3954 ],
3955 "returns": {
3956 "type": {
3957 "fqn": "@aws-cdk/aws-logs.LogStream"
3958 }
3959 }
3960 },
3961 {
3962 "abstract": true,
3963 "docs": {
3964 "stability": "stable",
3965 "summary": "Create a new Subscription Filter on this Log Group."
3966 },
3967 "locationInModule": {
3968 "filename": "lib/log-group.ts",
3969 "line": 41
3970 },
3971 "name": "addSubscriptionFilter",
3972 "parameters": [
3973 {
3974 "docs": {
3975 "summary": "Unique identifier for the construct in its parent."
3976 },
3977 "name": "id",
3978 "type": {
3979 "primitive": "string"
3980 }
3981 },
3982 {
3983 "docs": {
3984 "summary": "Properties for creating the SubscriptionFilter."
3985 },
3986 "name": "props",
3987 "type": {
3988 "fqn": "@aws-cdk/aws-logs.SubscriptionFilterOptions"
3989 }
3990 }
3991 ],
3992 "returns": {
3993 "type": {
3994 "fqn": "@aws-cdk/aws-logs.SubscriptionFilter"
3995 }
3996 }
3997 },
3998 {
3999 "abstract": true,
4000 "docs": {
4001 "remarks": "Creates a MetricFilter on this LogGroup that will extract the value\nof the indicated JSON field in all records where it occurs.\n\nThe metric will be available in CloudWatch Metrics under the\nindicated namespace and name.",
4002 "returns": "A Metric object representing the extracted metric",
4003 "stability": "stable",
4004 "summary": "Extract a metric from structured log events in the LogGroup."
4005 },
4006 "locationInModule": {
4007 "filename": "lib/log-group.ts",
4008 "line": 65
4009 },
4010 "name": "extractMetric",
4011 "parameters": [
4012 {
4013 "docs": {
4014 "summary": "JSON field to extract (example: '$.myfield')."
4015 },
4016 "name": "jsonField",
4017 "type": {
4018 "primitive": "string"
4019 }
4020 },
4021 {
4022 "docs": {
4023 "summary": "Namespace to emit the metric under."
4024 },
4025 "name": "metricNamespace",
4026 "type": {
4027 "primitive": "string"
4028 }
4029 },
4030 {
4031 "docs": {
4032 "summary": "Name to emit the metric under."
4033 },
4034 "name": "metricName",
4035 "type": {
4036 "primitive": "string"
4037 }
4038 }
4039 ],
4040 "returns": {
4041 "type": {
4042 "fqn": "@aws-cdk/aws-cloudwatch.Metric"
4043 }
4044 }
4045 },
4046 {
4047 "abstract": true,
4048 "docs": {
4049 "stability": "stable",
4050 "summary": "Give the indicated permissions on this log group and all streams."
4051 },
4052 "locationInModule": {
4053 "filename": "lib/log-group.ts",
4054 "line": 75
4055 },
4056 "name": "grant",
4057 "parameters": [
4058 {
4059 "name": "grantee",
4060 "type": {
4061 "fqn": "@aws-cdk/aws-iam.IGrantable"
4062 }
4063 },
4064 {
4065 "name": "actions",
4066 "type": {
4067 "primitive": "string"
4068 },
4069 "variadic": true
4070 }
4071 ],
4072 "returns": {
4073 "type": {
4074 "fqn": "@aws-cdk/aws-iam.Grant"
4075 }
4076 },
4077 "variadic": true
4078 },
4079 {
4080 "abstract": true,
4081 "docs": {
4082 "stability": "stable",
4083 "summary": "Give permissions to write to create and write to streams in this log group."
4084 },
4085 "locationInModule": {
4086 "filename": "lib/log-group.ts",
4087 "line": 70
4088 },
4089 "name": "grantWrite",
4090 "parameters": [
4091 {
4092 "name": "grantee",
4093 "type": {
4094 "fqn": "@aws-cdk/aws-iam.IGrantable"
4095 }
4096 }
4097 ],
4098 "returns": {
4099 "type": {
4100 "fqn": "@aws-cdk/aws-iam.Grant"
4101 }
4102 }
4103 },
4104 {
4105 "abstract": true,
4106 "docs": {
4107 "stability": "stable",
4108 "summary": "Public method to get the physical name of this log group."
4109 },
4110 "locationInModule": {
4111 "filename": "lib/log-group.ts",
4112 "line": 80
4113 },
4114 "name": "logGroupPhysicalName",
4115 "returns": {
4116 "type": {
4117 "primitive": "string"
4118 }
4119 }
4120 }
4121 ],
4122 "name": "ILogGroup",
4123 "properties": [
4124 {
4125 "abstract": true,
4126 "docs": {
4127 "custom": {
4128 "attribute": "true"
4129 },
4130 "stability": "stable",
4131 "summary": "The ARN of this log group, with ':*' appended."
4132 },
4133 "immutable": true,
4134 "locationInModule": {
4135 "filename": "lib/log-group.ts",
4136 "line": 19
4137 },
4138 "name": "logGroupArn",
4139 "type": {
4140 "primitive": "string"
4141 }
4142 },
4143 {
4144 "abstract": true,
4145 "docs": {
4146 "custom": {
4147 "attribute": "true"
4148 },
4149 "stability": "stable",
4150 "summary": "The name of this log group."
4151 },
4152 "immutable": true,
4153 "locationInModule": {
4154 "filename": "lib/log-group.ts",
4155 "line": 25
4156 },
4157 "name": "logGroupName",
4158 "type": {
4159 "primitive": "string"
4160 }
4161 }
4162 ],
4163 "symbolId": "lib/log-group:ILogGroup"
4164 },
4165 "@aws-cdk/aws-logs.ILogStream": {
4166 "assembly": "@aws-cdk/aws-logs",
4167 "docs": {
4168 "stability": "stable"
4169 },
4170 "fqn": "@aws-cdk/aws-logs.ILogStream",
4171 "interfaces": [
4172 "@aws-cdk/core.IResource"
4173 ],
4174 "kind": "interface",
4175 "locationInModule": {
4176 "filename": "lib/log-stream.ts",
4177 "line": 6
4178 },
4179 "name": "ILogStream",
4180 "properties": [
4181 {
4182 "abstract": true,
4183 "docs": {
4184 "custom": {
4185 "attribute": "true"
4186 },
4187 "stability": "stable",
4188 "summary": "The name of this log stream."
4189 },
4190 "immutable": true,
4191 "locationInModule": {
4192 "filename": "lib/log-stream.ts",
4193 "line": 11
4194 },
4195 "name": "logStreamName",
4196 "type": {
4197 "primitive": "string"
4198 }
4199 }
4200 ],
4201 "symbolId": "lib/log-stream:ILogStream"
4202 },
4203 "@aws-cdk/aws-logs.ILogSubscriptionDestination": {
4204 "assembly": "@aws-cdk/aws-logs",
4205 "docs": {
4206 "stability": "stable",
4207 "summary": "Interface for classes that can be the destination of a log Subscription."
4208 },
4209 "fqn": "@aws-cdk/aws-logs.ILogSubscriptionDestination",
4210 "kind": "interface",
4211 "locationInModule": {
4212 "filename": "lib/subscription-filter.ts",
4213 "line": 14
4214 },
4215 "methods": [
4216 {
4217 "abstract": true,
4218 "docs": {
4219 "remarks": "If necessary, the destination can use the properties of the SubscriptionFilter\nobject itself to configure its permissions to allow the subscription to write\nto it.\n\nThe destination may reconfigure its own permissions in response to this\nfunction call.",
4220 "stability": "stable",
4221 "summary": "Return the properties required to send subscription events to this destination."
4222 },
4223 "locationInModule": {
4224 "filename": "lib/subscription-filter.ts",
4225 "line": 25
4226 },
4227 "name": "bind",
4228 "parameters": [
4229 {
4230 "name": "scope",
4231 "type": {
4232 "fqn": "@aws-cdk/core.Construct"
4233 }
4234 },
4235 {
4236 "name": "sourceLogGroup",
4237 "type": {
4238 "fqn": "@aws-cdk/aws-logs.ILogGroup"
4239 }
4240 }
4241 ],
4242 "returns": {
4243 "type": {
4244 "fqn": "@aws-cdk/aws-logs.LogSubscriptionDestinationConfig"
4245 }
4246 }
4247 }
4248 ],
4249 "name": "ILogSubscriptionDestination",
4250 "symbolId": "lib/subscription-filter:ILogSubscriptionDestination"
4251 },
4252 "@aws-cdk/aws-logs.JsonPattern": {
4253 "abstract": true,
4254 "assembly": "@aws-cdk/aws-logs",
4255 "docs": {
4256 "stability": "stable",
4257 "summary": "Base class for patterns that only match JSON log events.",
4258 "example": "// Search for all events where the component field is equal to\n// \"HttpServer\" and either error is true or the latency is higher\n// than 1000.\nconst pattern = logs.FilterPattern.all(\n logs.FilterPattern.stringValue('$.component', '=', 'HttpServer'),\n logs.FilterPattern.any(\n logs.FilterPattern.booleanValue('$.error', true),\n logs.FilterPattern.numberValue('$.latency', '>', 1000),\n ),\n);",
4259 "custom": {
4260 "exampleMetadata": "infused"
4261 }
4262 },
4263 "fqn": "@aws-cdk/aws-logs.JsonPattern",
4264 "initializer": {
4265 "docs": {
4266 "stability": "stable"
4267 },
4268 "locationInModule": {
4269 "filename": "lib/pattern.ts",
4270 "line": 16
4271 },
4272 "parameters": [
4273 {
4274 "name": "jsonPatternString",
4275 "type": {
4276 "primitive": "string"
4277 }
4278 }
4279 ]
4280 },
4281 "interfaces": [
4282 "@aws-cdk/aws-logs.IFilterPattern"
4283 ],
4284 "kind": "class",
4285 "locationInModule": {
4286 "filename": "lib/pattern.ts",
4287 "line": 13
4288 },
4289 "name": "JsonPattern",
4290 "properties": [
4291 {
4292 "docs": {
4293 "stability": "stable"
4294 },
4295 "immutable": true,
4296 "locationInModule": {
4297 "filename": "lib/pattern.ts",
4298 "line": 16
4299 },
4300 "name": "jsonPatternString",
4301 "type": {
4302 "primitive": "string"
4303 }
4304 },
4305 {
4306 "docs": {
4307 "stability": "stable"
4308 },
4309 "immutable": true,
4310 "locationInModule": {
4311 "filename": "lib/pattern.ts",
4312 "line": 18
4313 },
4314 "name": "logPatternString",
4315 "overrides": "@aws-cdk/aws-logs.IFilterPattern",
4316 "type": {
4317 "primitive": "string"
4318 }
4319 }
4320 ],
4321 "symbolId": "lib/pattern:JsonPattern"
4322 },
4323 "@aws-cdk/aws-logs.LogGroup": {
4324 "assembly": "@aws-cdk/aws-logs",
4325 "base": "@aws-cdk/core.Resource",
4326 "docs": {
4327 "stability": "stable",
4328 "summary": "Define a CloudWatch Log Group.",
4329 "example": "import * as logs from '@aws-cdk/aws-logs';\n\nconst logGroup = new logs.LogGroup(this, 'Log Group');\nconst logBucket = new s3.Bucket(this, 'S3 Bucket')\n\nnew tasks.EmrContainersStartJobRun(this, 'EMR Containers Start Job Run', {\n virtualCluster: tasks.VirtualClusterInput.fromVirtualClusterId('de92jdei2910fwedz'),\n releaseLabel: tasks.ReleaseLabel.EMR_6_2_0,\n jobDriver: {\n sparkSubmitJobDriver: {\n entryPoint: sfn.TaskInput.fromText('local:///usr/lib/spark/examples/src/main/python/pi.py'),\n sparkSubmitParameters: '--conf spark.executor.instances=2 --conf spark.executor.memory=2G --conf spark.executor.cores=2 --conf spark.driver.cores=1',\n },\n },\n monitoring: {\n logGroup: logGroup,\n logBucket: logBucket,\n },\n});",
4330 "custom": {
4331 "exampleMetadata": "infused"
4332 }
4333 },
4334 "fqn": "@aws-cdk/aws-logs.LogGroup",
4335 "initializer": {
4336 "docs": {
4337 "stability": "stable"
4338 },
4339 "locationInModule": {
4340 "filename": "lib/log-group.ts",
4341 "line": 436
4342 },
4343 "parameters": [
4344 {
4345 "name": "scope",
4346 "type": {
4347 "fqn": "constructs.Construct"
4348 }
4349 },
4350 {
4351 "name": "id",
4352 "type": {
4353 "primitive": "string"
4354 }
4355 },
4356 {
4357 "name": "props",
4358 "optional": true,
4359 "type": {
4360 "fqn": "@aws-cdk/aws-logs.LogGroupProps"
4361 }
4362 }
4363 ]
4364 },
4365 "interfaces": [
4366 "@aws-cdk/aws-logs.ILogGroup"
4367 ],
4368 "kind": "class",
4369 "locationInModule": {
4370 "filename": "lib/log-group.ts",
4371 "line": 390
4372 },
4373 "methods": [
4374 {
4375 "docs": {
4376 "stability": "stable",
4377 "summary": "Import an existing LogGroup given its ARN."
4378 },
4379 "locationInModule": {
4380 "filename": "lib/log-group.ts",
4381 "line": 394
4382 },
4383 "name": "fromLogGroupArn",
4384 "parameters": [
4385 {
4386 "name": "scope",
4387 "type": {
4388 "fqn": "constructs.Construct"
4389 }
4390 },
4391 {
4392 "name": "id",
4393 "type": {
4394 "primitive": "string"
4395 }
4396 },
4397 {
4398 "name": "logGroupArn",
4399 "type": {
4400 "primitive": "string"
4401 }
4402 }
4403 ],
4404 "returns": {
4405 "type": {
4406 "fqn": "@aws-cdk/aws-logs.ILogGroup"
4407 }
4408 },
4409 "static": true
4410 },
4411 {
4412 "docs": {
4413 "stability": "stable",
4414 "summary": "Import an existing LogGroup given its name."
4415 },
4416 "locationInModule": {
4417 "filename": "lib/log-group.ts",
4418 "line": 410
4419 },
4420 "name": "fromLogGroupName",
4421 "parameters": [
4422 {
4423 "name": "scope",
4424 "type": {
4425 "fqn": "constructs.Construct"
4426 }
4427 },
4428 {
4429 "name": "id",
4430 "type": {
4431 "primitive": "string"
4432 }
4433 },
4434 {
4435 "name": "logGroupName",
4436 "type": {
4437 "primitive": "string"
4438 }
4439 }
4440 ],
4441 "returns": {
4442 "type": {
4443 "fqn": "@aws-cdk/aws-logs.ILogGroup"
4444 }
4445 },
4446 "static": true
4447 },
4448 {
4449 "docs": {
4450 "stability": "stable",
4451 "summary": "Create a new Metric Filter on this Log Group."
4452 },
4453 "locationInModule": {
4454 "filename": "lib/log-group.ts",
4455 "line": 132
4456 },
4457 "name": "addMetricFilter",
4458 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4459 "parameters": [
4460 {
4461 "docs": {
4462 "summary": "Unique identifier for the construct in its parent."
4463 },
4464 "name": "id",
4465 "type": {
4466 "primitive": "string"
4467 }
4468 },
4469 {
4470 "docs": {
4471 "summary": "Properties for creating the MetricFilter."
4472 },
4473 "name": "props",
4474 "type": {
4475 "fqn": "@aws-cdk/aws-logs.MetricFilterOptions"
4476 }
4477 }
4478 ],
4479 "returns": {
4480 "type": {
4481 "fqn": "@aws-cdk/aws-logs.MetricFilter"
4482 }
4483 }
4484 },
4485 {
4486 "docs": {
4487 "stability": "stable",
4488 "summary": "Create a new Log Stream for this Log Group."
4489 },
4490 "locationInModule": {
4491 "filename": "lib/log-group.ts",
4492 "line": 106
4493 },
4494 "name": "addStream",
4495 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4496 "parameters": [
4497 {
4498 "docs": {
4499 "summary": "Unique identifier for the construct in its parent."
4500 },
4501 "name": "id",
4502 "type": {
4503 "primitive": "string"
4504 }
4505 },
4506 {
4507 "docs": {
4508 "summary": "Properties for creating the LogStream."
4509 },
4510 "name": "props",
4511 "optional": true,
4512 "type": {
4513 "fqn": "@aws-cdk/aws-logs.StreamOptions"
4514 }
4515 }
4516 ],
4517 "returns": {
4518 "type": {
4519 "fqn": "@aws-cdk/aws-logs.LogStream"
4520 }
4521 }
4522 },
4523 {
4524 "docs": {
4525 "stability": "stable",
4526 "summary": "Create a new Subscription Filter on this Log Group."
4527 },
4528 "locationInModule": {
4529 "filename": "lib/log-group.ts",
4530 "line": 119
4531 },
4532 "name": "addSubscriptionFilter",
4533 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4534 "parameters": [
4535 {
4536 "docs": {
4537 "summary": "Unique identifier for the construct in its parent."
4538 },
4539 "name": "id",
4540 "type": {
4541 "primitive": "string"
4542 }
4543 },
4544 {
4545 "docs": {
4546 "summary": "Properties for creating the SubscriptionFilter."
4547 },
4548 "name": "props",
4549 "type": {
4550 "fqn": "@aws-cdk/aws-logs.SubscriptionFilterOptions"
4551 }
4552 }
4553 ],
4554 "returns": {
4555 "type": {
4556 "fqn": "@aws-cdk/aws-logs.SubscriptionFilter"
4557 }
4558 }
4559 },
4560 {
4561 "docs": {
4562 "remarks": "A resource policy will be automatically created upon the first call to `addToResourcePolicy`.\n\nAny ARN Principals inside of the statement will be converted into AWS Account ID strings\nbecause CloudWatch Logs Resource Policies do not accept ARN principals.",
4563 "stability": "stable",
4564 "summary": "Adds a statement to the resource policy associated with this log group."
4565 },
4566 "locationInModule": {
4567 "filename": "lib/log-group.ts",
4568 "line": 203
4569 },
4570 "name": "addToResourcePolicy",
4571 "overrides": "@aws-cdk/aws-iam.IResourceWithPolicy",
4572 "parameters": [
4573 {
4574 "docs": {
4575 "summary": "The policy statement to add."
4576 },
4577 "name": "statement",
4578 "type": {
4579 "fqn": "@aws-cdk/aws-iam.PolicyStatement"
4580 }
4581 }
4582 ],
4583 "returns": {
4584 "type": {
4585 "fqn": "@aws-cdk/aws-iam.AddToResourcePolicyResult"
4586 }
4587 }
4588 },
4589 {
4590 "docs": {
4591 "remarks": "Creates a MetricFilter on this LogGroup that will extract the value\nof the indicated JSON field in all records where it occurs.\n\nThe metric will be available in CloudWatch Metrics under the\nindicated namespace and name.",
4592 "returns": "A Metric object representing the extracted metric",
4593 "stability": "stable",
4594 "summary": "Extract a metric from structured log events in the LogGroup."
4595 },
4596 "locationInModule": {
4597 "filename": "lib/log-group.ts",
4598 "line": 153
4599 },
4600 "name": "extractMetric",
4601 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4602 "parameters": [
4603 {
4604 "docs": {
4605 "summary": "JSON field to extract (example: '$.myfield')."
4606 },
4607 "name": "jsonField",
4608 "type": {
4609 "primitive": "string"
4610 }
4611 },
4612 {
4613 "docs": {
4614 "summary": "Namespace to emit the metric under."
4615 },
4616 "name": "metricNamespace",
4617 "type": {
4618 "primitive": "string"
4619 }
4620 },
4621 {
4622 "docs": {
4623 "summary": "Name to emit the metric under."
4624 },
4625 "name": "metricName",
4626 "type": {
4627 "primitive": "string"
4628 }
4629 }
4630 ],
4631 "returns": {
4632 "type": {
4633 "fqn": "@aws-cdk/aws-cloudwatch.Metric"
4634 }
4635 }
4636 },
4637 {
4638 "docs": {
4639 "stability": "stable",
4640 "summary": "Give the indicated permissions on this log group and all streams."
4641 },
4642 "locationInModule": {
4643 "filename": "lib/log-group.ts",
4644 "line": 175
4645 },
4646 "name": "grant",
4647 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4648 "parameters": [
4649 {
4650 "name": "grantee",
4651 "type": {
4652 "fqn": "@aws-cdk/aws-iam.IGrantable"
4653 }
4654 },
4655 {
4656 "name": "actions",
4657 "type": {
4658 "primitive": "string"
4659 },
4660 "variadic": true
4661 }
4662 ],
4663 "returns": {
4664 "type": {
4665 "fqn": "@aws-cdk/aws-iam.Grant"
4666 }
4667 },
4668 "variadic": true
4669 },
4670 {
4671 "docs": {
4672 "stability": "stable",
4673 "summary": "Give permissions to create and write to streams in this log group."
4674 },
4675 "locationInModule": {
4676 "filename": "lib/log-group.ts",
4677 "line": 168
4678 },
4679 "name": "grantWrite",
4680 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4681 "parameters": [
4682 {
4683 "name": "grantee",
4684 "type": {
4685 "fqn": "@aws-cdk/aws-iam.IGrantable"
4686 }
4687 }
4688 ],
4689 "returns": {
4690 "type": {
4691 "fqn": "@aws-cdk/aws-iam.Grant"
4692 }
4693 }
4694 },
4695 {
4696 "docs": {
4697 "returns": "Physical name of log group",
4698 "stability": "stable",
4699 "summary": "Public method to get the physical name of this log group."
4700 },
4701 "locationInModule": {
4702 "filename": "lib/log-group.ts",
4703 "line": 190
4704 },
4705 "name": "logGroupPhysicalName",
4706 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4707 "returns": {
4708 "type": {
4709 "primitive": "string"
4710 }
4711 }
4712 }
4713 ],
4714 "name": "LogGroup",
4715 "properties": [
4716 {
4717 "docs": {
4718 "stability": "stable",
4719 "summary": "The ARN of this log group."
4720 },
4721 "immutable": true,
4722 "locationInModule": {
4723 "filename": "lib/log-group.ts",
4724 "line": 429
4725 },
4726 "name": "logGroupArn",
4727 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4728 "type": {
4729 "primitive": "string"
4730 }
4731 },
4732 {
4733 "docs": {
4734 "stability": "stable",
4735 "summary": "The name of this log group."
4736 },
4737 "immutable": true,
4738 "locationInModule": {
4739 "filename": "lib/log-group.ts",
4740 "line": 434
4741 },
4742 "name": "logGroupName",
4743 "overrides": "@aws-cdk/aws-logs.ILogGroup",
4744 "type": {
4745 "primitive": "string"
4746 }
4747 }
4748 ],
4749 "symbolId": "lib/log-group:LogGroup"
4750 },
4751 "@aws-cdk/aws-logs.LogGroupProps": {
4752 "assembly": "@aws-cdk/aws-logs",
4753 "datatype": true,
4754 "docs": {
4755 "stability": "stable",
4756 "summary": "Properties for a LogGroup.",
4757 "example": "declare const vpc: ec2.Vpc;\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});",
4758 "custom": {
4759 "exampleMetadata": "infused"
4760 }
4761 },
4762 "fqn": "@aws-cdk/aws-logs.LogGroupProps",
4763 "kind": "interface",
4764 "locationInModule": {
4765 "filename": "lib/log-group.ts",
4766 "line": 350
4767 },
4768 "name": "LogGroupProps",
4769 "properties": [
4770 {
4771 "abstract": true,
4772 "docs": {
4773 "default": "- log group is encrypted with the default master key",
4774 "stability": "stable",
4775 "summary": "The KMS Key to encrypt the log group with."
4776 },
4777 "immutable": true,
4778 "locationInModule": {
4779 "filename": "lib/log-group.ts",
4780 "line": 356
4781 },
4782 "name": "encryptionKey",
4783 "optional": true,
4784 "type": {
4785 "fqn": "@aws-cdk/aws-kms.IKey"
4786 }
4787 },
4788 {
4789 "abstract": true,
4790 "docs": {
4791 "default": "Automatically generated",
4792 "stability": "stable",
4793 "summary": "Name of the log group."
4794 },
4795 "immutable": true,
4796 "locationInModule": {
4797 "filename": "lib/log-group.ts",
4798 "line": 363
4799 },
4800 "name": "logGroupName",
4801 "optional": true,
4802 "type": {
4803 "primitive": "string"
4804 }
4805 },
4806 {
4807 "abstract": true,
4808 "docs": {
4809 "default": "RemovalPolicy.Retain",
4810 "remarks": "Normally you want to retain the log group so you can diagnose issues\nfrom logs even after a deployment that no longer includes the log group.\nIn that case, use the normal date-based retention policy to age out your\nlogs.",
4811 "stability": "stable",
4812 "summary": "Determine the removal policy of this log group."
4813 },
4814 "immutable": true,
4815 "locationInModule": {
4816 "filename": "lib/log-group.ts",
4817 "line": 384
4818 },
4819 "name": "removalPolicy",
4820 "optional": true,
4821 "type": {
4822 "fqn": "@aws-cdk/core.RemovalPolicy"
4823 }
4824 },
4825 {
4826 "abstract": true,
4827 "docs": {
4828 "default": "RetentionDays.TWO_YEARS",
4829 "remarks": "To retain all logs, set this value to RetentionDays.INFINITE.",
4830 "stability": "stable",
4831 "summary": "How long, in days, the log contents will be retained."
4832 },
4833 "immutable": true,
4834 "locationInModule": {
4835 "filename": "lib/log-group.ts",
4836 "line": 372
4837 },
4838 "name": "retention",
4839 "optional": true,
4840 "type": {
4841 "fqn": "@aws-cdk/aws-logs.RetentionDays"
4842 }
4843 }
4844 ],
4845 "symbolId": "lib/log-group:LogGroupProps"
4846 },
4847 "@aws-cdk/aws-logs.LogRetention": {
4848 "assembly": "@aws-cdk/aws-logs",
4849 "base": "@aws-cdk/core.Construct",
4850 "docs": {
4851 "remarks": "The log group is created if it doesn't already exist. The policy\nis removed when `retentionDays` is `undefined` or equal to `Infinity`.\nLog group can be created in the region that is different from stack region by\nspecifying `logGroupRegion`",
4852 "stability": "stable",
4853 "summary": "Creates a custom resource to control the retention policy of a CloudWatch Logs log group.",
4854 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as logs from '@aws-cdk/aws-logs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const role: iam.Role;\nconst logRetention = new logs.LogRetention(this, 'MyLogRetention', {\n logGroupName: 'logGroupName',\n retention: logs.RetentionDays.ONE_DAY,\n\n // the properties below are optional\n logGroupRegion: 'logGroupRegion',\n logRetentionRetryOptions: {\n base: cdk.Duration.minutes(30),\n maxRetries: 123,\n },\n role: role,\n});",
4855 "custom": {
4856 "exampleMetadata": "fixture=_generated"
4857 }
4858 },
4859 "fqn": "@aws-cdk/aws-logs.LogRetention",
4860 "initializer": {
4861 "docs": {
4862 "stability": "stable"
4863 },
4864 "locationInModule": {
4865 "filename": "lib/log-retention.ts",
4866 "line": 83
4867 },
4868 "parameters": [
4869 {
4870 "name": "scope",
4871 "type": {
4872 "fqn": "constructs.Construct"
4873 }
4874 },
4875 {
4876 "name": "id",
4877 "type": {
4878 "primitive": "string"
4879 }
4880 },
4881 {
4882 "name": "props",
4883 "type": {
4884 "fqn": "@aws-cdk/aws-logs.LogRetentionProps"
4885 }
4886 }
4887 ]
4888 },
4889 "kind": "class",
4890 "locationInModule": {
4891 "filename": "lib/log-retention.ts",
4892 "line": 76
4893 },
4894 "name": "LogRetention",
4895 "properties": [
4896 {
4897 "docs": {
4898 "stability": "stable",
4899 "summary": "The ARN of the LogGroup."
4900 },
4901 "immutable": true,
4902 "locationInModule": {
4903 "filename": "lib/log-retention.ts",
4904 "line": 81
4905 },
4906 "name": "logGroupArn",
4907 "type": {
4908 "primitive": "string"
4909 }
4910 }
4911 ],
4912 "symbolId": "lib/log-retention:LogRetention"
4913 },
4914 "@aws-cdk/aws-logs.LogRetentionProps": {
4915 "assembly": "@aws-cdk/aws-logs",
4916 "datatype": true,
4917 "docs": {
4918 "stability": "stable",
4919 "summary": "Construction properties for a LogRetention.",
4920 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as logs from '@aws-cdk/aws-logs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const role: iam.Role;\nconst logRetentionProps: logs.LogRetentionProps = {\n logGroupName: 'logGroupName',\n retention: logs.RetentionDays.ONE_DAY,\n\n // the properties below are optional\n logGroupRegion: 'logGroupRegion',\n logRetentionRetryOptions: {\n base: cdk.Duration.minutes(30),\n maxRetries: 123,\n },\n role: role,\n};",
4921 "custom": {
4922 "exampleMetadata": "fixture=_generated"
4923 }
4924 },
4925 "fqn": "@aws-cdk/aws-logs.LogRetentionProps",
4926 "kind": "interface",
4927 "locationInModule": {
4928 "filename": "lib/log-retention.ts",
4929 "line": 19
4930 },
4931 "name": "LogRetentionProps",
4932 "properties": [
4933 {
4934 "abstract": true,
4935 "docs": {
4936 "stability": "stable",
4937 "summary": "The log group name."
4938 },
4939 "immutable": true,
4940 "locationInModule": {
4941 "filename": "lib/log-retention.ts",
4942 "line": 23
4943 },
4944 "name": "logGroupName",
4945 "type": {
4946 "primitive": "string"
4947 }
4948 },
4949 {
4950 "abstract": true,
4951 "docs": {
4952 "stability": "stable",
4953 "summary": "The number of days log events are kept in CloudWatch Logs."
4954 },
4955 "immutable": true,
4956 "locationInModule": {
4957 "filename": "lib/log-retention.ts",
4958 "line": 34
4959 },
4960 "name": "retention",
4961 "type": {
4962 "fqn": "@aws-cdk/aws-logs.RetentionDays"
4963 }
4964 },
4965 {
4966 "abstract": true,
4967 "docs": {
4968 "default": "- same region as the stack",
4969 "stability": "stable",
4970 "summary": "The region where the log group should be created."
4971 },
4972 "immutable": true,
4973 "locationInModule": {
4974 "filename": "lib/log-retention.ts",
4975 "line": 29
4976 },
4977 "name": "logGroupRegion",
4978 "optional": true,
4979 "type": {
4980 "primitive": "string"
4981 }
4982 },
4983 {
4984 "abstract": true,
4985 "docs": {
4986 "default": "- AWS SDK default retry options",
4987 "stability": "stable",
4988 "summary": "Retry options for all AWS API calls."
4989 },
4990 "immutable": true,
4991 "locationInModule": {
4992 "filename": "lib/log-retention.ts",
4993 "line": 48
4994 },
4995 "name": "logRetentionRetryOptions",
4996 "optional": true,
4997 "type": {
4998 "fqn": "@aws-cdk/aws-logs.LogRetentionRetryOptions"
4999 }
5000 },
5001 {
5002 "abstract": true,
5003 "docs": {
5004 "default": "- A new role is created",
5005 "stability": "stable",
5006 "summary": "The IAM role for the Lambda function associated with the custom resource."
5007 },
5008 "immutable": true,
5009 "locationInModule": {
5010 "filename": "lib/log-retention.ts",
5011 "line": 41
5012 },
5013 "name": "role",
5014 "optional": true,
5015 "type": {
5016 "fqn": "@aws-cdk/aws-iam.IRole"
5017 }
5018 }
5019 ],
5020 "symbolId": "lib/log-retention:LogRetentionProps"
5021 },
5022 "@aws-cdk/aws-logs.LogRetentionRetryOptions": {
5023 "assembly": "@aws-cdk/aws-logs",
5024 "datatype": true,
5025 "docs": {
5026 "stability": "stable",
5027 "summary": "Retry options for all AWS API calls.",
5028 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nimport * as cdk from '@aws-cdk/core';\nconst logRetentionRetryOptions: logs.LogRetentionRetryOptions = {\n base: cdk.Duration.minutes(30),\n maxRetries: 123,\n};",
5029 "custom": {
5030 "exampleMetadata": "fixture=_generated"
5031 }
5032 },
5033 "fqn": "@aws-cdk/aws-logs.LogRetentionRetryOptions",
5034 "kind": "interface",
5035 "locationInModule": {
5036 "filename": "lib/log-retention.ts",
5037 "line": 54
5038 },
5039 "name": "LogRetentionRetryOptions",
5040 "properties": [
5041 {
5042 "abstract": true,
5043 "docs": {
5044 "default": "Duration.millis(100) (AWS SDK default)",
5045 "stability": "stable",
5046 "summary": "The base duration to use in the exponential backoff for operation retries."
5047 },
5048 "immutable": true,
5049 "locationInModule": {
5050 "filename": "lib/log-retention.ts",
5051 "line": 66
5052 },
5053 "name": "base",
5054 "optional": true,
5055 "type": {
5056 "fqn": "@aws-cdk/core.Duration"
5057 }
5058 },
5059 {
5060 "abstract": true,
5061 "docs": {
5062 "default": "3 (AWS SDK default)",
5063 "stability": "stable",
5064 "summary": "The maximum amount of retries."
5065 },
5066 "immutable": true,
5067 "locationInModule": {
5068 "filename": "lib/log-retention.ts",
5069 "line": 60
5070 },
5071 "name": "maxRetries",
5072 "optional": true,
5073 "type": {
5074 "primitive": "number"
5075 }
5076 }
5077 ],
5078 "symbolId": "lib/log-retention:LogRetentionRetryOptions"
5079 },
5080 "@aws-cdk/aws-logs.LogStream": {
5081 "assembly": "@aws-cdk/aws-logs",
5082 "base": "@aws-cdk/core.Resource",
5083 "docs": {
5084 "stability": "stable",
5085 "summary": "Define a Log Stream in a Log Group.",
5086 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const logGroup: logs.LogGroup;\nconst logStream = new logs.LogStream(this, 'MyLogStream', {\n logGroup: logGroup,\n\n // the properties below are optional\n logStreamName: 'logStreamName',\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n});",
5087 "custom": {
5088 "exampleMetadata": "fixture=_generated"
5089 }
5090 },
5091 "fqn": "@aws-cdk/aws-logs.LogStream",
5092 "initializer": {
5093 "docs": {
5094 "stability": "stable"
5095 },
5096 "locationInModule": {
5097 "filename": "lib/log-stream.ts",
5098 "line": 67
5099 },
5100 "parameters": [
5101 {
5102 "name": "scope",
5103 "type": {
5104 "fqn": "constructs.Construct"
5105 }
5106 },
5107 {
5108 "name": "id",
5109 "type": {
5110 "primitive": "string"
5111 }
5112 },
5113 {
5114 "name": "props",
5115 "type": {
5116 "fqn": "@aws-cdk/aws-logs.LogStreamProps"
5117 }
5118 }
5119 ]
5120 },
5121 "interfaces": [
5122 "@aws-cdk/aws-logs.ILogStream"
5123 ],
5124 "kind": "class",
5125 "locationInModule": {
5126 "filename": "lib/log-stream.ts",
5127 "line": 50
5128 },
5129 "methods": [
5130 {
5131 "docs": {
5132 "stability": "stable",
5133 "summary": "Import an existing LogGroup."
5134 },
5135 "locationInModule": {
5136 "filename": "lib/log-stream.ts",
5137 "line": 54
5138 },
5139 "name": "fromLogStreamName",
5140 "parameters": [
5141 {
5142 "name": "scope",
5143 "type": {
5144 "fqn": "constructs.Construct"
5145 }
5146 },
5147 {
5148 "name": "id",
5149 "type": {
5150 "primitive": "string"
5151 }
5152 },
5153 {
5154 "name": "logStreamName",
5155 "type": {
5156 "primitive": "string"
5157 }
5158 }
5159 ],
5160 "returns": {
5161 "type": {
5162 "fqn": "@aws-cdk/aws-logs.ILogStream"
5163 }
5164 },
5165 "static": true
5166 }
5167 ],
5168 "name": "LogStream",
5169 "properties": [
5170 {
5171 "docs": {
5172 "stability": "stable",
5173 "summary": "The name of this log stream."
5174 },
5175 "immutable": true,
5176 "locationInModule": {
5177 "filename": "lib/log-stream.ts",
5178 "line": 65
5179 },
5180 "name": "logStreamName",
5181 "overrides": "@aws-cdk/aws-logs.ILogStream",
5182 "type": {
5183 "primitive": "string"
5184 }
5185 }
5186 ],
5187 "symbolId": "lib/log-stream:LogStream"
5188 },
5189 "@aws-cdk/aws-logs.LogStreamProps": {
5190 "assembly": "@aws-cdk/aws-logs",
5191 "datatype": true,
5192 "docs": {
5193 "stability": "stable",
5194 "summary": "Properties for a LogStream.",
5195 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const logGroup: logs.LogGroup;\nconst logStreamProps: logs.LogStreamProps = {\n logGroup: logGroup,\n\n // the properties below are optional\n logStreamName: 'logStreamName',\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n};",
5196 "custom": {
5197 "exampleMetadata": "fixture=_generated"
5198 }
5199 },
5200 "fqn": "@aws-cdk/aws-logs.LogStreamProps",
5201 "kind": "interface",
5202 "locationInModule": {
5203 "filename": "lib/log-stream.ts",
5204 "line": 17
5205 },
5206 "name": "LogStreamProps",
5207 "properties": [
5208 {
5209 "abstract": true,
5210 "docs": {
5211 "stability": "stable",
5212 "summary": "The log group to create a log stream for."
5213 },
5214 "immutable": true,
5215 "locationInModule": {
5216 "filename": "lib/log-stream.ts",
5217 "line": 21
5218 },
5219 "name": "logGroup",
5220 "type": {
5221 "fqn": "@aws-cdk/aws-logs.ILogGroup"
5222 }
5223 },
5224 {
5225 "abstract": true,
5226 "docs": {
5227 "default": "Automatically generated",
5228 "remarks": "The name must be unique within the log group.",
5229 "stability": "stable",
5230 "summary": "The name of the log stream to create."
5231 },
5232 "immutable": true,
5233 "locationInModule": {
5234 "filename": "lib/log-stream.ts",
5235 "line": 30
5236 },
5237 "name": "logStreamName",
5238 "optional": true,
5239 "type": {
5240 "primitive": "string"
5241 }
5242 },
5243 {
5244 "abstract": true,
5245 "docs": {
5246 "default": "RemovalPolicy.Retain",
5247 "remarks": "Normally you want to retain the log stream so you can diagnose issues from\nlogs even after a deployment that no longer includes the log stream.\n\nThe date-based retention policy of your log group will age out the logs\nafter a certain time.",
5248 "stability": "stable",
5249 "summary": "Determine what happens when the log stream resource is removed from the app."
5250 },
5251 "immutable": true,
5252 "locationInModule": {
5253 "filename": "lib/log-stream.ts",
5254 "line": 44
5255 },
5256 "name": "removalPolicy",
5257 "optional": true,
5258 "type": {
5259 "fqn": "@aws-cdk/core.RemovalPolicy"
5260 }
5261 }
5262 ],
5263 "symbolId": "lib/log-stream:LogStreamProps"
5264 },
5265 "@aws-cdk/aws-logs.LogSubscriptionDestinationConfig": {
5266 "assembly": "@aws-cdk/aws-logs",
5267 "datatype": true,
5268 "docs": {
5269 "stability": "stable",
5270 "summary": "Properties returned by a Subscription destination.",
5271 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const role: iam.Role;\nconst logSubscriptionDestinationConfig: logs.LogSubscriptionDestinationConfig = {\n arn: 'arn',\n\n // the properties below are optional\n role: role,\n};",
5272 "custom": {
5273 "exampleMetadata": "fixture=_generated"
5274 }
5275 },
5276 "fqn": "@aws-cdk/aws-logs.LogSubscriptionDestinationConfig",
5277 "kind": "interface",
5278 "locationInModule": {
5279 "filename": "lib/subscription-filter.ts",
5280 "line": 31
5281 },
5282 "name": "LogSubscriptionDestinationConfig",
5283 "properties": [
5284 {
5285 "abstract": true,
5286 "docs": {
5287 "stability": "stable",
5288 "summary": "The ARN of the subscription's destination."
5289 },
5290 "immutable": true,
5291 "locationInModule": {
5292 "filename": "lib/subscription-filter.ts",
5293 "line": 35
5294 },
5295 "name": "arn",
5296 "type": {
5297 "primitive": "string"
5298 }
5299 },
5300 {
5301 "abstract": true,
5302 "docs": {
5303 "default": "No role assumed",
5304 "stability": "stable",
5305 "summary": "The role to assume to write log events to the destination."
5306 },
5307 "immutable": true,
5308 "locationInModule": {
5309 "filename": "lib/subscription-filter.ts",
5310 "line": 42
5311 },
5312 "name": "role",
5313 "optional": true,
5314 "type": {
5315 "fqn": "@aws-cdk/aws-iam.IRole"
5316 }
5317 }
5318 ],
5319 "symbolId": "lib/subscription-filter:LogSubscriptionDestinationConfig"
5320 },
5321 "@aws-cdk/aws-logs.MetricFilter": {
5322 "assembly": "@aws-cdk/aws-logs",
5323 "base": "@aws-cdk/core.Resource",
5324 "docs": {
5325 "stability": "stable",
5326 "summary": "A filter that extracts information from CloudWatch Logs and emits to CloudWatch Metrics.",
5327 "example": "new MetricFilter(this, 'MetricFilter', {\n logGroup,\n metricNamespace: 'MyApp',\n metricName: 'Latency',\n filterPattern: FilterPattern.exists('$.latency'),\n metricValue: '$.latency',\n});",
5328 "custom": {
5329 "exampleMetadata": "lit=test/integ.metricfilter.lit.ts infused"
5330 }
5331 },
5332 "fqn": "@aws-cdk/aws-logs.MetricFilter",
5333 "initializer": {
5334 "docs": {
5335 "stability": "stable"
5336 },
5337 "locationInModule": {
5338 "filename": "lib/metric-filter.ts",
5339 "line": 25
5340 },
5341 "parameters": [
5342 {
5343 "name": "scope",
5344 "type": {
5345 "fqn": "constructs.Construct"
5346 }
5347 },
5348 {
5349 "name": "id",
5350 "type": {
5351 "primitive": "string"
5352 }
5353 },
5354 {
5355 "name": "props",
5356 "type": {
5357 "fqn": "@aws-cdk/aws-logs.MetricFilterProps"
5358 }
5359 }
5360 ]
5361 },
5362 "kind": "class",
5363 "locationInModule": {
5364 "filename": "lib/metric-filter.ts",
5365 "line": 20
5366 },
5367 "methods": [
5368 {
5369 "docs": {
5370 "default": "avg over 5 minutes",
5371 "stability": "stable",
5372 "summary": "Return the given named metric for this Metric Filter."
5373 },
5374 "locationInModule": {
5375 "filename": "lib/metric-filter.ts",
5376 "line": 56
5377 },
5378 "name": "metric",
5379 "parameters": [
5380 {
5381 "name": "props",
5382 "optional": true,
5383 "type": {
5384 "fqn": "@aws-cdk/aws-cloudwatch.MetricOptions"
5385 }
5386 }
5387 ],
5388 "returns": {
5389 "type": {
5390 "fqn": "@aws-cdk/aws-cloudwatch.Metric"
5391 }
5392 }
5393 }
5394 ],
5395 "name": "MetricFilter",
5396 "symbolId": "lib/metric-filter:MetricFilter"
5397 },
5398 "@aws-cdk/aws-logs.MetricFilterOptions": {
5399 "assembly": "@aws-cdk/aws-logs",
5400 "datatype": true,
5401 "docs": {
5402 "stability": "stable",
5403 "summary": "Properties for a MetricFilter created from a LogGroup.",
5404 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const filterPattern: logs.IFilterPattern;\nconst metricFilterOptions: logs.MetricFilterOptions = {\n filterPattern: filterPattern,\n metricName: 'metricName',\n metricNamespace: 'metricNamespace',\n\n // the properties below are optional\n defaultValue: 123,\n metricValue: 'metricValue',\n};",
5405 "custom": {
5406 "exampleMetadata": "fixture=_generated"
5407 }
5408 },
5409 "fqn": "@aws-cdk/aws-logs.MetricFilterOptions",
5410 "kind": "interface",
5411 "locationInModule": {
5412 "filename": "lib/log-group.ts",
5413 "line": 501
5414 },
5415 "name": "MetricFilterOptions",
5416 "properties": [
5417 {
5418 "abstract": true,
5419 "docs": {
5420 "stability": "stable",
5421 "summary": "Pattern to search for log events."
5422 },
5423 "immutable": true,
5424 "locationInModule": {
5425 "filename": "lib/log-group.ts",
5426 "line": 505
5427 },
5428 "name": "filterPattern",
5429 "type": {
5430 "fqn": "@aws-cdk/aws-logs.IFilterPattern"
5431 }
5432 },
5433 {
5434 "abstract": true,
5435 "docs": {
5436 "stability": "stable",
5437 "summary": "The name of the metric to emit."
5438 },
5439 "immutable": true,
5440 "locationInModule": {
5441 "filename": "lib/log-group.ts",
5442 "line": 515
5443 },
5444 "name": "metricName",
5445 "type": {
5446 "primitive": "string"
5447 }
5448 },
5449 {
5450 "abstract": true,
5451 "docs": {
5452 "stability": "stable",
5453 "summary": "The namespace of the metric to emit."
5454 },
5455 "immutable": true,
5456 "locationInModule": {
5457 "filename": "lib/log-group.ts",
5458 "line": 510
5459 },
5460 "name": "metricNamespace",
5461 "type": {
5462 "primitive": "string"
5463 }
5464 },
5465 {
5466 "abstract": true,
5467 "docs": {
5468 "default": "No metric emitted.",
5469 "stability": "stable",
5470 "summary": "The value to emit if the pattern does not match a particular event."
5471 },
5472 "immutable": true,
5473 "locationInModule": {
5474 "filename": "lib/log-group.ts",
5475 "line": 539
5476 },
5477 "name": "defaultValue",
5478 "optional": true,
5479 "type": {
5480 "primitive": "number"
5481 }
5482 },
5483 {
5484 "abstract": true,
5485 "docs": {
5486 "default": "\"1\"",
5487 "remarks": "Can either be a literal number (typically \"1\"), or the name of a field in the structure\nto take the value from the matched event. If you are using a field value, the field\nvalue must have been matched using the pattern.\n\nIf you want to specify a field from a matched JSON structure, use '$.fieldName',\nand make sure the field is in the pattern (if only as '$.fieldName = *').\n\nIf you want to specify a field from a matched space-delimited structure,\nuse '$fieldName'.",
5488 "stability": "stable",
5489 "summary": "The value to emit for the metric."
5490 },
5491 "immutable": true,
5492 "locationInModule": {
5493 "filename": "lib/log-group.ts",
5494 "line": 532
5495 },
5496 "name": "metricValue",
5497 "optional": true,
5498 "type": {
5499 "primitive": "string"
5500 }
5501 }
5502 ],
5503 "symbolId": "lib/log-group:MetricFilterOptions"
5504 },
5505 "@aws-cdk/aws-logs.MetricFilterProps": {
5506 "assembly": "@aws-cdk/aws-logs",
5507 "datatype": true,
5508 "docs": {
5509 "stability": "stable",
5510 "summary": "Properties for a MetricFilter.",
5511 "example": "new MetricFilter(this, 'MetricFilter', {\n logGroup,\n metricNamespace: 'MyApp',\n metricName: 'Latency',\n filterPattern: FilterPattern.exists('$.latency'),\n metricValue: '$.latency',\n});",
5512 "custom": {
5513 "exampleMetadata": "lit=test/integ.metricfilter.lit.ts infused"
5514 }
5515 },
5516 "fqn": "@aws-cdk/aws-logs.MetricFilterProps",
5517 "interfaces": [
5518 "@aws-cdk/aws-logs.MetricFilterOptions"
5519 ],
5520 "kind": "interface",
5521 "locationInModule": {
5522 "filename": "lib/metric-filter.ts",
5523 "line": 10
5524 },
5525 "name": "MetricFilterProps",
5526 "properties": [
5527 {
5528 "abstract": true,
5529 "docs": {
5530 "stability": "stable",
5531 "summary": "The log group to create the filter on."
5532 },
5533 "immutable": true,
5534 "locationInModule": {
5535 "filename": "lib/metric-filter.ts",
5536 "line": 14
5537 },
5538 "name": "logGroup",
5539 "type": {
5540 "fqn": "@aws-cdk/aws-logs.ILogGroup"
5541 }
5542 }
5543 ],
5544 "symbolId": "lib/metric-filter:MetricFilterProps"
5545 },
5546 "@aws-cdk/aws-logs.QueryDefinition": {
5547 "assembly": "@aws-cdk/aws-logs",
5548 "base": "@aws-cdk/core.Resource",
5549 "docs": {
5550 "stability": "stable",
5551 "summary": "Define a query definition for CloudWatch Logs Insights.",
5552 "example": "new logs.QueryDefinition(this, 'QueryDefinition', {\n queryDefinitionName: 'MyQuery',\n queryString: new logs.QueryString({\n fields: ['@timestamp', '@message'],\n sort: '@timestamp desc',\n limit: 20,\n }),\n});",
5553 "custom": {
5554 "exampleMetadata": "infused"
5555 }
5556 },
5557 "fqn": "@aws-cdk/aws-logs.QueryDefinition",
5558 "initializer": {
5559 "docs": {
5560 "stability": "stable"
5561 },
5562 "locationInModule": {
5563 "filename": "lib/query-definition.ts",
5564 "line": 152
5565 },
5566 "parameters": [
5567 {
5568 "name": "scope",
5569 "type": {
5570 "fqn": "constructs.Construct"
5571 }
5572 },
5573 {
5574 "name": "id",
5575 "type": {
5576 "primitive": "string"
5577 }
5578 },
5579 {
5580 "name": "props",
5581 "type": {
5582 "fqn": "@aws-cdk/aws-logs.QueryDefinitionProps"
5583 }
5584 }
5585 ]
5586 },
5587 "kind": "class",
5588 "locationInModule": {
5589 "filename": "lib/query-definition.ts",
5590 "line": 144
5591 },
5592 "name": "QueryDefinition",
5593 "properties": [
5594 {
5595 "docs": {
5596 "custom": {
5597 "attribute": "true"
5598 },
5599 "stability": "stable",
5600 "summary": "The ID of the query definition."
5601 },
5602 "immutable": true,
5603 "locationInModule": {
5604 "filename": "lib/query-definition.ts",
5605 "line": 150
5606 },
5607 "name": "queryDefinitionId",
5608 "type": {
5609 "primitive": "string"
5610 }
5611 }
5612 ],
5613 "symbolId": "lib/query-definition:QueryDefinition"
5614 },
5615 "@aws-cdk/aws-logs.QueryDefinitionProps": {
5616 "assembly": "@aws-cdk/aws-logs",
5617 "datatype": true,
5618 "docs": {
5619 "stability": "stable",
5620 "summary": "Properties for a QueryDefinition.",
5621 "example": "new logs.QueryDefinition(this, 'QueryDefinition', {\n queryDefinitionName: 'MyQuery',\n queryString: new logs.QueryString({\n fields: ['@timestamp', '@message'],\n sort: '@timestamp desc',\n limit: 20,\n }),\n});",
5622 "custom": {
5623 "exampleMetadata": "infused"
5624 }
5625 },
5626 "fqn": "@aws-cdk/aws-logs.QueryDefinitionProps",
5627 "kind": "interface",
5628 "locationInModule": {
5629 "filename": "lib/query-definition.ts",
5630 "line": 122
5631 },
5632 "name": "QueryDefinitionProps",
5633 "properties": [
5634 {
5635 "abstract": true,
5636 "docs": {
5637 "stability": "stable",
5638 "summary": "Name of the query definition."
5639 },
5640 "immutable": true,
5641 "locationInModule": {
5642 "filename": "lib/query-definition.ts",
5643 "line": 126
5644 },
5645 "name": "queryDefinitionName",
5646 "type": {
5647 "primitive": "string"
5648 }
5649 },
5650 {
5651 "abstract": true,
5652 "docs": {
5653 "stability": "stable",
5654 "summary": "The query string to use for this query definition."
5655 },
5656 "immutable": true,
5657 "locationInModule": {
5658 "filename": "lib/query-definition.ts",
5659 "line": 131
5660 },
5661 "name": "queryString",
5662 "type": {
5663 "fqn": "@aws-cdk/aws-logs.QueryString"
5664 }
5665 },
5666 {
5667 "abstract": true,
5668 "docs": {
5669 "default": "- no specified log groups",
5670 "stability": "stable",
5671 "summary": "Specify certain log groups for the query definition."
5672 },
5673 "immutable": true,
5674 "locationInModule": {
5675 "filename": "lib/query-definition.ts",
5676 "line": 138
5677 },
5678 "name": "logGroups",
5679 "optional": true,
5680 "type": {
5681 "collection": {
5682 "elementtype": {
5683 "fqn": "@aws-cdk/aws-logs.ILogGroup"
5684 },
5685 "kind": "array"
5686 }
5687 }
5688 }
5689 ],
5690 "symbolId": "lib/query-definition:QueryDefinitionProps"
5691 },
5692 "@aws-cdk/aws-logs.QueryString": {
5693 "assembly": "@aws-cdk/aws-logs",
5694 "docs": {
5695 "stability": "stable",
5696 "summary": "Define a QueryString.",
5697 "example": "new logs.QueryDefinition(this, 'QueryDefinition', {\n queryDefinitionName: 'MyQuery',\n queryString: new logs.QueryString({\n fields: ['@timestamp', '@message'],\n sort: '@timestamp desc',\n limit: 20,\n }),\n});",
5698 "custom": {
5699 "exampleMetadata": "infused"
5700 }
5701 },
5702 "fqn": "@aws-cdk/aws-logs.QueryString",
5703 "initializer": {
5704 "docs": {
5705 "stability": "stable"
5706 },
5707 "locationInModule": {
5708 "filename": "lib/query-definition.ts",
5709 "line": 83
5710 },
5711 "parameters": [
5712 {
5713 "name": "props",
5714 "optional": true,
5715 "type": {
5716 "fqn": "@aws-cdk/aws-logs.QueryStringProps"
5717 }
5718 }
5719 ]
5720 },
5721 "kind": "class",
5722 "locationInModule": {
5723 "filename": "lib/query-definition.ts",
5724 "line": 74
5725 },
5726 "methods": [
5727 {
5728 "docs": {
5729 "stability": "stable",
5730 "summary": "String representation of this QueryString."
5731 },
5732 "locationInModule": {
5733 "filename": "lib/query-definition.ts",
5734 "line": 96
5735 },
5736 "name": "toString",
5737 "returns": {
5738 "type": {
5739 "primitive": "string"
5740 }
5741 }
5742 }
5743 ],
5744 "name": "QueryString",
5745 "symbolId": "lib/query-definition:QueryString"
5746 },
5747 "@aws-cdk/aws-logs.QueryStringProps": {
5748 "assembly": "@aws-cdk/aws-logs",
5749 "datatype": true,
5750 "docs": {
5751 "stability": "stable",
5752 "summary": "Properties for a QueryString.",
5753 "example": "new logs.QueryDefinition(this, 'QueryDefinition', {\n queryDefinitionName: 'MyQuery',\n queryString: new logs.QueryString({\n fields: ['@timestamp', '@message'],\n sort: '@timestamp desc',\n limit: 20,\n }),\n});",
5754 "custom": {
5755 "exampleMetadata": "infused"
5756 }
5757 },
5758 "fqn": "@aws-cdk/aws-logs.QueryStringProps",
5759 "kind": "interface",
5760 "locationInModule": {
5761 "filename": "lib/query-definition.ts",
5762 "line": 10
5763 },
5764 "name": "QueryStringProps",
5765 "properties": [
5766 {
5767 "abstract": true,
5768 "docs": {
5769 "default": "- no display in QueryString",
5770 "stability": "stable",
5771 "summary": "Specifies which fields to display in the query results."
5772 },
5773 "immutable": true,
5774 "locationInModule": {
5775 "filename": "lib/query-definition.ts",
5776 "line": 58
5777 },
5778 "name": "display",
5779 "optional": true,
5780 "type": {
5781 "primitive": "string"
5782 }
5783 },
5784 {
5785 "abstract": true,
5786 "docs": {
5787 "default": "- no fields in QueryString",
5788 "stability": "stable",
5789 "summary": "Retrieves the specified fields from log events for display."
5790 },
5791 "immutable": true,
5792 "locationInModule": {
5793 "filename": "lib/query-definition.ts",
5794 "line": 16
5795 },
5796 "name": "fields",
5797 "optional": true,
5798 "type": {
5799 "collection": {
5800 "elementtype": {
5801 "primitive": "string"
5802 },
5803 "kind": "array"
5804 }
5805 }
5806 },
5807 {
5808 "abstract": true,
5809 "docs": {
5810 "default": "- no filter in QueryString",
5811 "stability": "stable",
5812 "summary": "Filters the results of a query that's based on one or more conditions."
5813 },
5814 "immutable": true,
5815 "locationInModule": {
5816 "filename": "lib/query-definition.ts",
5817 "line": 30
5818 },
5819 "name": "filter",
5820 "optional": true,
5821 "type": {
5822 "primitive": "string"
5823 }
5824 },
5825 {
5826 "abstract": true,
5827 "docs": {
5828 "default": "- no limit in QueryString",
5829 "stability": "stable",
5830 "summary": "Specifies the number of log events returned by the query."
5831 },
5832 "immutable": true,
5833 "locationInModule": {
5834 "filename": "lib/query-definition.ts",
5835 "line": 51
5836 },
5837 "name": "limit",
5838 "optional": true,
5839 "type": {
5840 "primitive": "number"
5841 }
5842 },
5843 {
5844 "abstract": true,
5845 "docs": {
5846 "default": "- no parse in QueryString",
5847 "stability": "stable",
5848 "summary": "Extracts data from a log field and creates one or more ephemeral fields that you can process further in the query."
5849 },
5850 "immutable": true,
5851 "locationInModule": {
5852 "filename": "lib/query-definition.ts",
5853 "line": 23
5854 },
5855 "name": "parse",
5856 "optional": true,
5857 "type": {
5858 "primitive": "string"
5859 }
5860 },
5861 {
5862 "abstract": true,
5863 "docs": {
5864 "default": "- no sort in QueryString",
5865 "stability": "stable",
5866 "summary": "Sorts the retrieved log events."
5867 },
5868 "immutable": true,
5869 "locationInModule": {
5870 "filename": "lib/query-definition.ts",
5871 "line": 44
5872 },
5873 "name": "sort",
5874 "optional": true,
5875 "type": {
5876 "primitive": "string"
5877 }
5878 },
5879 {
5880 "abstract": true,
5881 "docs": {
5882 "default": "- no stats in QueryString",
5883 "stability": "stable",
5884 "summary": "Uses log field values to calculate aggregate statistics."
5885 },
5886 "immutable": true,
5887 "locationInModule": {
5888 "filename": "lib/query-definition.ts",
5889 "line": 37
5890 },
5891 "name": "stats",
5892 "optional": true,
5893 "type": {
5894 "primitive": "string"
5895 }
5896 }
5897 ],
5898 "symbolId": "lib/query-definition:QueryStringProps"
5899 },
5900 "@aws-cdk/aws-logs.ResourcePolicy": {
5901 "assembly": "@aws-cdk/aws-logs",
5902 "base": "@aws-cdk/core.Resource",
5903 "docs": {
5904 "remarks": "Policies define the operations that are allowed on this resource.\n\nYou almost never need to define this construct directly.\n\nAll AWS resources that support resource policies have a method called\n`addToResourcePolicy()`, which will automatically create a new resource\npolicy if one doesn't exist yet, otherwise it will add to the existing\npolicy.\n\nPrefer to use `addToResourcePolicy()` instead.",
5905 "stability": "stable",
5906 "summary": "Resource Policy for CloudWatch Log Groups.",
5907 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const policyStatement: iam.PolicyStatement;\nconst resourcePolicy = new logs.ResourcePolicy(this, 'MyResourcePolicy', /* all optional props */ {\n policyStatements: [policyStatement],\n resourcePolicyName: 'resourcePolicyName',\n});",
5908 "custom": {
5909 "exampleMetadata": "fixture=_generated"
5910 }
5911 },
5912 "fqn": "@aws-cdk/aws-logs.ResourcePolicy",
5913 "initializer": {
5914 "docs": {
5915 "stability": "stable"
5916 },
5917 "locationInModule": {
5918 "filename": "lib/policy.ts",
5919 "line": 44
5920 },
5921 "parameters": [
5922 {
5923 "name": "scope",
5924 "type": {
5925 "fqn": "constructs.Construct"
5926 }
5927 },
5928 {
5929 "name": "id",
5930 "type": {
5931 "primitive": "string"
5932 }
5933 },
5934 {
5935 "name": "props",
5936 "optional": true,
5937 "type": {
5938 "fqn": "@aws-cdk/aws-logs.ResourcePolicyProps"
5939 }
5940 }
5941 ]
5942 },
5943 "kind": "class",
5944 "locationInModule": {
5945 "filename": "lib/policy.ts",
5946 "line": 38
5947 },
5948 "name": "ResourcePolicy",
5949 "properties": [
5950 {
5951 "docs": {
5952 "stability": "stable",
5953 "summary": "The IAM policy document for this resource policy."
5954 },
5955 "immutable": true,
5956 "locationInModule": {
5957 "filename": "lib/policy.ts",
5958 "line": 42
5959 },
5960 "name": "document",
5961 "type": {
5962 "fqn": "@aws-cdk/aws-iam.PolicyDocument"
5963 }
5964 }
5965 ],
5966 "symbolId": "lib/policy:ResourcePolicy"
5967 },
5968 "@aws-cdk/aws-logs.ResourcePolicyProps": {
5969 "assembly": "@aws-cdk/aws-logs",
5970 "datatype": true,
5971 "docs": {
5972 "stability": "stable",
5973 "summary": "Properties to define Cloudwatch log group resource policy.",
5974 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const policyStatement: iam.PolicyStatement;\nconst resourcePolicyProps: logs.ResourcePolicyProps = {\n policyStatements: [policyStatement],\n resourcePolicyName: 'resourcePolicyName',\n};",
5975 "custom": {
5976 "exampleMetadata": "fixture=_generated"
5977 }
5978 },
5979 "fqn": "@aws-cdk/aws-logs.ResourcePolicyProps",
5980 "kind": "interface",
5981 "locationInModule": {
5982 "filename": "lib/policy.ts",
5983 "line": 9
5984 },
5985 "name": "ResourcePolicyProps",
5986 "properties": [
5987 {
5988 "abstract": true,
5989 "docs": {
5990 "default": "- No statements",
5991 "stability": "stable",
5992 "summary": "Initial statements to add to the resource policy."
5993 },
5994 "immutable": true,
5995 "locationInModule": {
5996 "filename": "lib/policy.ts",
5997 "line": 21
5998 },
5999 "name": "policyStatements",
6000 "optional": true,
6001 "type": {
6002 "collection": {
6003 "elementtype": {
6004 "fqn": "@aws-cdk/aws-iam.PolicyStatement"
6005 },
6006 "kind": "array"
6007 }
6008 }
6009 },
6010 {
6011 "abstract": true,
6012 "docs": {
6013 "default": "- Uses a unique id based on the construct path",
6014 "stability": "stable",
6015 "summary": "Name of the log group resource policy."
6016 },
6017 "immutable": true,
6018 "locationInModule": {
6019 "filename": "lib/policy.ts",
6020 "line": 14
6021 },
6022 "name": "resourcePolicyName",
6023 "optional": true,
6024 "type": {
6025 "primitive": "string"
6026 }
6027 }
6028 ],
6029 "symbolId": "lib/policy:ResourcePolicyProps"
6030 },
6031 "@aws-cdk/aws-logs.RetentionDays": {
6032 "assembly": "@aws-cdk/aws-logs",
6033 "docs": {
6034 "stability": "stable",
6035 "summary": "How long, in days, the log contents will be retained.",
6036 "example": "import * as logs from '@aws-cdk/aws-logs';\ndeclare const myLogsPublishingRole: iam.Role;\ndeclare const vpc: ec2.Vpc;\n\n// Exporting logs from a cluster\nconst cluster = new rds.DatabaseCluster(this, 'Database', {\n engine: rds.DatabaseClusterEngine.aurora({\n version: rds.AuroraEngineVersion.VER_1_17_9, // different version class for each engine type\n }),\n instanceProps: {\n vpc,\n },\n cloudwatchLogsExports: ['error', 'general', 'slowquery', 'audit'], // Export all available MySQL-based logs\n cloudwatchLogsRetention: logs.RetentionDays.THREE_MONTHS, // Optional - default is to never expire logs\n cloudwatchLogsRetentionRole: myLogsPublishingRole, // Optional - a role will be created if not provided\n // ...\n});\n\n// Exporting logs from an instance\nconst instance = new rds.DatabaseInstance(this, 'Instance', {\n engine: rds.DatabaseInstanceEngine.postgres({\n version: rds.PostgresEngineVersion.VER_12_3,\n }),\n vpc,\n cloudwatchLogsExports: ['postgresql'], // Export the PostgreSQL logs\n // ...\n});",
6037 "custom": {
6038 "exampleMetadata": "infused"
6039 }
6040 },
6041 "fqn": "@aws-cdk/aws-logs.RetentionDays",
6042 "kind": "enum",
6043 "locationInModule": {
6044 "filename": "lib/log-group.ts",
6045 "line": 235
6046 },
6047 "members": [
6048 {
6049 "docs": {
6050 "stability": "stable",
6051 "summary": "1 day."
6052 },
6053 "name": "ONE_DAY"
6054 },
6055 {
6056 "docs": {
6057 "stability": "stable",
6058 "summary": "3 days."
6059 },
6060 "name": "THREE_DAYS"
6061 },
6062 {
6063 "docs": {
6064 "stability": "stable",
6065 "summary": "5 days."
6066 },
6067 "name": "FIVE_DAYS"
6068 },
6069 {
6070 "docs": {
6071 "stability": "stable",
6072 "summary": "1 week."
6073 },
6074 "name": "ONE_WEEK"
6075 },
6076 {
6077 "docs": {
6078 "stability": "stable",
6079 "summary": "2 weeks."
6080 },
6081 "name": "TWO_WEEKS"
6082 },
6083 {
6084 "docs": {
6085 "stability": "stable",
6086 "summary": "1 month."
6087 },
6088 "name": "ONE_MONTH"
6089 },
6090 {
6091 "docs": {
6092 "stability": "stable",
6093 "summary": "2 months."
6094 },
6095 "name": "TWO_MONTHS"
6096 },
6097 {
6098 "docs": {
6099 "stability": "stable",
6100 "summary": "3 months."
6101 },
6102 "name": "THREE_MONTHS"
6103 },
6104 {
6105 "docs": {
6106 "stability": "stable",
6107 "summary": "4 months."
6108 },
6109 "name": "FOUR_MONTHS"
6110 },
6111 {
6112 "docs": {
6113 "stability": "stable",
6114 "summary": "5 months."
6115 },
6116 "name": "FIVE_MONTHS"
6117 },
6118 {
6119 "docs": {
6120 "stability": "stable",
6121 "summary": "6 months."
6122 },
6123 "name": "SIX_MONTHS"
6124 },
6125 {
6126 "docs": {
6127 "stability": "stable",
6128 "summary": "1 year."
6129 },
6130 "name": "ONE_YEAR"
6131 },
6132 {
6133 "docs": {
6134 "stability": "stable",
6135 "summary": "13 months."
6136 },
6137 "name": "THIRTEEN_MONTHS"
6138 },
6139 {
6140 "docs": {
6141 "stability": "stable",
6142 "summary": "18 months."
6143 },
6144 "name": "EIGHTEEN_MONTHS"
6145 },
6146 {
6147 "docs": {
6148 "stability": "stable",
6149 "summary": "2 years."
6150 },
6151 "name": "TWO_YEARS"
6152 },
6153 {
6154 "docs": {
6155 "stability": "stable",
6156 "summary": "5 years."
6157 },
6158 "name": "FIVE_YEARS"
6159 },
6160 {
6161 "docs": {
6162 "stability": "stable",
6163 "summary": "6 years."
6164 },
6165 "name": "SIX_YEARS"
6166 },
6167 {
6168 "docs": {
6169 "stability": "stable",
6170 "summary": "7 years."
6171 },
6172 "name": "SEVEN_YEARS"
6173 },
6174 {
6175 "docs": {
6176 "stability": "stable",
6177 "summary": "8 years."
6178 },
6179 "name": "EIGHT_YEARS"
6180 },
6181 {
6182 "docs": {
6183 "stability": "stable",
6184 "summary": "9 years."
6185 },
6186 "name": "NINE_YEARS"
6187 },
6188 {
6189 "docs": {
6190 "stability": "stable",
6191 "summary": "10 years."
6192 },
6193 "name": "TEN_YEARS"
6194 },
6195 {
6196 "docs": {
6197 "stability": "stable",
6198 "summary": "Retain logs forever."
6199 },
6200 "name": "INFINITE"
6201 }
6202 ],
6203 "name": "RetentionDays",
6204 "symbolId": "lib/log-group:RetentionDays"
6205 },
6206 "@aws-cdk/aws-logs.SpaceDelimitedTextPattern": {
6207 "assembly": "@aws-cdk/aws-logs",
6208 "docs": {
6209 "stability": "stable",
6210 "summary": "Space delimited text pattern.",
6211 "example": "// Search for all events where the component is \"HttpServer\" and the\n// result code is not equal to 200.\nconst pattern = logs.FilterPattern.spaceDelimited('time', 'component', '...', 'result_code', 'latency')\n .whereString('component', '=', 'HttpServer')\n .whereNumber('result_code', '!=', 200);",
6212 "custom": {
6213 "exampleMetadata": "infused"
6214 }
6215 },
6216 "fqn": "@aws-cdk/aws-logs.SpaceDelimitedTextPattern",
6217 "initializer": {
6218 "docs": {
6219 "stability": "stable"
6220 },
6221 "locationInModule": {
6222 "filename": "lib/pattern.ts",
6223 "line": 299
6224 },
6225 "parameters": [
6226 {
6227 "name": "columns",
6228 "type": {
6229 "collection": {
6230 "elementtype": {
6231 "primitive": "string"
6232 },
6233 "kind": "array"
6234 }
6235 }
6236 },
6237 {
6238 "name": "restrictions",
6239 "type": {
6240 "collection": {
6241 "elementtype": {
6242 "collection": {
6243 "elementtype": {
6244 "fqn": "@aws-cdk/aws-logs.ColumnRestriction"
6245 },
6246 "kind": "array"
6247 }
6248 },
6249 "kind": "map"
6250 }
6251 }
6252 }
6253 ],
6254 "protected": true
6255 },
6256 "interfaces": [
6257 "@aws-cdk/aws-logs.IFilterPattern"
6258 ],
6259 "kind": "class",
6260 "locationInModule": {
6261 "filename": "lib/pattern.ts",
6262 "line": 271
6263 },
6264 "methods": [
6265 {
6266 "docs": {
6267 "remarks": "Since this class must be public, we can't rely on the user only creating it through\nthe `LogPattern.spaceDelimited()` factory function. We must therefore validate the\nargument in the constructor. Since we're returning a copy on every mutation, and we\ndon't want to re-validate the same things on every construction, we provide a limited\nset of mutator functions and only validate the new data every time.",
6268 "stability": "stable",
6269 "summary": "Construct a new instance of a space delimited text pattern."
6270 },
6271 "locationInModule": {
6272 "filename": "lib/pattern.ts",
6273 "line": 281
6274 },
6275 "name": "construct",
6276 "parameters": [
6277 {
6278 "name": "columns",
6279 "type": {
6280 "collection": {
6281 "elementtype": {
6282 "primitive": "string"
6283 },
6284 "kind": "array"
6285 }
6286 }
6287 }
6288 ],
6289 "returns": {
6290 "type": {
6291 "fqn": "@aws-cdk/aws-logs.SpaceDelimitedTextPattern"
6292 }
6293 },
6294 "static": true
6295 },
6296 {
6297 "docs": {
6298 "stability": "stable",
6299 "summary": "Restrict where the pattern applies."
6300 },
6301 "locationInModule": {
6302 "filename": "lib/pattern.ts",
6303 "line": 325
6304 },
6305 "name": "whereNumber",
6306 "parameters": [
6307 {
6308 "name": "columnName",
6309 "type": {
6310 "primitive": "string"
6311 }
6312 },
6313 {
6314 "name": "comparison",
6315 "type": {
6316 "primitive": "string"
6317 }
6318 },
6319 {
6320 "name": "value",
6321 "type": {
6322 "primitive": "number"
6323 }
6324 }
6325 ],
6326 "returns": {
6327 "type": {
6328 "fqn": "@aws-cdk/aws-logs.SpaceDelimitedTextPattern"
6329 }
6330 }
6331 },
6332 {
6333 "docs": {
6334 "stability": "stable",
6335 "summary": "Restrict where the pattern applies."
6336 },
6337 "locationInModule": {
6338 "filename": "lib/pattern.ts",
6339 "line": 306
6340 },
6341 "name": "whereString",
6342 "parameters": [
6343 {
6344 "name": "columnName",
6345 "type": {
6346 "primitive": "string"
6347 }
6348 },
6349 {
6350 "name": "comparison",
6351 "type": {
6352 "primitive": "string"
6353 }
6354 },
6355 {
6356 "name": "value",
6357 "type": {
6358 "primitive": "string"
6359 }
6360 }
6361 ],
6362 "returns": {
6363 "type": {
6364 "fqn": "@aws-cdk/aws-logs.SpaceDelimitedTextPattern"
6365 }
6366 }
6367 }
6368 ],
6369 "name": "SpaceDelimitedTextPattern",
6370 "properties": [
6371 {
6372 "docs": {
6373 "stability": "stable"
6374 },
6375 "immutable": true,
6376 "locationInModule": {
6377 "filename": "lib/pattern.ts",
6378 "line": 341
6379 },
6380 "name": "logPatternString",
6381 "overrides": "@aws-cdk/aws-logs.IFilterPattern",
6382 "type": {
6383 "primitive": "string"
6384 }
6385 }
6386 ],
6387 "symbolId": "lib/pattern:SpaceDelimitedTextPattern"
6388 },
6389 "@aws-cdk/aws-logs.StreamOptions": {
6390 "assembly": "@aws-cdk/aws-logs",
6391 "datatype": true,
6392 "docs": {
6393 "stability": "stable",
6394 "summary": "Properties for a new LogStream created from a LogGroup.",
6395 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\nconst streamOptions: logs.StreamOptions = {\n logStreamName: 'logStreamName',\n};",
6396 "custom": {
6397 "exampleMetadata": "fixture=_generated"
6398 }
6399 },
6400 "fqn": "@aws-cdk/aws-logs.StreamOptions",
6401 "kind": "interface",
6402 "locationInModule": {
6403 "filename": "lib/log-group.ts",
6404 "line": 470
6405 },
6406 "name": "StreamOptions",
6407 "properties": [
6408 {
6409 "abstract": true,
6410 "docs": {
6411 "default": "Automatically generated",
6412 "remarks": "The name must be unique within the log group.",
6413 "stability": "stable",
6414 "summary": "The name of the log stream to create."
6415 },
6416 "immutable": true,
6417 "locationInModule": {
6418 "filename": "lib/log-group.ts",
6419 "line": 478
6420 },
6421 "name": "logStreamName",
6422 "optional": true,
6423 "type": {
6424 "primitive": "string"
6425 }
6426 }
6427 ],
6428 "symbolId": "lib/log-group:StreamOptions"
6429 },
6430 "@aws-cdk/aws-logs.SubscriptionFilter": {
6431 "assembly": "@aws-cdk/aws-logs",
6432 "base": "@aws-cdk/core.Resource",
6433 "docs": {
6434 "stability": "stable",
6435 "summary": "A new Subscription on a CloudWatch log group.",
6436 "example": "import * as destinations from '@aws-cdk/aws-logs-destinations';\ndeclare const fn: lambda.Function;\ndeclare const logGroup: logs.LogGroup;\n\nnew logs.SubscriptionFilter(this, 'Subscription', {\n logGroup,\n destination: new destinations.LambdaDestination(fn),\n filterPattern: logs.FilterPattern.allTerms(\"ERROR\", \"MainThread\"),\n});",
6437 "custom": {
6438 "exampleMetadata": "infused"
6439 }
6440 },
6441 "fqn": "@aws-cdk/aws-logs.SubscriptionFilter",
6442 "initializer": {
6443 "docs": {
6444 "stability": "stable"
6445 },
6446 "locationInModule": {
6447 "filename": "lib/subscription-filter.ts",
6448 "line": 59
6449 },
6450 "parameters": [
6451 {
6452 "name": "scope",
6453 "type": {
6454 "fqn": "constructs.Construct"
6455 }
6456 },
6457 {
6458 "name": "id",
6459 "type": {
6460 "primitive": "string"
6461 }
6462 },
6463 {
6464 "name": "props",
6465 "type": {
6466 "fqn": "@aws-cdk/aws-logs.SubscriptionFilterProps"
6467 }
6468 }
6469 ]
6470 },
6471 "kind": "class",
6472 "locationInModule": {
6473 "filename": "lib/subscription-filter.ts",
6474 "line": 58
6475 },
6476 "name": "SubscriptionFilter",
6477 "symbolId": "lib/subscription-filter:SubscriptionFilter"
6478 },
6479 "@aws-cdk/aws-logs.SubscriptionFilterOptions": {
6480 "assembly": "@aws-cdk/aws-logs",
6481 "datatype": true,
6482 "docs": {
6483 "stability": "stable",
6484 "summary": "Properties for a new SubscriptionFilter created from a LogGroup.",
6485 "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as logs from '@aws-cdk/aws-logs';\n\ndeclare const filterPattern: logs.IFilterPattern;\ndeclare const logSubscriptionDestination: logs.ILogSubscriptionDestination;\nconst subscriptionFilterOptions: logs.SubscriptionFilterOptions = {\n destination: logSubscriptionDestination,\n filterPattern: filterPattern,\n};",
6486 "custom": {
6487 "exampleMetadata": "fixture=_generated"
6488 }
6489 },
6490 "fqn": "@aws-cdk/aws-logs.SubscriptionFilterOptions",
6491 "kind": "interface",
6492 "locationInModule": {
6493 "filename": "lib/log-group.ts",
6494 "line": 484
6495 },
6496 "name": "SubscriptionFilterOptions",
6497 "properties": [
6498 {
6499 "abstract": true,
6500 "docs": {
6501 "remarks": "For example, a Kinesis stream or a Lambda function.",
6502 "stability": "stable",
6503 "summary": "The destination to send the filtered events to."
6504 },
6505 "immutable": true,
6506 "locationInModule": {
6507 "filename": "lib/log-group.ts",
6508 "line": 490
6509 },
6510 "name": "destination",
6511 "type": {
6512 "fqn": "@aws-cdk/aws-logs.ILogSubscriptionDestination"
6513 }
6514 },
6515 {
6516 "abstract": true,
6517 "docs": {
6518 "stability": "stable",
6519 "summary": "Log events matching this pattern will be sent to the destination."
6520 },
6521 "immutable": true,
6522 "locationInModule": {
6523 "filename": "lib/log-group.ts",
6524 "line": 495
6525 },
6526 "name": "filterPattern",
6527 "type": {
6528 "fqn": "@aws-cdk/aws-logs.IFilterPattern"
6529 }
6530 }
6531 ],
6532 "symbolId": "lib/log-group:SubscriptionFilterOptions"
6533 },
6534 "@aws-cdk/aws-logs.SubscriptionFilterProps": {
6535 "assembly": "@aws-cdk/aws-logs",
6536 "datatype": true,
6537 "docs": {
6538 "stability": "stable",
6539 "summary": "Properties for a SubscriptionFilter.",
6540 "example": "import * as destinations from '@aws-cdk/aws-logs-destinations';\ndeclare const fn: lambda.Function;\ndeclare const logGroup: logs.LogGroup;\n\nnew logs.SubscriptionFilter(this, 'Subscription', {\n logGroup,\n destination: new destinations.LambdaDestination(fn),\n filterPattern: logs.FilterPattern.allTerms(\"ERROR\", \"MainThread\"),\n});",
6541 "custom": {
6542 "exampleMetadata": "infused"
6543 }
6544 },
6545 "fqn": "@aws-cdk/aws-logs.SubscriptionFilterProps",
6546 "interfaces": [
6547 "@aws-cdk/aws-logs.SubscriptionFilterOptions"
6548 ],
6549 "kind": "interface",
6550 "locationInModule": {
6551 "filename": "lib/subscription-filter.ts",
6552 "line": 48
6553 },
6554 "name": "SubscriptionFilterProps",
6555 "properties": [
6556 {
6557 "abstract": true,
6558 "docs": {
6559 "stability": "stable",
6560 "summary": "The log group to create the subscription on."
6561 },
6562 "immutable": true,
6563 "locationInModule": {
6564 "filename": "lib/subscription-filter.ts",
6565 "line": 52
6566 },
6567 "name": "logGroup",
6568 "type": {
6569 "fqn": "@aws-cdk/aws-logs.ILogGroup"
6570 }
6571 }
6572 ],
6573 "symbolId": "lib/subscription-filter:SubscriptionFilterProps"
6574 }
6575 },
6576 "version": "1.204.0",
6577 "fingerprint": "**********"
6578}
\No newline at end of file