@pulumi/aws 4.33.1 → 4.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appstream/fleet.d.ts +3 -3
- package/batch/getJobQueue.d.ts +4 -0
- package/batch/getJobQueue.js.map +1 -1
- package/batch/getSchedulingPolicy.d.ts +69 -0
- package/batch/getSchedulingPolicy.js +39 -0
- package/batch/getSchedulingPolicy.js.map +1 -0
- package/batch/index.d.ts +2 -0
- package/batch/index.js +6 -0
- package/batch/index.js.map +1 -1
- package/batch/jobQueue.d.ts +37 -0
- package/batch/jobQueue.js +27 -0
- package/batch/jobQueue.js.map +1 -1
- package/batch/schedulingPolicy.d.ts +134 -0
- package/batch/schedulingPolicy.js +97 -0
- package/batch/schedulingPolicy.js.map +1 -0
- package/cloud9/environmentMembership.d.ts +106 -0
- package/cloud9/environmentMembership.js +92 -0
- package/cloud9/environmentMembership.js.map +1 -0
- package/cloud9/index.d.ts +1 -0
- package/cloud9/index.js +5 -0
- package/cloud9/index.js.map +1 -1
- package/cloudwatch/eventTarget.d.ts +48 -3
- package/cloudwatch/eventTarget.js +45 -0
- package/cloudwatch/eventTarget.js.map +1 -1
- package/codebuild/index.d.ts +1 -0
- package/codebuild/index.js +5 -0
- package/codebuild/index.js.map +1 -1
- package/codebuild/project.d.ts +49 -5
- package/codebuild/project.js +8 -0
- package/codebuild/project.js.map +1 -1
- package/codebuild/resourcePolicy.d.ts +108 -0
- package/codebuild/resourcePolicy.js +107 -0
- package/codebuild/resourcePolicy.js.map +1 -0
- package/codepipeline/webhook.d.ts +8 -0
- package/codepipeline/webhook.js +2 -0
- package/codepipeline/webhook.js.map +1 -1
- package/cognito/getUserPoolClients.d.ts +49 -0
- package/cognito/getUserPoolClients.js +38 -0
- package/cognito/getUserPoolClients.js.map +1 -0
- package/cognito/getUserPoolSigningCertificate.d.ts +49 -0
- package/cognito/getUserPoolSigningCertificate.js +38 -0
- package/cognito/getUserPoolSigningCertificate.js.map +1 -0
- package/cognito/index.d.ts +2 -0
- package/cognito/index.js +2 -0
- package/cognito/index.js.map +1 -1
- package/datasync/index.d.ts +2 -0
- package/datasync/index.js +10 -0
- package/datasync/index.js.map +1 -1
- package/datasync/locationFsxLustre.d.ts +155 -0
- package/datasync/locationFsxLustre.js +94 -0
- package/datasync/locationFsxLustre.js.map +1 -0
- package/datasync/locationHdfs.d.ts +257 -0
- package/datasync/locationHdfs.js +117 -0
- package/datasync/locationHdfs.js.map +1 -0
- package/dax/cluster.d.ts +18 -0
- package/dax/cluster.js +2 -0
- package/dax/cluster.js.map +1 -1
- package/devicefarm/devicePool.d.ts +170 -0
- package/devicefarm/devicePool.js +100 -0
- package/devicefarm/devicePool.js.map +1 -0
- package/devicefarm/index.d.ts +3 -0
- package/devicefarm/index.js +15 -0
- package/devicefarm/index.js.map +1 -1
- package/devicefarm/networkProfile.d.ts +247 -0
- package/devicefarm/networkProfile.js +105 -0
- package/devicefarm/networkProfile.js.map +1 -0
- package/devicefarm/upload.d.ts +142 -0
- package/devicefarm/upload.js +97 -0
- package/devicefarm/upload.js.map +1 -0
- package/directconnect/privateVirtualInterface.d.ts +3 -0
- package/directconnect/privateVirtualInterface.js +2 -0
- package/directconnect/privateVirtualInterface.js.map +1 -1
- package/directconnect/transitVirtualInterface.d.ts +3 -0
- package/directconnect/transitVirtualInterface.js +2 -0
- package/directconnect/transitVirtualInterface.js.map +1 -1
- package/ec2/defaultSubnet.d.ts +15 -0
- package/ec2/defaultSubnet.js +10 -0
- package/ec2/defaultSubnet.js.map +1 -1
- package/ec2/getSubnet.d.ts +20 -0
- package/ec2/getSubnet.js.map +1 -1
- package/ec2/index.d.ts +3 -0
- package/ec2/index.js +15 -0
- package/ec2/index.js.map +1 -1
- package/ec2/subnet.d.ts +65 -5
- package/ec2/subnet.js +10 -3
- package/ec2/subnet.js.map +1 -1
- package/ec2/vpcEndpointConnectionAccepter.d.ts +105 -0
- package/ec2/vpcEndpointConnectionAccepter.js +98 -0
- package/ec2/vpcEndpointConnectionAccepter.js.map +1 -0
- package/ec2/vpcIpamOrganizationAdminAccount.d.ts +94 -0
- package/ec2/vpcIpamOrganizationAdminAccount.js +85 -0
- package/ec2/vpcIpamOrganizationAdminAccount.js.map +1 -0
- package/ec2/vpcIpamPoolCidr.d.ts +3 -0
- package/ec2/vpcIpamPoolCidr.js +3 -0
- package/ec2/vpcIpamPoolCidr.js.map +1 -1
- package/ec2/vpcIpamPoolCidrAllocation.d.ts +3 -3
- package/ec2/vpcIpamPreviewNextCidr.d.ts +100 -0
- package/ec2/vpcIpamPreviewNextCidr.js +90 -0
- package/ec2/vpcIpamPreviewNextCidr.js.map +1 -0
- package/ecr/replicationConfiguration.d.ts +22 -0
- package/ecr/replicationConfiguration.js +22 -0
- package/ecr/replicationConfiguration.js.map +1 -1
- package/ecs/getTaskDefinition.d.ts +39 -0
- package/ecs/getTaskDefinition.js +35 -0
- package/ecs/getTaskDefinition.js.map +1 -1
- package/fsx/backup.d.ts +15 -0
- package/fsx/backup.js +15 -0
- package/fsx/backup.js.map +1 -1
- package/fsx/index.d.ts +3 -0
- package/fsx/index.js +15 -0
- package/fsx/index.js.map +1 -1
- package/fsx/openZfsFileSystem.d.ts +341 -0
- package/fsx/openZfsFileSystem.js +144 -0
- package/fsx/openZfsFileSystem.js.map +1 -0
- package/fsx/openZfsSnapshot.d.ts +149 -0
- package/fsx/openZfsSnapshot.js +107 -0
- package/fsx/openZfsSnapshot.js.map +1 -0
- package/fsx/openZfsVolume.d.ts +225 -0
- package/fsx/openZfsVolume.js +101 -0
- package/fsx/openZfsVolume.js.map +1 -0
- package/glue/trigger.d.ts +15 -3
- package/glue/trigger.js +2 -0
- package/glue/trigger.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +7 -2
- package/index.js.map +1 -1
- package/memorydb/acl.d.ts +142 -0
- package/memorydb/acl.js +90 -0
- package/memorydb/acl.js.map +1 -0
- package/memorydb/cluster.d.ts +388 -0
- package/memorydb/cluster.js +140 -0
- package/memorydb/cluster.js.map +1 -0
- package/memorydb/index.d.ts +5 -0
- package/memorydb/index.js +53 -0
- package/memorydb/index.js.map +1 -0
- package/memorydb/parameterGroup.d.ts +160 -0
- package/memorydb/parameterGroup.js +96 -0
- package/memorydb/parameterGroup.js.map +1 -0
- package/memorydb/subnetGroup.d.ts +146 -0
- package/memorydb/subnetGroup.js +96 -0
- package/memorydb/subnetGroup.js.map +1 -0
- package/memorydb/user.d.ts +138 -0
- package/memorydb/user.js +83 -0
- package/memorydb/user.js.map +1 -0
- package/mskconnect/customPlugin.d.ts +144 -0
- package/mskconnect/customPlugin.js +104 -0
- package/mskconnect/customPlugin.js.map +1 -0
- package/mskconnect/getCustomPlugin.d.ts +61 -0
- package/mskconnect/getCustomPlugin.js +38 -0
- package/mskconnect/getCustomPlugin.js.map +1 -0
- package/mskconnect/getWorkerConfiguration.d.ts +61 -0
- package/mskconnect/getWorkerConfiguration.js +38 -0
- package/mskconnect/getWorkerConfiguration.js.map +1 -0
- package/mskconnect/index.d.ts +4 -0
- package/mskconnect/index.js +40 -0
- package/mskconnect/index.js.map +1 -0
- package/mskconnect/workerConfiguration.d.ts +113 -0
- package/mskconnect/workerConfiguration.js +87 -0
- package/mskconnect/workerConfiguration.js.map +1 -0
- package/organizations/getResourceTags.d.ts +63 -0
- package/organizations/getResourceTags.js +39 -0
- package/organizations/getResourceTags.js.map +1 -0
- package/organizations/index.d.ts +1 -0
- package/organizations/index.js +1 -0
- package/organizations/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/sagemaker/device.d.ts +97 -0
- package/sagemaker/device.js +89 -0
- package/sagemaker/device.js.map +1 -0
- package/sagemaker/getPrebuiltEcrImage.d.ts +2 -2
- package/sagemaker/index.d.ts +1 -0
- package/sagemaker/index.js +5 -0
- package/sagemaker/index.js.map +1 -1
- package/ses/getActiveReceiptRuleSet.d.ts +31 -0
- package/ses/getActiveReceiptRuleSet.js +30 -0
- package/ses/getActiveReceiptRuleSet.js.map +1 -0
- package/ses/getDomainIdentity.d.ts +56 -0
- package/ses/getDomainIdentity.js +38 -0
- package/ses/getDomainIdentity.js.map +1 -0
- package/ses/getEmailIdentity.d.ts +52 -0
- package/ses/getEmailIdentity.js +38 -0
- package/ses/getEmailIdentity.js.map +1 -0
- package/ses/index.d.ts +3 -0
- package/ses/index.js +3 -0
- package/ses/index.js.map +1 -1
- package/sqs/queue.d.ts +16 -0
- package/sqs/queue.js +6 -0
- package/sqs/queue.js.map +1 -1
- package/ssm/getParametersByPath.d.ts +9 -0
- package/ssm/getParametersByPath.js +1 -0
- package/ssm/getParametersByPath.js.map +1 -1
- package/timestreamwrite/table.d.ts +12 -0
- package/timestreamwrite/table.js +2 -0
- package/timestreamwrite/table.js.map +1 -1
- package/types/input.d.ts +409 -11
- package/types/output.d.ts +430 -11
- package/wafv2/webAclLoggingConfiguration.d.ts +3 -3
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.OpenZfsFileSystem = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an Amazon FSx for OpenZFS file system.
|
|
10
|
+
* See the [FSx OpenZFS User Guide](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/what-is-fsx.html) for more information.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as aws from "@pulumi/aws";
|
|
17
|
+
*
|
|
18
|
+
* const test = new aws.fsx.OpenZfsFileSystem("test", {
|
|
19
|
+
* storageCapacity: 64,
|
|
20
|
+
* subnetIds: [aws_subnet.test1.id],
|
|
21
|
+
* deploymentType: "SINGLE_AZ_1",
|
|
22
|
+
* throughputCapacity: 64,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* FSx File Systems can be imported using the `id`, e.g.,
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import aws:fsx/openZfsFileSystem:OpenZfsFileSystem example fs-543ab12b1ca672f33
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* 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 Terraform configuration on an imported resource, Terraform will always show a difference. To workaround this behavior, either omit the argument from the Terraform configuration or use [`ignore_changes`](https://www.terraform.io/docs/configuration/meta-arguments/lifecycle.html#ignore_changes) to hide the difference, e.g., terraform resource "aws_fsx_openzfs_file_system" "example" {
|
|
35
|
+
*
|
|
36
|
+
* # ... other configuration ...
|
|
37
|
+
*
|
|
38
|
+
* security_group_ids = [aws_security_group.example.id]
|
|
39
|
+
*
|
|
40
|
+
* # There is no FSx API for reading security_group_ids
|
|
41
|
+
*
|
|
42
|
+
* lifecycle {
|
|
43
|
+
*
|
|
44
|
+
* ignore_changes = [security_group_ids]
|
|
45
|
+
*
|
|
46
|
+
* } }
|
|
47
|
+
*/
|
|
48
|
+
class OpenZfsFileSystem extends pulumi.CustomResource {
|
|
49
|
+
constructor(name, argsOrState, opts) {
|
|
50
|
+
let inputs = {};
|
|
51
|
+
opts = opts || {};
|
|
52
|
+
if (opts.id) {
|
|
53
|
+
const state = argsOrState;
|
|
54
|
+
inputs["arn"] = state ? state.arn : undefined;
|
|
55
|
+
inputs["automaticBackupRetentionDays"] = state ? state.automaticBackupRetentionDays : undefined;
|
|
56
|
+
inputs["backupId"] = state ? state.backupId : undefined;
|
|
57
|
+
inputs["copyTagsToBackups"] = state ? state.copyTagsToBackups : undefined;
|
|
58
|
+
inputs["copyTagsToVolumes"] = state ? state.copyTagsToVolumes : undefined;
|
|
59
|
+
inputs["dailyAutomaticBackupStartTime"] = state ? state.dailyAutomaticBackupStartTime : undefined;
|
|
60
|
+
inputs["deploymentType"] = state ? state.deploymentType : undefined;
|
|
61
|
+
inputs["diskIopsConfiguration"] = state ? state.diskIopsConfiguration : undefined;
|
|
62
|
+
inputs["dnsName"] = state ? state.dnsName : undefined;
|
|
63
|
+
inputs["kmsKeyId"] = state ? state.kmsKeyId : undefined;
|
|
64
|
+
inputs["networkInterfaceIds"] = state ? state.networkInterfaceIds : undefined;
|
|
65
|
+
inputs["ownerId"] = state ? state.ownerId : undefined;
|
|
66
|
+
inputs["rootVolumeConfiguration"] = state ? state.rootVolumeConfiguration : undefined;
|
|
67
|
+
inputs["rootVolumeId"] = state ? state.rootVolumeId : undefined;
|
|
68
|
+
inputs["securityGroupIds"] = state ? state.securityGroupIds : undefined;
|
|
69
|
+
inputs["storageCapacity"] = state ? state.storageCapacity : undefined;
|
|
70
|
+
inputs["storageType"] = state ? state.storageType : undefined;
|
|
71
|
+
inputs["subnetIds"] = state ? state.subnetIds : undefined;
|
|
72
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
73
|
+
inputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
74
|
+
inputs["throughputCapacity"] = state ? state.throughputCapacity : undefined;
|
|
75
|
+
inputs["vpcId"] = state ? state.vpcId : undefined;
|
|
76
|
+
inputs["weeklyMaintenanceStartTime"] = state ? state.weeklyMaintenanceStartTime : undefined;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
const args = argsOrState;
|
|
80
|
+
if ((!args || args.deploymentType === undefined) && !opts.urn) {
|
|
81
|
+
throw new Error("Missing required property 'deploymentType'");
|
|
82
|
+
}
|
|
83
|
+
if ((!args || args.subnetIds === undefined) && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'subnetIds'");
|
|
85
|
+
}
|
|
86
|
+
if ((!args || args.throughputCapacity === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'throughputCapacity'");
|
|
88
|
+
}
|
|
89
|
+
inputs["automaticBackupRetentionDays"] = args ? args.automaticBackupRetentionDays : undefined;
|
|
90
|
+
inputs["backupId"] = args ? args.backupId : undefined;
|
|
91
|
+
inputs["copyTagsToBackups"] = args ? args.copyTagsToBackups : undefined;
|
|
92
|
+
inputs["copyTagsToVolumes"] = args ? args.copyTagsToVolumes : undefined;
|
|
93
|
+
inputs["dailyAutomaticBackupStartTime"] = args ? args.dailyAutomaticBackupStartTime : undefined;
|
|
94
|
+
inputs["deploymentType"] = args ? args.deploymentType : undefined;
|
|
95
|
+
inputs["diskIopsConfiguration"] = args ? args.diskIopsConfiguration : undefined;
|
|
96
|
+
inputs["kmsKeyId"] = args ? args.kmsKeyId : undefined;
|
|
97
|
+
inputs["rootVolumeConfiguration"] = args ? args.rootVolumeConfiguration : undefined;
|
|
98
|
+
inputs["securityGroupIds"] = args ? args.securityGroupIds : undefined;
|
|
99
|
+
inputs["storageCapacity"] = args ? args.storageCapacity : undefined;
|
|
100
|
+
inputs["storageType"] = args ? args.storageType : undefined;
|
|
101
|
+
inputs["subnetIds"] = args ? args.subnetIds : undefined;
|
|
102
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
103
|
+
inputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
104
|
+
inputs["throughputCapacity"] = args ? args.throughputCapacity : undefined;
|
|
105
|
+
inputs["weeklyMaintenanceStartTime"] = args ? args.weeklyMaintenanceStartTime : undefined;
|
|
106
|
+
inputs["arn"] = undefined /*out*/;
|
|
107
|
+
inputs["dnsName"] = undefined /*out*/;
|
|
108
|
+
inputs["networkInterfaceIds"] = undefined /*out*/;
|
|
109
|
+
inputs["ownerId"] = undefined /*out*/;
|
|
110
|
+
inputs["rootVolumeId"] = undefined /*out*/;
|
|
111
|
+
inputs["vpcId"] = undefined /*out*/;
|
|
112
|
+
}
|
|
113
|
+
if (!opts.version) {
|
|
114
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
115
|
+
}
|
|
116
|
+
super(OpenZfsFileSystem.__pulumiType, name, inputs, opts);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Get an existing OpenZfsFileSystem resource's state with the given name, ID, and optional extra
|
|
120
|
+
* properties used to qualify the lookup.
|
|
121
|
+
*
|
|
122
|
+
* @param name The _unique_ name of the resulting resource.
|
|
123
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
124
|
+
* @param state Any extra arguments used during the lookup.
|
|
125
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
126
|
+
*/
|
|
127
|
+
static get(name, id, state, opts) {
|
|
128
|
+
return new OpenZfsFileSystem(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Returns true if the given object is an instance of OpenZfsFileSystem. This is designed to work even
|
|
132
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
133
|
+
*/
|
|
134
|
+
static isInstance(obj) {
|
|
135
|
+
if (obj === undefined || obj === null) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
return obj['__pulumiType'] === OpenZfsFileSystem.__pulumiType;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.OpenZfsFileSystem = OpenZfsFileSystem;
|
|
142
|
+
/** @internal */
|
|
143
|
+
OpenZfsFileSystem.__pulumiType = 'aws:fsx/openZfsFileSystem:OpenZfsFileSystem';
|
|
144
|
+
//# sourceMappingURL=openZfsFileSystem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openZfsFileSystem.js","sourceRoot":"","sources":["../../fsx/openZfsFileSystem.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG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K,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAqMC;AAvLG,gBAAgB;AACO,8BAAY,GAAG,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages an Amazon FSx for OpenZFS volume.
|
|
4
|
+
* See the [FSx OpenZFS User Guide](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/what-is-fsx.html) for more information.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
* ### Root volume Example
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as aws from "@pulumi/aws";
|
|
12
|
+
*
|
|
13
|
+
* const exampleOpenZfsFileSystem = new aws.fsx.OpenZfsFileSystem("exampleOpenZfsFileSystem", {
|
|
14
|
+
* storageCapacity: 64,
|
|
15
|
+
* subnetIds: [aws_subnet.example.id],
|
|
16
|
+
* deploymentType: "SINGLE_AZ_1",
|
|
17
|
+
* throughputCapacity: 64,
|
|
18
|
+
* });
|
|
19
|
+
* const exampleOpenZfsSnapshot = new aws.fsx.OpenZfsSnapshot("exampleOpenZfsSnapshot", {volumeId: exampleOpenZfsFileSystem.rootVolumeId});
|
|
20
|
+
* ```
|
|
21
|
+
* ### Child volume Example
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as aws from "@pulumi/aws";
|
|
26
|
+
*
|
|
27
|
+
* const exampleOpenZfsFileSystem = new aws.fsx.OpenZfsFileSystem("exampleOpenZfsFileSystem", {
|
|
28
|
+
* storageCapacity: 64,
|
|
29
|
+
* subnetIds: [aws_subnet.example.id],
|
|
30
|
+
* deploymentType: "SINGLE_AZ_1",
|
|
31
|
+
* throughputCapacity: 64,
|
|
32
|
+
* });
|
|
33
|
+
* const exampleOpenZfsVolume = new aws.fsx.OpenZfsVolume("exampleOpenZfsVolume", {parentVolumeId: exampleOpenZfsFileSystem.rootVolumeId});
|
|
34
|
+
* const exampleOpenZfsSnapshot = new aws.fsx.OpenZfsSnapshot("exampleOpenZfsSnapshot", {volumeId: exampleOpenZfsVolume.id});
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## Import
|
|
38
|
+
*
|
|
39
|
+
* FSx OpenZFS snapshot can be imported using the `id`, e.g.,
|
|
40
|
+
*
|
|
41
|
+
* ```sh
|
|
42
|
+
* $ pulumi import aws:fsx/openZfsSnapshot:OpenZfsSnapshot example fs-543ab12b1ca672f33
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class OpenZfsSnapshot extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing OpenZfsSnapshot resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OpenZfsSnapshotState, opts?: pulumi.CustomResourceOptions): OpenZfsSnapshot;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of OpenZfsSnapshot. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj: any): obj is OpenZfsSnapshot;
|
|
61
|
+
/**
|
|
62
|
+
* Amazon Resource Name of the snapshot.
|
|
63
|
+
*/
|
|
64
|
+
readonly arn: pulumi.Output<string>;
|
|
65
|
+
readonly creationTime: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The name of the Snapshot. You can use a maximum of 203 alphanumeric characters plus either _ or - or : or . for the name.
|
|
68
|
+
*/
|
|
69
|
+
readonly name: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copyTagsToBackups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
|
|
72
|
+
*/
|
|
73
|
+
readonly tags: pulumi.Output<{
|
|
74
|
+
[key: string]: string;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
78
|
+
*/
|
|
79
|
+
readonly tagsAll: pulumi.Output<{
|
|
80
|
+
[key: string]: string;
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* The ID of the volume to snapshot. This can be the root volume or a child volume.
|
|
84
|
+
*/
|
|
85
|
+
readonly volumeId: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a OpenZfsSnapshot resource with the given unique name, arguments, and options.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resource.
|
|
90
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, args: OpenZfsSnapshotArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Input properties used for looking up and filtering OpenZfsSnapshot resources.
|
|
97
|
+
*/
|
|
98
|
+
export interface OpenZfsSnapshotState {
|
|
99
|
+
/**
|
|
100
|
+
* Amazon Resource Name of the snapshot.
|
|
101
|
+
*/
|
|
102
|
+
arn?: pulumi.Input<string>;
|
|
103
|
+
creationTime?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The name of the Snapshot. You can use a maximum of 203 alphanumeric characters plus either _ or - or : or . for the name.
|
|
106
|
+
*/
|
|
107
|
+
name?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copyTagsToBackups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
|
|
110
|
+
*/
|
|
111
|
+
tags?: pulumi.Input<{
|
|
112
|
+
[key: string]: pulumi.Input<string>;
|
|
113
|
+
}>;
|
|
114
|
+
/**
|
|
115
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
116
|
+
*/
|
|
117
|
+
tagsAll?: pulumi.Input<{
|
|
118
|
+
[key: string]: pulumi.Input<string>;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
121
|
+
* The ID of the volume to snapshot. This can be the root volume or a child volume.
|
|
122
|
+
*/
|
|
123
|
+
volumeId?: pulumi.Input<string>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The set of arguments for constructing a OpenZfsSnapshot resource.
|
|
127
|
+
*/
|
|
128
|
+
export interface OpenZfsSnapshotArgs {
|
|
129
|
+
/**
|
|
130
|
+
* The name of the Snapshot. You can use a maximum of 203 alphanumeric characters plus either _ or - or : or . for the name.
|
|
131
|
+
*/
|
|
132
|
+
name?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copyTagsToBackups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
|
|
135
|
+
*/
|
|
136
|
+
tags?: pulumi.Input<{
|
|
137
|
+
[key: string]: pulumi.Input<string>;
|
|
138
|
+
}>;
|
|
139
|
+
/**
|
|
140
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
141
|
+
*/
|
|
142
|
+
tagsAll?: pulumi.Input<{
|
|
143
|
+
[key: string]: pulumi.Input<string>;
|
|
144
|
+
}>;
|
|
145
|
+
/**
|
|
146
|
+
* The ID of the volume to snapshot. This can be the root volume or a child volume.
|
|
147
|
+
*/
|
|
148
|
+
volumeId: pulumi.Input<string>;
|
|
149
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.OpenZfsSnapshot = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an Amazon FSx for OpenZFS volume.
|
|
10
|
+
* See the [FSx OpenZFS User Guide](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/what-is-fsx.html) for more information.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
* ### Root volume Example
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const exampleOpenZfsFileSystem = new aws.fsx.OpenZfsFileSystem("exampleOpenZfsFileSystem", {
|
|
20
|
+
* storageCapacity: 64,
|
|
21
|
+
* subnetIds: [aws_subnet.example.id],
|
|
22
|
+
* deploymentType: "SINGLE_AZ_1",
|
|
23
|
+
* throughputCapacity: 64,
|
|
24
|
+
* });
|
|
25
|
+
* const exampleOpenZfsSnapshot = new aws.fsx.OpenZfsSnapshot("exampleOpenZfsSnapshot", {volumeId: exampleOpenZfsFileSystem.rootVolumeId});
|
|
26
|
+
* ```
|
|
27
|
+
* ### Child volume Example
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
+
* import * as aws from "@pulumi/aws";
|
|
32
|
+
*
|
|
33
|
+
* const exampleOpenZfsFileSystem = new aws.fsx.OpenZfsFileSystem("exampleOpenZfsFileSystem", {
|
|
34
|
+
* storageCapacity: 64,
|
|
35
|
+
* subnetIds: [aws_subnet.example.id],
|
|
36
|
+
* deploymentType: "SINGLE_AZ_1",
|
|
37
|
+
* throughputCapacity: 64,
|
|
38
|
+
* });
|
|
39
|
+
* const exampleOpenZfsVolume = new aws.fsx.OpenZfsVolume("exampleOpenZfsVolume", {parentVolumeId: exampleOpenZfsFileSystem.rootVolumeId});
|
|
40
|
+
* const exampleOpenZfsSnapshot = new aws.fsx.OpenZfsSnapshot("exampleOpenZfsSnapshot", {volumeId: exampleOpenZfsVolume.id});
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ## Import
|
|
44
|
+
*
|
|
45
|
+
* FSx OpenZFS snapshot can be imported using the `id`, e.g.,
|
|
46
|
+
*
|
|
47
|
+
* ```sh
|
|
48
|
+
* $ pulumi import aws:fsx/openZfsSnapshot:OpenZfsSnapshot example fs-543ab12b1ca672f33
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
class OpenZfsSnapshot extends pulumi.CustomResource {
|
|
52
|
+
constructor(name, argsOrState, opts) {
|
|
53
|
+
let inputs = {};
|
|
54
|
+
opts = opts || {};
|
|
55
|
+
if (opts.id) {
|
|
56
|
+
const state = argsOrState;
|
|
57
|
+
inputs["arn"] = state ? state.arn : undefined;
|
|
58
|
+
inputs["creationTime"] = state ? state.creationTime : undefined;
|
|
59
|
+
inputs["name"] = state ? state.name : undefined;
|
|
60
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
61
|
+
inputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
62
|
+
inputs["volumeId"] = state ? state.volumeId : undefined;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const args = argsOrState;
|
|
66
|
+
if ((!args || args.volumeId === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'volumeId'");
|
|
68
|
+
}
|
|
69
|
+
inputs["name"] = args ? args.name : undefined;
|
|
70
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
71
|
+
inputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
72
|
+
inputs["volumeId"] = args ? args.volumeId : undefined;
|
|
73
|
+
inputs["arn"] = undefined /*out*/;
|
|
74
|
+
inputs["creationTime"] = undefined /*out*/;
|
|
75
|
+
}
|
|
76
|
+
if (!opts.version) {
|
|
77
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
78
|
+
}
|
|
79
|
+
super(OpenZfsSnapshot.__pulumiType, name, inputs, opts);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get an existing OpenZfsSnapshot resource's state with the given name, ID, and optional extra
|
|
83
|
+
* properties used to qualify the lookup.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resulting resource.
|
|
86
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
87
|
+
* @param state Any extra arguments used during the lookup.
|
|
88
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
89
|
+
*/
|
|
90
|
+
static get(name, id, state, opts) {
|
|
91
|
+
return new OpenZfsSnapshot(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns true if the given object is an instance of OpenZfsSnapshot. This is designed to work even
|
|
95
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
96
|
+
*/
|
|
97
|
+
static isInstance(obj) {
|
|
98
|
+
if (obj === undefined || obj === null) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return obj['__pulumiType'] === OpenZfsSnapshot.__pulumiType;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.OpenZfsSnapshot = OpenZfsSnapshot;
|
|
105
|
+
/** @internal */
|
|
106
|
+
OpenZfsSnapshot.__pulumiType = 'aws:fsx/openZfsSnapshot:OpenZfsSnapshot';
|
|
107
|
+
//# sourceMappingURL=openZfsSnapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openZfsSnapshot.js","sourceRoot":"","sources":["../../fsx/openZfsSnapshot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IA0DtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAA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C,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IApFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CAsFC;AAxEG,gBAAgB;AACO,4BAAY,GAAG,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Manages an Amazon FSx for OpenZFS volume.
|
|
5
|
+
* See the [FSx OpenZFS User Guide](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/what-is-fsx.html) for more information.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as aws from "@pulumi/aws";
|
|
12
|
+
*
|
|
13
|
+
* const test = new aws.fsx.OpenZfsVolume("test", {parentVolumeId: aws_fsx_openzfs_file_system.test.root_volume_id});
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* ## Import
|
|
17
|
+
*
|
|
18
|
+
* FSx Volumes can be imported using the `id`, e.g.,
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import aws:fsx/openZfsVolume:OpenZfsVolume example fsvol-543ab12b1ca672f33
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class OpenZfsVolume extends pulumi.CustomResource {
|
|
25
|
+
/**
|
|
26
|
+
* Get an existing OpenZfsVolume resource's state with the given name, ID, and optional extra
|
|
27
|
+
* properties used to qualify the lookup.
|
|
28
|
+
*
|
|
29
|
+
* @param name The _unique_ name of the resulting resource.
|
|
30
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
31
|
+
* @param state Any extra arguments used during the lookup.
|
|
32
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
33
|
+
*/
|
|
34
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: OpenZfsVolumeState, opts?: pulumi.CustomResourceOptions): OpenZfsVolume;
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the given object is an instance of OpenZfsVolume. This is designed to work even
|
|
37
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
38
|
+
*/
|
|
39
|
+
static isInstance(obj: any): obj is OpenZfsVolume;
|
|
40
|
+
/**
|
|
41
|
+
* Amazon Resource Name of the file system.
|
|
42
|
+
*/
|
|
43
|
+
readonly arn: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
|
|
46
|
+
*/
|
|
47
|
+
readonly copyTagsToSnapshots: pulumi.Output<boolean | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume.
|
|
50
|
+
*/
|
|
51
|
+
readonly dataCompressionType: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character.
|
|
54
|
+
*/
|
|
55
|
+
readonly name: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below.
|
|
58
|
+
*/
|
|
59
|
+
readonly nfsExports: pulumi.Output<outputs.fsx.OpenZfsVolumeNfsExports | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* The ARN of the source snapshot to create the volume from.
|
|
62
|
+
*/
|
|
63
|
+
readonly originSnapshot: pulumi.Output<outputs.fsx.OpenZfsVolumeOriginSnapshot | undefined>;
|
|
64
|
+
/**
|
|
65
|
+
* The volume id of volume that will be the parent volume for the volume being created, this could be the root volume created from the `aws.fsx.OpenZfsFileSystem` resource with the `rootVolumeId` or the `id` property of another `aws.fsx.OpenZfsVolume`.
|
|
66
|
+
*/
|
|
67
|
+
readonly parentVolumeId: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* specifies whether the volume is read-only. Default is false.
|
|
70
|
+
*/
|
|
71
|
+
readonly readOnly: pulumi.Output<boolean>;
|
|
72
|
+
/**
|
|
73
|
+
* - The amount of storage that the user or group can use in gibibytes (GiB). Valid values between `0` and `2147483647`
|
|
74
|
+
*/
|
|
75
|
+
readonly storageCapacityQuotaGib: pulumi.Output<number>;
|
|
76
|
+
/**
|
|
77
|
+
* The amount of storage in gibibytes (GiB) to reserve from the parent volume.
|
|
78
|
+
*/
|
|
79
|
+
readonly storageCapacityReservationGib: pulumi.Output<number>;
|
|
80
|
+
/**
|
|
81
|
+
* A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
82
|
+
*/
|
|
83
|
+
readonly tags: pulumi.Output<{
|
|
84
|
+
[key: string]: string;
|
|
85
|
+
} | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
88
|
+
*/
|
|
89
|
+
readonly tagsAll: pulumi.Output<{
|
|
90
|
+
[key: string]: string;
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* - Specify how much storage users or groups can use on the volume. Maximum of 100 items. See User and Group Quotas Below.
|
|
94
|
+
*/
|
|
95
|
+
readonly userAndGroupQuotas: pulumi.Output<outputs.fsx.OpenZfsVolumeUserAndGroupQuota[]>;
|
|
96
|
+
readonly volumeType: pulumi.Output<string | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Create a OpenZfsVolume resource with the given unique name, arguments, and options.
|
|
99
|
+
*
|
|
100
|
+
* @param name The _unique_ name of the resource.
|
|
101
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
102
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
103
|
+
*/
|
|
104
|
+
constructor(name: string, args: OpenZfsVolumeArgs, opts?: pulumi.CustomResourceOptions);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Input properties used for looking up and filtering OpenZfsVolume resources.
|
|
108
|
+
*/
|
|
109
|
+
export interface OpenZfsVolumeState {
|
|
110
|
+
/**
|
|
111
|
+
* Amazon Resource Name of the file system.
|
|
112
|
+
*/
|
|
113
|
+
arn?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
|
|
116
|
+
*/
|
|
117
|
+
copyTagsToSnapshots?: pulumi.Input<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume.
|
|
120
|
+
*/
|
|
121
|
+
dataCompressionType?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character.
|
|
124
|
+
*/
|
|
125
|
+
name?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below.
|
|
128
|
+
*/
|
|
129
|
+
nfsExports?: pulumi.Input<inputs.fsx.OpenZfsVolumeNfsExports>;
|
|
130
|
+
/**
|
|
131
|
+
* The ARN of the source snapshot to create the volume from.
|
|
132
|
+
*/
|
|
133
|
+
originSnapshot?: pulumi.Input<inputs.fsx.OpenZfsVolumeOriginSnapshot>;
|
|
134
|
+
/**
|
|
135
|
+
* The volume id of volume that will be the parent volume for the volume being created, this could be the root volume created from the `aws.fsx.OpenZfsFileSystem` resource with the `rootVolumeId` or the `id` property of another `aws.fsx.OpenZfsVolume`.
|
|
136
|
+
*/
|
|
137
|
+
parentVolumeId?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* specifies whether the volume is read-only. Default is false.
|
|
140
|
+
*/
|
|
141
|
+
readOnly?: pulumi.Input<boolean>;
|
|
142
|
+
/**
|
|
143
|
+
* - The amount of storage that the user or group can use in gibibytes (GiB). Valid values between `0` and `2147483647`
|
|
144
|
+
*/
|
|
145
|
+
storageCapacityQuotaGib?: pulumi.Input<number>;
|
|
146
|
+
/**
|
|
147
|
+
* The amount of storage in gibibytes (GiB) to reserve from the parent volume.
|
|
148
|
+
*/
|
|
149
|
+
storageCapacityReservationGib?: pulumi.Input<number>;
|
|
150
|
+
/**
|
|
151
|
+
* A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
152
|
+
*/
|
|
153
|
+
tags?: pulumi.Input<{
|
|
154
|
+
[key: string]: pulumi.Input<string>;
|
|
155
|
+
}>;
|
|
156
|
+
/**
|
|
157
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
158
|
+
*/
|
|
159
|
+
tagsAll?: pulumi.Input<{
|
|
160
|
+
[key: string]: pulumi.Input<string>;
|
|
161
|
+
}>;
|
|
162
|
+
/**
|
|
163
|
+
* - Specify how much storage users or groups can use on the volume. Maximum of 100 items. See User and Group Quotas Below.
|
|
164
|
+
*/
|
|
165
|
+
userAndGroupQuotas?: pulumi.Input<pulumi.Input<inputs.fsx.OpenZfsVolumeUserAndGroupQuota>[]>;
|
|
166
|
+
volumeType?: pulumi.Input<string>;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* The set of arguments for constructing a OpenZfsVolume resource.
|
|
170
|
+
*/
|
|
171
|
+
export interface OpenZfsVolumeArgs {
|
|
172
|
+
/**
|
|
173
|
+
* A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
|
|
174
|
+
*/
|
|
175
|
+
copyTagsToSnapshots?: pulumi.Input<boolean>;
|
|
176
|
+
/**
|
|
177
|
+
* Method used to compress the data on the volume. Valid values are `NONE` or `ZSTD`. Child volumes that don't specify compression option will inherit from parent volume. This option on file system applies to the root volume.
|
|
178
|
+
*/
|
|
179
|
+
dataCompressionType?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* The name of the Volume. You can use a maximum of 203 alphanumeric characters, plus the underscore (_) special character.
|
|
182
|
+
*/
|
|
183
|
+
name?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* NFS export configuration for the root volume. Exactly 1 item. See NFS Exports Below.
|
|
186
|
+
*/
|
|
187
|
+
nfsExports?: pulumi.Input<inputs.fsx.OpenZfsVolumeNfsExports>;
|
|
188
|
+
/**
|
|
189
|
+
* The ARN of the source snapshot to create the volume from.
|
|
190
|
+
*/
|
|
191
|
+
originSnapshot?: pulumi.Input<inputs.fsx.OpenZfsVolumeOriginSnapshot>;
|
|
192
|
+
/**
|
|
193
|
+
* The volume id of volume that will be the parent volume for the volume being created, this could be the root volume created from the `aws.fsx.OpenZfsFileSystem` resource with the `rootVolumeId` or the `id` property of another `aws.fsx.OpenZfsVolume`.
|
|
194
|
+
*/
|
|
195
|
+
parentVolumeId: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* specifies whether the volume is read-only. Default is false.
|
|
198
|
+
*/
|
|
199
|
+
readOnly?: pulumi.Input<boolean>;
|
|
200
|
+
/**
|
|
201
|
+
* - The amount of storage that the user or group can use in gibibytes (GiB). Valid values between `0` and `2147483647`
|
|
202
|
+
*/
|
|
203
|
+
storageCapacityQuotaGib?: pulumi.Input<number>;
|
|
204
|
+
/**
|
|
205
|
+
* The amount of storage in gibibytes (GiB) to reserve from the parent volume.
|
|
206
|
+
*/
|
|
207
|
+
storageCapacityReservationGib?: pulumi.Input<number>;
|
|
208
|
+
/**
|
|
209
|
+
* A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
210
|
+
*/
|
|
211
|
+
tags?: pulumi.Input<{
|
|
212
|
+
[key: string]: pulumi.Input<string>;
|
|
213
|
+
}>;
|
|
214
|
+
/**
|
|
215
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
216
|
+
*/
|
|
217
|
+
tagsAll?: pulumi.Input<{
|
|
218
|
+
[key: string]: pulumi.Input<string>;
|
|
219
|
+
}>;
|
|
220
|
+
/**
|
|
221
|
+
* - Specify how much storage users or groups can use on the volume. Maximum of 100 items. See User and Group Quotas Below.
|
|
222
|
+
*/
|
|
223
|
+
userAndGroupQuotas?: pulumi.Input<pulumi.Input<inputs.fsx.OpenZfsVolumeUserAndGroupQuota>[]>;
|
|
224
|
+
volumeType?: pulumi.Input<string>;
|
|
225
|
+
}
|