LogsFunctions

Functions

Link copied to clipboard

The AWS::Logs::AccountPolicy resource specifies a CloudWatch Logs AccountPolicy.

suspend fun getAccountPolicy(accountId: String, policyName: String, policyType: AccountPolicyPolicyType): GetAccountPolicyResult
Link copied to clipboard

This structure contains information about one delivery in your account. A delivery is a connection between a logical delivery source and a logical delivery destination. For more information, see CreateDelivery.

suspend fun getDelivery(deliveryId: String): GetDeliveryResult
suspend fun getDelivery(argument: suspend GetDeliveryPlainArgsBuilder.() -> Unit): GetDeliveryResult
Link copied to clipboard

This structure contains information about one delivery destination in your account. A delivery destination is an AWS resource that represents an AWS service that logs can be sent to CloudWatch Logs, Amazon S3, are supported as Kinesis Data Firehose delivery destinations.

Link copied to clipboard

A delivery source is an AWS resource that sends logs to an AWS destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose. Only some AWS services support being configured as a delivery source. These services are listed as Supported V2 Permissions in the table at Enabling logging from AWS services.

Link copied to clipboard

The AWS::Logs::Destination resource specifies a CloudWatch Logs destination. A destination encapsulates a physical resource (such as an Amazon Kinesis data stream) and enables you to subscribe that resource to a stream of log events.

suspend fun getDestination(destinationName: String): GetDestinationResult
Link copied to clipboard

The AWS::Logs::LogAnomalyDetector resource specifies a CloudWatch Logs LogAnomalyDetector.

suspend fun getLogAnomalyDetector(anomalyDetectorArn: String): GetLogAnomalyDetectorResult
Link copied to clipboard

The `AWS::Logs::LogGroup` resource specifies a log group. A log group defines common properties for log streams, such as their retention and access control rules. Each log stream must belong to one log group. You can create up to 1,000,000 log groups per Region per account. You must use the following guidelines when naming a log group:

suspend fun getLogGroup(logGroupName: String): GetLogGroupResult
suspend fun getLogGroup(argument: suspend GetLogGroupPlainArgsBuilder.() -> Unit): GetLogGroupResult
Link copied to clipboard

The `AWS::Logs::MetricFilter` resource specifies a metric filter that describes how CWL extracts information from logs and transforms it into Amazon CloudWatch metrics. If you have multiple metric filters that are associated with a log group, all the filters are applied to the log streams in that group. The maximum number of metric filters that can be associated with a log group is 100.

suspend fun getMetricFilter(filterName: String, logGroupName: String): GetMetricFilterResult
Link copied to clipboard

The resource schema for AWSLogs QueryDefinition

suspend fun getQueryDefinition(queryDefinitionId: String): GetQueryDefinitionResult
Link copied to clipboard

The resource schema for AWSLogs ResourcePolicy

Link copied to clipboard

The `AWS::Logs::SubscriptionFilter` resource specifies a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events and have them delivered to a specific destination. Currently, the supported destinations are:

suspend fun getSubscriptionFilter(filterName: String, logGroupName: String): GetSubscriptionFilterResult