@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)
Create a new Metric Filter on this Log Group.
|
LogStream |
addStream(String id)
Create a new Log Stream for this Log Group.
|
LogStream |
addStream(String id,
StreamOptions props)
Create a new Log Stream for this Log Group.
|
SubscriptionFilter |
addSubscriptionFilter(String id,
SubscriptionFilterOptions props)
Create a new Subscription Filter on this Log Group.
|
AddToResourcePolicyResult |
addToResourcePolicy(PolicyStatement statement)
Add a statement to the resource's resource policy.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
Metric |
extractMetric(String jsonField,
String metricNamespace,
String metricName)
Extract a metric from structured log events in the LogGroup.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
String |
getLogGroupArn()
The ARN of this log group, with ':*' appended.
|
String |
getLogGroupName()
The name of this log group.
|
software.constructs.Node |
getNode()
The tree node.
|
Stack |
getStack()
The stack in which this resource is defined.
|
Grant |
grant(IGrantable grantee,
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.
|
String |
logGroupPhysicalName()
Public method to get the physical name of 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 IResourceWithPolicy.Jsii$DefaultgetNode in interface ILogGroup.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Stable) @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 IResourceWithPolicy.Jsii$DefaultgetEnv in interface ILogGroup.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface IResourceWithPolicy.Jsii$DefaultgetStack in interface ILogGroup.Jsii$Default@Stability(value=Stable) @NotNull public final String getLogGroupArn()
getLogGroupArn in interface ILogGroupgetLogGroupArn in interface ILogGroup.Jsii$Default@Stability(value=Stable) @NotNull public final String getLogGroupName()
getLogGroupName in interface ILogGroupgetLogGroupName in interface ILogGroup.Jsii$Default@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface IResourceWithPolicy.Jsii$DefaultapplyRemovalPolicy in interface ILogGroup.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement)
addToResourcePolicy in interface IResourceWithPolicyaddToResourcePolicy in interface IResourceWithPolicy.Jsii$DefaultaddToResourcePolicy in interface ILogGroup.Jsii$Defaultstatement - This parameter is required.@Stability(value=Stable) @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=Stable) @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=Stable) @NotNull public final LogStream addStream(@NotNull String id)
@Stability(value=Stable) @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=Stable) @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=Stable) @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=Stable) @NotNull public final Grant grantWrite(@NotNull IGrantable grantee)
grantWrite in interface ILogGroupgrantWrite in interface ILogGroup.Jsii$Defaultgrantee - This parameter is required.@Stability(value=Stable) @NotNull public final String logGroupPhysicalName()
logGroupPhysicalName in interface ILogGrouplogGroupPhysicalName in interface ILogGroup.Jsii$DefaultCopyright © 2022. All rights reserved.