1 | import { PolicyDocument, PolicyStatement } from '@aws-cdk/aws-iam';
|
2 | import { Resource } from '@aws-cdk/core';
|
3 | import { Construct } from 'constructs';
|
4 | /**
|
5 | * Properties to define Cloudwatch log group resource policy
|
6 | */
|
7 | export interface ResourcePolicyProps {
|
8 | /**
|
9 | * Name of the log group resource policy
|
10 | * @default - Uses a unique id based on the construct path
|
11 | */
|
12 | readonly resourcePolicyName?: string;
|
13 | /**
|
14 | * Initial statements to add to the resource policy
|
15 | *
|
16 | * @default - No statements
|
17 | */
|
18 | readonly policyStatements?: PolicyStatement[];
|
19 | }
|
20 | /**
|
21 | * Resource Policy for CloudWatch Log Groups
|
22 | *
|
23 | * Policies define the operations that are allowed on this resource.
|
24 | *
|
25 | * You almost never need to define this construct directly.
|
26 | *
|
27 | * All AWS resources that support resource policies have a method called
|
28 | * `addToResourcePolicy()`, which will automatically create a new resource
|
29 | * policy if one doesn't exist yet, otherwise it will add to the existing
|
30 | * policy.
|
31 | *
|
32 | * Prefer to use `addToResourcePolicy()` instead.
|
33 | */
|
34 | export declare class ResourcePolicy extends Resource {
|
35 | /**
|
36 | * The IAM policy document for this resource policy.
|
37 | */
|
38 | readonly document: PolicyDocument;
|
39 | constructor(scope: Construct, id: string, props?: ResourcePolicyProps);
|
40 | }
|