UNPKG

@pulumi/aws

Version:

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

50 lines 2.11 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.getCanonicalUserIdOutput = exports.getCanonicalUserId = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The Canonical User ID data source allows access to the [canonical user ID](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html) * for the effective account in which this provider is working. * * > **NOTE:** To use this data source, you must have the `s3:ListAllMyBuckets` permission. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.s3.getCanonicalUserId({}); * export const canonicalUserId = current.then(current => current.id); * ``` */ function getCanonicalUserId(opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:s3/getCanonicalUserId:getCanonicalUserId", {}, opts); } exports.getCanonicalUserId = getCanonicalUserId; /** * The Canonical User ID data source allows access to the [canonical user ID](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html) * for the effective account in which this provider is working. * * > **NOTE:** To use this data source, you must have the `s3:ListAllMyBuckets` permission. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const current = aws.s3.getCanonicalUserId({}); * export const canonicalUserId = current.then(current => current.id); * ``` */ function getCanonicalUserIdOutput(opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:s3/getCanonicalUserId:getCanonicalUserId", {}, opts); } exports.getCanonicalUserIdOutput = getCanonicalUserIdOutput; //# sourceMappingURL=getCanonicalUserId.js.map