LogDestination

Provides a CloudWatch Logs destination resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var testDestination = new Aws.CloudWatch.LogDestination("testDestination", new Aws.CloudWatch.LogDestinationArgs
        {
            RoleArn = aws_iam_role.Iam_for_cloudwatch.Arn,
            TargetArn = aws_kinesis_stream.Kinesis_for_cloudwatch.Arn,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/cloudwatch"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := cloudwatch.NewLogDestination(ctx, "testDestination", &cloudwatch.LogDestinationArgs{
            RoleArn:   pulumi.String(aws_iam_role.Iam_for_cloudwatch.Arn),
            TargetArn: pulumi.String(aws_kinesis_stream.Kinesis_for_cloudwatch.Arn),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

test_destination = aws.cloudwatch.LogDestination("testDestination",
    role_arn=aws_iam_role["iam_for_cloudwatch"]["arn"],
    target_arn=aws_kinesis_stream["kinesis_for_cloudwatch"]["arn"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const testDestination = new aws.cloudwatch.LogDestination("test_destination", {
    roleArn: aws_iam_role_iam_for_cloudwatch.arn,
    targetArn: aws_kinesis_stream_kinesis_for_cloudwatch.arn,
});

Create a LogDestination Resource

def LogDestination(resource_name, opts=None, name=None, role_arn=None, target_arn=None, __props__=None);
name string
The unique name of the resource.
args LogDestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LogDestinationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LogDestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

LogDestination Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The LogDestination resource accepts the following input properties:

RoleArn string

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

TargetArn string

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

Name string

A name for the log destination

RoleArn string

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

TargetArn string

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

Name string

A name for the log destination

roleArn string

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

targetArn string

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

name string

A name for the log destination

role_arn str

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

target_arn str

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

name str

A name for the log destination

Outputs

All input properties are implicitly available as output properties. Additionally, the LogDestination resource produces the following output properties:

Arn string

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

Id string
The provider-assigned unique ID for this managed resource.
Arn string

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

Id string
The provider-assigned unique ID for this managed resource.
arn string

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

id string
The provider-assigned unique ID for this managed resource.
arn str

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

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing LogDestination Resource

Get an existing LogDestination resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LogDestinationState, opts?: CustomResourceOptions): LogDestination
static get(resource_name, id, opts=None, arn=None, name=None, role_arn=None, target_arn=None, __props__=None);
func GetLogDestination(ctx *Context, name string, id IDInput, state *LogDestinationState, opts ...ResourceOption) (*LogDestination, error)
public static LogDestination Get(string name, Input<string> id, LogDestinationState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string

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

Name string

A name for the log destination

RoleArn string

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

TargetArn string

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

Arn string

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

Name string

A name for the log destination

RoleArn string

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

TargetArn string

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

arn string

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

name string

A name for the log destination

roleArn string

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

targetArn string

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

arn str

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

name str

A name for the log destination

role_arn str

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

target_arn str

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

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.