@pulumi/mongodbatlas 3.1.0-alpha.1637768803 → 3.1.2
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/README.md +1 -1
- package/alertConfiguration.d.ts +21 -21
- package/alertConfiguration.js +27 -26
- package/alertConfiguration.js.map +1 -1
- package/auditing.d.ts +9 -9
- package/auditing.js +13 -12
- package/auditing.js.map +1 -1
- package/cloudBackupSchedule.d.ts +23 -23
- package/cloudBackupSchedule.js +29 -28
- package/cloudBackupSchedule.js.map +1 -1
- package/cloudProviderAccess.d.ts +12 -12
- package/cloudProviderAccess.js +21 -20
- package/cloudProviderAccess.js.map +1 -1
- package/cloudProviderAccessAuthorization.d.ts +8 -8
- package/cloudProviderAccessAuthorization.js +13 -12
- package/cloudProviderAccessAuthorization.js.map +1 -1
- package/cloudProviderAccessSetup.d.ts +8 -8
- package/cloudProviderAccessSetup.js +15 -14
- package/cloudProviderAccessSetup.js.map +1 -1
- package/cloudProviderSnapshot.d.ts +32 -17
- package/cloudProviderSnapshot.js +34 -28
- package/cloudProviderSnapshot.js.map +1 -1
- package/cloudProviderSnapshotBackupPolicy.d.ts +16 -16
- package/cloudProviderSnapshotBackupPolicy.js +21 -20
- package/cloudProviderSnapshotBackupPolicy.js.map +1 -1
- package/cloudProviderSnapshotRestoreJob.d.ts +20 -18
- package/cloudProviderSnapshotRestoreJob.js +31 -28
- package/cloudProviderSnapshotRestoreJob.js.map +1 -1
- package/cluster.d.ts +75 -75
- package/cluster.js +87 -86
- package/cluster.js.map +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +4 -4
- package/config/vars.js +25 -17
- package/config/vars.js.map +1 -1
- package/customDbRole.d.ts +9 -9
- package/customDbRole.js +12 -11
- package/customDbRole.js.map +1 -1
- package/customDnsConfigurationClusterAws.d.ts +4 -4
- package/customDnsConfigurationClusterAws.js +7 -6
- package/customDnsConfigurationClusterAws.js.map +1 -1
- package/dataLake.d.ts +12 -12
- package/dataLake.js +19 -18
- package/dataLake.js.map +1 -1
- package/databaseUser.d.ts +22 -22
- package/databaseUser.js +25 -24
- package/databaseUser.js.map +1 -1
- package/encryptionAtRest.d.ts +14 -14
- package/encryptionAtRest.js +17 -16
- package/encryptionAtRest.js.map +1 -1
- package/eventTrigger.d.ts +39 -39
- package/eventTrigger.js +45 -44
- package/eventTrigger.js.map +1 -1
- package/get509AuthenticationDatabaseUser.d.ts +20 -6
- package/get509AuthenticationDatabaseUser.js +9 -4
- package/get509AuthenticationDatabaseUser.js.map +1 -1
- package/getAlertConfiguration.d.ts +16 -2
- package/getAlertConfiguration.js +5 -0
- package/getAlertConfiguration.js.map +1 -1
- package/getAuditing.d.ts +11 -1
- package/getAuditing.js +5 -0
- package/getAuditing.js.map +1 -1
- package/getCloudBackupSchedule.d.ts +16 -2
- package/getCloudBackupSchedule.js +5 -0
- package/getCloudBackupSchedule.js.map +1 -1
- package/getCloudProviderAccess.d.ts +14 -4
- package/getCloudProviderAccess.js +8 -3
- package/getCloudProviderAccess.js.map +1 -1
- package/getCloudProviderAccessSetup.d.ts +26 -8
- package/getCloudProviderAccessSetup.js +10 -5
- package/getCloudProviderAccessSetup.js.map +1 -1
- package/getCloudProviderSnapshot.d.ts +20 -3
- package/getCloudProviderSnapshot.js +7 -0
- package/getCloudProviderSnapshot.js.map +1 -1
- package/getCloudProviderSnapshotBackupPolicy.d.ts +16 -2
- package/getCloudProviderSnapshotBackupPolicy.js +5 -0
- package/getCloudProviderSnapshotBackupPolicy.js.map +1 -1
- package/getCloudProviderSnapshotRestoreJob.d.ts +23 -3
- package/getCloudProviderSnapshotRestoreJob.js +7 -0
- package/getCloudProviderSnapshotRestoreJob.js.map +1 -1
- package/getCloudProviderSnapshotRestoreJobs.d.ts +29 -5
- package/getCloudProviderSnapshotRestoreJobs.js +8 -1
- package/getCloudProviderSnapshotRestoreJobs.js.map +1 -1
- package/getCloudProviderSnapshots.d.ts +45 -4
- package/getCloudProviderSnapshots.js +27 -0
- package/getCloudProviderSnapshots.js.map +1 -1
- package/getCluster.d.ts +16 -2
- package/getCluster.js +5 -0
- package/getCluster.js.map +1 -1
- package/getClusters.d.ts +14 -4
- package/getClusters.js +8 -3
- package/getClusters.js.map +1 -1
- package/getCustomDbRole.d.ts +22 -7
- package/getCustomDbRole.js +9 -4
- package/getCustomDbRole.js.map +1 -1
- package/getCustomDbRoles.d.ts +11 -1
- package/getCustomDbRoles.js +5 -0
- package/getCustomDbRoles.js.map +1 -1
- package/getCustomDnsConfigurationClusterAws.d.ts +11 -1
- package/getCustomDnsConfigurationClusterAws.js +5 -0
- package/getCustomDnsConfigurationClusterAws.js.map +1 -1
- package/getDataLake.d.ts +16 -2
- package/getDataLake.js +5 -0
- package/getDataLake.js.map +1 -1
- package/getDataLakes.d.ts +12 -2
- package/getDataLakes.js +6 -1
- package/getDataLakes.js.map +1 -1
- package/getDatabaseUser.d.ts +28 -4
- package/getDatabaseUser.js +5 -0
- package/getDatabaseUser.js.map +1 -1
- package/getDatabaseUsers.d.ts +14 -4
- package/getDatabaseUsers.js +8 -3
- package/getDatabaseUsers.js.map +1 -1
- package/getEventTrigger.d.ts +21 -3
- package/getEventTrigger.js +5 -0
- package/getEventTrigger.js.map +1 -1
- package/getEventTriggers.d.ts +16 -2
- package/getEventTriggers.js +5 -0
- package/getEventTriggers.js.map +1 -1
- package/getGlobalClusterConfig.d.ts +19 -3
- package/getGlobalClusterConfig.js +5 -0
- package/getGlobalClusterConfig.js.map +1 -1
- package/getLdapConfiguration.d.ts +11 -1
- package/getLdapConfiguration.js +5 -0
- package/getLdapConfiguration.js.map +1 -1
- package/getLdapVerify.d.ts +16 -2
- package/getLdapVerify.js +5 -0
- package/getLdapVerify.js.map +1 -1
- package/getMaintenanceWindow.d.ts +11 -1
- package/getMaintenanceWindow.js +5 -0
- package/getMaintenanceWindow.js.map +1 -1
- package/getNetworkContainer.d.ts +16 -2
- package/getNetworkContainer.js +5 -0
- package/getNetworkContainer.js.map +1 -1
- package/getNetworkContainers.d.ts +17 -3
- package/getNetworkContainers.js +6 -1
- package/getNetworkContainers.js.map +1 -1
- package/getNetworkPeering.d.ts +16 -2
- package/getNetworkPeering.js +5 -0
- package/getNetworkPeering.js.map +1 -1
- package/getNetworkPeerings.d.ts +14 -4
- package/getNetworkPeerings.js +8 -3
- package/getNetworkPeerings.js.map +1 -1
- package/getOnlineArchive.d.ts +21 -3
- package/getOnlineArchive.js +5 -0
- package/getOnlineArchive.js.map +1 -1
- package/getOnlineArchives.d.ts +16 -2
- package/getOnlineArchives.js +5 -0
- package/getOnlineArchives.js.map +1 -1
- package/getPrivateLinkEndpoint.d.ts +35 -5
- package/getPrivateLinkEndpoint.js +5 -0
- package/getPrivateLinkEndpoint.js.map +1 -1
- package/getPrivateLinkEndpointService.d.ts +36 -4
- package/getPrivateLinkEndpointService.js +5 -0
- package/getPrivateLinkEndpointService.js.map +1 -1
- package/getProject.d.ts +17 -3
- package/getProject.js +6 -1
- package/getProject.js.map +1 -1
- package/getProjectIpAccessList.d.ts +26 -4
- package/getProjectIpAccessList.js +5 -0
- package/getProjectIpAccessList.js.map +1 -1
- package/getProjects.d.ts +17 -3
- package/getProjects.js +6 -1
- package/getProjects.js.map +1 -1
- package/getSearchIndex.d.ts +76 -17
- package/getSearchIndex.js +6 -1
- package/getSearchIndex.js.map +1 -1
- package/getSearchIndexes.d.ts +37 -7
- package/getSearchIndexes.js +6 -1
- package/getSearchIndexes.js.map +1 -1
- package/getTeam.d.ts +21 -3
- package/getTeam.js +5 -0
- package/getTeam.js.map +1 -1
- package/getTeams.d.ts +12 -3
- package/getTeams.js +5 -0
- package/getTeams.js.map +1 -1
- package/getThirdPartyIntegration.d.ts +41 -2
- package/getThirdPartyIntegration.js +23 -0
- package/getThirdPartyIntegration.js.map +1 -1
- package/getThirdPartyIntegrations.d.ts +34 -1
- package/getThirdPartyIntegrations.js +28 -0
- package/getThirdPartyIntegrations.js.map +1 -1
- package/globalClusterConfig.d.ts +9 -9
- package/globalClusterConfig.js +13 -12
- package/globalClusterConfig.js.map +1 -1
- package/index.js +88 -80
- package/index.js.map +1 -1
- package/ldapConfiguration.d.ts +20 -20
- package/ldapConfiguration.js +23 -22
- package/ldapConfiguration.js.map +1 -1
- package/ldapVerify.d.ts +18 -18
- package/ldapVerify.js +25 -24
- package/ldapVerify.js.map +1 -1
- package/maintenanceWindow.d.ts +15 -15
- package/maintenanceWindow.js +19 -18
- package/maintenanceWindow.js.map +1 -1
- package/networkContainer.d.ts +19 -19
- package/networkContainer.js +29 -28
- package/networkContainer.js.map +1 -1
- package/networkPeering.d.ts +40 -40
- package/networkPeering.js +51 -50
- package/networkPeering.js.map +1 -1
- package/onlineArchive.d.ts +18 -18
- package/onlineArchive.js +23 -22
- package/onlineArchive.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +3 -2
- package/package.json.dev +4 -3
- package/privateIpMode.d.ts +4 -4
- package/privateIpMode.js +7 -6
- package/privateIpMode.js.map +1 -1
- package/privateLinkEndpoint.d.ts +50 -26
- package/privateLinkEndpoint.js +31 -24
- package/privateLinkEndpoint.js.map +1 -1
- package/privateLinkEndpointService.d.ts +162 -23
- package/privateLinkEndpointService.js +131 -26
- package/privateLinkEndpointService.js.map +1 -1
- package/project.d.ts +22 -10
- package/project.js +17 -14
- package/project.js.map +1 -1
- package/projectIpAccessList.d.ts +10 -10
- package/projectIpAccessList.js +13 -12
- package/projectIpAccessList.js.map +1 -1
- package/provider.d.ts +20 -4
- package/provider.js +7 -6
- package/provider.js.map +1 -1
- package/searchIndex.d.ts +129 -38
- package/searchIndex.js +98 -26
- package/searchIndex.js.map +1 -1
- package/team.d.ts +7 -7
- package/team.js +11 -10
- package/team.js.map +1 -1
- package/teams.d.ts +7 -7
- package/teams.js +11 -10
- package/teams.js.map +1 -1
- package/thirdPartyIntegration.d.ts +34 -34
- package/thirdPartyIntegration.js +37 -36
- package/thirdPartyIntegration.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/input.d.ts +67 -0
- package/types/output.d.ts +85 -0
- package/utilities.js +1 -0
- package/utilities.js.map +1 -1
- package/x509authenticationDatabaseUser.d.ts +10 -10
- package/x509authenticationDatabaseUser.js +15 -14
- package/x509authenticationDatabaseUser.js.map +1 -1
package/cloudProviderAccess.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CloudProviderAccess = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -15,19 +16,19 @@ const utilities = require("./utilities");
|
|
|
15
16
|
*/
|
|
16
17
|
class CloudProviderAccess extends pulumi.CustomResource {
|
|
17
18
|
constructor(name, argsOrState, opts) {
|
|
18
|
-
let
|
|
19
|
+
let resourceInputs = {};
|
|
19
20
|
opts = opts || {};
|
|
20
21
|
if (opts.id) {
|
|
21
22
|
const state = argsOrState;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
resourceInputs["atlasAssumedRoleExternalId"] = state ? state.atlasAssumedRoleExternalId : undefined;
|
|
24
|
+
resourceInputs["atlasAwsAccountArn"] = state ? state.atlasAwsAccountArn : undefined;
|
|
25
|
+
resourceInputs["authorizedDate"] = state ? state.authorizedDate : undefined;
|
|
26
|
+
resourceInputs["createdDate"] = state ? state.createdDate : undefined;
|
|
27
|
+
resourceInputs["featureUsages"] = state ? state.featureUsages : undefined;
|
|
28
|
+
resourceInputs["iamAssumedRoleArn"] = state ? state.iamAssumedRoleArn : undefined;
|
|
29
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
30
|
+
resourceInputs["providerName"] = state ? state.providerName : undefined;
|
|
31
|
+
resourceInputs["roleId"] = state ? state.roleId : undefined;
|
|
31
32
|
}
|
|
32
33
|
else {
|
|
33
34
|
const args = argsOrState;
|
|
@@ -37,20 +38,20 @@ class CloudProviderAccess extends pulumi.CustomResource {
|
|
|
37
38
|
if ((!args || args.providerName === undefined) && !opts.urn) {
|
|
38
39
|
throw new Error("Missing required property 'providerName'");
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
resourceInputs["iamAssumedRoleArn"] = args ? args.iamAssumedRoleArn : undefined;
|
|
42
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
43
|
+
resourceInputs["providerName"] = args ? args.providerName : undefined;
|
|
44
|
+
resourceInputs["atlasAssumedRoleExternalId"] = undefined /*out*/;
|
|
45
|
+
resourceInputs["atlasAwsAccountArn"] = undefined /*out*/;
|
|
46
|
+
resourceInputs["authorizedDate"] = undefined /*out*/;
|
|
47
|
+
resourceInputs["createdDate"] = undefined /*out*/;
|
|
48
|
+
resourceInputs["featureUsages"] = undefined /*out*/;
|
|
49
|
+
resourceInputs["roleId"] = undefined /*out*/;
|
|
49
50
|
}
|
|
50
51
|
if (!opts.version) {
|
|
51
52
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
52
53
|
}
|
|
53
|
-
super(CloudProviderAccess.__pulumiType, name,
|
|
54
|
+
super(CloudProviderAccess.__pulumiType, name, resourceInputs, opts);
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
* Get an existing CloudProviderAccess resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudProviderAccess.js","sourceRoot":"","sources":["../cloudProviderAccess.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|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SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IA5GD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDA8GC;AAhGG,gBAAgB;AACO,gCAAY,GAAG,4DAA4D,CAAC"}
|
|
@@ -34,17 +34,17 @@ export declare class CloudProviderAccessAuthorization extends pulumi.CustomResou
|
|
|
34
34
|
* Input properties used for looking up and filtering CloudProviderAccessAuthorization resources.
|
|
35
35
|
*/
|
|
36
36
|
export interface CloudProviderAccessAuthorizationState {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
authorizedDate?: pulumi.Input<string>;
|
|
38
|
+
aws?: pulumi.Input<inputs.CloudProviderAccessAuthorizationAws>;
|
|
39
|
+
featureUsages?: pulumi.Input<pulumi.Input<inputs.CloudProviderAccessAuthorizationFeatureUsage>[]>;
|
|
40
|
+
projectId?: pulumi.Input<string>;
|
|
41
|
+
roleId?: pulumi.Input<string>;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* The set of arguments for constructing a CloudProviderAccessAuthorization resource.
|
|
45
45
|
*/
|
|
46
46
|
export interface CloudProviderAccessAuthorizationArgs {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
aws?: pulumi.Input<inputs.CloudProviderAccessAuthorizationAws>;
|
|
48
|
+
projectId: pulumi.Input<string>;
|
|
49
|
+
roleId: pulumi.Input<string>;
|
|
50
50
|
}
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CloudProviderAccessAuthorization = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
class CloudProviderAccessAuthorization extends pulumi.CustomResource {
|
|
8
9
|
constructor(name, argsOrState, opts) {
|
|
9
|
-
let
|
|
10
|
+
let resourceInputs = {};
|
|
10
11
|
opts = opts || {};
|
|
11
12
|
if (opts.id) {
|
|
12
13
|
const state = argsOrState;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
resourceInputs["authorizedDate"] = state ? state.authorizedDate : undefined;
|
|
15
|
+
resourceInputs["aws"] = state ? state.aws : undefined;
|
|
16
|
+
resourceInputs["featureUsages"] = state ? state.featureUsages : undefined;
|
|
17
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
18
|
+
resourceInputs["roleId"] = state ? state.roleId : undefined;
|
|
18
19
|
}
|
|
19
20
|
else {
|
|
20
21
|
const args = argsOrState;
|
|
@@ -24,16 +25,16 @@ class CloudProviderAccessAuthorization extends pulumi.CustomResource {
|
|
|
24
25
|
if ((!args || args.roleId === undefined) && !opts.urn) {
|
|
25
26
|
throw new Error("Missing required property 'roleId'");
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
resourceInputs["aws"] = args ? args.aws : undefined;
|
|
29
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
30
|
+
resourceInputs["roleId"] = args ? args.roleId : undefined;
|
|
31
|
+
resourceInputs["authorizedDate"] = undefined /*out*/;
|
|
32
|
+
resourceInputs["featureUsages"] = undefined /*out*/;
|
|
32
33
|
}
|
|
33
34
|
if (!opts.version) {
|
|
34
35
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
35
36
|
}
|
|
36
|
-
super(CloudProviderAccessAuthorization.__pulumiType, name,
|
|
37
|
+
super(CloudProviderAccessAuthorization.__pulumiType, name, resourceInputs, opts);
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* Get an existing CloudProviderAccessAuthorization resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudProviderAccessAuthorization.js","sourceRoot":"","sources":["../cloudProviderAccessAuthorization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"cloudProviderAccessAuthorization.js","sourceRoot":"","sources":["../cloudProviderAccessAuthorization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,gCAAiC,SAAQ,MAAM,CAAC,cAAc;IA0CvE,YAAY,IAAY,EAAE,WAA0F,EAAE,IAAmC;QACrJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgE,CAAC;YAC/E,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CA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AC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,gCAAgC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;IArED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6C,EAAE,IAAmC;QAC3I,OAAO,IAAI,gCAAgC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvF,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,gCAAgC,CAAC,YAAY,CAAC;IACjF,CAAC;;AA1BL,4EAuEC;AAzDG,gBAAgB;AACO,6CAAY,GAAG,sFAAsF,CAAC"}
|
|
@@ -43,19 +43,19 @@ export interface CloudProviderAccessSetupState {
|
|
|
43
43
|
/**
|
|
44
44
|
* @deprecated use aws_config instead
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
aws?: pulumi.Input<{
|
|
47
47
|
[key: string]: pulumi.Input<string>;
|
|
48
48
|
}>;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
awsConfigs?: pulumi.Input<pulumi.Input<inputs.CloudProviderAccessSetupAwsConfig>[]>;
|
|
50
|
+
createdDate?: pulumi.Input<string>;
|
|
51
|
+
projectId?: pulumi.Input<string>;
|
|
52
|
+
providerName?: pulumi.Input<string>;
|
|
53
|
+
roleId?: pulumi.Input<string>;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* The set of arguments for constructing a CloudProviderAccessSetup resource.
|
|
57
57
|
*/
|
|
58
58
|
export interface CloudProviderAccessSetupArgs {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
projectId: pulumi.Input<string>;
|
|
60
|
+
providerName: pulumi.Input<string>;
|
|
61
61
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CloudProviderAccessSetup = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
class CloudProviderAccessSetup extends pulumi.CustomResource {
|
|
8
9
|
constructor(name, argsOrState, opts) {
|
|
9
|
-
let
|
|
10
|
+
let resourceInputs = {};
|
|
10
11
|
opts = opts || {};
|
|
11
12
|
if (opts.id) {
|
|
12
13
|
const state = argsOrState;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
resourceInputs["aws"] = state ? state.aws : undefined;
|
|
15
|
+
resourceInputs["awsConfigs"] = state ? state.awsConfigs : undefined;
|
|
16
|
+
resourceInputs["createdDate"] = state ? state.createdDate : undefined;
|
|
17
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
18
|
+
resourceInputs["providerName"] = state ? state.providerName : undefined;
|
|
19
|
+
resourceInputs["roleId"] = state ? state.roleId : undefined;
|
|
19
20
|
}
|
|
20
21
|
else {
|
|
21
22
|
const args = argsOrState;
|
|
@@ -25,17 +26,17 @@ class CloudProviderAccessSetup extends pulumi.CustomResource {
|
|
|
25
26
|
if ((!args || args.providerName === undefined) && !opts.urn) {
|
|
26
27
|
throw new Error("Missing required property 'providerName'");
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
30
|
+
resourceInputs["providerName"] = args ? args.providerName : undefined;
|
|
31
|
+
resourceInputs["aws"] = undefined /*out*/;
|
|
32
|
+
resourceInputs["awsConfigs"] = undefined /*out*/;
|
|
33
|
+
resourceInputs["createdDate"] = undefined /*out*/;
|
|
34
|
+
resourceInputs["roleId"] = undefined /*out*/;
|
|
34
35
|
}
|
|
35
36
|
if (!opts.version) {
|
|
36
37
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
37
38
|
}
|
|
38
|
-
super(CloudProviderAccessSetup.__pulumiType, name,
|
|
39
|
+
super(CloudProviderAccessSetup.__pulumiType, name, resourceInputs, opts);
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
42
|
* Get an existing CloudProviderAccessSetup resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudProviderAccessSetup.js","sourceRoot":"","sources":["../cloudProviderAccessSetup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"cloudProviderAccessSetup.js","sourceRoot":"","sources":["../cloudProviderAccessSetup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IA8C/D,YAAY,IAAY,EAAE,WAA0E,EAAE,IAAmC;QACrI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,G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provides a resource to take a cloud backup snapshot on demand.
|
|
4
6
|
* On-demand snapshots happen immediately, unlike scheduled snapshots which occur at regular intervals. If there is already an on-demand snapshot with a status of queued or inProgress, you must wait until Atlas has completed the on-demand snapshot before taking another.
|
|
5
7
|
*
|
|
@@ -25,6 +27,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
27
|
* clusterName: myCluster.name,
|
|
26
28
|
* description: "myDescription",
|
|
27
29
|
* retentionInDays: 1,
|
|
30
|
+
* timeout: "10m",
|
|
28
31
|
* });
|
|
29
32
|
* const testCloudProviderSnapshotRestoreJob = new mongodbatlas.CloudProviderSnapshotRestoreJob("testCloudProviderSnapshotRestoreJob", {
|
|
30
33
|
* projectId: testCloudProviderSnapshot.projectId,
|
|
@@ -110,6 +113,10 @@ export declare class CloudProviderSnapshot extends pulumi.CustomResource {
|
|
|
110
113
|
* Specifies the size of the snapshot in bytes.
|
|
111
114
|
*/
|
|
112
115
|
readonly storageSizeBytes: pulumi.Output<number>;
|
|
116
|
+
/**
|
|
117
|
+
* The duration of time to wait to finish the on-demand snapshot. The timeout value is definded by a signed sequence of decimal numbers with an time unit suffix such as: `1h45m`, `300s`, `10m`, .... The valid time units are: `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. Default value for the timeout is `10m`
|
|
118
|
+
*/
|
|
119
|
+
readonly timeout: pulumi.Output<string | undefined>;
|
|
113
120
|
/**
|
|
114
121
|
* Specifies the type of cluster: replicaSet or shardedCluster.
|
|
115
122
|
*/
|
|
@@ -130,55 +137,59 @@ export interface CloudProviderSnapshotState {
|
|
|
130
137
|
/**
|
|
131
138
|
* The name of the Atlas cluster that contains the snapshots you want to retrieve.
|
|
132
139
|
*/
|
|
133
|
-
|
|
140
|
+
clusterName?: pulumi.Input<string>;
|
|
134
141
|
/**
|
|
135
142
|
* UTC ISO 8601 formatted point in time when Atlas took the snapshot.
|
|
136
143
|
*/
|
|
137
|
-
|
|
144
|
+
createdAt?: pulumi.Input<string>;
|
|
138
145
|
/**
|
|
139
146
|
* Description of the on-demand snapshot.
|
|
140
147
|
*/
|
|
141
|
-
|
|
148
|
+
description?: pulumi.Input<string>;
|
|
142
149
|
/**
|
|
143
150
|
* UTC ISO 8601 formatted point in time when Atlas will delete the snapshot.
|
|
144
151
|
*/
|
|
145
|
-
|
|
152
|
+
expiresAt?: pulumi.Input<string>;
|
|
146
153
|
/**
|
|
147
154
|
* Unique ID of the AWS KMS Customer Master Key used to encrypt the snapshot. Only visible for clusters using Encryption at Rest via Customer KMS.
|
|
148
155
|
*/
|
|
149
|
-
|
|
156
|
+
masterKeyUuid?: pulumi.Input<string>;
|
|
150
157
|
/**
|
|
151
158
|
* Version of the MongoDB server.
|
|
152
159
|
*/
|
|
153
|
-
|
|
160
|
+
mongodVersion?: pulumi.Input<string>;
|
|
154
161
|
/**
|
|
155
162
|
* The unique identifier of the project for the Atlas cluster.
|
|
156
163
|
*/
|
|
157
|
-
|
|
164
|
+
projectId?: pulumi.Input<string>;
|
|
158
165
|
/**
|
|
159
166
|
* The number of days that Atlas should retain the on-demand snapshot. Must be at least 1.
|
|
160
167
|
*/
|
|
161
|
-
|
|
168
|
+
retentionInDays?: pulumi.Input<number>;
|
|
162
169
|
/**
|
|
163
170
|
* Unique identifier of the snapshot.
|
|
164
171
|
*/
|
|
165
|
-
|
|
172
|
+
snapshotId?: pulumi.Input<string>;
|
|
166
173
|
/**
|
|
167
174
|
* Specified the type of snapshot. Valid values are onDemand and scheduled.
|
|
168
175
|
*/
|
|
169
|
-
|
|
176
|
+
snapshotType?: pulumi.Input<string>;
|
|
170
177
|
/**
|
|
171
178
|
* Current status of the snapshot. One of the following values will be returned: queued, inProgress, completed, failed.
|
|
172
179
|
*/
|
|
173
|
-
|
|
180
|
+
status?: pulumi.Input<string>;
|
|
174
181
|
/**
|
|
175
182
|
* Specifies the size of the snapshot in bytes.
|
|
176
183
|
*/
|
|
177
|
-
|
|
184
|
+
storageSizeBytes?: pulumi.Input<number>;
|
|
185
|
+
/**
|
|
186
|
+
* The duration of time to wait to finish the on-demand snapshot. The timeout value is definded by a signed sequence of decimal numbers with an time unit suffix such as: `1h45m`, `300s`, `10m`, .... The valid time units are: `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. Default value for the timeout is `10m`
|
|
187
|
+
*/
|
|
188
|
+
timeout?: pulumi.Input<string>;
|
|
178
189
|
/**
|
|
179
190
|
* Specifies the type of cluster: replicaSet or shardedCluster.
|
|
180
191
|
*/
|
|
181
|
-
|
|
192
|
+
type?: pulumi.Input<string>;
|
|
182
193
|
}
|
|
183
194
|
/**
|
|
184
195
|
* The set of arguments for constructing a CloudProviderSnapshot resource.
|
|
@@ -187,17 +198,21 @@ export interface CloudProviderSnapshotArgs {
|
|
|
187
198
|
/**
|
|
188
199
|
* The name of the Atlas cluster that contains the snapshots you want to retrieve.
|
|
189
200
|
*/
|
|
190
|
-
|
|
201
|
+
clusterName: pulumi.Input<string>;
|
|
191
202
|
/**
|
|
192
203
|
* Description of the on-demand snapshot.
|
|
193
204
|
*/
|
|
194
|
-
|
|
205
|
+
description: pulumi.Input<string>;
|
|
195
206
|
/**
|
|
196
207
|
* The unique identifier of the project for the Atlas cluster.
|
|
197
208
|
*/
|
|
198
|
-
|
|
209
|
+
projectId: pulumi.Input<string>;
|
|
199
210
|
/**
|
|
200
211
|
* The number of days that Atlas should retain the on-demand snapshot. Must be at least 1.
|
|
201
212
|
*/
|
|
202
|
-
|
|
213
|
+
retentionInDays: pulumi.Input<number>;
|
|
214
|
+
/**
|
|
215
|
+
* The duration of time to wait to finish the on-demand snapshot. The timeout value is definded by a signed sequence of decimal numbers with an time unit suffix such as: `1h45m`, `300s`, `10m`, .... The valid time units are: `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. Default value for the timeout is `10m`
|
|
216
|
+
*/
|
|
217
|
+
timeout?: pulumi.Input<string>;
|
|
203
218
|
}
|
package/cloudProviderSnapshot.js
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CloudProviderSnapshot = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
9
|
+
* **WARNING:** This resource is deprecated, use `mongodbatlasCloudBackupSnapshot`
|
|
10
|
+
*
|
|
8
11
|
* `mongodbatlas.CloudProviderSnapshot` provides a resource to take a cloud backup snapshot on demand.
|
|
9
12
|
* On-demand snapshots happen immediately, unlike scheduled snapshots which occur at regular intervals. If there is already an on-demand snapshot with a status of queued or inProgress, you must wait until Atlas has completed the on-demand snapshot before taking another.
|
|
10
13
|
*
|
|
@@ -30,6 +33,7 @@ const utilities = require("./utilities");
|
|
|
30
33
|
* clusterName: myCluster.name,
|
|
31
34
|
* description: "myDescription",
|
|
32
35
|
* retentionInDays: 1,
|
|
36
|
+
* timeout: "10m",
|
|
33
37
|
* });
|
|
34
38
|
* const testCloudProviderSnapshotRestoreJob = new mongodbatlas.CloudProviderSnapshotRestoreJob("testCloudProviderSnapshotRestoreJob", {
|
|
35
39
|
* projectId: testCloudProviderSnapshot.projectId,
|
|
@@ -53,23 +57,24 @@ const utilities = require("./utilities");
|
|
|
53
57
|
*/
|
|
54
58
|
class CloudProviderSnapshot extends pulumi.CustomResource {
|
|
55
59
|
constructor(name, argsOrState, opts) {
|
|
56
|
-
let
|
|
60
|
+
let resourceInputs = {};
|
|
57
61
|
opts = opts || {};
|
|
58
62
|
if (opts.id) {
|
|
59
63
|
const state = argsOrState;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
resourceInputs["clusterName"] = state ? state.clusterName : undefined;
|
|
65
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
66
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
67
|
+
resourceInputs["expiresAt"] = state ? state.expiresAt : undefined;
|
|
68
|
+
resourceInputs["masterKeyUuid"] = state ? state.masterKeyUuid : undefined;
|
|
69
|
+
resourceInputs["mongodVersion"] = state ? state.mongodVersion : undefined;
|
|
70
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
71
|
+
resourceInputs["retentionInDays"] = state ? state.retentionInDays : undefined;
|
|
72
|
+
resourceInputs["snapshotId"] = state ? state.snapshotId : undefined;
|
|
73
|
+
resourceInputs["snapshotType"] = state ? state.snapshotType : undefined;
|
|
74
|
+
resourceInputs["status"] = state ? state.status : undefined;
|
|
75
|
+
resourceInputs["storageSizeBytes"] = state ? state.storageSizeBytes : undefined;
|
|
76
|
+
resourceInputs["timeout"] = state ? state.timeout : undefined;
|
|
77
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
73
78
|
}
|
|
74
79
|
else {
|
|
75
80
|
const args = argsOrState;
|
|
@@ -85,24 +90,25 @@ class CloudProviderSnapshot extends pulumi.CustomResource {
|
|
|
85
90
|
if ((!args || args.retentionInDays === undefined) && !opts.urn) {
|
|
86
91
|
throw new Error("Missing required property 'retentionInDays'");
|
|
87
92
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
resourceInputs["clusterName"] = args ? args.clusterName : undefined;
|
|
94
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
95
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
96
|
+
resourceInputs["retentionInDays"] = args ? args.retentionInDays : undefined;
|
|
97
|
+
resourceInputs["timeout"] = args ? args.timeout : undefined;
|
|
98
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["expiresAt"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["masterKeyUuid"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["mongodVersion"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["snapshotId"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["snapshotType"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["storageSizeBytes"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
101
107
|
}
|
|
102
108
|
if (!opts.version) {
|
|
103
109
|
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
104
110
|
}
|
|
105
|
-
super(CloudProviderSnapshot.__pulumiType, name,
|
|
111
|
+
super(CloudProviderSnapshot.__pulumiType, name, resourceInputs, opts);
|
|
106
112
|
}
|
|
107
113
|
/**
|
|
108
114
|
* Get an existing CloudProviderSnapshot resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudProviderSnapshot.js","sourceRoot":"","sources":["../cloudProviderSnapshot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"cloudProviderSnapshot.js","sourceRoot":"","sources":["../cloudProviderSnapshot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IA6F5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EA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C,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;;AA1BL,sDAkJC;AApIG,gBAAgB;AACO,kCAAY,GAAG,gEAAgE,CAAC"}
|
|
@@ -80,40 +80,40 @@ export interface CloudProviderSnapshotBackupPolicyState {
|
|
|
80
80
|
/**
|
|
81
81
|
* Unique identifier of the Atlas cluster.
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
clusterId?: pulumi.Input<string>;
|
|
84
84
|
/**
|
|
85
85
|
* The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
clusterName?: pulumi.Input<string>;
|
|
88
88
|
/**
|
|
89
89
|
* Timestamp in the number of seconds that have elapsed since the UNIX epoch when Atlas takes the next snapshot.
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
nextSnapshot?: pulumi.Input<string>;
|
|
92
92
|
/**
|
|
93
93
|
* Contains a document for each backup policy item in the desired updated backup policy.
|
|
94
94
|
* * `policies.#.id` - (Required) Unique identifier of the backup policy that you want to update. policies.#.id is a value obtained via the mongodbatlas.Cluster resource. providerBackupEnabled of the mongodbatlas.Cluster resource must be set to true. See the example above for how to refer to the mongodbatlas.Cluster resource for policies.#.id
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
policies?: pulumi.Input<pulumi.Input<inputs.CloudProviderSnapshotBackupPolicyPolicy>[]>;
|
|
97
97
|
/**
|
|
98
98
|
* The unique identifier of the project for the Atlas cluster.
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
projectId?: pulumi.Input<string>;
|
|
101
101
|
/**
|
|
102
102
|
* UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
referenceHourOfDay?: pulumi.Input<number>;
|
|
105
105
|
/**
|
|
106
106
|
* UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
referenceMinuteOfHour?: pulumi.Input<number>;
|
|
109
109
|
/**
|
|
110
110
|
* Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
restoreWindowDays?: pulumi.Input<number>;
|
|
113
113
|
/**
|
|
114
114
|
* Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
updateSnapshots?: pulumi.Input<boolean>;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* The set of arguments for constructing a CloudProviderSnapshotBackupPolicy resource.
|
|
@@ -122,30 +122,30 @@ export interface CloudProviderSnapshotBackupPolicyArgs {
|
|
|
122
122
|
/**
|
|
123
123
|
* The name of the Atlas cluster that contains the snapshot backup policy you want to retrieve.
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
clusterName: pulumi.Input<string>;
|
|
126
126
|
/**
|
|
127
127
|
* Contains a document for each backup policy item in the desired updated backup policy.
|
|
128
128
|
* * `policies.#.id` - (Required) Unique identifier of the backup policy that you want to update. policies.#.id is a value obtained via the mongodbatlas.Cluster resource. providerBackupEnabled of the mongodbatlas.Cluster resource must be set to true. See the example above for how to refer to the mongodbatlas.Cluster resource for policies.#.id
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
policies: pulumi.Input<pulumi.Input<inputs.CloudProviderSnapshotBackupPolicyPolicy>[]>;
|
|
131
131
|
/**
|
|
132
132
|
* The unique identifier of the project for the Atlas cluster.
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
projectId: pulumi.Input<string>;
|
|
135
135
|
/**
|
|
136
136
|
* UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items.
|
|
137
137
|
*/
|
|
138
|
-
|
|
138
|
+
referenceHourOfDay?: pulumi.Input<number>;
|
|
139
139
|
/**
|
|
140
140
|
* UTC Minutes after referenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive.
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
referenceMinuteOfHour?: pulumi.Input<number>;
|
|
143
143
|
/**
|
|
144
144
|
* Number of days back in time you can restore to with point-in-time accuracy. Must be a positive, non-zero integer.
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
restoreWindowDays?: pulumi.Input<number>;
|
|
147
147
|
/**
|
|
148
148
|
* Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
updateSnapshots?: pulumi.Input<boolean>;
|
|
151
151
|
}
|