import * as core from "@terrascript/core"; export interface LogResourcePolicyArgs extends core.ResourceArgs { /** * (Required) Details of the resource policy, including the identity of the principal that is enabled t * o put logs to this account. This is formatted as a JSON string. Maximum length of 5120 characters. */ policyDocument: string | core.StringOut; /** * (Required) Name of the resource policy. */ policyName: string | core.StringOut; } export class LogResourcePolicy extends core.Resource { /** * The name of the CloudWatch log resource policy */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Details of the resource policy, including the identity of the principal that is enabled t * o put logs to this account. This is formatted as a JSON string. Maximum length of 5120 characters. */ @core.attr(String) public policyDocument!: string | core.StringOut; /** * (Required) Name of the resource policy. */ @core.attr(String) public policyName!: string | core.StringOut; constructor(name: string, args?: LogResourcePolicyArgs) { super(name, "aws_cloudwatch_log_resource_policy", args); } public override getNamespace(): string { return "aws_cloudwatch"; } }