Repository

class Repository : KotlinCustomResource

Provides an Elastic Container Registry Repository.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ecr.Repository;
import com.pulumi.aws.ecr.RepositoryArgs;
import com.pulumi.aws.ecr.inputs.RepositoryImageScanningConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new Repository("foo", RepositoryArgs.builder()
.imageScanningConfiguration(RepositoryImageScanningConfigurationArgs.builder()
.scanOnPush(true)
.build())
.imageTagMutability("MUTABLE")
.build());
}
}

Import

ECR Repositories can be imported using the name, e.g.,

$ pulumi import aws:ecr/repository:Repository service test-service

Properties

Link copied to clipboard
val arn: Output<String>

Full ARN of the repository.

Link copied to clipboard

Encryption configuration for the repository. See below for schema.

Link copied to clipboard
val forceDelete: Output<Boolean>?

If true, will delete the repository even if it contains images. Defaults to false.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Configuration block that defines image scanning configuration for the repository. By default, image scanning must be manually triggered. See the ECR User Guide for more information about image scanning.

Link copied to clipboard

The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE.

Link copied to clipboard
val name: Output<String>

Name of the repository.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val registryId: Output<String>

The registry ID where the repository was created.

Link copied to clipboard
val repositoryUrl: Output<String>

The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).

Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>