1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. logs
  5. Destination

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.logs.Destination

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

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.

Create Destination Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Destination(name: string, args: DestinationArgs, opts?: CustomResourceOptions);
@overload
def Destination(resource_name: str,
                args: DestinationArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def Destination(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                role_arn: Optional[str] = None,
                target_arn: Optional[str] = None,
                destination_name: Optional[str] = None,
                destination_policy: Optional[str] = None)
func NewDestination(ctx *Context, name string, args DestinationArgs, opts ...ResourceOption) (*Destination, error)
public Destination(string name, DestinationArgs args, CustomResourceOptions? opts = null)
public Destination(String name, DestinationArgs args)
public Destination(String name, DestinationArgs args, CustomResourceOptions options)
type: aws-native:logs:Destination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DestinationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DestinationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DestinationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DestinationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Destination Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Destination resource accepts the following input properties:

RoleArn This property is required. string
The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
TargetArn This property is required. string
The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
DestinationName string
The name of the destination resource
DestinationPolicy string
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
RoleArn This property is required. string
The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
TargetArn This property is required. string
The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
DestinationName string
The name of the destination resource
DestinationPolicy string
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
roleArn This property is required. String
The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
targetArn This property is required. String
The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
destinationName String
The name of the destination resource
destinationPolicy String
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
roleArn This property is required. string
The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
targetArn This property is required. string
The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
destinationName string
The name of the destination resource
destinationPolicy string
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
role_arn This property is required. str
The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
target_arn This property is required. str
The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
destination_name str
The name of the destination resource
destination_policy str
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
roleArn This property is required. String
The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
targetArn This property is required. String
The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
destinationName String
The name of the destination resource
destinationPolicy String
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.

Outputs

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

Arn string
The ARN of the CloudWatch Logs destination, such as arn:aws:logs:us-west-1:123456789012:destination:MyDestination .
Id string
The provider-assigned unique ID for this managed resource.
Arn string
The ARN of the CloudWatch Logs destination, such as arn:aws:logs:us-west-1:123456789012:destination:MyDestination .
Id string
The provider-assigned unique ID for this managed resource.
arn String
The ARN of the CloudWatch Logs destination, such as arn:aws:logs:us-west-1:123456789012:destination:MyDestination .
id String
The provider-assigned unique ID for this managed resource.
arn string
The ARN of the CloudWatch Logs destination, such as arn:aws:logs:us-west-1:123456789012:destination:MyDestination .
id string
The provider-assigned unique ID for this managed resource.
arn str
The ARN of the CloudWatch Logs destination, such as arn:aws:logs:us-west-1:123456789012:destination:MyDestination .
id str
The provider-assigned unique ID for this managed resource.
arn String
The ARN of the CloudWatch Logs destination, such as arn:aws:logs:us-west-1:123456789012:destination:MyDestination .
id String
The provider-assigned unique ID for this managed resource.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi