1. Packages
  2. AWS Native
  3. API Docs
  4. ecr
  5. ReplicationConfiguration

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.ecr.ReplicationConfiguration

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    The AWS::ECR::ReplicationConfiguration resource configures the replication destinations for an Amazon Elastic Container Registry (Amazon Private ECR). For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/replication.html

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var myReplicationConfig = new AwsNative.Ecr.ReplicationConfiguration("myReplicationConfig", new()
        {
            ReplicationConfigurationValue = new AwsNative.Ecr.Inputs.ReplicationConfigurationArgs
            {
                Rules = new[]
                {
                    new AwsNative.Ecr.Inputs.ReplicationConfigurationReplicationRuleArgs
                    {
                        Destinations = new[]
                        {
                            new AwsNative.Ecr.Inputs.ReplicationConfigurationReplicationDestinationArgs
                            {
                                Region = "us-east-2",
                                RegistryId = "123456789012",
                            },
                            new AwsNative.Ecr.Inputs.ReplicationConfigurationReplicationDestinationArgs
                            {
                                Region = "us-west-1",
                                RegistryId = "123456789012",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ecr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ecr.NewReplicationConfiguration(ctx, "myReplicationConfig", &ecr.ReplicationConfigurationArgs{
    			ReplicationConfiguration: &ecr.ReplicationConfigurationTypeArgs{
    				Rules: ecr.ReplicationConfigurationReplicationRuleArray{
    					&ecr.ReplicationConfigurationReplicationRuleArgs{
    						Destinations: ecr.ReplicationConfigurationReplicationDestinationArray{
    							&ecr.ReplicationConfigurationReplicationDestinationArgs{
    								Region:     pulumi.String("us-east-2"),
    								RegistryId: pulumi.String("123456789012"),
    							},
    							&ecr.ReplicationConfigurationReplicationDestinationArgs{
    								Region:     pulumi.String("us-west-1"),
    								RegistryId: pulumi.String("123456789012"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    my_replication_config = aws_native.ecr.ReplicationConfiguration("myReplicationConfig", replication_configuration=aws_native.ecr.ReplicationConfigurationArgs(
        rules=[aws_native.ecr.ReplicationConfigurationReplicationRuleArgs(
            destinations=[
                aws_native.ecr.ReplicationConfigurationReplicationDestinationArgs(
                    region="us-east-2",
                    registry_id="123456789012",
                ),
                aws_native.ecr.ReplicationConfigurationReplicationDestinationArgs(
                    region="us-west-1",
                    registry_id="123456789012",
                ),
            ],
        )],
    ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const myReplicationConfig = new aws_native.ecr.ReplicationConfiguration("myReplicationConfig", {replicationConfiguration: {
        rules: [{
            destinations: [
                {
                    region: "us-east-2",
                    registryId: "123456789012",
                },
                {
                    region: "us-west-1",
                    registryId: "123456789012",
                },
            ],
        }],
    }});
    

    Coming soon!

    Create ReplicationConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ReplicationConfiguration(name: string, args: ReplicationConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def ReplicationConfiguration(resource_name: str,
                                 args: ReplicationConfigurationInitArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReplicationConfiguration(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 replication_configuration: Optional[ReplicationConfigurationArgs] = None)
    func NewReplicationConfiguration(ctx *Context, name string, args ReplicationConfigurationArgs, opts ...ResourceOption) (*ReplicationConfiguration, error)
    public ReplicationConfiguration(string name, ReplicationConfigurationArgs args, CustomResourceOptions? opts = null)
    public ReplicationConfiguration(String name, ReplicationConfigurationArgs args)
    public ReplicationConfiguration(String name, ReplicationConfigurationArgs args, CustomResourceOptions options)
    
    type: aws-native:ecr:ReplicationConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ReplicationConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ReplicationConfigurationInitArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ReplicationConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicationConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicationConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const replicationConfigurationResource = new aws_native.ecr.ReplicationConfiguration("replicationConfigurationResource", {replicationConfiguration: {
        rules: [{
            destinations: [{
                region: "string",
                registryId: "string",
            }],
            repositoryFilters: [{
                filter: "string",
                filterType: aws_native.ecr.ReplicationConfigurationFilterType.PrefixMatch,
            }],
        }],
    }});
    
    Coming soon!
    

    ReplicationConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ReplicationConfiguration resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReplicationConfiguration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RegistryId string
    The RegistryId associated with the aws account.
    Id string
    The provider-assigned unique ID for this managed resource.
    RegistryId string
    The RegistryId associated with the aws account.
    id String
    The provider-assigned unique ID for this managed resource.
    registryId String
    The RegistryId associated with the aws account.
    id string
    The provider-assigned unique ID for this managed resource.
    registryId string
    The RegistryId associated with the aws account.
    id str
    The provider-assigned unique ID for this managed resource.
    registry_id str
    The RegistryId associated with the aws account.
    id String
    The provider-assigned unique ID for this managed resource.
    registryId String
    The RegistryId associated with the aws account.

    Supporting Types

    ReplicationConfiguration, ReplicationConfigurationArgs

    Rules List<Pulumi.AwsNative.Ecr.Inputs.ReplicationConfigurationReplicationRule>
    An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
    Rules []ReplicationConfigurationReplicationRule
    An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
    rules List<ReplicationConfigurationReplicationRule>
    An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
    rules ReplicationConfigurationReplicationRule[]
    An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
    rules Sequence[ReplicationConfigurationReplicationRule]
    An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
    rules List<Property Map>
    An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.

    ReplicationConfigurationFilterType, ReplicationConfigurationFilterTypeArgs

    PrefixMatch
    PREFIX_MATCH
    ReplicationConfigurationFilterTypePrefixMatch
    PREFIX_MATCH
    PrefixMatch
    PREFIX_MATCH
    PrefixMatch
    PREFIX_MATCH
    PREFIX_MATCH
    PREFIX_MATCH
    "PREFIX_MATCH"
    PREFIX_MATCH

    ReplicationConfigurationReplicationDestination, ReplicationConfigurationReplicationDestinationArgs

    Region string
    RegistryId string
    Region string
    RegistryId string
    region String
    registryId String
    region string
    registryId string
    region String
    registryId String

    ReplicationConfigurationReplicationRule, ReplicationConfigurationReplicationRuleArgs

    Destinations List<Pulumi.AwsNative.Ecr.Inputs.ReplicationConfigurationReplicationDestination>
    An array of objects representing the details of a replication destination.
    RepositoryFilters List<Pulumi.AwsNative.Ecr.Inputs.ReplicationConfigurationRepositoryFilter>
    An array of objects representing the details of a repository filter.
    Destinations []ReplicationConfigurationReplicationDestination
    An array of objects representing the details of a replication destination.
    RepositoryFilters []ReplicationConfigurationRepositoryFilter
    An array of objects representing the details of a repository filter.
    destinations List<ReplicationConfigurationReplicationDestination>
    An array of objects representing the details of a replication destination.
    repositoryFilters List<ReplicationConfigurationRepositoryFilter>
    An array of objects representing the details of a repository filter.
    destinations ReplicationConfigurationReplicationDestination[]
    An array of objects representing the details of a replication destination.
    repositoryFilters ReplicationConfigurationRepositoryFilter[]
    An array of objects representing the details of a repository filter.
    destinations Sequence[ReplicationConfigurationReplicationDestination]
    An array of objects representing the details of a replication destination.
    repository_filters Sequence[ReplicationConfigurationRepositoryFilter]
    An array of objects representing the details of a repository filter.
    destinations List<Property Map>
    An array of objects representing the details of a replication destination.
    repositoryFilters List<Property Map>
    An array of objects representing the details of a repository filter.

    ReplicationConfigurationRepositoryFilter, ReplicationConfigurationRepositoryFilterArgs

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi