UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

36 lines (35 loc) 2.03 kB
import * as pulumi from "@pulumi/pulumi"; /** * 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](https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html) in the *Amazon Elastic Container Registry User Guide*. */ export declare function getRegistryPolicy(args: GetRegistryPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetRegistryPolicyResult>; export interface GetRegistryPolicyArgs { /** * The account ID of the private registry the policy is associated with. */ registryId: string; } export interface GetRegistryPolicyResult { /** * The JSON policy text for your registry. * * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ECR::RegistryPolicy` for more information about the expected schema for this property. */ readonly policyText?: any; /** * The account ID of the private registry the policy is associated with. */ readonly registryId?: string; } /** * 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](https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html) in the *Amazon Elastic Container Registry User Guide*. */ export declare function getRegistryPolicyOutput(args: GetRegistryPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRegistryPolicyResult>; export interface GetRegistryPolicyOutputArgs { /** * The account ID of the private registry the policy is associated with. */ registryId: pulumi.Input<string>; }