@crowdstrike/pulumi
Version:
A Pulumi package for creating and managing CrowdStrike resources. Based on terraform-provider-crowdstrike: version v0.0.4
108 lines • 5.82 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.CloudAwsAccount = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource allows management of an AWS account in Falcon.
*
* ## API Scopes
*
* The following API scopes are required:
*
* - Cloud security AWS registration | Read & Write
* - CSPM registration | Read & Write
*
* ## Import
*
* A previously registered cloud aws account can be imported by account id.
*
* ```sh
* $ pulumi import crowdstrike:index/cloudAwsAccount:CloudAwsAccount account 12345678910
* ```
*/
class CloudAwsAccount extends pulumi.CustomResource {
/**
* Get an existing CloudAwsAccount resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new CloudAwsAccount(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of CloudAwsAccount. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === CloudAwsAccount.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accountId"] = state ? state.accountId : undefined;
resourceInputs["accountType"] = state ? state.accountType : undefined;
resourceInputs["assetInventory"] = state ? state.assetInventory : undefined;
resourceInputs["cloudtrailBucketName"] = state ? state.cloudtrailBucketName : undefined;
resourceInputs["deploymentMethod"] = state ? state.deploymentMethod : undefined;
resourceInputs["dspm"] = state ? state.dspm : undefined;
resourceInputs["dspmRoleArn"] = state ? state.dspmRoleArn : undefined;
resourceInputs["dspmRoleName"] = state ? state.dspmRoleName : undefined;
resourceInputs["eventbusArn"] = state ? state.eventbusArn : undefined;
resourceInputs["eventbusName"] = state ? state.eventbusName : undefined;
resourceInputs["externalId"] = state ? state.externalId : undefined;
resourceInputs["iamRoleArn"] = state ? state.iamRoleArn : undefined;
resourceInputs["iamRoleName"] = state ? state.iamRoleName : undefined;
resourceInputs["idp"] = state ? state.idp : undefined;
resourceInputs["intermediateRoleArn"] = state ? state.intermediateRoleArn : undefined;
resourceInputs["isOrganizationManagementAccount"] = state ? state.isOrganizationManagementAccount : undefined;
resourceInputs["organizationId"] = state ? state.organizationId : undefined;
resourceInputs["realtimeVisibility"] = state ? state.realtimeVisibility : undefined;
resourceInputs["sensorManagement"] = state ? state.sensorManagement : undefined;
resourceInputs["targetOuses"] = state ? state.targetOuses : undefined;
}
else {
const args = argsOrState;
if ((!args || args.accountId === undefined) && !opts.urn) {
throw new Error("Missing required property 'accountId'");
}
resourceInputs["accountId"] = args ? args.accountId : undefined;
resourceInputs["accountType"] = args ? args.accountType : undefined;
resourceInputs["assetInventory"] = args ? args.assetInventory : undefined;
resourceInputs["deploymentMethod"] = args ? args.deploymentMethod : undefined;
resourceInputs["dspm"] = args ? args.dspm : undefined;
resourceInputs["idp"] = args ? args.idp : undefined;
resourceInputs["organizationId"] = args ? args.organizationId : undefined;
resourceInputs["realtimeVisibility"] = args ? args.realtimeVisibility : undefined;
resourceInputs["sensorManagement"] = args ? args.sensorManagement : undefined;
resourceInputs["targetOuses"] = args ? args.targetOuses : undefined;
resourceInputs["cloudtrailBucketName"] = undefined /*out*/;
resourceInputs["dspmRoleArn"] = undefined /*out*/;
resourceInputs["dspmRoleName"] = undefined /*out*/;
resourceInputs["eventbusArn"] = undefined /*out*/;
resourceInputs["eventbusName"] = undefined /*out*/;
resourceInputs["externalId"] = undefined /*out*/;
resourceInputs["iamRoleArn"] = undefined /*out*/;
resourceInputs["iamRoleName"] = undefined /*out*/;
resourceInputs["intermediateRoleArn"] = undefined /*out*/;
resourceInputs["isOrganizationManagementAccount"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CloudAwsAccount.__pulumiType, name, resourceInputs, opts);
}
}
exports.CloudAwsAccount = CloudAwsAccount;
/** @internal */
CloudAwsAccount.__pulumiType = 'crowdstrike:index/cloudAwsAccount:CloudAwsAccount';
//# sourceMappingURL=cloudAwsAccount.js.map