UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

92 lines (91 loc) 3.05 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information on an existing backup selection. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.backup.getSelection({ * planId: exampleAwsBackupPlan.id, * selectionId: "selection-id-example", * }); * ``` */ export declare function getSelection(args: GetSelectionArgs, opts?: pulumi.InvokeOptions): Promise<GetSelectionResult>; /** * A collection of arguments for invoking getSelection. */ export interface GetSelectionArgs { /** * Backup plan ID associated with the selection of resources. */ planId: string; /** * 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?: string; /** * Backup selection ID. */ selectionId: string; } /** * A collection of values returned by getSelection. */ export interface GetSelectionResult { /** * ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource. See the [AWS Backup Developer Guide](https://docs.aws.amazon.com/aws-backup/latest/devguide/access-control.html#managed-policies) for additional information about using AWS managed policies or creating custom policies attached to the IAM role. */ readonly iamRoleArn: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Display name of a resource selection document. */ readonly name: string; readonly planId: string; readonly region: string; /** * An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan.. */ readonly resources: string[]; readonly selectionId: string; } /** * Use this data source to get information on an existing backup selection. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.backup.getSelection({ * planId: exampleAwsBackupPlan.id, * selectionId: "selection-id-example", * }); * ``` */ export declare function getSelectionOutput(args: GetSelectionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSelectionResult>; /** * A collection of arguments for invoking getSelection. */ export interface GetSelectionOutputArgs { /** * Backup plan ID associated with the selection of resources. */ planId: pulumi.Input<string>; /** * 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<string>; /** * Backup selection ID. */ selectionId: pulumi.Input<string>; }