UNPKG

@pulumi/aws

Version:

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

60 lines 2.14 kB
"use strict"; // *** 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.getResourceOutput = exports.getResource = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides details for a Cloud Control API Resource. The reading of these resources is proxied through Cloud Control API handlers to the backend service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.cloudcontrol.getResource({ * identifier: "example", * typeName: "AWS::ECS::Cluster", * }); * ``` */ function getResource(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:cloudcontrol/getResource:getResource", { "identifier": args.identifier, "region": args.region, "roleArn": args.roleArn, "typeName": args.typeName, "typeVersionId": args.typeVersionId, }, opts); } exports.getResource = getResource; /** * Provides details for a Cloud Control API Resource. The reading of these resources is proxied through Cloud Control API handlers to the backend service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.cloudcontrol.getResource({ * identifier: "example", * typeName: "AWS::ECS::Cluster", * }); * ``` */ function getResourceOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:cloudcontrol/getResource:getResource", { "identifier": args.identifier, "region": args.region, "roleArn": args.roleArn, "typeName": args.typeName, "typeVersionId": args.typeVersionId, }, opts); } exports.getResourceOutput = getResourceOutput; //# sourceMappingURL=getResource.js.map