AWS::Logs::DestinationThe 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.
5 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
DestinationName | string | RequiredCreate-only |
RoleArn | string | Required |
TargetArn | string | Required |
DestinationPolicy | string | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Logs::Destination
Resources:
MyResource:
Type: AWS::Logs::Destination
Properties:
DestinationName: "my-destinationname"
TargetArn: "arn:aws:service:region:account:resource"
RoleArn: "arn:aws:service:region:account:resource"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
logs:PutDestinationlogs:PutDestinationPolicylogs:DescribeDestinationslogs:TagResourceiam:PassRolelogs:DescribeDestinationslogs:ListTagsForResourcelogs:PutDestinationlogs:PutDestinationPolicylogs:DescribeDestinationslogs:TagResourcelogs:UntagResourcelogs:ListTagsForResourceiam:PassRolelogs:DeleteDestinationlogs:DescribeDestinationslogs:ListTagsForResourceOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterDestinationNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DestinationName