UNPKG

@pulumi/aws

Version:

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

56 lines 2.13 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.getCallerIdentityOutput = exports.getCallerIdentity = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to get the access to the effective Account ID, User ID, and ARN in * which this provider is authorized. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getCallerIdentity({}); * export const accountId = current.then(current => current.accountId); * export const callerArn = current.then(current => current.arn); * export const callerUser = current.then(current => current.userId); * ``` */ function getCallerIdentity(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:index/getCallerIdentity:getCallerIdentity", { "id": args.id, }, opts); } exports.getCallerIdentity = getCallerIdentity; /** * Use this data source to get the access to the effective Account ID, User ID, and ARN in * which this provider is authorized. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.getCallerIdentity({}); * export const accountId = current.then(current => current.accountId); * export const callerArn = current.then(current => current.arn); * export const callerUser = current.then(current => current.userId); * ``` */ function getCallerIdentityOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:index/getCallerIdentity:getCallerIdentity", { "id": args.id, }, opts); } exports.getCallerIdentityOutput = getCallerIdentityOutput; //# sourceMappingURL=getCallerIdentity.js.map