We recommend new projects start with resources from the AWS provider.
aws-native.ecr.getRegistryPolicy
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ECR::RegistryPolicy resource creates or updates the permissions policy for a private registry.
A private registry policy is used to specify permissions for another AWS-account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.
Using getRegistryPolicy
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 getRegistryPolicy(args: GetRegistryPolicyArgs, opts?: InvokeOptions): Promise<GetRegistryPolicyResult>
function getRegistryPolicyOutput(args: GetRegistryPolicyOutputArgs, opts?: InvokeOptions): Output<GetRegistryPolicyResult>def get_registry_policy(registry_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetRegistryPolicyResult
def get_registry_policy_output(registry_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetRegistryPolicyResult]func LookupRegistryPolicy(ctx *Context, args *LookupRegistryPolicyArgs, opts ...InvokeOption) (*LookupRegistryPolicyResult, error)
func LookupRegistryPolicyOutput(ctx *Context, args *LookupRegistryPolicyOutputArgs, opts ...InvokeOption) LookupRegistryPolicyResultOutput> Note: This function is named LookupRegistryPolicy in the Go SDK.
public static class GetRegistryPolicy 
{
    public static Task<GetRegistryPolicyResult> InvokeAsync(GetRegistryPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetRegistryPolicyResult> Invoke(GetRegistryPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegistryPolicyResult> getRegistryPolicy(GetRegistryPolicyArgs args, InvokeOptions options)
public static Output<GetRegistryPolicyResult> getRegistryPolicy(GetRegistryPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:ecr:getRegistryPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RegistryId string
- The account ID of the private registry the policy is associated with.
- RegistryId string
- The account ID of the private registry the policy is associated with.
- registryId String
- The account ID of the private registry the policy is associated with.
- registryId string
- The account ID of the private registry the policy is associated with.
- registry_id str
- The account ID of the private registry the policy is associated with.
- registryId String
- The account ID of the private registry the policy is associated with.
getRegistryPolicy Result
The following output properties are available:
- PolicyText object
- The JSON policy text for your registry. - Search the CloudFormation User Guide for - AWS::ECR::RegistryPolicyfor more information about the expected schema for this property.
- RegistryId string
- The account ID of the private registry the policy is associated with.
- PolicyText interface{}
- The JSON policy text for your registry. - Search the CloudFormation User Guide for - AWS::ECR::RegistryPolicyfor more information about the expected schema for this property.
- RegistryId string
- The account ID of the private registry the policy is associated with.
- policyText Object
- The JSON policy text for your registry. - Search the CloudFormation User Guide for - AWS::ECR::RegistryPolicyfor more information about the expected schema for this property.
- registryId String
- The account ID of the private registry the policy is associated with.
- policyText any
- The JSON policy text for your registry. - Search the CloudFormation User Guide for - AWS::ECR::RegistryPolicyfor more information about the expected schema for this property.
- registryId string
- The account ID of the private registry the policy is associated with.
- policy_text Any
- The JSON policy text for your registry. - Search the CloudFormation User Guide for - AWS::ECR::RegistryPolicyfor more information about the expected schema for this property.
- registry_id str
- The account ID of the private registry the policy is associated with.
- policyText Any
- The JSON policy text for your registry. - Search the CloudFormation User Guide for - AWS::ECR::RegistryPolicyfor more information about the expected schema for this property.
- registryId String
- The account ID of the private registry the policy is associated with.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.