import * as core from "@terrascript/core"; export interface LifecyclePolicyArgs extends core.ResourceArgs { /** * (Required) The policy document. This is a JSON formatted string. See more details about [Policy Para * meters](http://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html#lifecycle_polic * y_parameters) in the official AWS docs. */ policy: string | core.StringOut; /** * (Required) Name of the repository to apply the policy. */ repository: string | core.StringOut; } export class LifecyclePolicy extends core.Resource { @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The policy document. This is a JSON formatted string. See more details about [Policy Para * meters](http://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html#lifecycle_polic * y_parameters) in the official AWS docs. */ @core.attr(String) public policy!: string | core.StringOut; /** * The registry ID where the repository was created. */ @core.attr(String, { computed: true }) public registryId!: string | core.StringOut; /** * (Required) Name of the repository to apply the policy. */ @core.attr(String) public repository!: string | core.StringOut; constructor(name: string, args?: LifecyclePolicyArgs) { super(name, "aws_ecr_lifecycle_policy", args); } public override getNamespace(): string { return "aws_ecr"; } }