@crowdstrike/pulumi
Version:
A Pulumi package for creating and managing CrowdStrike resources. Based on terraform-provider-crowdstrike: version v0.0.4
76 lines • 2.51 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCloudAwsAccountOutput = exports.getCloudAwsAccount = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This data source provides information about AWS accounts in Falcon.
*
* ## API Scopes
*
* The following API scopes are required:
*
* - Cloud security AWS registration | Read & Write
* - CSPM registration | Read & Write
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as crowdstrike from "@pulumi/crowdstrike";
*
* const all = crowdstrike.getCloudAwsAccount({});
* const specific = crowdstrike.getCloudAwsAccount({
* accountId: "123456789012",
* });
* const org = crowdstrike.getCloudAwsAccount({
* organizationId: "o-123456789012",
* });
* ```
*/
function getCloudAwsAccount(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("crowdstrike:index/getCloudAwsAccount:getCloudAwsAccount", {
"accountId": args.accountId,
"organizationId": args.organizationId,
}, opts);
}
exports.getCloudAwsAccount = getCloudAwsAccount;
/**
* This data source provides information about AWS accounts in Falcon.
*
* ## API Scopes
*
* The following API scopes are required:
*
* - Cloud security AWS registration | Read & Write
* - CSPM registration | Read & Write
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as crowdstrike from "@pulumi/crowdstrike";
*
* const all = crowdstrike.getCloudAwsAccount({});
* const specific = crowdstrike.getCloudAwsAccount({
* accountId: "123456789012",
* });
* const org = crowdstrike.getCloudAwsAccount({
* organizationId: "o-123456789012",
* });
* ```
*/
function getCloudAwsAccountOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("crowdstrike:index/getCloudAwsAccount:getCloudAwsAccount", {
"accountId": args.accountId,
"organizationId": args.organizationId,
}, opts);
}
exports.getCloudAwsAccountOutput = getCloudAwsAccountOutput;
//# sourceMappingURL=getCloudAwsAccount.js.map