@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
48 lines • 1.67 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.getPrimaryContactOutput = exports.getPrimaryContact = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Data source for the primary contact information associated with an AWS Account.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.account.getPrimaryContact({});
* ```
*/
function getPrimaryContact(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:account/getPrimaryContact:getPrimaryContact", {
"accountId": args.accountId,
}, opts);
}
exports.getPrimaryContact = getPrimaryContact;
/**
* Data source for the primary contact information associated with an AWS Account.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.account.getPrimaryContact({});
* ```
*/
function getPrimaryContactOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:account/getPrimaryContact:getPrimaryContact", {
"accountId": args.accountId,
}, opts);
}
exports.getPrimaryContactOutput = getPrimaryContactOutput;
//# sourceMappingURL=getPrimaryContact.js.map