import * as core from "@terrascript/core"; export interface ResourcePolicyArgs extends core.ResourceArgs { /** * (Required) A JSON-formatted resource policy. For more information, see [Sharing a Projec](https://do * cs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share) and [Sharin * g a Report Group](https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html# * report-groups-sharing-share). */ policy: string | core.StringOut; /** * (Required) The ARN of the Project or ReportGroup resource you want to associate with a resource poli * cy. */ resourceArn: string | core.StringOut; } export class ResourcePolicy extends core.Resource { /** * The ARN of Resource. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) A JSON-formatted resource policy. For more information, see [Sharing a Projec](https://do * cs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share) and [Sharin * g a Report Group](https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html# * report-groups-sharing-share). */ @core.attr(String) public policy!: string | core.StringOut; /** * (Required) The ARN of the Project or ReportGroup resource you want to associate with a resource poli * cy. */ @core.attr(String) public resourceArn!: string | core.StringOut; constructor(name: string, args?: ResourcePolicyArgs) { super(name, "aws_codebuild_resource_policy", args); } public override getNamespace(): string { return "aws_codebuild"; } }