Class ILogGroup.Jsii$Proxy
- All Implemented Interfaces:
IConstruct
,IConstruct.Jsii$Default
,IDependable
,IDependable.Jsii$Default
,IResource
,IResource.Jsii$Default
,IResourceWithPolicy
,IResourceWithPolicy.Jsii$Default
,ILogGroup
,ILogGroup.Jsii$Default
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
- Enclosing interface:
ILogGroup
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.ILogGroup
ILogGroup.Jsii$Default, ILogGroup.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IResourceWithPolicy
IResourceWithPolicy.Jsii$Default, IResourceWithPolicy.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal MetricFilter
addMetricFilter
(String id, MetricFilterOptions props) Create a new Metric Filter on this Log Group.final LogStream
Create a new Log Stream for this Log Group.final LogStream
addStream
(String id, StreamOptions props) Create a new Log Stream for this Log Group.final SubscriptionFilter
addSubscriptionFilter
(String id, SubscriptionFilterOptions props) Create a new Subscription Filter on this Log Group.addToResourcePolicy
(PolicyStatement statement) Add a statement to the resource's resource policy.final void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.final Metric
extractMetric
(String jsonField, String metricNamespace, String metricName) Extract a metric from structured log events in the LogGroup.final ResourceEnvironment
getEnv()
The environment this resource belongs to.final String
The ARN of this log group, with ':*' appended.final String
The name of this log group.final ConstructNode
getNode()
The construct tree node for this construct.final Stack
getStack()
The stack in which this resource is defined.final Grant
grant
(IGrantable grantee, @NotNull String... actions) Give the indicated permissions on this log group and all streams.final Grant
grantWrite
(IGrantable grantee) Give permissions to write to create and write to streams in this log group.final String
Public method to get the physical name of this log group.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNode
in interfaceIConstruct
- Specified by:
getNode
in interfaceIConstruct.Jsii$Default
- Specified by:
getNode
in interfaceILogGroup.Jsii$Default
- Specified by:
getNode
in interfaceIResource.Jsii$Default
- Specified by:
getNode
in interfaceIResourceWithPolicy.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnv
in interfaceILogGroup.Jsii$Default
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
- Specified by:
getEnv
in interfaceIResourceWithPolicy.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceILogGroup.Jsii$Default
- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
- Specified by:
getStack
in interfaceIResourceWithPolicy.Jsii$Default
-
getLogGroupArn
The ARN of this log group, with ':*' appended.- Specified by:
getLogGroupArn
in interfaceILogGroup
- Specified by:
getLogGroupArn
in interfaceILogGroup.Jsii$Default
-
getLogGroupName
The name of this log group.- Specified by:
getLogGroupName
in interfaceILogGroup
- Specified by:
getLogGroupName
in interfaceILogGroup.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.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
).- Specified by:
applyRemovalPolicy
in interfaceILogGroup.Jsii$Default
- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Specified by:
applyRemovalPolicy
in interfaceIResourceWithPolicy.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
addToResourcePolicy
@Stability(Stable) @NotNull public final AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Add a statement to the resource's resource policy.- Specified by:
addToResourcePolicy
in interfaceILogGroup.Jsii$Default
- Specified by:
addToResourcePolicy
in interfaceIResourceWithPolicy
- Specified by:
addToResourcePolicy
in interfaceIResourceWithPolicy.Jsii$Default
- Parameters:
statement
- This parameter is required.
-
addMetricFilter
@Stability(Stable) @NotNull public final MetricFilter addMetricFilter(@NotNull String id, @NotNull MetricFilterOptions props) Create a new Metric Filter on this Log Group.- Specified by:
addMetricFilter
in interfaceILogGroup
- Specified by:
addMetricFilter
in interfaceILogGroup.Jsii$Default
- 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 public final LogStream addStream(@NotNull String id, @Nullable StreamOptions props) Create a new Log Stream for this Log Group.- Specified by:
addStream
in interfaceILogGroup
- Specified by:
addStream
in interfaceILogGroup.Jsii$Default
- Parameters:
id
- Unique identifier for the construct in its parent. This parameter is required.props
- Properties for creating the LogStream.
-
addStream
Create a new Log Stream for this Log Group. -
addSubscriptionFilter
@Stability(Stable) @NotNull public final SubscriptionFilter addSubscriptionFilter(@NotNull String id, @NotNull SubscriptionFilterOptions props) Create a new Subscription Filter on this Log Group.- Specified by:
addSubscriptionFilter
in interfaceILogGroup
- Specified by:
addSubscriptionFilter
in interfaceILogGroup.Jsii$Default
- Parameters:
id
- Unique identifier for the construct in its parent. This parameter is required.props
- Properties for creating the SubscriptionFilter. This parameter is required.
-
extractMetric
@Stability(Stable) @NotNull public final 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:
extractMetric
in interfaceILogGroup
- Specified by:
extractMetric
in interfaceILogGroup.Jsii$Default
- 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 public final Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Give the indicated permissions on this log group and all streams.- Specified by:
grant
in interfaceILogGroup
- Specified by:
grant
in interfaceILogGroup.Jsii$Default
- Parameters:
grantee
- This parameter is required.actions
- This parameter is required.
-
grantWrite
Give permissions to write to create and write to streams in this log group.- Specified by:
grantWrite
in interfaceILogGroup
- Specified by:
grantWrite
in interfaceILogGroup.Jsii$Default
- Parameters:
grantee
- This parameter is required.
-
logGroupPhysicalName
Public method to get the physical name of this log group.- Specified by:
logGroupPhysicalName
in interfaceILogGroup
- Specified by:
logGroupPhysicalName
in interfaceILogGroup.Jsii$Default
-