import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS RAM (Resource Access Manager) Permission. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.ram.Permission("example", { * name: "custom-backup", * policyTemplate: `{ * \\"Effect\\": \\"Allow\\", * \\"Action\\": [ * \\t\\"backup:ListProtectedResourcesByBackupVault\\", * \\t\\"backup:ListRecoveryPointsByBackupVault\\", * \\t\\"backup:DescribeRecoveryPoint\\", * \\t\\"backup:DescribeBackupVault\\" * ] * } * `, * resourceType: "backup:BackupVault", * tags: { * Name: "custom-backup", * }, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `arn` (String) Permission ARN. * * Using `pulumi import`, import RAM (Resource Access Manager) Permission using the `exampleIdArg`. For example: * * ```sh * $ pulumi import aws:ram/permission:Permission example arn:aws:ram:us-west-1:123456789012:permission/test-permission * ``` */ export declare class Permission extends pulumi.CustomResource { /** * Get an existing Permission resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: PermissionState, opts?: pulumi.CustomResourceOptions): Permission; /** * Returns true if the given object is an instance of Permission. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Permission; /** * ARN of the permission. */ readonly arn: pulumi.Output; /** * Whether this is the default version of the managed permission. */ readonly defaultVersion: pulumi.Output; /** * Name of the customer managed permission. The name must be unique within the AWS Region. */ readonly name: pulumi.Output; /** * String in JSON format string that contains the following elements of a resource-based policy: Effect, Action and Condition. */ readonly policyTemplate: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Name of the resource type that this customer managed permission applies to. The format is `:` and is not case sensitive. */ readonly resourceType: pulumi.Output; /** * Current status of the permission. */ readonly status: pulumi.Output; /** * Map of tags to assign to the resource share. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; readonly timeouts: pulumi.Output; /** * Version of the permission associated with this resource share. */ readonly version: pulumi.Output; /** * Create a Permission resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: PermissionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Permission resources. */ export interface PermissionState { /** * ARN of the permission. */ arn?: pulumi.Input; /** * Whether this is the default version of the managed permission. */ defaultVersion?: pulumi.Input; /** * Name of the customer managed permission. The name must be unique within the AWS Region. */ name?: pulumi.Input; /** * String in JSON format string that contains the following elements of a resource-based policy: Effect, Action and Condition. */ policyTemplate?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Name of the resource type that this customer managed permission applies to. The format is `:` and is not case sensitive. */ resourceType?: pulumi.Input; /** * Current status of the permission. */ status?: pulumi.Input; /** * Map of tags to assign to the resource share. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; /** * Version of the permission associated with this resource share. */ version?: pulumi.Input; } /** * The set of arguments for constructing a Permission resource. */ export interface PermissionArgs { /** * Name of the customer managed permission. The name must be unique within the AWS Region. */ name?: pulumi.Input; /** * String in JSON format string that contains the following elements of a resource-based policy: Effect, Action and Condition. */ policyTemplate: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Name of the resource type that this customer managed permission applies to. The format is `:` and is not case sensitive. */ resourceType: pulumi.Input; /** * Map of tags to assign to the resource share. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; } //# sourceMappingURL=permission.d.ts.map