@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
56 lines • 1.84 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSelectionOutput = exports.getSelection = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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",
* });
* ```
*/
function getSelection(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:backup/getSelection:getSelection", {
"planId": args.planId,
"region": args.region,
"selectionId": args.selectionId,
}, opts);
}
exports.getSelection = getSelection;
/**
* 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",
* });
* ```
*/
function getSelectionOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:backup/getSelection:getSelection", {
"planId": args.planId,
"region": args.region,
"selectionId": args.selectionId,
}, opts);
}
exports.getSelectionOutput = getSelectionOutput;
//# sourceMappingURL=getSelection.js.map