AWS Fundamentals Logo
AWS Fundamentals
AWS::Logs::ResourcePolicy

Logs ResourcePolicy

The resource schema for AWSLogs ResourcePolicy

Properties

2 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
PolicyDocument
string
Required
PolicyName
string
RequiredCreate-only

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Logs::ResourcePolicy

Resources:
  MyResource:
    Type: AWS::Logs::ResourcePolicy
    Properties:
      PolicyName: "my-policyname"
      PolicyDocument: "value"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

logs:PutResourcePolicylogs:DescribeResourcePolicies

read

logs:DescribeResourcePolicies

update

logs:PutResourcePolicylogs:DescribeResourcePolicieslogs:DeleteResourcePolicy

delete

logs:DeleteResourcePolicy

list

logs:DescribeResourcePolicies

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceLogs
Properties2
Required2
TaggingNot supported
Primary IDPolicyName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

PolicyName

External Links