@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
98 lines • 3.83 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.SecurityConfiguration = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides a resource to manage AWS EMR Security Configurations
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const foo = new aws.emr.SecurityConfiguration("foo", {
* name: "emrsc_other",
* configuration: `{
* \\"EncryptionConfiguration\\": {
* \\"AtRestEncryptionConfiguration\\": {
* \\"S3EncryptionConfiguration\\": {
* \\"EncryptionMode\\": \\"SSE-S3\\"
* },
* \\"LocalDiskEncryptionConfiguration\\": {
* \\"EncryptionKeyProviderType\\": \\"AwsKms\\",
* \\"AwsKmsKey\\": \\"arn:aws:kms:us-west-2:187416307283:alias/my_emr_test_key\\"
* }
* },
* \\"EnableInTransitEncryption\\": false,
* \\"EnableAtRestEncryption\\": true
* }
* }
* `,
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import EMR Security Configurations using the `name`. For example:
*
* ```sh
* $ pulumi import aws:emr/securityConfiguration:SecurityConfiguration sc example-sc-name
* ```
*/
class SecurityConfiguration extends pulumi.CustomResource {
/**
* Get an existing SecurityConfiguration 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 SecurityConfiguration(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of SecurityConfiguration. 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'] === SecurityConfiguration.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["configuration"] = state?.configuration;
resourceInputs["creationDate"] = state?.creationDate;
resourceInputs["name"] = state?.name;
resourceInputs["namePrefix"] = state?.namePrefix;
resourceInputs["region"] = state?.region;
}
else {
const args = argsOrState;
if (args?.configuration === undefined && !opts.urn) {
throw new Error("Missing required property 'configuration'");
}
resourceInputs["configuration"] = args?.configuration;
resourceInputs["name"] = args?.name;
resourceInputs["namePrefix"] = args?.namePrefix;
resourceInputs["region"] = args?.region;
resourceInputs["creationDate"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SecurityConfiguration.__pulumiType, name, resourceInputs, opts);
}
}
exports.SecurityConfiguration = SecurityConfiguration;
/** @internal */
SecurityConfiguration.__pulumiType = 'aws:emr/securityConfiguration:SecurityConfiguration';
//# sourceMappingURL=securityConfiguration.js.map