Interface ILogGroup.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,ILogGroup,ILogGroupRef,ILogGroupRef.Jsii$Default,IResource,IResource.Jsii$Default,IResourceWithPolicy,IResourceWithPolicy.Jsii$Default,IResourceWithPolicyV2,IResourceWithPolicyV2.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ILogGroup.Jsii$Proxy
- Enclosing interface:
ILogGroup
@Internal
public static interface ILogGroup.Jsii$Default
extends ILogGroup, ILogGroupRef.Jsii$Default, IResourceWithPolicy.Jsii$Default
Internal default implementation for
ILogGroup.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.ILogGroup
ILogGroup.Jsii$Default, ILogGroup.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.logs.ILogGroupRef
ILogGroupRef.Jsii$Default, ILogGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IResourceWithPolicy
IResourceWithPolicy.Jsii$Default, IResourceWithPolicy.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IResourceWithPolicyV2
IResourceWithPolicyV2.Jsii$Default, IResourceWithPolicyV2.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault MetricFilteraddMetricFilter(String id, MetricFilterOptions props) Create a new Metric Filter on this Log Group.default LogStreamCreate a new Log Stream for this Log Group.default LogStreamaddStream(String id, StreamOptions props) Create a new Log Stream for this Log Group.default SubscriptionFilteraddSubscriptionFilter(String id, SubscriptionFilterOptions props) Create a new Subscription Filter on this Log Group.default TransformeraddTransformer(String id, TransformerOptions props) Create a new Transformer on this Log Group.default MetricextractMetric(String jsonField, String metricNamespace, String metricName) Extract a metric from structured log events in the LogGroup.default StringThe ARN of this log group, with ':*' appended.default StringThe name of this log group.default Grantgrant(IGrantable grantee, String... actions) Give the indicated permissions on this log group and all streams.default GrantgrantRead(IGrantable grantee) Give permissions to read from this log group and streams.default GrantgrantWrite(IGrantable grantee) Give permissions to write to create and write to streams in this log group.default StringPublic method to get the physical name of this log group.default MetricReturn the given named metric for this Log Group.default Metricmetric(String metricName, MetricOptions props) Return the given named metric for this Log Group.default MetricThe volume of log events in uncompressed bytes uploaded to CloudWatch Logs.default MetricmetricIncomingBytes(MetricOptions props) The volume of log events in uncompressed bytes uploaded to CloudWatch Logs.default MetricThe number of log events uploaded to CloudWatch Logs.default MetricThe number of log events uploaded to CloudWatch Logs.Methods inherited from interface software.constructs.IConstruct.Jsii$Default
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.interfaces.logs.ILogGroupRef.Jsii$Default
getLogGroupRefMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.services.iam.IResourceWithPolicyV2.Jsii$Default
addToResourcePolicyMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLogGroupArn
The ARN of this log group, with ':*' appended.- Specified by:
getLogGroupArnin interfaceILogGroup
-
getLogGroupName
The name of this log group.- Specified by:
getLogGroupNamein interfaceILogGroup
-
addMetricFilter
@Stability(Stable) @NotNull default MetricFilter addMetricFilter(@NotNull String id, @NotNull MetricFilterOptions props) Create a new Metric Filter on this Log Group.- Specified by:
addMetricFilterin interfaceILogGroup- Parameters:
id- Unique identifier for the construct in its parent. This parameter is required.props- Properties for creating the MetricFilter. This parameter is required.
-
addStream
@Stability(Stable) @NotNull default LogStream addStream(@NotNull String id, @Nullable StreamOptions props) Create a new Log Stream for this Log Group. -
addStream
Create a new Log Stream for this Log Group. -
addSubscriptionFilter
@Stability(Stable) @NotNull default SubscriptionFilter addSubscriptionFilter(@NotNull String id, @NotNull SubscriptionFilterOptions props) Create a new Subscription Filter on this Log Group.- Specified by:
addSubscriptionFilterin interfaceILogGroup- Parameters:
id- Unique identifier for the construct in its parent. This parameter is required.props- Properties for creating the SubscriptionFilter. This parameter is required.
-
addTransformer
@Stability(Stable) @NotNull default Transformer addTransformer(@NotNull String id, @NotNull TransformerOptions props) Create a new Transformer on this Log Group.- Specified by:
addTransformerin interfaceILogGroup- Parameters:
id- Unique identifier for the construct in its parent. This parameter is required.props- Properties for creating the Transformer. This parameter is required.
-
extractMetric
@Stability(Stable) @NotNull default Metric extractMetric(@NotNull String jsonField, @NotNull String metricNamespace, @NotNull String metricName) Extract a metric from structured log events in the LogGroup.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.
- Specified by:
extractMetricin interfaceILogGroup- Parameters:
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.- Returns:
- A Metric object representing the extracted metric
-
grant
@Stability(Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Give the indicated permissions on this log group and all streams. -
grantRead
Give permissions to read from this log group and streams. -
grantWrite
Give permissions to write to create and write to streams in this log group.- Specified by:
grantWritein interfaceILogGroup- Parameters:
grantee- This parameter is required.
-
logGroupPhysicalName
Public method to get the physical name of this log group.- Specified by:
logGroupPhysicalNamein interfaceILogGroup
-
metric
@Stability(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this Log Group. -
metric
Return the given named metric for this Log Group. -
metricIncomingBytes
The volume of log events in uncompressed bytes uploaded to CloudWatch Logs.When used with the LogGroupName dimension, this is the volume of log events in uncompressed bytes uploaded to the log group.
- Specified by:
metricIncomingBytesin interfaceILogGroup- Parameters:
props- Properties for the Cloudwatch metric.
-
metricIncomingBytes
The volume of log events in uncompressed bytes uploaded to CloudWatch Logs.When used with the LogGroupName dimension, this is the volume of log events in uncompressed bytes uploaded to the log group.
- Specified by:
metricIncomingBytesin interfaceILogGroup
-
metricIncomingLogEvents
The number of log events uploaded to CloudWatch Logs.When used with the LogGroupName dimension, this is the number of log events uploaded to the log group.
- Specified by:
metricIncomingLogEventsin interfaceILogGroup- Parameters:
props- Properties for the Cloudwatch metric.
-
metricIncomingLogEvents
The number of log events uploaded to CloudWatch Logs.When used with the LogGroupName dimension, this is the number of log events uploaded to the log group.
- Specified by:
metricIncomingLogEventsin interfaceILogGroup
-