Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Repository
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ecr
Assembly: Pulumi.Aws.dll
Syntax
public class Repository : CustomResource

Constructors

View Source

Repository(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 Source

Arn

Full ARN of the repository.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

Name

Name of the repository.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RegistryId

The registry ID where the repository was created.

Declaration
public Output<string> RegistryId { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.