@Internal public static final class ILogGroup.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ILogGroup.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeILogGroup.Jsii$Default, ILogGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
MetricFilter |
addMetricFilter(String id,
MetricFilterOptions props)
(experimental) Create a new Metric Filter on this Log Group.
|
LogStream |
addStream(String id)
(experimental) Create a new Log Stream for this Log Group.
|
LogStream |
addStream(String id,
StreamOptions props)
(experimental) Create a new Log Stream for this Log Group.
|
SubscriptionFilter |
addSubscriptionFilter(String id,
SubscriptionFilterOptions props)
(experimental) Create a new Subscription Filter on this Log Group.
|
Metric |
extractMetric(String jsonField,
String metricNamespace,
String metricName)
(experimental) Extract a metric from structured log events in the LogGroup.
|
ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
String |
getLogGroupArn()
(experimental) The ARN of this log group, with ':*' appended.
|
String |
getLogGroupName()
(experimental) The name of this log group.
|
software.constructs.Node |
getNode()
The tree node.
|
Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Give the indicated permissions on this log group and all streams.
|
Grant |
grantWrite(IGrantable grantee)
(experimental) Give permissions to write to create and write to streams in this log group.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface ILogGroup.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Experimental) @NotNull public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface ILogGroup.Jsii$Default@Stability(value=Experimental) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface ILogGroup.Jsii$Default@Stability(value=Experimental) @NotNull public final String getLogGroupArn()
getLogGroupArn in interface ILogGroupgetLogGroupArn in interface ILogGroup.Jsii$Default@Stability(value=Experimental) @NotNull public final String getLogGroupName()
getLogGroupName in interface ILogGroupgetLogGroupName in interface ILogGroup.Jsii$Default@Stability(value=Experimental) @NotNull public final MetricFilter addMetricFilter(@NotNull String id, @NotNull MetricFilterOptions props)
addMetricFilter in interface ILogGroupaddMetricFilter in interface ILogGroup.Jsii$Defaultid - Unique identifier for the construct in its parent. This parameter is required.props - Properties for creating the MetricFilter. This parameter is required.@Stability(value=Experimental) @NotNull public final LogStream addStream(@NotNull String id, @Nullable StreamOptions props)
addStream in interface ILogGroupaddStream in interface ILogGroup.Jsii$Defaultid - Unique identifier for the construct in its parent. This parameter is required.props - Properties for creating the LogStream.@Stability(value=Experimental) @NotNull public final LogStream addStream(@NotNull String id)
@Stability(value=Experimental) @NotNull public final SubscriptionFilter addSubscriptionFilter(@NotNull String id, @NotNull SubscriptionFilterOptions props)
addSubscriptionFilter in interface ILogGroupaddSubscriptionFilter in interface ILogGroup.Jsii$Defaultid - Unique identifier for the construct in its parent. This parameter is required.props - Properties for creating the SubscriptionFilter. This parameter is required.@Stability(value=Experimental) @NotNull public final Metric extractMetric(@NotNull String jsonField, @NotNull String metricNamespace, @NotNull String metricName)
Creates a MetricFilter on this LogGroup that will extract the value of the indicated JSON field in all records where it occurs.
The metric will be available in CloudWatch Metrics under the indicated namespace and name.
extractMetric in interface ILogGroupextractMetric in interface ILogGroup.Jsii$DefaultjsonField - JSON field to extract (example: '$.myfield'). This parameter is required.metricNamespace - Namespace to emit the metric under. This parameter is required.metricName - Name to emit the metric under. This parameter is required.@Stability(value=Experimental) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface ILogGroupgrant in interface ILogGroup.Jsii$Defaultgrantee - This parameter is required.actions - This parameter is required.@Stability(value=Experimental) @NotNull public final Grant grantWrite(@NotNull IGrantable grantee)
grantWrite in interface ILogGroupgrantWrite in interface ILogGroup.Jsii$Defaultgrantee - This parameter is required.Copyright © 2021. All rights reserved.