Show / Hide Table of Contents

Class 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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
LogDestination
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.CloudWatch
Assembly: Pulumi.Aws.dll
Syntax
public class LogDestination : CustomResource

Constructors

View Source

LogDestination(String, LogDestinationArgs, CustomResourceOptions)

Create a LogDestination resource with the given unique name, arguments, and options.

Declaration
public LogDestination(string name, LogDestinationArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

LogDestinationArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

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

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A name for the log destination

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RoleArn

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

Declaration
public Output<string> RoleArn { get; }
Property Value
Type Description
Output<System.String>
View Source

TargetArn

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

Declaration
public Output<string> TargetArn { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, LogDestinationState, CustomResourceOptions)

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

Declaration
public static LogDestination Get(string name, Input<string> id, LogDestinationState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

LogDestinationState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
LogDestination
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.