Class Repository
Provides an Elastic Container Registry Repository.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var foo = new Aws.Ecr.Repository("foo", new Aws.Ecr.RepositoryArgs
{
ImageScanningConfiguration = new Aws.Ecr.Inputs.RepositoryImageScanningConfigurationArgs
{
ScanOnPush = true,
},
ImageTagMutability = "MUTABLE",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ecr
Assembly: Pulumi.Aws.dll
Syntax
public class Repository : CustomResource
Constructors
View SourceRepository(String, RepositoryArgs, CustomResourceOptions)
Create a Repository resource with the given unique name, arguments, and options.
Declaration
public Repository(string name, RepositoryArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RepositoryArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
Full ARN of the repository.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ImageScanningConfiguration
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.
Declaration
public Output<RepositoryImageScanningConfiguration> ImageScanningConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| Output<RepositoryImageScanningConfiguration> |
ImageTagMutability
The tag mutability setting for the repository. Must be one of: MUTABLE or IMMUTABLE. Defaults to MUTABLE.
Declaration
public Output<string> ImageTagMutability { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
Name of the repository.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RegistryId
The registry ID where the repository was created.
Declaration
public Output<string> RegistryId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RepositoryUrl
The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).
Declaration
public Output<string> RepositoryUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, RepositoryState, CustomResourceOptions)
Get an existing Repository resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Repository Get(string name, Input<string> id, RepositoryState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RepositoryState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Repository |