We recommend new projects start with resources from the AWS provider.
aws-native.ecr.getReplicationConfiguration
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ECR::ReplicationConfiguration resource creates or updates the replication configuration for a private registry. The first time a replication configuration is applied to a private registry, a service-linked IAM role is created in your account for the replication process. For more information, see Using Service-Linked Roles for Amazon ECR in the Amazon Elastic Container Registry User Guide.
When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a private registry permissions policy. For more information, see AWS::ECR::RegistryPolicy.
Using getReplicationConfiguration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReplicationConfiguration(args: GetReplicationConfigurationArgs, opts?: InvokeOptions): Promise<GetReplicationConfigurationResult>
function getReplicationConfigurationOutput(args: GetReplicationConfigurationOutputArgs, opts?: InvokeOptions): Output<GetReplicationConfigurationResult>def get_replication_configuration(registry_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetReplicationConfigurationResult
def get_replication_configuration_output(registry_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetReplicationConfigurationResult]func LookupReplicationConfiguration(ctx *Context, args *LookupReplicationConfigurationArgs, opts ...InvokeOption) (*LookupReplicationConfigurationResult, error)
func LookupReplicationConfigurationOutput(ctx *Context, args *LookupReplicationConfigurationOutputArgs, opts ...InvokeOption) LookupReplicationConfigurationResultOutput> Note: This function is named LookupReplicationConfiguration in the Go SDK.
public static class GetReplicationConfiguration 
{
    public static Task<GetReplicationConfigurationResult> InvokeAsync(GetReplicationConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetReplicationConfigurationResult> Invoke(GetReplicationConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationConfigurationResult> getReplicationConfiguration(GetReplicationConfigurationArgs args, InvokeOptions options)
public static Output<GetReplicationConfigurationResult> getReplicationConfiguration(GetReplicationConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:ecr:getReplicationConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RegistryId string
- The account ID of the destination registry.
- RegistryId string
- The account ID of the destination registry.
- registryId String
- The account ID of the destination registry.
- registryId string
- The account ID of the destination registry.
- registry_id str
- The account ID of the destination registry.
- registryId String
- The account ID of the destination registry.
getReplicationConfiguration Result
The following output properties are available:
- RegistryId string
- The account ID of the destination registry.
- ReplicationConfiguration Pulumi.Value Aws Native. Ecr. Outputs. Replication Configuration 
- The replication configuration for a registry.
- RegistryId string
- The account ID of the destination registry.
- ReplicationConfiguration ReplicationConfiguration Type 
- The replication configuration for a registry.
- registryId String
- The account ID of the destination registry.
- replicationConfiguration ReplicationConfiguration 
- The replication configuration for a registry.
- registryId string
- The account ID of the destination registry.
- replicationConfiguration ReplicationConfiguration 
- The replication configuration for a registry.
- registry_id str
- The account ID of the destination registry.
- replication_configuration ReplicationConfiguration 
- The replication configuration for a registry.
- registryId String
- The account ID of the destination registry.
- replicationConfiguration Property Map
- The replication configuration for a registry.
Supporting Types
ReplicationConfiguration 
- Rules
List<Pulumi.Aws Native. Ecr. Inputs. Replication Configuration Replication Rule> 
- An array of objects representing the replication destinations and repository filters for a replication configuration.
- Rules
[]ReplicationConfiguration Replication Rule 
- An array of objects representing the replication destinations and repository filters for a replication configuration.
- rules
List<ReplicationConfiguration Replication Rule> 
- An array of objects representing the replication destinations and repository filters for a replication configuration.
- rules
ReplicationConfiguration Replication Rule[] 
- An array of objects representing the replication destinations and repository filters for a replication configuration.
- rules
Sequence[ReplicationConfiguration Replication Rule] 
- An array of objects representing the replication destinations and repository filters for a replication configuration.
- rules List<Property Map>
- An array of objects representing the replication destinations and repository filters for a replication configuration.
ReplicationConfigurationFilterType   
ReplicationConfigurationReplicationDestination   
- Region string
- The Region to replicate to.
- RegistryId 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.
- RegistryId 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.
- registryId 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.
- registryId 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.
- registryId 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   
- Destinations
List<Pulumi.Aws Native. Ecr. Inputs. Replication Configuration Replication Destination> 
- An array of objects representing the destination for a replication rule.
- RepositoryFilters List<Pulumi.Aws Native. Ecr. Inputs. Replication Configuration Repository Filter> 
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- Destinations
[]ReplicationConfiguration Replication Destination 
- An array of objects representing the destination for a replication rule.
- RepositoryFilters []ReplicationConfiguration Repository Filter 
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- destinations
List<ReplicationConfiguration Replication Destination> 
- An array of objects representing the destination for a replication rule.
- repositoryFilters List<ReplicationConfiguration Repository Filter> 
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- destinations
ReplicationConfiguration Replication Destination[] 
- An array of objects representing the destination for a replication rule.
- repositoryFilters ReplicationConfiguration Repository Filter[] 
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- destinations
Sequence[ReplicationConfiguration Replication Destination] 
- An array of objects representing the destination for a replication rule.
- repository_filters Sequence[ReplicationConfiguration Repository Filter] 
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
- destinations List<Property Map>
- An array of objects representing the destination for a replication rule.
- repositoryFilters List<Property Map>
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
ReplicationConfigurationRepositoryFilter   
- Filter string
- The repository filter details. When the PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for.
- FilterType 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 thefilterparameter.
- Filter string
- The repository filter details. When the PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for.
- FilterType ReplicationConfiguration Filter Type 
- The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
- filter String
- The repository filter details. When the PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for.
- filterType ReplicationConfiguration Filter Type 
- The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
- filter string
- The repository filter details. When the PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for.
- filterType ReplicationConfiguration Filter Type 
- The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
- filter str
- The repository filter details. When the PREFIX_MATCHfilter 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 thefilterparameter.
- filter String
- The repository filter details. When the PREFIX_MATCHfilter type is specified, this value is required and should be the repository name prefix to configure replication for.
- filterType "PREFIX_MATCH"
- The repository filter type. The only supported value is PREFIX_MATCH, which is a repository name prefix specified with thefilterparameter.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.