We recommend new projects start with resources from the AWS provider.
aws-native.ecr.ReplicationConfiguration
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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={
"rules": [{
"destinations": [
{
"region": "us-east-2",
"registry_id": "123456789012",
},
{
"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.
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:
- Replication
Configuration Pulumi.Value Aws Native. Ecr. Inputs. Replication Configuration - The replication configuration for a registry.
- Replication
Configuration ReplicationConfiguration Type Args - The replication configuration for a registry.
- replication
Configuration ReplicationConfiguration - The replication configuration for a registry.
- replication
Configuration ReplicationConfiguration - The replication configuration for a registry.
- replication_
configuration ReplicationConfiguration Args - The replication configuration for a registry.
- replication
Configuration Property Map - The replication configuration for a registry.
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.
- Registry
Id string - The RegistryId associated with the aws account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Registry
Id string - The RegistryId associated with the aws account.
- id String
- The provider-assigned unique ID for this managed resource.
- registry
Id String - The RegistryId associated with the aws account.
- id string
- The provider-assigned unique ID for this managed resource.
- registry
Id 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.
- registry
Id String - The RegistryId associated with the aws account.
Supporting Types
ReplicationConfiguration, ReplicationConfigurationArgs
- Rules
List<Pulumi.
Aws Native. Ecr. Inputs. Replication Configuration Replication Rule> - An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
- Rules
[]Replication
Configuration Replication Rule - An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
- rules
List<Replication
Configuration Replication Rule> - An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
- rules
Replication
Configuration Replication Rule[] - An array of objects representing the replication rules for a replication configuration. A replication configuration may contain a maximum of 10 rules.
- rules
Sequence[Replication
Configuration Replication Rule] - 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
- Prefix
Match - PREFIX_MATCH
- Replication
Configuration Filter Type Prefix Match - PREFIX_MATCH
- Prefix
Match - PREFIX_MATCH
- Prefix
Match - PREFIX_MATCH
- PREFIX_MATCH
- PREFIX_MATCH
- "PREFIX_MATCH"
- PREFIX_MATCH
ReplicationConfigurationReplicationDestination, ReplicationConfigurationReplicationDestinationArgs
- Region string
- The Region to replicate to.
- Registry
Id string - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- Region string
- The Region to replicate to.
- Registry
Id string - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- region String
- The Region to replicate to.
- registry
Id String - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- region string
- The Region to replicate to.
- registry
Id string - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- region str
- The Region to replicate to.
- registry_
id str - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
- region String
- The Region to replicate to.
- registry
Id String - The AWS account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
ReplicationConfigurationReplicationRule, ReplicationConfigurationReplicationRuleArgs
- Destinations
List<Pulumi.
Aws Native. Ecr. Inputs. Replication Configuration Replication Destination> - An array of objects representing the details of a replication destination.
- Repository
Filters List<Pulumi.Aws Native. Ecr. Inputs. Replication Configuration Repository Filter> - An array of objects representing the details of a repository filter.
- Destinations
[]Replication
Configuration Replication Destination - An array of objects representing the details of a replication destination.
- Repository
Filters []ReplicationConfiguration Repository Filter - An array of objects representing the details of a repository filter.
- destinations
List<Replication
Configuration Replication Destination> - An array of objects representing the details of a replication destination.
- repository
Filters List<ReplicationConfiguration Repository Filter> - An array of objects representing the details of a repository filter.
- destinations
Replication
Configuration Replication Destination[] - An array of objects representing the details of a replication destination.
- repository
Filters ReplicationConfiguration Repository Filter[] - An array of objects representing the details of a repository filter.
- destinations
Sequence[Replication
Configuration Replication Destination] - An array of objects representing the details of a replication destination.
- repository_
filters Sequence[ReplicationConfiguration Repository Filter] - 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.
- repository
Filters List<Property Map> - An array of objects representing the details of a repository filter.
ReplicationConfigurationRepositoryFilter, ReplicationConfigurationRepositoryFilterArgs
- Filter string
- The repository filter details. When the
PREFIX_MATCH
filter type is specified, this value is required and should be the repository name prefix to configure replication for. - Filter
Type Pulumi.Aws Native. Ecr. Replication Configuration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with thefilter
parameter.
- Filter string
- The repository filter details. When the
PREFIX_MATCH
filter type is specified, this value is required and should be the repository name prefix to configure replication for. - Filter
Type ReplicationConfiguration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with thefilter
parameter.
- filter String
- The repository filter details. When the
PREFIX_MATCH
filter type is specified, this value is required and should be the repository name prefix to configure replication for. - filter
Type ReplicationConfiguration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with thefilter
parameter.
- filter string
- The repository filter details. When the
PREFIX_MATCH
filter type is specified, this value is required and should be the repository name prefix to configure replication for. - filter
Type ReplicationConfiguration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with thefilter
parameter.
- filter str
- The repository filter details. When the
PREFIX_MATCH
filter type is specified, this value is required and should be the repository name prefix to configure replication for. - filter_
type ReplicationConfiguration Filter Type - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with thefilter
parameter.
- filter String
- The repository filter details. When the
PREFIX_MATCH
filter type is specified, this value is required and should be the repository name prefix to configure replication for. - filter
Type "PREFIX_MATCH" - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with thefilter
parameter.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.