@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
81 lines • 3.53 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.ClassificationExportConfiguration = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides a resource to manage an [Amazon Macie Classification Export Configuration](https://docs.aws.amazon.com/macie/latest/APIReference/classification-export-configuration.html).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = new aws.macie2.Account("example", {});
* const exampleClassificationExportConfiguration = new aws.macie2.ClassificationExportConfiguration("example", {s3Destination: {
* bucketName: exampleAwsS3Bucket.bucket,
* keyPrefix: "exampleprefix/",
* kmsKeyArn: exampleAwsKmsKey.arn,
* }}, {
* dependsOn: [example],
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import `aws_macie2_classification_export_configuration` using the region. For example:
*
* ```sh
* $ pulumi import aws:macie2/classificationExportConfiguration:ClassificationExportConfiguration example us-west-2
* ```
*/
class ClassificationExportConfiguration extends pulumi.CustomResource {
/**
* Get an existing ClassificationExportConfiguration 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 ClassificationExportConfiguration(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of ClassificationExportConfiguration. 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'] === ClassificationExportConfiguration.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["region"] = state?.region;
resourceInputs["s3Destination"] = state?.s3Destination;
}
else {
const args = argsOrState;
if (args?.s3Destination === undefined && !opts.urn) {
throw new Error("Missing required property 's3Destination'");
}
resourceInputs["region"] = args?.region;
resourceInputs["s3Destination"] = args?.s3Destination;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ClassificationExportConfiguration.__pulumiType, name, resourceInputs, opts);
}
}
exports.ClassificationExportConfiguration = ClassificationExportConfiguration;
/** @internal */
ClassificationExportConfiguration.__pulumiType = 'aws:macie2/classificationExportConfiguration:ClassificationExportConfiguration';
//# sourceMappingURL=classificationExportConfiguration.js.map
;