@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:52.348Z") public interface ILogGroup extends IResourceWithPolicy
Modifier and Type | Interface and Description |
---|---|
static interface |
ILogGroup.Jsii$Default
Internal default implementation for
ILogGroup . |
static class |
ILogGroup.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
Modifier and Type | Method and Description |
---|---|
MetricFilter |
addMetricFilter(java.lang.String id,
MetricFilterOptions props)
Create a new Metric Filter on this Log Group.
|
LogStream |
addStream(java.lang.String id)
Create a new Log Stream for this Log Group.
|
LogStream |
addStream(java.lang.String id,
StreamOptions props)
Create a new Log Stream for this Log Group.
|
SubscriptionFilter |
addSubscriptionFilter(java.lang.String id,
SubscriptionFilterOptions props)
Create a new Subscription Filter on this Log Group.
|
Metric |
extractMetric(java.lang.String jsonField,
java.lang.String metricNamespace,
java.lang.String metricName)
Extract a metric from structured log events in the LogGroup.
|
java.lang.String |
getLogGroupArn()
The ARN of this log group, with ':*' appended.
|
java.lang.String |
getLogGroupName()
The name of this log group.
|
Grant |
grant(IGrantable grantee,
java.lang.String... actions)
Give the indicated permissions on this log group and all streams.
|
Grant |
grantWrite(IGrantable grantee)
Give permissions to write to create and write to streams in this log group.
|
java.lang.String |
logGroupPhysicalName()
Public method to get the physical name of this log group.
|
addToResourcePolicy
applyRemovalPolicy, getEnv, getStack
getNode
java.lang.String getLogGroupArn()
java.lang.String getLogGroupName()
MetricFilter addMetricFilter(java.lang.String id, MetricFilterOptions props)
id
- Unique identifier for the construct in its parent. This parameter is required.props
- Properties for creating the MetricFilter. This parameter is required.LogStream addStream(java.lang.String id, StreamOptions props)
id
- Unique identifier for the construct in its parent. This parameter is required.props
- Properties for creating the LogStream.LogStream addStream(java.lang.String id)
id
- Unique identifier for the construct in its parent. This parameter is required.SubscriptionFilter addSubscriptionFilter(java.lang.String id, SubscriptionFilterOptions props)
id
- Unique identifier for the construct in its parent. This parameter is required.props
- Properties for creating the SubscriptionFilter. This parameter is required.Metric extractMetric(java.lang.String jsonField, java.lang.String metricNamespace, java.lang.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.
jsonField
- 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.Grant grant(IGrantable grantee, java.lang.String... actions)
grantee
- This parameter is required.actions
- This parameter is required.Grant grantWrite(IGrantable grantee)
grantee
- This parameter is required.java.lang.String logGroupPhysicalName()