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,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.CloudWatch
Assembly: Pulumi.Aws.dll
Syntax
public class LogDestination : CustomResource
Constructors
View SourceLogDestination(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 SourceArn
The Amazon Resource Name (ARN) specifying the log destination.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
A name for the log destination
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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 SourceGet(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 |