UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

149 lines • 9.74 kB
"use strict"; // *** 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.LustreFileSystem = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Manages a FSx Lustre File System. See the [FSx Lustre Guide](https://docs.aws.amazon.com/fsx/latest/LustreGuide/what-is.html) for more information. * * > **NOTE:** `autoImportPolicy`, `exportPath`, `importPath` and `importedFileChunkSize` are not supported with the `PERSISTENT_2` deployment type. Use `aws.fsx.DataRepositoryAssociation` instead. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.fsx.LustreFileSystem("example", { * importPath: `s3://${exampleAwsS3Bucket.bucket}`, * storageCapacity: 1200, * subnetIds: exampleAwsSubnet.id, * }); * ``` * * ## Import * * Using `pulumi import`, import FSx File Systems using the `id`. For example: * * ```sh * $ pulumi import aws:fsx/lustreFileSystem:LustreFileSystem example fs-543ab12b1ca672f33 * ``` * Certain resource arguments, like `security_group_ids`, do not have a FSx API method for reading the information after creation. If the argument is set in the Pulumi program on an imported resource, Pulumi will always show a difference. To workaround this behavior, either omit the argument from the Pulumi program or use `ignore_changes` to hide the difference. For example: */ class LustreFileSystem extends pulumi.CustomResource { /** * Get an existing LustreFileSystem 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 LustreFileSystem(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of LustreFileSystem. 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'] === LustreFileSystem.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state ? state.arn : undefined; resourceInputs["autoImportPolicy"] = state ? state.autoImportPolicy : undefined; resourceInputs["automaticBackupRetentionDays"] = state ? state.automaticBackupRetentionDays : undefined; resourceInputs["backupId"] = state ? state.backupId : undefined; resourceInputs["copyTagsToBackups"] = state ? state.copyTagsToBackups : undefined; resourceInputs["dailyAutomaticBackupStartTime"] = state ? state.dailyAutomaticBackupStartTime : undefined; resourceInputs["dataCompressionType"] = state ? state.dataCompressionType : undefined; resourceInputs["dataReadCacheConfiguration"] = state ? state.dataReadCacheConfiguration : undefined; resourceInputs["deploymentType"] = state ? state.deploymentType : undefined; resourceInputs["dnsName"] = state ? state.dnsName : undefined; resourceInputs["driveCacheType"] = state ? state.driveCacheType : undefined; resourceInputs["efaEnabled"] = state ? state.efaEnabled : undefined; resourceInputs["exportPath"] = state ? state.exportPath : undefined; resourceInputs["fileSystemTypeVersion"] = state ? state.fileSystemTypeVersion : undefined; resourceInputs["finalBackupTags"] = state ? state.finalBackupTags : undefined; resourceInputs["importPath"] = state ? state.importPath : undefined; resourceInputs["importedFileChunkSize"] = state ? state.importedFileChunkSize : undefined; resourceInputs["kmsKeyId"] = state ? state.kmsKeyId : undefined; resourceInputs["logConfiguration"] = state ? state.logConfiguration : undefined; resourceInputs["metadataConfiguration"] = state ? state.metadataConfiguration : undefined; resourceInputs["mountName"] = state ? state.mountName : undefined; resourceInputs["networkInterfaceIds"] = state ? state.networkInterfaceIds : undefined; resourceInputs["ownerId"] = state ? state.ownerId : undefined; resourceInputs["perUnitStorageThroughput"] = state ? state.perUnitStorageThroughput : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["rootSquashConfiguration"] = state ? state.rootSquashConfiguration : undefined; resourceInputs["securityGroupIds"] = state ? state.securityGroupIds : undefined; resourceInputs["skipFinalBackup"] = state ? state.skipFinalBackup : undefined; resourceInputs["storageCapacity"] = state ? state.storageCapacity : undefined; resourceInputs["storageType"] = state ? state.storageType : undefined; resourceInputs["subnetIds"] = state ? state.subnetIds : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tagsAll"] = state ? state.tagsAll : undefined; resourceInputs["throughputCapacity"] = state ? state.throughputCapacity : undefined; resourceInputs["vpcId"] = state ? state.vpcId : undefined; resourceInputs["weeklyMaintenanceStartTime"] = state ? state.weeklyMaintenanceStartTime : undefined; } else { const args = argsOrState; if ((!args || args.subnetIds === undefined) && !opts.urn) { throw new Error("Missing required property 'subnetIds'"); } resourceInputs["autoImportPolicy"] = args ? args.autoImportPolicy : undefined; resourceInputs["automaticBackupRetentionDays"] = args ? args.automaticBackupRetentionDays : undefined; resourceInputs["backupId"] = args ? args.backupId : undefined; resourceInputs["copyTagsToBackups"] = args ? args.copyTagsToBackups : undefined; resourceInputs["dailyAutomaticBackupStartTime"] = args ? args.dailyAutomaticBackupStartTime : undefined; resourceInputs["dataCompressionType"] = args ? args.dataCompressionType : undefined; resourceInputs["dataReadCacheConfiguration"] = args ? args.dataReadCacheConfiguration : undefined; resourceInputs["deploymentType"] = args ? args.deploymentType : undefined; resourceInputs["driveCacheType"] = args ? args.driveCacheType : undefined; resourceInputs["efaEnabled"] = args ? args.efaEnabled : undefined; resourceInputs["exportPath"] = args ? args.exportPath : undefined; resourceInputs["fileSystemTypeVersion"] = args ? args.fileSystemTypeVersion : undefined; resourceInputs["finalBackupTags"] = args ? args.finalBackupTags : undefined; resourceInputs["importPath"] = args ? args.importPath : undefined; resourceInputs["importedFileChunkSize"] = args ? args.importedFileChunkSize : undefined; resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined; resourceInputs["logConfiguration"] = args ? args.logConfiguration : undefined; resourceInputs["metadataConfiguration"] = args ? args.metadataConfiguration : undefined; resourceInputs["perUnitStorageThroughput"] = args ? args.perUnitStorageThroughput : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["rootSquashConfiguration"] = args ? args.rootSquashConfiguration : undefined; resourceInputs["securityGroupIds"] = args ? args.securityGroupIds : undefined; resourceInputs["skipFinalBackup"] = args ? args.skipFinalBackup : undefined; resourceInputs["storageCapacity"] = args ? args.storageCapacity : undefined; resourceInputs["storageType"] = args ? args.storageType : undefined; resourceInputs["subnetIds"] = args ? args.subnetIds : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["throughputCapacity"] = args ? args.throughputCapacity : undefined; resourceInputs["weeklyMaintenanceStartTime"] = args ? args.weeklyMaintenanceStartTime : undefined; resourceInputs["arn"] = undefined /*out*/; resourceInputs["dnsName"] = undefined /*out*/; resourceInputs["mountName"] = undefined /*out*/; resourceInputs["networkInterfaceIds"] = undefined /*out*/; resourceInputs["ownerId"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; resourceInputs["vpcId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(LustreFileSystem.__pulumiType, name, resourceInputs, opts); } } exports.LustreFileSystem = LustreFileSystem; /** @internal */ LustreFileSystem.__pulumiType = 'aws:fsx/lustreFileSystem:LustreFileSystem'; //# sourceMappingURL=lustreFileSystem.js.map