@upcloud/pulumi-upcloud 0.0.5
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/LICENSE +202 -0
- package/README.md +61 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +25 -0
- package/config/vars.js +43 -0
- package/config/vars.js.map +1 -0
- package/floatingIpAddress.d.ts +128 -0
- package/floatingIpAddress.js +90 -0
- package/floatingIpAddress.js.map +1 -0
- package/gateway.d.ts +206 -0
- package/gateway.js +111 -0
- package/gateway.js.map +1 -0
- package/gatewayConnection.d.ts +157 -0
- package/gatewayConnection.js +105 -0
- package/gatewayConnection.js.map +1 -0
- package/gatewayConnectionTunnel.d.ts +129 -0
- package/gatewayConnectionTunnel.js +78 -0
- package/gatewayConnectionTunnel.js.map +1 -0
- package/getHosts.d.ts +55 -0
- package/getHosts.js +52 -0
- package/getHosts.js.map +1 -0
- package/getIpAddresses.d.ts +51 -0
- package/getIpAddresses.js +48 -0
- package/getIpAddresses.js.map +1 -0
- package/getKubernetesCluster.d.ts +33 -0
- package/getKubernetesCluster.js +28 -0
- package/getKubernetesCluster.js.map +1 -0
- package/getLoadBalancerDnsChallengeDomain.d.ts +40 -0
- package/getLoadBalancerDnsChallengeDomain.js +42 -0
- package/getLoadBalancerDnsChallengeDomain.js.map +1 -0
- package/getManagedDatabaseMysqlSessions.d.ts +83 -0
- package/getManagedDatabaseMysqlSessions.js +74 -0
- package/getManagedDatabaseMysqlSessions.js.map +1 -0
- package/getManagedDatabaseOpensearchIndices.d.ts +82 -0
- package/getManagedDatabaseOpensearchIndices.js +76 -0
- package/getManagedDatabaseOpensearchIndices.js.map +1 -0
- package/getManagedDatabasePostgresqlSessions.d.ts +83 -0
- package/getManagedDatabasePostgresqlSessions.js +74 -0
- package/getManagedDatabasePostgresqlSessions.js.map +1 -0
- package/getManagedDatabaseRedisSessions.d.ts +87 -0
- package/getManagedDatabaseRedisSessions.js +78 -0
- package/getManagedDatabaseRedisSessions.js.map +1 -0
- package/getManagedDatabaseValkeySessions.d.ts +83 -0
- package/getManagedDatabaseValkeySessions.js +74 -0
- package/getManagedDatabaseValkeySessions.js.map +1 -0
- package/getManagedObjectStoragePolicies.d.ts +33 -0
- package/getManagedObjectStoragePolicies.js +28 -0
- package/getManagedObjectStoragePolicies.js.map +1 -0
- package/getManagedObjectStorageRegions.d.ts +33 -0
- package/getManagedObjectStorageRegions.js +30 -0
- package/getManagedObjectStorageRegions.js.map +1 -0
- package/getNetworks.d.ts +60 -0
- package/getNetworks.js +56 -0
- package/getNetworks.js.map +1 -0
- package/getStorage.d.ts +163 -0
- package/getStorage.js +122 -0
- package/getStorage.js.map +1 -0
- package/getTags.d.ts +20 -0
- package/getTags.js +24 -0
- package/getTags.js.map +1 -0
- package/getZone.d.ts +42 -0
- package/getZone.js +32 -0
- package/getZone.js.map +1 -0
- package/getZones.d.ts +29 -0
- package/getZones.js +30 -0
- package/getZones.js.map +1 -0
- package/index.d.ts +177 -0
- package/index.js +287 -0
- package/index.js.map +1 -0
- package/kubernetesCluster.d.ts +237 -0
- package/kubernetesCluster.js +131 -0
- package/kubernetesCluster.js.map +1 -0
- package/kubernetesNodeGroup.d.ts +243 -0
- package/kubernetesNodeGroup.js +120 -0
- package/kubernetesNodeGroup.js.map +1 -0
- package/loadbalancer.d.ts +261 -0
- package/loadbalancer.js +122 -0
- package/loadbalancer.js.map +1 -0
- package/loadbalancerBackend.d.ts +121 -0
- package/loadbalancerBackend.js +90 -0
- package/loadbalancerBackend.js.map +1 -0
- package/loadbalancerBackendTlsConfig.d.ts +75 -0
- package/loadbalancerBackendTlsConfig.js +62 -0
- package/loadbalancerBackendTlsConfig.js.map +1 -0
- package/loadbalancerDynamicBackendMember.d.ts +169 -0
- package/loadbalancerDynamicBackendMember.js +119 -0
- package/loadbalancerDynamicBackendMember.js.map +1 -0
- package/loadbalancerDynamicCertificateBundle.d.ts +114 -0
- package/loadbalancerDynamicCertificateBundle.js +83 -0
- package/loadbalancerDynamicCertificateBundle.js.map +1 -0
- package/loadbalancerFrontend.d.ts +184 -0
- package/loadbalancerFrontend.js +126 -0
- package/loadbalancerFrontend.js.map +1 -0
- package/loadbalancerFrontendRule.d.ts +170 -0
- package/loadbalancerFrontendRule.js +125 -0
- package/loadbalancerFrontendRule.js.map +1 -0
- package/loadbalancerFrontendTlsConfig.d.ts +114 -0
- package/loadbalancerFrontendTlsConfig.js +101 -0
- package/loadbalancerFrontendTlsConfig.js.map +1 -0
- package/loadbalancerManualCertificateBundle.d.ts +111 -0
- package/loadbalancerManualCertificateBundle.js +72 -0
- package/loadbalancerManualCertificateBundle.js.map +1 -0
- package/loadbalancerResolver.d.ts +171 -0
- package/loadbalancerResolver.js +120 -0
- package/loadbalancerResolver.js.map +1 -0
- package/loadbalancerStaticBackendMember.d.ts +156 -0
- package/loadbalancerStaticBackendMember.js +106 -0
- package/loadbalancerStaticBackendMember.js.map +1 -0
- package/managedDatabaseLogicalDatabase.d.ts +109 -0
- package/managedDatabaseLogicalDatabase.js +83 -0
- package/managedDatabaseLogicalDatabase.js.map +1 -0
- package/managedDatabaseMysql.d.ts +298 -0
- package/managedDatabaseMysql.js +139 -0
- package/managedDatabaseMysql.js.map +1 -0
- package/managedDatabaseOpensearch.d.ts +317 -0
- package/managedDatabaseOpensearch.js +132 -0
- package/managedDatabaseOpensearch.js.map +1 -0
- package/managedDatabasePostgresql.d.ts +295 -0
- package/managedDatabasePostgresql.js +130 -0
- package/managedDatabasePostgresql.js.map +1 -0
- package/managedDatabaseRedis.d.ts +287 -0
- package/managedDatabaseRedis.js +128 -0
- package/managedDatabaseRedis.js.map +1 -0
- package/managedDatabaseUser.d.ts +163 -0
- package/managedDatabaseUser.js +94 -0
- package/managedDatabaseUser.js.map +1 -0
- package/managedDatabaseValkey.d.ts +285 -0
- package/managedDatabaseValkey.js +126 -0
- package/managedDatabaseValkey.js.map +1 -0
- package/managedObjectStorage.d.ts +178 -0
- package/managedObjectStorage.js +107 -0
- package/managedObjectStorage.js.map +1 -0
- package/managedObjectStorageBucket.d.ts +94 -0
- package/managedObjectStorageBucket.js +76 -0
- package/managedObjectStorageBucket.js.map +1 -0
- package/managedObjectStorageCustomDomain.d.ts +105 -0
- package/managedObjectStorageCustomDomain.js +89 -0
- package/managedObjectStorageCustomDomain.js.map +1 -0
- package/managedObjectStoragePolicy.d.ts +155 -0
- package/managedObjectStoragePolicy.js +93 -0
- package/managedObjectStoragePolicy.js.map +1 -0
- package/managedObjectStorageUser.d.ts +101 -0
- package/managedObjectStorageUser.js +80 -0
- package/managedObjectStorageUser.js.map +1 -0
- package/managedObjectStorageUserAccessKey.d.ts +128 -0
- package/managedObjectStorageUserAccessKey.js +96 -0
- package/managedObjectStorageUserAccessKey.js.map +1 -0
- package/managedObjectStorageUserPolicy.d.ts +100 -0
- package/managedObjectStorageUserPolicy.js +87 -0
- package/managedObjectStorageUserPolicy.js.map +1 -0
- package/network.d.ts +142 -0
- package/network.js +95 -0
- package/network.js.map +1 -0
- package/networkPeering.d.ts +137 -0
- package/networkPeering.js +96 -0
- package/networkPeering.js.map +1 -0
- package/objectStorage.d.ts +196 -0
- package/objectStorage.js +132 -0
- package/objectStorage.js.map +1 -0
- package/package.json +29 -0
- package/provider.d.ts +60 -0
- package/provider.js +50 -0
- package/provider.js.map +1 -0
- package/router.d.ts +124 -0
- package/router.js +77 -0
- package/router.js.map +1 -0
- package/server.d.ts +332 -0
- package/server.js +106 -0
- package/server.js.map +1 -0
- package/serverFirewallRules.d.ts +124 -0
- package/serverFirewallRules.js +107 -0
- package/serverFirewallRules.js.map +1 -0
- package/serverGroup.d.ts +160 -0
- package/serverGroup.js +91 -0
- package/serverGroup.js.map +1 -0
- package/storage.d.ts +210 -0
- package/storage.js +91 -0
- package/storage.js.map +1 -0
- package/storageTemplate.d.ts +151 -0
- package/storageTemplate.js +90 -0
- package/storageTemplate.js.map +1 -0
- package/tag.d.ts +75 -0
- package/tag.js +56 -0
- package/tag.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +3721 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +3459 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
|
@@ -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.ManagedObjectStorage = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource represents an UpCloud Managed Object Storage instance, which provides S3 compatible storage.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
16
|
+
*
|
|
17
|
+
* // Create router for the network
|
|
18
|
+
* const thisRouter = new upcloud.Router("thisRouter", {});
|
|
19
|
+
* // Create network for the Managed Object Storage
|
|
20
|
+
* const thisNetwork = new upcloud.Network("thisNetwork", {
|
|
21
|
+
* zone: "fi-hel1",
|
|
22
|
+
* ipNetwork: {
|
|
23
|
+
* address: "172.16.2.0/24",
|
|
24
|
+
* dhcp: true,
|
|
25
|
+
* family: "IPv4",
|
|
26
|
+
* },
|
|
27
|
+
* router: thisRouter.id,
|
|
28
|
+
* });
|
|
29
|
+
* const thisManagedObjectStorage = new upcloud.ManagedObjectStorage("thisManagedObjectStorage", {
|
|
30
|
+
* region: "europe-1",
|
|
31
|
+
* configuredStatus: "started",
|
|
32
|
+
* networks: [{
|
|
33
|
+
* family: "IPv4",
|
|
34
|
+
* name: "example-private-net",
|
|
35
|
+
* type: "private",
|
|
36
|
+
* uuid: thisNetwork.id,
|
|
37
|
+
* }],
|
|
38
|
+
* labels: {
|
|
39
|
+
* "managed-by": "terraform",
|
|
40
|
+
* },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
class ManagedObjectStorage extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing ManagedObjectStorage resource's state with the given name, ID, and optional extra
|
|
47
|
+
* properties used to qualify the lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param name The _unique_ name of the resulting resource.
|
|
50
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
51
|
+
* @param state Any extra arguments used during the lookup.
|
|
52
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
53
|
+
*/
|
|
54
|
+
static get(name, id, state, opts) {
|
|
55
|
+
return new ManagedObjectStorage(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns true if the given object is an instance of ManagedObjectStorage. This is designed to work even
|
|
59
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
+
*/
|
|
61
|
+
static isInstance(obj) {
|
|
62
|
+
if (obj === undefined || obj === null) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
return obj['__pulumiType'] === ManagedObjectStorage.__pulumiType;
|
|
66
|
+
}
|
|
67
|
+
constructor(name, argsOrState, opts) {
|
|
68
|
+
let resourceInputs = {};
|
|
69
|
+
opts = opts || {};
|
|
70
|
+
if (opts.id) {
|
|
71
|
+
const state = argsOrState;
|
|
72
|
+
resourceInputs["configuredStatus"] = state ? state.configuredStatus : undefined;
|
|
73
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
74
|
+
resourceInputs["endpoints"] = state ? state.endpoints : undefined;
|
|
75
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
76
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
77
|
+
resourceInputs["networks"] = state ? state.networks : undefined;
|
|
78
|
+
resourceInputs["operationalState"] = state ? state.operationalState : undefined;
|
|
79
|
+
resourceInputs["region"] = state ? state.region : undefined;
|
|
80
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const args = argsOrState;
|
|
84
|
+
if ((!args || args.configuredStatus === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'configuredStatus'");
|
|
86
|
+
}
|
|
87
|
+
if ((!args || args.region === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'region'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["configuredStatus"] = args ? args.configuredStatus : undefined;
|
|
91
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
92
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
93
|
+
resourceInputs["networks"] = args ? args.networks : undefined;
|
|
94
|
+
resourceInputs["region"] = args ? args.region : undefined;
|
|
95
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["endpoints"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["operationalState"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
99
|
+
}
|
|
100
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
101
|
+
super(ManagedObjectStorage.__pulumiType, name, resourceInputs, opts);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.ManagedObjectStorage = ManagedObjectStorage;
|
|
105
|
+
/** @internal */
|
|
106
|
+
ManagedObjectStorage.__pulumiType = 'upcloud:index/managedObjectStorage:ManagedObjectStorage';
|
|
107
|
+
//# sourceMappingURL=managedObjectStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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C;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AA7GL,oDA8GC;AAhGG,gBAAgB;AACO,iCAAY,GAAG,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource represents an UpCloud Managed Object Storage bucket.
|
|
4
|
+
*
|
|
5
|
+
* > This resource uses the UpCloud API to manage the Managed Object Storage buckets. The main difference to S3 API is that the buckets can be deleted even when the bucket contains objects.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
12
|
+
*
|
|
13
|
+
* const exampleManagedObjectStorage = new upcloud.ManagedObjectStorage("exampleManagedObjectStorage", {
|
|
14
|
+
* region: "europe-1",
|
|
15
|
+
* configuredStatus: "started",
|
|
16
|
+
* });
|
|
17
|
+
* const exampleManagedObjectStorageBucket = new upcloud.ManagedObjectStorageBucket("exampleManagedObjectStorageBucket", {serviceUuid: exampleManagedObjectStorage.id});
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class ManagedObjectStorageBucket extends pulumi.CustomResource {
|
|
21
|
+
/**
|
|
22
|
+
* Get an existing ManagedObjectStorageBucket resource's state with the given name, ID, and optional extra
|
|
23
|
+
* properties used to qualify the lookup.
|
|
24
|
+
*
|
|
25
|
+
* @param name The _unique_ name of the resulting resource.
|
|
26
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
27
|
+
* @param state Any extra arguments used during the lookup.
|
|
28
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
29
|
+
*/
|
|
30
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ManagedObjectStorageBucketState, opts?: pulumi.CustomResourceOptions): ManagedObjectStorageBucket;
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of ManagedObjectStorageBucket. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj: any): obj is ManagedObjectStorageBucket;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the bucket.
|
|
38
|
+
*/
|
|
39
|
+
readonly name: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Managed Object Storage service UUID.
|
|
42
|
+
*/
|
|
43
|
+
readonly serviceUuid: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Number of objects stored in the bucket.
|
|
46
|
+
*/
|
|
47
|
+
readonly totalObjects: pulumi.Output<number>;
|
|
48
|
+
/**
|
|
49
|
+
* Total size of objects stored in the bucket.
|
|
50
|
+
*/
|
|
51
|
+
readonly totalSizeBytes: pulumi.Output<number>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a ManagedObjectStorageBucket resource with the given unique name, arguments, and options.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resource.
|
|
56
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
57
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
58
|
+
*/
|
|
59
|
+
constructor(name: string, args: ManagedObjectStorageBucketArgs, opts?: pulumi.CustomResourceOptions);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Input properties used for looking up and filtering ManagedObjectStorageBucket resources.
|
|
63
|
+
*/
|
|
64
|
+
export interface ManagedObjectStorageBucketState {
|
|
65
|
+
/**
|
|
66
|
+
* Name of the bucket.
|
|
67
|
+
*/
|
|
68
|
+
name?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Managed Object Storage service UUID.
|
|
71
|
+
*/
|
|
72
|
+
serviceUuid?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Number of objects stored in the bucket.
|
|
75
|
+
*/
|
|
76
|
+
totalObjects?: pulumi.Input<number>;
|
|
77
|
+
/**
|
|
78
|
+
* Total size of objects stored in the bucket.
|
|
79
|
+
*/
|
|
80
|
+
totalSizeBytes?: pulumi.Input<number>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The set of arguments for constructing a ManagedObjectStorageBucket resource.
|
|
84
|
+
*/
|
|
85
|
+
export interface ManagedObjectStorageBucketArgs {
|
|
86
|
+
/**
|
|
87
|
+
* Name of the bucket.
|
|
88
|
+
*/
|
|
89
|
+
name?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Managed Object Storage service UUID.
|
|
92
|
+
*/
|
|
93
|
+
serviceUuid: pulumi.Input<string>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.ManagedObjectStorageBucket = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource represents an UpCloud Managed Object Storage bucket.
|
|
10
|
+
*
|
|
11
|
+
* > This resource uses the UpCloud API to manage the Managed Object Storage buckets. The main difference to S3 API is that the buckets can be deleted even when the bucket contains objects.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
18
|
+
*
|
|
19
|
+
* const exampleManagedObjectStorage = new upcloud.ManagedObjectStorage("exampleManagedObjectStorage", {
|
|
20
|
+
* region: "europe-1",
|
|
21
|
+
* configuredStatus: "started",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleManagedObjectStorageBucket = new upcloud.ManagedObjectStorageBucket("exampleManagedObjectStorageBucket", {serviceUuid: exampleManagedObjectStorage.id});
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class ManagedObjectStorageBucket extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing ManagedObjectStorageBucket resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name, id, state, opts) {
|
|
37
|
+
return new ManagedObjectStorageBucket(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of ManagedObjectStorageBucket. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj) {
|
|
44
|
+
if (obj === undefined || obj === null) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return obj['__pulumiType'] === ManagedObjectStorageBucket.__pulumiType;
|
|
48
|
+
}
|
|
49
|
+
constructor(name, argsOrState, opts) {
|
|
50
|
+
let resourceInputs = {};
|
|
51
|
+
opts = opts || {};
|
|
52
|
+
if (opts.id) {
|
|
53
|
+
const state = argsOrState;
|
|
54
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
55
|
+
resourceInputs["serviceUuid"] = state ? state.serviceUuid : undefined;
|
|
56
|
+
resourceInputs["totalObjects"] = state ? state.totalObjects : undefined;
|
|
57
|
+
resourceInputs["totalSizeBytes"] = state ? state.totalSizeBytes : undefined;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const args = argsOrState;
|
|
61
|
+
if ((!args || args.serviceUuid === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'serviceUuid'");
|
|
63
|
+
}
|
|
64
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
65
|
+
resourceInputs["serviceUuid"] = args ? args.serviceUuid : undefined;
|
|
66
|
+
resourceInputs["totalObjects"] = undefined /*out*/;
|
|
67
|
+
resourceInputs["totalSizeBytes"] = undefined /*out*/;
|
|
68
|
+
}
|
|
69
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
70
|
+
super(ManagedObjectStorageBucket.__pulumiType, name, resourceInputs, opts);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.ManagedObjectStorageBucket = ManagedObjectStorageBucket;
|
|
74
|
+
/** @internal */
|
|
75
|
+
ManagedObjectStorageBucket.__pulumiType = 'upcloud:index/managedObjectStorageBucket:ManagedObjectStorageBucket';
|
|
76
|
+
//# sourceMappingURL=managedObjectStorageBucket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedObjectStorageBucket.js","sourceRoot":"","sources":["../managedObjectStorageBucket.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,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,0BAA0B,CAAC,YAAY,CAAC;IAC3E,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA8E,EAAE,IAAmC;QACzI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0D,CAAC;YACzE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/E;aAAM;YACH,MAAM,IAAI,GAAG,WAAyD,CAAC;YACvE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AA1EL,gEA2EC;AA7DG,gBAAgB;AACO,uCAAY,GAAG,qEAAqE,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource represents an UpCloud Managed Object Storage custom domain. Note that DNS settings for the custom domain should be configured before creating this resource.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
10
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
11
|
+
*
|
|
12
|
+
* const thisManagedObjectStorage = new upcloud.ManagedObjectStorage("thisManagedObjectStorage", {
|
|
13
|
+
* region: "europe-1",
|
|
14
|
+
* configuredStatus: "started",
|
|
15
|
+
* networks: [{
|
|
16
|
+
* family: "IPv4",
|
|
17
|
+
* name: "public",
|
|
18
|
+
* type: "public",
|
|
19
|
+
* }],
|
|
20
|
+
* });
|
|
21
|
+
* const thisLoadBalancerDnsChallengeDomain = upcloud.getLoadBalancerDnsChallengeDomain({});
|
|
22
|
+
* // Before creating the custom domain, configure the DNS settings for your custom domain. For example, if your custom domain is objects.example.com, you should configure the following DNS records:
|
|
23
|
+
* // - "_acme-challenge.objects IN CNAME ${data.upcloud_load_balancer_dns_challenge_domain.this.domain}"
|
|
24
|
+
* // - "objects IN CNAME ${[for i in upcloud_managed_object_storage.this.endpoint: i.domain_name if i.type == "public"][0]}"
|
|
25
|
+
* // - "*.objects IN CNAME ${[for i in upcloud_managed_object_storage.this.endpoint: i.domain_name if i.type == "public"][0]}"
|
|
26
|
+
* const thisManagedObjectStorageCustomDomain = new upcloud.ManagedObjectStorageCustomDomain("thisManagedObjectStorageCustomDomain", {
|
|
27
|
+
* serviceUuid: thisManagedObjectStorage.id,
|
|
28
|
+
* domainName: "objects.example.com",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class ManagedObjectStorageCustomDomain extends pulumi.CustomResource {
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing ManagedObjectStorageCustomDomain resource's state with the given name, ID, and optional extra
|
|
35
|
+
* properties used to qualify the lookup.
|
|
36
|
+
*
|
|
37
|
+
* @param name The _unique_ name of the resulting resource.
|
|
38
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
+
* @param state Any extra arguments used during the lookup.
|
|
40
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
+
*/
|
|
42
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ManagedObjectStorageCustomDomainState, opts?: pulumi.CustomResourceOptions): ManagedObjectStorageCustomDomain;
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if the given object is an instance of ManagedObjectStorageCustomDomain. This is designed to work even
|
|
45
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
+
*/
|
|
47
|
+
static isInstance(obj: any): obj is ManagedObjectStorageCustomDomain;
|
|
48
|
+
/**
|
|
49
|
+
* Must be a subdomain and consist of 3 to 5 parts such as objects.example.com. Cannot be root-level domain e.g.
|
|
50
|
+
* example.com.
|
|
51
|
+
*/
|
|
52
|
+
readonly domainName: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Managed Object Storage service UUID.
|
|
55
|
+
*/
|
|
56
|
+
readonly serviceUuid: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* At the moment only `public` is accepted.
|
|
59
|
+
*/
|
|
60
|
+
readonly type: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Create a ManagedObjectStorageCustomDomain resource with the given unique name, arguments, and options.
|
|
63
|
+
*
|
|
64
|
+
* @param name The _unique_ name of the resource.
|
|
65
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
66
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
67
|
+
*/
|
|
68
|
+
constructor(name: string, args: ManagedObjectStorageCustomDomainArgs, opts?: pulumi.CustomResourceOptions);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Input properties used for looking up and filtering ManagedObjectStorageCustomDomain resources.
|
|
72
|
+
*/
|
|
73
|
+
export interface ManagedObjectStorageCustomDomainState {
|
|
74
|
+
/**
|
|
75
|
+
* Must be a subdomain and consist of 3 to 5 parts such as objects.example.com. Cannot be root-level domain e.g.
|
|
76
|
+
* example.com.
|
|
77
|
+
*/
|
|
78
|
+
domainName?: pulumi.Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Managed Object Storage service UUID.
|
|
81
|
+
*/
|
|
82
|
+
serviceUuid?: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* At the moment only `public` is accepted.
|
|
85
|
+
*/
|
|
86
|
+
type?: pulumi.Input<string>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The set of arguments for constructing a ManagedObjectStorageCustomDomain resource.
|
|
90
|
+
*/
|
|
91
|
+
export interface ManagedObjectStorageCustomDomainArgs {
|
|
92
|
+
/**
|
|
93
|
+
* Must be a subdomain and consist of 3 to 5 parts such as objects.example.com. Cannot be root-level domain e.g.
|
|
94
|
+
* example.com.
|
|
95
|
+
*/
|
|
96
|
+
domainName: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* Managed Object Storage service UUID.
|
|
99
|
+
*/
|
|
100
|
+
serviceUuid: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* At the moment only `public` is accepted.
|
|
103
|
+
*/
|
|
104
|
+
type?: pulumi.Input<string>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.ManagedObjectStorageCustomDomain = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource represents an UpCloud Managed Object Storage custom domain. Note that DNS settings for the custom domain should be configured before creating this resource.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as upcloud from "@pulumi/upcloud";
|
|
16
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
17
|
+
*
|
|
18
|
+
* const thisManagedObjectStorage = new upcloud.ManagedObjectStorage("thisManagedObjectStorage", {
|
|
19
|
+
* region: "europe-1",
|
|
20
|
+
* configuredStatus: "started",
|
|
21
|
+
* networks: [{
|
|
22
|
+
* family: "IPv4",
|
|
23
|
+
* name: "public",
|
|
24
|
+
* type: "public",
|
|
25
|
+
* }],
|
|
26
|
+
* });
|
|
27
|
+
* const thisLoadBalancerDnsChallengeDomain = upcloud.getLoadBalancerDnsChallengeDomain({});
|
|
28
|
+
* // Before creating the custom domain, configure the DNS settings for your custom domain. For example, if your custom domain is objects.example.com, you should configure the following DNS records:
|
|
29
|
+
* // - "_acme-challenge.objects IN CNAME ${data.upcloud_load_balancer_dns_challenge_domain.this.domain}"
|
|
30
|
+
* // - "objects IN CNAME ${[for i in upcloud_managed_object_storage.this.endpoint: i.domain_name if i.type == "public"][0]}"
|
|
31
|
+
* // - "*.objects IN CNAME ${[for i in upcloud_managed_object_storage.this.endpoint: i.domain_name if i.type == "public"][0]}"
|
|
32
|
+
* const thisManagedObjectStorageCustomDomain = new upcloud.ManagedObjectStorageCustomDomain("thisManagedObjectStorageCustomDomain", {
|
|
33
|
+
* serviceUuid: thisManagedObjectStorage.id,
|
|
34
|
+
* domainName: "objects.example.com",
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
class ManagedObjectStorageCustomDomain extends pulumi.CustomResource {
|
|
39
|
+
/**
|
|
40
|
+
* Get an existing ManagedObjectStorageCustomDomain resource's state with the given name, ID, and optional extra
|
|
41
|
+
* properties used to qualify the lookup.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resulting resource.
|
|
44
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
+
* @param state Any extra arguments used during the lookup.
|
|
46
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
+
*/
|
|
48
|
+
static get(name, id, state, opts) {
|
|
49
|
+
return new ManagedObjectStorageCustomDomain(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the given object is an instance of ManagedObjectStorageCustomDomain. This is designed to work even
|
|
53
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
54
|
+
*/
|
|
55
|
+
static isInstance(obj) {
|
|
56
|
+
if (obj === undefined || obj === null) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return obj['__pulumiType'] === ManagedObjectStorageCustomDomain.__pulumiType;
|
|
60
|
+
}
|
|
61
|
+
constructor(name, argsOrState, opts) {
|
|
62
|
+
let resourceInputs = {};
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
if (opts.id) {
|
|
65
|
+
const state = argsOrState;
|
|
66
|
+
resourceInputs["domainName"] = state ? state.domainName : undefined;
|
|
67
|
+
resourceInputs["serviceUuid"] = state ? state.serviceUuid : undefined;
|
|
68
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
const args = argsOrState;
|
|
72
|
+
if ((!args || args.domainName === undefined) && !opts.urn) {
|
|
73
|
+
throw new Error("Missing required property 'domainName'");
|
|
74
|
+
}
|
|
75
|
+
if ((!args || args.serviceUuid === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'serviceUuid'");
|
|
77
|
+
}
|
|
78
|
+
resourceInputs["domainName"] = args ? args.domainName : undefined;
|
|
79
|
+
resourceInputs["serviceUuid"] = args ? args.serviceUuid : undefined;
|
|
80
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
81
|
+
}
|
|
82
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
83
|
+
super(ManagedObjectStorageCustomDomain.__pulumiType, name, resourceInputs, opts);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.ManagedObjectStorageCustomDomain = ManagedObjectStorageCustomDomain;
|
|
87
|
+
/** @internal */
|
|
88
|
+
ManagedObjectStorageCustomDomain.__pulumiType = 'upcloud:index/managedObjectStorageCustomDomain:ManagedObjectStorageCustomDomain';
|
|
89
|
+
//# sourceMappingURL=managedObjectStorageCustomDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedObjectStorageCustomDomain.js","sourceRoot":"","sources":["../managedObjectStorageCustomDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,gCAAiC,SAAQ,MAAM,CAAC,cAAc;IACvE;;;;;;;;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;IAwBD,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,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,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import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource represents an UpCloud Managed Object Storage policy.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
10
|
+
*
|
|
11
|
+
* const thisManagedObjectStorage = new upcloud.ManagedObjectStorage("thisManagedObjectStorage", {
|
|
12
|
+
* region: "europe-1",
|
|
13
|
+
* configuredStatus: "started",
|
|
14
|
+
* });
|
|
15
|
+
* const thisManagedObjectStoragePolicy = new upcloud.ManagedObjectStoragePolicy("thisManagedObjectStoragePolicy", {
|
|
16
|
+
* description: "example description",
|
|
17
|
+
* document: "%7B%22Version%22%3A%20%222012-10-17%22%2C%20%20%22Statement%22%3A%20%5B%7B%22Action%22%3A%20%5B%22iam%3AGetUser%22%5D%2C%20%22Resource%22%3A%20%22%2A%22%2C%20%22Effect%22%3A%20%22Allow%22%2C%20%22Sid%22%3A%20%22editor%22%7D%5D%7D",
|
|
18
|
+
* serviceUuid: thisManagedObjectStorage.id,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class ManagedObjectStoragePolicy extends pulumi.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Get an existing ManagedObjectStoragePolicy resource's state with the given name, ID, and optional extra
|
|
25
|
+
* properties used to qualify the lookup.
|
|
26
|
+
*
|
|
27
|
+
* @param name The _unique_ name of the resulting resource.
|
|
28
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
29
|
+
* @param state Any extra arguments used during the lookup.
|
|
30
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
31
|
+
*/
|
|
32
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ManagedObjectStoragePolicyState, opts?: pulumi.CustomResourceOptions): ManagedObjectStoragePolicy;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of ManagedObjectStoragePolicy. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj: any): obj is ManagedObjectStoragePolicy;
|
|
38
|
+
/**
|
|
39
|
+
* Policy ARN.
|
|
40
|
+
*/
|
|
41
|
+
readonly arn: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Attachment count.
|
|
44
|
+
*/
|
|
45
|
+
readonly attachmentCount: pulumi.Output<number>;
|
|
46
|
+
/**
|
|
47
|
+
* Creation time.
|
|
48
|
+
*/
|
|
49
|
+
readonly createdAt: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Default version id.
|
|
52
|
+
*/
|
|
53
|
+
readonly defaultVersionId: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Description of the policy.
|
|
56
|
+
*/
|
|
57
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Policy document, URL-encoded compliant with RFC 3986. Extra whitespace and escapes are ignored when determining if the
|
|
60
|
+
* document has changed.
|
|
61
|
+
*/
|
|
62
|
+
readonly document: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Policy name.
|
|
65
|
+
*/
|
|
66
|
+
readonly name: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Managed Object Storage service UUID.
|
|
69
|
+
*/
|
|
70
|
+
readonly serviceUuid: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Defines whether the policy was set up by the system.
|
|
73
|
+
*/
|
|
74
|
+
readonly system: pulumi.Output<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Update time.
|
|
77
|
+
*/
|
|
78
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Create a ManagedObjectStoragePolicy resource with the given unique name, arguments, and options.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resource.
|
|
83
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
84
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
85
|
+
*/
|
|
86
|
+
constructor(name: string, args: ManagedObjectStoragePolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Input properties used for looking up and filtering ManagedObjectStoragePolicy resources.
|
|
90
|
+
*/
|
|
91
|
+
export interface ManagedObjectStoragePolicyState {
|
|
92
|
+
/**
|
|
93
|
+
* Policy ARN.
|
|
94
|
+
*/
|
|
95
|
+
arn?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Attachment count.
|
|
98
|
+
*/
|
|
99
|
+
attachmentCount?: pulumi.Input<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Creation time.
|
|
102
|
+
*/
|
|
103
|
+
createdAt?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Default version id.
|
|
106
|
+
*/
|
|
107
|
+
defaultVersionId?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Description of the policy.
|
|
110
|
+
*/
|
|
111
|
+
description?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Policy document, URL-encoded compliant with RFC 3986. Extra whitespace and escapes are ignored when determining if the
|
|
114
|
+
* document has changed.
|
|
115
|
+
*/
|
|
116
|
+
document?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Policy name.
|
|
119
|
+
*/
|
|
120
|
+
name?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Managed Object Storage service UUID.
|
|
123
|
+
*/
|
|
124
|
+
serviceUuid?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Defines whether the policy was set up by the system.
|
|
127
|
+
*/
|
|
128
|
+
system?: pulumi.Input<boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* Update time.
|
|
131
|
+
*/
|
|
132
|
+
updatedAt?: pulumi.Input<string>;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The set of arguments for constructing a ManagedObjectStoragePolicy resource.
|
|
136
|
+
*/
|
|
137
|
+
export interface ManagedObjectStoragePolicyArgs {
|
|
138
|
+
/**
|
|
139
|
+
* Description of the policy.
|
|
140
|
+
*/
|
|
141
|
+
description?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Policy document, URL-encoded compliant with RFC 3986. Extra whitespace and escapes are ignored when determining if the
|
|
144
|
+
* document has changed.
|
|
145
|
+
*/
|
|
146
|
+
document: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Policy name.
|
|
149
|
+
*/
|
|
150
|
+
name?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Managed Object Storage service UUID.
|
|
153
|
+
*/
|
|
154
|
+
serviceUuid: pulumi.Input<string>;
|
|
155
|
+
}
|