@pulumi/awsx
Version:
[](https://github.com/pulumi/pulumi-awsx/actions) [](https://slack.pulumi.com) [;
exports.Trail = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
class Trail extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of Trail. 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'] === Trail.__pulumiType;
}
/**
* Create a Trail 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 ? args.advancedEventSelectors : undefined;
resourceInputs["cloudWatchLogsGroup"] = args ? args.cloudWatchLogsGroup : undefined;
resourceInputs["enableLogFileValidation"] = args ? args.enableLogFileValidation : undefined;
resourceInputs["enableLogging"] = args ? args.enableLogging : undefined;
resourceInputs["eventSelectors"] = args ? args.eventSelectors : undefined;
resourceInputs["includeGlobalServiceEvents"] = args ? args.includeGlobalServiceEvents : undefined;
resourceInputs["insightSelectors"] = args ? args.insightSelectors : undefined;
resourceInputs["isMultiRegionTrail"] = args ? args.isMultiRegionTrail : undefined;
resourceInputs["isOrganizationTrail"] = args ? args.isOrganizationTrail : undefined;
resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["region"] = args ? args.region : undefined;
resourceInputs["s3Bucket"] = args ? args.s3Bucket : undefined;
resourceInputs["s3KeyPrefix"] = args ? args.s3KeyPrefix : undefined;
resourceInputs["snsTopicName"] = args ? args.snsTopicName : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
resourceInputs["bucket"] = undefined /*out*/;
resourceInputs["logGroup"] = undefined /*out*/;
resourceInputs["trail"] = undefined /*out*/;
}
else {
resourceInputs["bucket"] = undefined /*out*/;
resourceInputs["logGroup"] = undefined /*out*/;
resourceInputs["trail"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Trail.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.Trail = Trail;
/** @internal */
Trail.__pulumiType = 'awsx:cloudtrail:Trail';
//# sourceMappingURL=trail.js.map