@pulumi/awsx
Version:
[](https://github.com/pulumi/pulumi-awsx/actions) [](https://slack.pulumi.com) [: obj is Repository;
/**
* Underlying repository lifecycle policy
*/
readonly lifecyclePolicy: pulumi.Output<pulumiAws.ecr.LifecyclePolicy | undefined>;
/**
* Underlying Repository resource
*/
readonly repository: pulumi.Output<pulumiAws.ecr.Repository>;
/**
* The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).
*/
readonly url: pulumi.Output<string>;
/**
* Create a Repository resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: RepositoryArgs, opts?: pulumi.ComponentResourceOptions);
}
/**
* The set of arguments for constructing a Repository resource.
*/
export interface RepositoryArgs {
/**
* Encryption configuration for the repository. See below for schema.
*/
encryptionConfigurations?: pulumi.Input<pulumi.Input<pulumiAws.types.input.ecr.RepositoryEncryptionConfiguration>[] | undefined>;
/**
* If `true`, will delete the repository even if it contains images.
* Defaults to `false`.
*/
forceDelete?: pulumi.Input<boolean | undefined>;
/**
* Configuration block that defines image scanning configuration for the repository. By default, image scanning must be manually triggered. See the [ECR User Guide](https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html) for more information about image scanning.
*/
imageScanningConfiguration?: pulumi.Input<pulumiAws.types.input.ecr.RepositoryImageScanningConfiguration | undefined>;
/**
* The tag mutability setting for the repository. Must be one of: `MUTABLE`, `IMMUTABLE`, `IMMUTABLE_WITH_EXCLUSION`, or `MUTABLE_WITH_EXCLUSION`. Defaults to `MUTABLE`.
*/
imageTagMutability?: pulumi.Input<string | undefined>;
/**
* Configuration block that defines filters to specify which image tags can override the default tag mutability setting. Only applicable when `imageTagMutability` is set to `IMMUTABLE_WITH_EXCLUSION` or `MUTABLE_WITH_EXCLUSION`. See below for schema.
*/
imageTagMutabilityExclusionFilters?: pulumi.Input<pulumi.Input<pulumiAws.types.input.ecr.RepositoryImageTagMutabilityExclusionFilter>[] | undefined>;
/**
* A lifecycle policy consists of one or more rules that determine which images in a repository should be expired. If not provided, this will default to untagged images expiring after 1 day.
*/
lifecyclePolicy?: inputs.ecr.LifecyclePolicyArgs;
/**
* Name of the repository.
*/
name?: pulumi.Input<string | undefined>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string | undefined>;
/**
* A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
} | undefined>;
}
//# sourceMappingURL=repository.d.ts.map