Try AWS Native preview for resources not in the classic version.
aws.ecr.ReplicationConfiguration
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an Elastic Container Registry Replication Configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = aws.getCallerIdentity({});
const example = aws.getRegions({});
const exampleReplicationConfiguration = new aws.ecr.ReplicationConfiguration("example", {replicationConfiguration: {
rules: [{
destinations: [{
region: example.then(example => example.names?.[0]),
registryId: current.then(current => current.accountId),
}],
}],
}});
import pulumi
import pulumi_aws as aws
current = aws.get_caller_identity()
example = aws.get_regions()
example_replication_configuration = aws.ecr.ReplicationConfiguration("example", replication_configuration={
"rules": [{
"destinations": [{
"region": example.names[0],
"registryId": current.account_id,
}],
}],
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := aws.GetCallerIdentity(ctx, nil, nil)
if err != nil {
return err
}
example, err := aws.GetRegions(ctx, nil, nil)
if err != nil {
return err
}
_, err = ecr.NewReplicationConfiguration(ctx, "example", &ecr.ReplicationConfigurationArgs{
ReplicationConfiguration: &ecr.ReplicationConfigurationReplicationConfigurationArgs{
Rules: ecr.ReplicationConfigurationReplicationConfigurationRuleArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleArgs{
Destinations: ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs{
Region: pulumi.String(example.Names[0]),
RegistryId: pulumi.String(current.AccountId),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var current = Aws.GetCallerIdentity.Invoke();
var example = Aws.GetRegions.Invoke();
var exampleReplicationConfiguration = new Aws.Ecr.ReplicationConfiguration("example", new()
{
ReplicationConfigurationDetails = new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationArgs
{
Rules = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleArgs
{
Destinations = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs
{
Region = example.Apply(getRegionsResult => getRegionsResult.Names[0]),
RegistryId = current.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId),
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetCallerIdentityArgs;
import com.pulumi.aws.inputs.GetRegionsArgs;
import com.pulumi.aws.ecr.ReplicationConfiguration;
import com.pulumi.aws.ecr.ReplicationConfigurationArgs;
import com.pulumi.aws.ecr.inputs.ReplicationConfigurationReplicationConfigurationArgs;
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) {
final var current = AwsFunctions.getCallerIdentity();
final var example = AwsFunctions.getRegions();
var exampleReplicationConfiguration = new ReplicationConfiguration("exampleReplicationConfiguration", ReplicationConfigurationArgs.builder()
.replicationConfiguration(ReplicationConfigurationReplicationConfigurationArgs.builder()
.rules(ReplicationConfigurationReplicationConfigurationRuleArgs.builder()
.destinations(ReplicationConfigurationReplicationConfigurationRuleDestinationArgs.builder()
.region(example.applyValue(getRegionsResult -> getRegionsResult.names()[0]))
.registryId(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
.build())
.build())
.build())
.build());
}
}
resources:
exampleReplicationConfiguration:
type: aws:ecr:ReplicationConfiguration
name: example
properties:
replicationConfiguration:
rules:
- destinations:
- region: ${example.names[0]}
registryId: ${current.accountId}
variables:
current:
fn::invoke:
Function: aws:getCallerIdentity
Arguments: {}
example:
fn::invoke:
Function: aws:getRegions
Arguments: {}
Multiple Region Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = aws.getCallerIdentity({});
const example = aws.getRegions({});
const exampleReplicationConfiguration = new aws.ecr.ReplicationConfiguration("example", {replicationConfiguration: {
rules: [{
destinations: [
{
region: example.then(example => example.names?.[0]),
registryId: current.then(current => current.accountId),
},
{
region: example.then(example => example.names?.[1]),
registryId: current.then(current => current.accountId),
},
],
}],
}});
import pulumi
import pulumi_aws as aws
current = aws.get_caller_identity()
example = aws.get_regions()
example_replication_configuration = aws.ecr.ReplicationConfiguration("example", replication_configuration={
"rules": [{
"destinations": [
{
"region": example.names[0],
"registryId": current.account_id,
},
{
"region": example.names[1],
"registryId": current.account_id,
},
],
}],
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := aws.GetCallerIdentity(ctx, nil, nil)
if err != nil {
return err
}
example, err := aws.GetRegions(ctx, nil, nil)
if err != nil {
return err
}
_, err = ecr.NewReplicationConfiguration(ctx, "example", &ecr.ReplicationConfigurationArgs{
ReplicationConfiguration: &ecr.ReplicationConfigurationReplicationConfigurationArgs{
Rules: ecr.ReplicationConfigurationReplicationConfigurationRuleArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleArgs{
Destinations: ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs{
Region: pulumi.String(example.Names[0]),
RegistryId: pulumi.String(current.AccountId),
},
&ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs{
Region: pulumi.String(example.Names[1]),
RegistryId: pulumi.String(current.AccountId),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var current = Aws.GetCallerIdentity.Invoke();
var example = Aws.GetRegions.Invoke();
var exampleReplicationConfiguration = new Aws.Ecr.ReplicationConfiguration("example", new()
{
ReplicationConfigurationDetails = new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationArgs
{
Rules = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleArgs
{
Destinations = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs
{
Region = example.Apply(getRegionsResult => getRegionsResult.Names[0]),
RegistryId = current.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId),
},
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs
{
Region = example.Apply(getRegionsResult => getRegionsResult.Names[1]),
RegistryId = current.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId),
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetCallerIdentityArgs;
import com.pulumi.aws.inputs.GetRegionsArgs;
import com.pulumi.aws.ecr.ReplicationConfiguration;
import com.pulumi.aws.ecr.ReplicationConfigurationArgs;
import com.pulumi.aws.ecr.inputs.ReplicationConfigurationReplicationConfigurationArgs;
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) {
final var current = AwsFunctions.getCallerIdentity();
final var example = AwsFunctions.getRegions();
var exampleReplicationConfiguration = new ReplicationConfiguration("exampleReplicationConfiguration", ReplicationConfigurationArgs.builder()
.replicationConfiguration(ReplicationConfigurationReplicationConfigurationArgs.builder()
.rules(ReplicationConfigurationReplicationConfigurationRuleArgs.builder()
.destinations(
ReplicationConfigurationReplicationConfigurationRuleDestinationArgs.builder()
.region(example.applyValue(getRegionsResult -> getRegionsResult.names()[0]))
.registryId(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
.build(),
ReplicationConfigurationReplicationConfigurationRuleDestinationArgs.builder()
.region(example.applyValue(getRegionsResult -> getRegionsResult.names()[1]))
.registryId(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
.build())
.build())
.build())
.build());
}
}
resources:
exampleReplicationConfiguration:
type: aws:ecr:ReplicationConfiguration
name: example
properties:
replicationConfiguration:
rules:
- destinations:
- region: ${example.names[0]}
registryId: ${current.accountId}
- region: ${example.names[1]}
registryId: ${current.accountId}
variables:
current:
fn::invoke:
Function: aws:getCallerIdentity
Arguments: {}
example:
fn::invoke:
Function: aws:getRegions
Arguments: {}
Repository Filter Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = aws.getCallerIdentity({});
const example = aws.getRegions({});
const exampleReplicationConfiguration = new aws.ecr.ReplicationConfiguration("example", {replicationConfiguration: {
rules: [{
destinations: [{
region: example.then(example => example.names?.[0]),
registryId: current.then(current => current.accountId),
}],
repositoryFilters: [{
filter: "prod-microservice",
filterType: "PREFIX_MATCH",
}],
}],
}});
import pulumi
import pulumi_aws as aws
current = aws.get_caller_identity()
example = aws.get_regions()
example_replication_configuration = aws.ecr.ReplicationConfiguration("example", replication_configuration={
"rules": [{
"destinations": [{
"region": example.names[0],
"registryId": current.account_id,
}],
"repositoryFilters": [{
"filter": "prod-microservice",
"filterType": "PREFIX_MATCH",
}],
}],
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := aws.GetCallerIdentity(ctx, nil, nil)
if err != nil {
return err
}
example, err := aws.GetRegions(ctx, nil, nil)
if err != nil {
return err
}
_, err = ecr.NewReplicationConfiguration(ctx, "example", &ecr.ReplicationConfigurationArgs{
ReplicationConfiguration: &ecr.ReplicationConfigurationReplicationConfigurationArgs{
Rules: ecr.ReplicationConfigurationReplicationConfigurationRuleArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleArgs{
Destinations: ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs{
Region: pulumi.String(example.Names[0]),
RegistryId: pulumi.String(current.AccountId),
},
},
RepositoryFilters: ecr.ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArgs{
Filter: pulumi.String("prod-microservice"),
FilterType: pulumi.String("PREFIX_MATCH"),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var current = Aws.GetCallerIdentity.Invoke();
var example = Aws.GetRegions.Invoke();
var exampleReplicationConfiguration = new Aws.Ecr.ReplicationConfiguration("example", new()
{
ReplicationConfigurationDetails = new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationArgs
{
Rules = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleArgs
{
Destinations = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs
{
Region = example.Apply(getRegionsResult => getRegionsResult.Names[0]),
RegistryId = current.Apply(getCallerIdentityResult => getCallerIdentityResult.AccountId),
},
},
RepositoryFilters = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArgs
{
Filter = "prod-microservice",
FilterType = "PREFIX_MATCH",
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetCallerIdentityArgs;
import com.pulumi.aws.inputs.GetRegionsArgs;
import com.pulumi.aws.ecr.ReplicationConfiguration;
import com.pulumi.aws.ecr.ReplicationConfigurationArgs;
import com.pulumi.aws.ecr.inputs.ReplicationConfigurationReplicationConfigurationArgs;
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) {
final var current = AwsFunctions.getCallerIdentity();
final var example = AwsFunctions.getRegions();
var exampleReplicationConfiguration = new ReplicationConfiguration("exampleReplicationConfiguration", ReplicationConfigurationArgs.builder()
.replicationConfiguration(ReplicationConfigurationReplicationConfigurationArgs.builder()
.rules(ReplicationConfigurationReplicationConfigurationRuleArgs.builder()
.destinations(ReplicationConfigurationReplicationConfigurationRuleDestinationArgs.builder()
.region(example.applyValue(getRegionsResult -> getRegionsResult.names()[0]))
.registryId(current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId()))
.build())
.repositoryFilters(ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArgs.builder()
.filter("prod-microservice")
.filterType("PREFIX_MATCH")
.build())
.build())
.build())
.build());
}
}
resources:
exampleReplicationConfiguration:
type: aws:ecr:ReplicationConfiguration
name: example
properties:
replicationConfiguration:
rules:
- destinations:
- region: ${example.names[0]}
registryId: ${current.accountId}
repositoryFilters:
- filter: prod-microservice
filterType: PREFIX_MATCH
variables:
current:
fn::invoke:
Function: aws:getCallerIdentity
Arguments: {}
example:
fn::invoke:
Function: aws:getRegions
Arguments: {}
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: Optional[ReplicationConfigurationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ReplicationConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
replication_configuration: Optional[ReplicationConfigurationReplicationConfigurationArgs] = None)
func NewReplicationConfiguration(ctx *Context, name string, args *ReplicationConfigurationArgs, opts ...ResourceOption) (*ReplicationConfiguration, error)
public ReplicationConfiguration(string name, ReplicationConfigurationArgs? args = null, CustomResourceOptions? opts = null)
public ReplicationConfiguration(String name, ReplicationConfigurationArgs args)
public ReplicationConfiguration(String name, ReplicationConfigurationArgs args, CustomResourceOptions options)
type: aws: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 ReplicationConfigurationArgs
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var replicationConfigurationResource = new Aws.Ecr.ReplicationConfiguration("replicationConfigurationResource", new()
{
ReplicationConfigurationDetails = new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationArgs
{
Rules = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleArgs
{
Destinations = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs
{
Region = "string",
RegistryId = "string",
},
},
RepositoryFilters = new[]
{
new Aws.Ecr.Inputs.ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArgs
{
Filter = "string",
FilterType = "string",
},
},
},
},
},
});
example, err := ecr.NewReplicationConfiguration(ctx, "replicationConfigurationResource", &ecr.ReplicationConfigurationArgs{
ReplicationConfiguration: &ecr.ReplicationConfigurationReplicationConfigurationArgs{
Rules: ecr.ReplicationConfigurationReplicationConfigurationRuleArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleArgs{
Destinations: ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleDestinationArgs{
Region: pulumi.String("string"),
RegistryId: pulumi.String("string"),
},
},
RepositoryFilters: ecr.ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArray{
&ecr.ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArgs{
Filter: pulumi.String("string"),
FilterType: pulumi.String("string"),
},
},
},
},
},
})
var replicationConfigurationResource = new ReplicationConfiguration("replicationConfigurationResource", ReplicationConfigurationArgs.builder()
.replicationConfiguration(ReplicationConfigurationReplicationConfigurationArgs.builder()
.rules(ReplicationConfigurationReplicationConfigurationRuleArgs.builder()
.destinations(ReplicationConfigurationReplicationConfigurationRuleDestinationArgs.builder()
.region("string")
.registryId("string")
.build())
.repositoryFilters(ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArgs.builder()
.filter("string")
.filterType("string")
.build())
.build())
.build())
.build());
replication_configuration_resource = aws.ecr.ReplicationConfiguration("replicationConfigurationResource", replication_configuration={
"rules": [{
"destinations": [{
"region": "string",
"registryId": "string",
}],
"repositoryFilters": [{
"filter": "string",
"filterType": "string",
}],
}],
})
const replicationConfigurationResource = new aws.ecr.ReplicationConfiguration("replicationConfigurationResource", {replicationConfiguration: {
rules: [{
destinations: [{
region: "string",
registryId: "string",
}],
repositoryFilters: [{
filter: "string",
filterType: "string",
}],
}],
}});
type: aws:ecr:ReplicationConfiguration
properties:
replicationConfiguration:
rules:
- destinations:
- region: string
registryId: string
repositoryFilters:
- filter: string
filterType: string
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 ReplicationDetails Configuration Replication Configuration - Replication configuration for a registry. See Replication Configuration.
- Replication
Configuration ReplicationConfiguration Replication Configuration Args - Replication configuration for a registry. See Replication Configuration.
- replication
Configuration ReplicationConfiguration Replication Configuration - Replication configuration for a registry. See Replication Configuration.
- replication
Configuration ReplicationConfiguration Replication Configuration - Replication configuration for a registry. See Replication Configuration.
- replication_
configuration ReplicationConfiguration Replication Configuration Args - Replication configuration for a registry. See Replication Configuration.
- replication
Configuration Property Map - Replication configuration for a registry. See Replication Configuration.
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 registry ID where the replication configuration was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Registry
Id string - The registry ID where the replication configuration was created.
- id String
- The provider-assigned unique ID for this managed resource.
- registry
Id String - The registry ID where the replication configuration was created.
- id string
- The provider-assigned unique ID for this managed resource.
- registry
Id string - The registry ID where the replication configuration was created.
- id str
- The provider-assigned unique ID for this managed resource.
- registry_
id str - The registry ID where the replication configuration was created.
- id String
- The provider-assigned unique ID for this managed resource.
- registry
Id String - The registry ID where the replication configuration was created.
Look up Existing ReplicationConfiguration Resource
Get an existing ReplicationConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReplicationConfigurationState, opts?: CustomResourceOptions): ReplicationConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
registry_id: Optional[str] = None,
replication_configuration: Optional[ReplicationConfigurationReplicationConfigurationArgs] = None) -> ReplicationConfiguration
func GetReplicationConfiguration(ctx *Context, name string, id IDInput, state *ReplicationConfigurationState, opts ...ResourceOption) (*ReplicationConfiguration, error)
public static ReplicationConfiguration Get(string name, Input<string> id, ReplicationConfigurationState? state, CustomResourceOptions? opts = null)
public static ReplicationConfiguration get(String name, Output<String> id, ReplicationConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Registry
Id string - The registry ID where the replication configuration was created.
- Replication
Configuration ReplicationDetails Configuration Replication Configuration - Replication configuration for a registry. See Replication Configuration.
- Registry
Id string - The registry ID where the replication configuration was created.
- Replication
Configuration ReplicationConfiguration Replication Configuration Args - Replication configuration for a registry. See Replication Configuration.
- registry
Id String - The registry ID where the replication configuration was created.
- replication
Configuration ReplicationConfiguration Replication Configuration - Replication configuration for a registry. See Replication Configuration.
- registry
Id string - The registry ID where the replication configuration was created.
- replication
Configuration ReplicationConfiguration Replication Configuration - Replication configuration for a registry. See Replication Configuration.
- registry_
id str - The registry ID where the replication configuration was created.
- replication_
configuration ReplicationConfiguration Replication Configuration Args - Replication configuration for a registry. See Replication Configuration.
- registry
Id String - The registry ID where the replication configuration was created.
- replication
Configuration Property Map - Replication configuration for a registry. See Replication Configuration.
Supporting Types
ReplicationConfigurationReplicationConfiguration, ReplicationConfigurationReplicationConfigurationArgs
- Rules
List<Replication
Configuration Replication Configuration Rule> - The replication rules for a replication configuration. A maximum of 10 are allowed per
replication_configuration
. See Rule
- Rules
[]Replication
Configuration Replication Configuration Rule - The replication rules for a replication configuration. A maximum of 10 are allowed per
replication_configuration
. See Rule
- rules
List<Replication
Configuration Replication Configuration Rule> - The replication rules for a replication configuration. A maximum of 10 are allowed per
replication_configuration
. See Rule
- rules
Replication
Configuration Replication Configuration Rule[] - The replication rules for a replication configuration. A maximum of 10 are allowed per
replication_configuration
. See Rule
- rules
Sequence[Replication
Configuration Replication Configuration Rule] - The replication rules for a replication configuration. A maximum of 10 are allowed per
replication_configuration
. See Rule
- rules List<Property Map>
- The replication rules for a replication configuration. A maximum of 10 are allowed per
replication_configuration
. See Rule
ReplicationConfigurationReplicationConfigurationRule, ReplicationConfigurationReplicationConfigurationRuleArgs
- Destinations
List<Replication
Configuration Replication Configuration Rule Destination> - the details of a replication destination. A maximum of 25 are allowed per
rule
. See Destination. - Repository
Filters List<ReplicationConfiguration Replication Configuration Rule Repository Filter> - filters for a replication rule. See Repository Filter.
- Destinations
[]Replication
Configuration Replication Configuration Rule Destination - the details of a replication destination. A maximum of 25 are allowed per
rule
. See Destination. - Repository
Filters []ReplicationConfiguration Replication Configuration Rule Repository Filter - filters for a replication rule. See Repository Filter.
- destinations
List<Replication
Configuration Replication Configuration Rule Destination> - the details of a replication destination. A maximum of 25 are allowed per
rule
. See Destination. - repository
Filters List<ReplicationConfiguration Replication Configuration Rule Repository Filter> - filters for a replication rule. See Repository Filter.
- destinations
Replication
Configuration Replication Configuration Rule Destination[] - the details of a replication destination. A maximum of 25 are allowed per
rule
. See Destination. - repository
Filters ReplicationConfiguration Replication Configuration Rule Repository Filter[] - filters for a replication rule. See Repository Filter.
- destinations
Sequence[Replication
Configuration Replication Configuration Rule Destination] - the details of a replication destination. A maximum of 25 are allowed per
rule
. See Destination. - repository_
filters Sequence[ReplicationConfiguration Replication Configuration Rule Repository Filter] - filters for a replication rule. See Repository Filter.
- destinations List<Property Map>
- the details of a replication destination. A maximum of 25 are allowed per
rule
. See Destination. - repository
Filters List<Property Map> - filters for a replication rule. See Repository Filter.
ReplicationConfigurationReplicationConfigurationRuleDestination, ReplicationConfigurationReplicationConfigurationRuleDestinationArgs
- Region string
- A Region to replicate to.
- Registry
Id string - The account ID of the destination registry to replicate to.
- Region string
- A Region to replicate to.
- Registry
Id string - The account ID of the destination registry to replicate to.
- region String
- A Region to replicate to.
- registry
Id String - The account ID of the destination registry to replicate to.
- region string
- A Region to replicate to.
- registry
Id string - The account ID of the destination registry to replicate to.
- region str
- A Region to replicate to.
- registry_
id str - The account ID of the destination registry to replicate to.
- region String
- A Region to replicate to.
- registry
Id String - The account ID of the destination registry to replicate to.
ReplicationConfigurationReplicationConfigurationRuleRepositoryFilter, ReplicationConfigurationReplicationConfigurationRuleRepositoryFilterArgs
- Filter string
- The repository filter details.
- Filter
Type string - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with the filter parameter.
- Filter string
- The repository filter details.
- Filter
Type string - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with the filter parameter.
- filter String
- The repository filter details.
- filter
Type String - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with the filter parameter.
- filter string
- The repository filter details.
- filter
Type string - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with the filter parameter.
- filter str
- The repository filter details.
- filter_
type str - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with the filter parameter.
- filter String
- The repository filter details.
- filter
Type String - The repository filter type. The only supported value is
PREFIX_MATCH
, which is a repository name prefix specified with the filter parameter.
Import
Using pulumi import
, import ECR Replication Configuration using the registry_id
. For example:
$ pulumi import aws:ecr/replicationConfiguration:ReplicationConfiguration service 012345678912
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.