@Internal public static interface ILogGroup.Jsii$Default extends ILogGroup, IResource.Jsii$Default
ILogGroup.ILogGroup.Jsii$Default, ILogGroup.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default MetricFilter |
addMetricFilter(String id,
MetricFilterOptions props)
(experimental) Create a new Metric Filter on this Log Group.
|
default LogStream |
addStream(String id,
StreamOptions props)
(experimental) Create a new Log Stream for this Log Group.
|
default SubscriptionFilter |
addSubscriptionFilter(String id,
SubscriptionFilterOptions props)
(experimental) Create a new Subscription Filter on this Log Group.
|
default Metric |
extractMetric(String jsonField,
String metricNamespace,
String metricName)
(experimental) Extract a metric from structured log events in the LogGroup.
|
default ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
default String |
getLogGroupArn()
(experimental) The ARN of this log group, with ':*' appended.
|
default String |
getLogGroupName()
(experimental) The name of this log group.
|
default software.constructs.Node |
getNode()
The tree node.
|
default Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
default Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Give the indicated permissions on this log group and all streams.
|
default Grant |
grantWrite(IGrantable grantee)
(experimental) Give permissions to write to create and write to streams in this log group.
|
@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default 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$Default@Stability(value=Experimental) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default String getLogGroupArn()
getLogGroupArn in interface ILogGroup@Stability(value=Experimental) @NotNull default String getLogGroupName()
getLogGroupName in interface ILogGroup@Stability(value=Experimental) @NotNull default MetricFilter addMetricFilter(@NotNull String id, @NotNull MetricFilterOptions props)
addMetricFilter in interface ILogGroupid - 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 default LogStream addStream(@NotNull String id, @Nullable StreamOptions props)
@Stability(value=Experimental) @NotNull default SubscriptionFilter addSubscriptionFilter(@NotNull String id, @NotNull SubscriptionFilterOptions props)
addSubscriptionFilter in interface ILogGroupid - 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 default 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 ILogGroupjsonField - 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 default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
@Stability(value=Experimental) @NotNull default Grant grantWrite(@NotNull IGrantable grantee)
grantWrite in interface ILogGroupgrantee - This parameter is required.Copyright © 2021. All rights reserved.