@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
52 lines • 1.53 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.getArnOutput = exports.getArn = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Parses an ARN into its constituent parts.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const dbInstance = aws.getArn({
* arn: "arn:aws:rds:eu-west-1:123456789012:db:mysql-db",
* });
* ```
*/
function getArn(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:index/getArn:getArn", {
"arn": args.arn,
"id": args.id,
}, opts);
}
exports.getArn = getArn;
/**
* Parses an ARN into its constituent parts.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const dbInstance = aws.getArn({
* arn: "arn:aws:rds:eu-west-1:123456789012:db:mysql-db",
* });
* ```
*/
function getArnOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:index/getArn:getArn", {
"arn": args.arn,
"id": args.id,
}, opts);
}
exports.getArnOutput = getArnOutput;
//# sourceMappingURL=getArn.js.map
;