import * as core from "@terrascript/core"; export interface CloudwatchEventBusPolicyArgs extends core.ResourceArgs { /** * (Optional) The event bus to set the permissions on. If you omit this, the permissions are set on the * default` event bus. */ eventBusName?: string | core.StringOut; /** * (Required) The text of the policy. For more information about building AWS IAM policy documents with * Terraform, see the [AWS IAM Policy Document Guide](https://learn.hashicorp.com/terraform/aws/iam-po * licy). */ policy: string | core.StringOut; } export class CloudwatchEventBusPolicy extends core.Resource { /** * (Optional) The event bus to set the permissions on. If you omit this, the permissions are set on the * default` event bus. */ @core.attr(String) public eventBusName?: string | core.StringOut; /** * The name of the EventBridge event bus. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The text of the policy. For more information about building AWS IAM policy documents with * Terraform, see the [AWS IAM Policy Document Guide](https://learn.hashicorp.com/terraform/aws/iam-po * licy). */ @core.attr(String) public policy!: string | core.StringOut; constructor(name: string, args?: CloudwatchEventBusPolicyArgs) { super(name, "aws_cloudwatch_event_bus_policy", args); } public override getNamespace(): string { return "aws_eventbridge"; } }