We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 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,
tags: Optional[Sequence[_root_inputs.TagArgs]] = 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.
resource "aws-native_logs_destination" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args DestinationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Role
Arn string - The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
- Target
Arn string - The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
- Destination
Name string - The name of the destination resource
- Destination
Policy string - An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
-
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Role
Arn string - The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
- Target
Arn string - The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
- Destination
Name string - The name of the destination resource
- Destination
Policy string - An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
-
Tag
Args - An array of key-value pairs to apply to this resource.
- role_
arn string - The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
- target_
arn string - The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
- destination_
name string - The name of the destination resource
- destination_
policy string - An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- list(object)
- An array of key-value pairs to apply to this resource.
- role
Arn String - The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
- target
Arn String - The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
- destination
Name String - The name of the destination resource
- destination
Policy String - An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- role
Arn string - The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
- target
Arn string - The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
- destination
Name string - The name of the destination resource
- destination
Policy string - An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- Tag[]
- An array of key-value pairs to apply to this resource.
- role_
arn str - The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
- target_
arn 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.
-
Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- role
Arn String - The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource
- target
Arn String - The ARN of the physical target where the log events are delivered (for example, a Kinesis stream)
- destination
Name String - The name of the destination resource
- destination
Policy String - An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Destination resource produces the following output properties:
Look up Existing Destination Resource
Get an existing Destination 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>, opts?: CustomResourceOptions): Destination@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Destinationfunc GetDestination(ctx *Context, name string, id IDInput, state *DestinationState, opts ...ResourceOption) (*Destination, error)public static Destination Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Destination get(String name, Output<String> id, CustomResourceOptions options)resources: existingDestination: type: aws-native:logs:Destination get: id: ${id}import {
to = aws-native_logs_destination.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state DestinationState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
Tag, TagArgs
A set of tags to apply to the 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.
published on Wednesday, Nov 18, 2026 by Pulumi