LogDestination

class LogDestination : KotlinCustomResource

Provides a CloudWatch Logs destination resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.LogDestination;
import com.pulumi.aws.cloudwatch.LogDestinationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testDestination = new LogDestination("testDestination", LogDestinationArgs.builder()
.roleArn(aws_iam_role.iam_for_cloudwatch().arn())
.targetArn(aws_kinesis_stream.kinesis_for_cloudwatch().arn())
.build());
}
}

Import

CloudWatch Logs destinations can be imported using the name, e.g.,

$ pulumi import aws:cloudwatch/logDestination:LogDestination test_destination test_destination

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) specifying the log destination.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

A name for the log destination.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleArn: Output<String>

The ARN of an IAM role that grants Amazon CloudWatch Logs permissions to put data into the target.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val targetArn: Output<String>

The ARN of the target Amazon Kinesis stream resource for the destination.

Link copied to clipboard
val urn: Output<String>