import * as core from "@terrascript/core"; export interface RepositoryPermissionsPolicyArgs extends core.ResourceArgs { /** * (Required) The name of the domain on which to set the resource policy. */ domain: string | core.StringOut; /** * (Optional) The account number of the AWS account that owns the domain. */ domainOwner?: string | core.StringOut; /** * (Required) A JSON policy string to be set as the access control resource policy on the provided doma * in. */ policyDocument: string | core.StringOut; /** * (Optional) The current revision of the resource policy to be set. This revision is used for optimist * ic locking, which prevents others from overwriting your changes to the domain's resource policy. */ policyRevision?: string | core.StringOut; /** * (Required) The name of the repository to set the resource policy on. */ repository: string | core.StringOut; } export class RepositoryPermissionsPolicy extends core.Resource { /** * (Required) The name of the domain on which to set the resource policy. */ @core.attr(String) public domain!: string | core.StringOut; /** * (Optional) The account number of the AWS account that owns the domain. */ @core.attr(String, { computed: true }) public domainOwner?: string | core.StringOut; /** * The ARN of the resource associated with the resource policy. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) A JSON policy string to be set as the access control resource policy on the provided doma * in. */ @core.attr(String) public policyDocument!: string | core.StringOut; /** * (Optional) The current revision of the resource policy to be set. This revision is used for optimist * ic locking, which prevents others from overwriting your changes to the domain's resource policy. */ @core.attr(String, { computed: true }) public policyRevision?: string | core.StringOut; /** * (Required) The name of the repository to set the resource policy on. */ @core.attr(String) public repository!: string | core.StringOut; /** * The ARN of the resource associated with the resource policy. */ @core.attr(String, { computed: true }) public resourceArn!: string | core.StringOut; constructor(name: string, args?: RepositoryPermissionsPolicyArgs) { super(name, "aws_codeartifact_repository_permissions_policy", args); } public override getNamespace(): string { return "aws_codeartifact"; } }