@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
94 lines • 5.12 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.EventDataStore = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* A storage lake of event data against which you can run complex SQL-based queries. An event data store can include events that you have logged on your account from the last 7 to 2557 or 3653 days (about seven or ten years) depending on the selected BillingMode.
*/
class EventDataStore extends pulumi.CustomResource {
/**
* Get an existing EventDataStore 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 opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, opts) {
return new EventDataStore(name, undefined, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of EventDataStore. 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'] === EventDataStore.__pulumiType;
}
/**
* Create a EventDataStore resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name, args, opts) {
let resourceInputs = {};
opts = opts || {};
if (!opts.id) {
resourceInputs["advancedEventSelectors"] = args?.advancedEventSelectors;
resourceInputs["billingMode"] = args?.billingMode;
resourceInputs["contextKeySelectors"] = args?.contextKeySelectors;
resourceInputs["federationEnabled"] = args?.federationEnabled;
resourceInputs["federationRoleArn"] = args?.federationRoleArn;
resourceInputs["ingestionEnabled"] = args?.ingestionEnabled;
resourceInputs["insightSelectors"] = args?.insightSelectors;
resourceInputs["insightsDestination"] = args?.insightsDestination;
resourceInputs["kmsKeyId"] = args?.kmsKeyId;
resourceInputs["maxEventSize"] = args?.maxEventSize;
resourceInputs["multiRegionEnabled"] = args?.multiRegionEnabled;
resourceInputs["name"] = args?.name;
resourceInputs["organizationEnabled"] = args?.organizationEnabled;
resourceInputs["retentionPeriod"] = args?.retentionPeriod;
resourceInputs["tags"] = args?.tags;
resourceInputs["terminationProtectionEnabled"] = args?.terminationProtectionEnabled;
resourceInputs["createdTimestamp"] = undefined /*out*/;
resourceInputs["eventDataStoreArn"] = undefined /*out*/;
resourceInputs["status"] = undefined /*out*/;
resourceInputs["updatedTimestamp"] = undefined /*out*/;
}
else {
resourceInputs["advancedEventSelectors"] = undefined /*out*/;
resourceInputs["billingMode"] = undefined /*out*/;
resourceInputs["contextKeySelectors"] = undefined /*out*/;
resourceInputs["createdTimestamp"] = undefined /*out*/;
resourceInputs["eventDataStoreArn"] = undefined /*out*/;
resourceInputs["federationEnabled"] = undefined /*out*/;
resourceInputs["federationRoleArn"] = undefined /*out*/;
resourceInputs["ingestionEnabled"] = undefined /*out*/;
resourceInputs["insightSelectors"] = undefined /*out*/;
resourceInputs["insightsDestination"] = undefined /*out*/;
resourceInputs["kmsKeyId"] = undefined /*out*/;
resourceInputs["maxEventSize"] = undefined /*out*/;
resourceInputs["multiRegionEnabled"] = undefined /*out*/;
resourceInputs["name"] = undefined /*out*/;
resourceInputs["organizationEnabled"] = undefined /*out*/;
resourceInputs["retentionPeriod"] = undefined /*out*/;
resourceInputs["status"] = undefined /*out*/;
resourceInputs["tags"] = undefined /*out*/;
resourceInputs["terminationProtectionEnabled"] = undefined /*out*/;
resourceInputs["updatedTimestamp"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(EventDataStore.__pulumiType, name, resourceInputs, opts);
}
}
exports.EventDataStore = EventDataStore;
/** @internal */
EventDataStore.__pulumiType = 'aws-native:cloudtrail:EventDataStore';
//# sourceMappingURL=eventDataStore.js.map