import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing an AWS Backup Restore Testing Selection. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.backup.RestoreTestingSelection("example", { * name: "ec2_selection", * restoreTestingPlanName: exampleAwsBackupRestoreTestingPlan.name, * protectedResourceType: "EC2", * iamRoleArn: exampleAwsIamRole.arn, * protectedResourceArns: ["*"], * }); * ``` * * ### Advanced Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.backup.RestoreTestingSelection("example", { * protectedResourceConditions: { * stringEquals: [{ * key: "aws:ResourceTag/backup", * value: "true", * }], * }, * name: "ec2_selection", * restoreTestingPlanName: exampleAwsBackupRestoreTestingPlan.name, * protectedResourceType: "EC2", * iamRoleArn: exampleAwsIamRole.arn, * }); * ``` * * ## Import * * Using `pulumi import`, import Backup Restore Testing Selection using `name:restore_testing_plan_name`. For example: * * ```sh * $ pulumi import aws:backup/restoreTestingSelection:RestoreTestingSelection example restore_testing_selection_12345678:restore_testing_plan_12345678 * ``` */ export declare class RestoreTestingSelection extends pulumi.CustomResource { /** * Get an existing RestoreTestingSelection 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?: RestoreTestingSelectionState, opts?: pulumi.CustomResourceOptions): RestoreTestingSelection; /** * Returns true if the given object is an instance of RestoreTestingSelection. 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 RestoreTestingSelection; /** * ARN of the IAM role. */ readonly iamRoleArn: pulumi.Output; /** * Name of the backup restore testing selection. */ readonly name: pulumi.Output; /** * ARNs for the protected resources. */ readonly protectedResourceArns: pulumi.Output; /** * Conditions for the protected resource. See `protectedResourceConditions` below. */ readonly protectedResourceConditions: pulumi.Output; /** * Type of the protected resource. */ readonly protectedResourceType: 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; /** * Override certain restore metadata keys. See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) . */ readonly restoreMetadataOverrides: pulumi.Output<{ [key: string]: string; }>; /** * Name of the restore testing plan. */ readonly restoreTestingPlanName: pulumi.Output; /** * Amount of hours available to run a validation script on the data. Valid range is `1` to `168`. */ readonly validationWindowHours: pulumi.Output; /** * Create a RestoreTestingSelection 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: RestoreTestingSelectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RestoreTestingSelection resources. */ export interface RestoreTestingSelectionState { /** * ARN of the IAM role. */ iamRoleArn?: pulumi.Input; /** * Name of the backup restore testing selection. */ name?: pulumi.Input; /** * ARNs for the protected resources. */ protectedResourceArns?: pulumi.Input[] | undefined>; /** * Conditions for the protected resource. See `protectedResourceConditions` below. */ protectedResourceConditions?: pulumi.Input; /** * Type of the protected resource. */ protectedResourceType?: 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; /** * Override certain restore metadata keys. See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) . */ restoreMetadataOverrides?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Name of the restore testing plan. */ restoreTestingPlanName?: pulumi.Input; /** * Amount of hours available to run a validation script on the data. Valid range is `1` to `168`. */ validationWindowHours?: pulumi.Input; } /** * The set of arguments for constructing a RestoreTestingSelection resource. */ export interface RestoreTestingSelectionArgs { /** * ARN of the IAM role. */ iamRoleArn: pulumi.Input; /** * Name of the backup restore testing selection. */ name?: pulumi.Input; /** * ARNs for the protected resources. */ protectedResourceArns?: pulumi.Input[] | undefined>; /** * Conditions for the protected resource. See `protectedResourceConditions` below. */ protectedResourceConditions?: pulumi.Input; /** * Type of the protected resource. */ protectedResourceType: 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; /** * Override certain restore metadata keys. See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) . */ restoreMetadataOverrides?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Name of the restore testing plan. */ restoreTestingPlanName: pulumi.Input; /** * Amount of hours available to run a validation script on the data. Valid range is `1` to `168`. */ validationWindowHours?: pulumi.Input; } //# sourceMappingURL=restoreTestingSelection.d.ts.map