pulumi-minio 0.14.1a1695992210__py3-none-any.whl → 0.14.2__py3-none-any.whl
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.
- pulumi_minio/_inputs.py +102 -23
- pulumi_minio/config/vars.py +1 -1
- pulumi_minio/get_iam_policy_document.py +1 -1
- pulumi_minio/iam_group.py +40 -8
- pulumi_minio/iam_group_membership.py +37 -7
- pulumi_minio/iam_group_policy.py +43 -9
- pulumi_minio/iam_group_policy_attachment.py +31 -5
- pulumi_minio/iam_group_user_attachment.py +31 -5
- pulumi_minio/iam_policy.py +37 -7
- pulumi_minio/iam_service_account.py +52 -12
- pulumi_minio/iam_user.py +58 -14
- pulumi_minio/iam_user_policy_attachment.py +31 -5
- pulumi_minio/ilm_policy.py +31 -5
- pulumi_minio/kms_key.py +25 -3
- pulumi_minio/outputs.py +102 -23
- pulumi_minio/provider.py +51 -20
- pulumi_minio/s3_bucket.py +61 -15
- pulumi_minio/s3_bucket_notification.py +31 -5
- pulumi_minio/s3_bucket_policy.py +31 -5
- pulumi_minio/s3_bucket_server_side_encryption.py +37 -7
- pulumi_minio/s3_bucket_versioning.py +36 -5
- pulumi_minio/s3_object.py +67 -17
- {pulumi_minio-0.14.1a1695992210.dist-info → pulumi_minio-0.14.2.dist-info}/METADATA +1 -1
- pulumi_minio-0.14.2.dist-info/RECORD +31 -0
- pulumi_minio-0.14.1a1695992210.dist-info/RECORD +0 -31
- {pulumi_minio-0.14.1a1695992210.dist-info → pulumi_minio-0.14.2.dist-info}/WHEEL +0 -0
- {pulumi_minio-0.14.1a1695992210.dist-info → pulumi_minio-0.14.2.dist-info}/top_level.txt +0 -0
pulumi_minio/provider.py
CHANGED
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
|
12
12
|
__all__ = ['ProviderArgs', 'Provider']
|
@@ -40,37 +40,70 @@ class ProviderArgs:
|
|
40
40
|
:param pulumi.Input[bool] minio_ssl: Minio SSL enabled (default: false)
|
41
41
|
:param pulumi.Input[str] minio_user: Minio User
|
42
42
|
"""
|
43
|
-
|
43
|
+
ProviderArgs._configure(
|
44
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
45
|
+
minio_server=minio_server,
|
46
|
+
minio_access_key=minio_access_key,
|
47
|
+
minio_api_version=minio_api_version,
|
48
|
+
minio_cacert_file=minio_cacert_file,
|
49
|
+
minio_cert_file=minio_cert_file,
|
50
|
+
minio_insecure=minio_insecure,
|
51
|
+
minio_key_file=minio_key_file,
|
52
|
+
minio_password=minio_password,
|
53
|
+
minio_region=minio_region,
|
54
|
+
minio_secret_key=minio_secret_key,
|
55
|
+
minio_session_token=minio_session_token,
|
56
|
+
minio_ssl=minio_ssl,
|
57
|
+
minio_user=minio_user,
|
58
|
+
)
|
59
|
+
@staticmethod
|
60
|
+
def _configure(
|
61
|
+
_setter: Callable[[Any, Any], None],
|
62
|
+
minio_server: pulumi.Input[str],
|
63
|
+
minio_access_key: Optional[pulumi.Input[str]] = None,
|
64
|
+
minio_api_version: Optional[pulumi.Input[str]] = None,
|
65
|
+
minio_cacert_file: Optional[pulumi.Input[str]] = None,
|
66
|
+
minio_cert_file: Optional[pulumi.Input[str]] = None,
|
67
|
+
minio_insecure: Optional[pulumi.Input[bool]] = None,
|
68
|
+
minio_key_file: Optional[pulumi.Input[str]] = None,
|
69
|
+
minio_password: Optional[pulumi.Input[str]] = None,
|
70
|
+
minio_region: Optional[pulumi.Input[str]] = None,
|
71
|
+
minio_secret_key: Optional[pulumi.Input[str]] = None,
|
72
|
+
minio_session_token: Optional[pulumi.Input[str]] = None,
|
73
|
+
minio_ssl: Optional[pulumi.Input[bool]] = None,
|
74
|
+
minio_user: Optional[pulumi.Input[str]] = None,
|
75
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
76
|
+
_setter("minio_server", minio_server)
|
44
77
|
if minio_access_key is not None:
|
45
78
|
warnings.warn("""use minio_user instead""", DeprecationWarning)
|
46
79
|
pulumi.log.warn("""minio_access_key is deprecated: use minio_user instead""")
|
47
80
|
if minio_access_key is not None:
|
48
|
-
|
81
|
+
_setter("minio_access_key", minio_access_key)
|
49
82
|
if minio_api_version is not None:
|
50
|
-
|
83
|
+
_setter("minio_api_version", minio_api_version)
|
51
84
|
if minio_cacert_file is not None:
|
52
|
-
|
85
|
+
_setter("minio_cacert_file", minio_cacert_file)
|
53
86
|
if minio_cert_file is not None:
|
54
|
-
|
87
|
+
_setter("minio_cert_file", minio_cert_file)
|
55
88
|
if minio_insecure is not None:
|
56
|
-
|
89
|
+
_setter("minio_insecure", minio_insecure)
|
57
90
|
if minio_key_file is not None:
|
58
|
-
|
91
|
+
_setter("minio_key_file", minio_key_file)
|
59
92
|
if minio_password is not None:
|
60
|
-
|
93
|
+
_setter("minio_password", minio_password)
|
61
94
|
if minio_region is not None:
|
62
|
-
|
95
|
+
_setter("minio_region", minio_region)
|
63
96
|
if minio_secret_key is not None:
|
64
97
|
warnings.warn("""use minio_password instead""", DeprecationWarning)
|
65
98
|
pulumi.log.warn("""minio_secret_key is deprecated: use minio_password instead""")
|
66
99
|
if minio_secret_key is not None:
|
67
|
-
|
100
|
+
_setter("minio_secret_key", minio_secret_key)
|
68
101
|
if minio_session_token is not None:
|
69
|
-
|
102
|
+
_setter("minio_session_token", minio_session_token)
|
70
103
|
if minio_ssl is not None:
|
71
|
-
|
104
|
+
_setter("minio_ssl", minio_ssl)
|
72
105
|
if minio_user is not None:
|
73
|
-
|
106
|
+
_setter("minio_user", minio_user)
|
74
107
|
|
75
108
|
@property
|
76
109
|
@pulumi.getter(name="minioServer")
|
@@ -286,6 +319,10 @@ class Provider(pulumi.ProviderResource):
|
|
286
319
|
if resource_args is not None:
|
287
320
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
288
321
|
else:
|
322
|
+
kwargs = kwargs or {}
|
323
|
+
def _setter(key, value):
|
324
|
+
kwargs[key] = value
|
325
|
+
ProviderArgs._configure(_setter, **kwargs)
|
289
326
|
__self__._internal_init(resource_name, *args, **kwargs)
|
290
327
|
|
291
328
|
def _internal_init(__self__,
|
@@ -313,9 +350,6 @@ class Provider(pulumi.ProviderResource):
|
|
313
350
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
314
351
|
__props__ = ProviderArgs.__new__(ProviderArgs)
|
315
352
|
|
316
|
-
if minio_access_key is not None and not opts.urn:
|
317
|
-
warnings.warn("""use minio_user instead""", DeprecationWarning)
|
318
|
-
pulumi.log.warn("""minio_access_key is deprecated: use minio_user instead""")
|
319
353
|
__props__.__dict__["minio_access_key"] = minio_access_key
|
320
354
|
__props__.__dict__["minio_api_version"] = minio_api_version
|
321
355
|
__props__.__dict__["minio_cacert_file"] = minio_cacert_file
|
@@ -324,9 +358,6 @@ class Provider(pulumi.ProviderResource):
|
|
324
358
|
__props__.__dict__["minio_key_file"] = minio_key_file
|
325
359
|
__props__.__dict__["minio_password"] = minio_password
|
326
360
|
__props__.__dict__["minio_region"] = minio_region
|
327
|
-
if minio_secret_key is not None and not opts.urn:
|
328
|
-
warnings.warn("""use minio_password instead""", DeprecationWarning)
|
329
|
-
pulumi.log.warn("""minio_secret_key is deprecated: use minio_password instead""")
|
330
361
|
__props__.__dict__["minio_secret_key"] = minio_secret_key
|
331
362
|
if minio_server is None and not opts.urn:
|
332
363
|
raise TypeError("Missing required property 'minio_server'")
|
pulumi_minio/s3_bucket.py
CHANGED
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
|
12
12
|
__all__ = ['S3BucketArgs', 'S3Bucket']
|
@@ -23,18 +23,37 @@ class S3BucketArgs:
|
|
23
23
|
"""
|
24
24
|
The set of arguments for constructing a S3Bucket resource.
|
25
25
|
"""
|
26
|
+
S3BucketArgs._configure(
|
27
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
28
|
+
acl=acl,
|
29
|
+
bucket=bucket,
|
30
|
+
bucket_prefix=bucket_prefix,
|
31
|
+
force_destroy=force_destroy,
|
32
|
+
object_locking=object_locking,
|
33
|
+
quota=quota,
|
34
|
+
)
|
35
|
+
@staticmethod
|
36
|
+
def _configure(
|
37
|
+
_setter: Callable[[Any, Any], None],
|
38
|
+
acl: Optional[pulumi.Input[str]] = None,
|
39
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
40
|
+
bucket_prefix: Optional[pulumi.Input[str]] = None,
|
41
|
+
force_destroy: Optional[pulumi.Input[bool]] = None,
|
42
|
+
object_locking: Optional[pulumi.Input[bool]] = None,
|
43
|
+
quota: Optional[pulumi.Input[int]] = None,
|
44
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
26
45
|
if acl is not None:
|
27
|
-
|
46
|
+
_setter("acl", acl)
|
28
47
|
if bucket is not None:
|
29
|
-
|
48
|
+
_setter("bucket", bucket)
|
30
49
|
if bucket_prefix is not None:
|
31
|
-
|
50
|
+
_setter("bucket_prefix", bucket_prefix)
|
32
51
|
if force_destroy is not None:
|
33
|
-
|
52
|
+
_setter("force_destroy", force_destroy)
|
34
53
|
if object_locking is not None:
|
35
|
-
|
54
|
+
_setter("object_locking", object_locking)
|
36
55
|
if quota is not None:
|
37
|
-
|
56
|
+
_setter("quota", quota)
|
38
57
|
|
39
58
|
@property
|
40
59
|
@pulumi.getter
|
@@ -105,22 +124,45 @@ class _S3BucketState:
|
|
105
124
|
"""
|
106
125
|
Input properties used for looking up and filtering S3Bucket resources.
|
107
126
|
"""
|
127
|
+
_S3BucketState._configure(
|
128
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
129
|
+
acl=acl,
|
130
|
+
arn=arn,
|
131
|
+
bucket=bucket,
|
132
|
+
bucket_domain_name=bucket_domain_name,
|
133
|
+
bucket_prefix=bucket_prefix,
|
134
|
+
force_destroy=force_destroy,
|
135
|
+
object_locking=object_locking,
|
136
|
+
quota=quota,
|
137
|
+
)
|
138
|
+
@staticmethod
|
139
|
+
def _configure(
|
140
|
+
_setter: Callable[[Any, Any], None],
|
141
|
+
acl: Optional[pulumi.Input[str]] = None,
|
142
|
+
arn: Optional[pulumi.Input[str]] = None,
|
143
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
144
|
+
bucket_domain_name: Optional[pulumi.Input[str]] = None,
|
145
|
+
bucket_prefix: Optional[pulumi.Input[str]] = None,
|
146
|
+
force_destroy: Optional[pulumi.Input[bool]] = None,
|
147
|
+
object_locking: Optional[pulumi.Input[bool]] = None,
|
148
|
+
quota: Optional[pulumi.Input[int]] = None,
|
149
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
108
150
|
if acl is not None:
|
109
|
-
|
151
|
+
_setter("acl", acl)
|
110
152
|
if arn is not None:
|
111
|
-
|
153
|
+
_setter("arn", arn)
|
112
154
|
if bucket is not None:
|
113
|
-
|
155
|
+
_setter("bucket", bucket)
|
114
156
|
if bucket_domain_name is not None:
|
115
|
-
|
157
|
+
_setter("bucket_domain_name", bucket_domain_name)
|
116
158
|
if bucket_prefix is not None:
|
117
|
-
|
159
|
+
_setter("bucket_prefix", bucket_prefix)
|
118
160
|
if force_destroy is not None:
|
119
|
-
|
161
|
+
_setter("force_destroy", force_destroy)
|
120
162
|
if object_locking is not None:
|
121
|
-
|
163
|
+
_setter("object_locking", object_locking)
|
122
164
|
if quota is not None:
|
123
|
-
|
165
|
+
_setter("quota", quota)
|
124
166
|
|
125
167
|
@property
|
126
168
|
@pulumi.getter
|
@@ -254,6 +296,10 @@ class S3Bucket(pulumi.CustomResource):
|
|
254
296
|
if resource_args is not None:
|
255
297
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
256
298
|
else:
|
299
|
+
kwargs = kwargs or {}
|
300
|
+
def _setter(key, value):
|
301
|
+
kwargs[key] = value
|
302
|
+
S3BucketArgs._configure(_setter, **kwargs)
|
257
303
|
__self__._internal_init(resource_name, *args, **kwargs)
|
258
304
|
|
259
305
|
def _internal_init(__self__,
|
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
from . import outputs
|
12
12
|
from ._inputs import *
|
@@ -21,9 +21,20 @@ class S3BucketNotificationArgs:
|
|
21
21
|
"""
|
22
22
|
The set of arguments for constructing a S3BucketNotification resource.
|
23
23
|
"""
|
24
|
-
|
24
|
+
S3BucketNotificationArgs._configure(
|
25
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
26
|
+
bucket=bucket,
|
27
|
+
queues=queues,
|
28
|
+
)
|
29
|
+
@staticmethod
|
30
|
+
def _configure(
|
31
|
+
_setter: Callable[[Any, Any], None],
|
32
|
+
bucket: pulumi.Input[str],
|
33
|
+
queues: Optional[pulumi.Input[Sequence[pulumi.Input['S3BucketNotificationQueueArgs']]]] = None,
|
34
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
35
|
+
_setter("bucket", bucket)
|
25
36
|
if queues is not None:
|
26
|
-
|
37
|
+
_setter("queues", queues)
|
27
38
|
|
28
39
|
@property
|
29
40
|
@pulumi.getter
|
@@ -52,10 +63,21 @@ class _S3BucketNotificationState:
|
|
52
63
|
"""
|
53
64
|
Input properties used for looking up and filtering S3BucketNotification resources.
|
54
65
|
"""
|
66
|
+
_S3BucketNotificationState._configure(
|
67
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
68
|
+
bucket=bucket,
|
69
|
+
queues=queues,
|
70
|
+
)
|
71
|
+
@staticmethod
|
72
|
+
def _configure(
|
73
|
+
_setter: Callable[[Any, Any], None],
|
74
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
75
|
+
queues: Optional[pulumi.Input[Sequence[pulumi.Input['S3BucketNotificationQueueArgs']]]] = None,
|
76
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
55
77
|
if bucket is not None:
|
56
|
-
|
78
|
+
_setter("bucket", bucket)
|
57
79
|
if queues is not None:
|
58
|
-
|
80
|
+
_setter("queues", queues)
|
59
81
|
|
60
82
|
@property
|
61
83
|
@pulumi.getter
|
@@ -107,6 +129,10 @@ class S3BucketNotification(pulumi.CustomResource):
|
|
107
129
|
if resource_args is not None:
|
108
130
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
109
131
|
else:
|
132
|
+
kwargs = kwargs or {}
|
133
|
+
def _setter(key, value):
|
134
|
+
kwargs[key] = value
|
135
|
+
S3BucketNotificationArgs._configure(_setter, **kwargs)
|
110
136
|
__self__._internal_init(resource_name, *args, **kwargs)
|
111
137
|
|
112
138
|
def _internal_init(__self__,
|
pulumi_minio/s3_bucket_policy.py
CHANGED
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
|
12
12
|
__all__ = ['S3BucketPolicyArgs', 'S3BucketPolicy']
|
@@ -19,8 +19,19 @@ class S3BucketPolicyArgs:
|
|
19
19
|
"""
|
20
20
|
The set of arguments for constructing a S3BucketPolicy resource.
|
21
21
|
"""
|
22
|
-
|
23
|
-
|
22
|
+
S3BucketPolicyArgs._configure(
|
23
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
24
|
+
bucket=bucket,
|
25
|
+
policy=policy,
|
26
|
+
)
|
27
|
+
@staticmethod
|
28
|
+
def _configure(
|
29
|
+
_setter: Callable[[Any, Any], None],
|
30
|
+
bucket: pulumi.Input[str],
|
31
|
+
policy: pulumi.Input[str],
|
32
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
33
|
+
_setter("bucket", bucket)
|
34
|
+
_setter("policy", policy)
|
24
35
|
|
25
36
|
@property
|
26
37
|
@pulumi.getter
|
@@ -49,10 +60,21 @@ class _S3BucketPolicyState:
|
|
49
60
|
"""
|
50
61
|
Input properties used for looking up and filtering S3BucketPolicy resources.
|
51
62
|
"""
|
63
|
+
_S3BucketPolicyState._configure(
|
64
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
65
|
+
bucket=bucket,
|
66
|
+
policy=policy,
|
67
|
+
)
|
68
|
+
@staticmethod
|
69
|
+
def _configure(
|
70
|
+
_setter: Callable[[Any, Any], None],
|
71
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
72
|
+
policy: Optional[pulumi.Input[str]] = None,
|
73
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
52
74
|
if bucket is not None:
|
53
|
-
|
75
|
+
_setter("bucket", bucket)
|
54
76
|
if policy is not None:
|
55
|
-
|
77
|
+
_setter("policy", policy)
|
56
78
|
|
57
79
|
@property
|
58
80
|
@pulumi.getter
|
@@ -104,6 +126,10 @@ class S3BucketPolicy(pulumi.CustomResource):
|
|
104
126
|
if resource_args is not None:
|
105
127
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
106
128
|
else:
|
129
|
+
kwargs = kwargs or {}
|
130
|
+
def _setter(key, value):
|
131
|
+
kwargs[key] = value
|
132
|
+
S3BucketPolicyArgs._configure(_setter, **kwargs)
|
107
133
|
__self__._internal_init(resource_name, *args, **kwargs)
|
108
134
|
|
109
135
|
def _internal_init(__self__,
|
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
|
12
12
|
__all__ = ['S3BucketServerSideEncryptionArgs', 'S3BucketServerSideEncryption']
|
@@ -20,9 +20,22 @@ class S3BucketServerSideEncryptionArgs:
|
|
20
20
|
"""
|
21
21
|
The set of arguments for constructing a S3BucketServerSideEncryption resource.
|
22
22
|
"""
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
S3BucketServerSideEncryptionArgs._configure(
|
24
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
25
|
+
bucket=bucket,
|
26
|
+
encryption_type=encryption_type,
|
27
|
+
kms_key_id=kms_key_id,
|
28
|
+
)
|
29
|
+
@staticmethod
|
30
|
+
def _configure(
|
31
|
+
_setter: Callable[[Any, Any], None],
|
32
|
+
bucket: pulumi.Input[str],
|
33
|
+
encryption_type: pulumi.Input[str],
|
34
|
+
kms_key_id: pulumi.Input[str],
|
35
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
36
|
+
_setter("bucket", bucket)
|
37
|
+
_setter("encryption_type", encryption_type)
|
38
|
+
_setter("kms_key_id", kms_key_id)
|
26
39
|
|
27
40
|
@property
|
28
41
|
@pulumi.getter
|
@@ -61,12 +74,25 @@ class _S3BucketServerSideEncryptionState:
|
|
61
74
|
"""
|
62
75
|
Input properties used for looking up and filtering S3BucketServerSideEncryption resources.
|
63
76
|
"""
|
77
|
+
_S3BucketServerSideEncryptionState._configure(
|
78
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
79
|
+
bucket=bucket,
|
80
|
+
encryption_type=encryption_type,
|
81
|
+
kms_key_id=kms_key_id,
|
82
|
+
)
|
83
|
+
@staticmethod
|
84
|
+
def _configure(
|
85
|
+
_setter: Callable[[Any, Any], None],
|
86
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
87
|
+
encryption_type: Optional[pulumi.Input[str]] = None,
|
88
|
+
kms_key_id: Optional[pulumi.Input[str]] = None,
|
89
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
64
90
|
if bucket is not None:
|
65
|
-
|
91
|
+
_setter("bucket", bucket)
|
66
92
|
if encryption_type is not None:
|
67
|
-
|
93
|
+
_setter("encryption_type", encryption_type)
|
68
94
|
if kms_key_id is not None:
|
69
|
-
|
95
|
+
_setter("kms_key_id", kms_key_id)
|
70
96
|
|
71
97
|
@property
|
72
98
|
@pulumi.getter
|
@@ -128,6 +154,10 @@ class S3BucketServerSideEncryption(pulumi.CustomResource):
|
|
128
154
|
if resource_args is not None:
|
129
155
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
130
156
|
else:
|
157
|
+
kwargs = kwargs or {}
|
158
|
+
def _setter(key, value):
|
159
|
+
kwargs[key] = value
|
160
|
+
S3BucketServerSideEncryptionArgs._configure(_setter, **kwargs)
|
131
161
|
__self__._internal_init(resource_name, *args, **kwargs)
|
132
162
|
|
133
163
|
def _internal_init(__self__,
|
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
from . import outputs
|
12
12
|
from ._inputs import *
|
@@ -21,8 +21,19 @@ class S3BucketVersioningArgs:
|
|
21
21
|
"""
|
22
22
|
The set of arguments for constructing a S3BucketVersioning resource.
|
23
23
|
"""
|
24
|
-
|
25
|
-
|
24
|
+
S3BucketVersioningArgs._configure(
|
25
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
26
|
+
bucket=bucket,
|
27
|
+
versioning_configuration=versioning_configuration,
|
28
|
+
)
|
29
|
+
@staticmethod
|
30
|
+
def _configure(
|
31
|
+
_setter: Callable[[Any, Any], None],
|
32
|
+
bucket: pulumi.Input[str],
|
33
|
+
versioning_configuration: pulumi.Input['S3BucketVersioningVersioningConfigurationArgs'],
|
34
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
35
|
+
_setter("bucket", bucket)
|
36
|
+
_setter("versioning_configuration", versioning_configuration)
|
26
37
|
|
27
38
|
@property
|
28
39
|
@pulumi.getter
|
@@ -51,10 +62,21 @@ class _S3BucketVersioningState:
|
|
51
62
|
"""
|
52
63
|
Input properties used for looking up and filtering S3BucketVersioning resources.
|
53
64
|
"""
|
65
|
+
_S3BucketVersioningState._configure(
|
66
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
67
|
+
bucket=bucket,
|
68
|
+
versioning_configuration=versioning_configuration,
|
69
|
+
)
|
70
|
+
@staticmethod
|
71
|
+
def _configure(
|
72
|
+
_setter: Callable[[Any, Any], None],
|
73
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
74
|
+
versioning_configuration: Optional[pulumi.Input['S3BucketVersioningVersioningConfigurationArgs']] = None,
|
75
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
54
76
|
if bucket is not None:
|
55
|
-
|
77
|
+
_setter("bucket", bucket)
|
56
78
|
if versioning_configuration is not None:
|
57
|
-
|
79
|
+
_setter("versioning_configuration", versioning_configuration)
|
58
80
|
|
59
81
|
@property
|
60
82
|
@pulumi.getter
|
@@ -106,6 +128,10 @@ class S3BucketVersioning(pulumi.CustomResource):
|
|
106
128
|
if resource_args is not None:
|
107
129
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
108
130
|
else:
|
131
|
+
kwargs = kwargs or {}
|
132
|
+
def _setter(key, value):
|
133
|
+
kwargs[key] = value
|
134
|
+
S3BucketVersioningArgs._configure(_setter, **kwargs)
|
109
135
|
__self__._internal_init(resource_name, *args, **kwargs)
|
110
136
|
|
111
137
|
def _internal_init(__self__,
|
@@ -125,6 +151,11 @@ class S3BucketVersioning(pulumi.CustomResource):
|
|
125
151
|
if bucket is None and not opts.urn:
|
126
152
|
raise TypeError("Missing required property 'bucket'")
|
127
153
|
__props__.__dict__["bucket"] = bucket
|
154
|
+
if versioning_configuration is not None and not isinstance(versioning_configuration, S3BucketVersioningVersioningConfigurationArgs):
|
155
|
+
versioning_configuration = versioning_configuration or {}
|
156
|
+
def _setter(key, value):
|
157
|
+
versioning_configuration[key] = value
|
158
|
+
S3BucketVersioningVersioningConfigurationArgs._configure(_setter, **versioning_configuration)
|
128
159
|
if versioning_configuration is None and not opts.urn:
|
129
160
|
raise TypeError("Missing required property 'versioning_configuration'")
|
130
161
|
__props__.__dict__["versioning_configuration"] = versioning_configuration
|
pulumi_minio/s3_object.py
CHANGED
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
9
|
+
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
|
12
12
|
__all__ = ['S3ObjectArgs', 'S3Object']
|
@@ -25,20 +25,43 @@ class S3ObjectArgs:
|
|
25
25
|
"""
|
26
26
|
The set of arguments for constructing a S3Object resource.
|
27
27
|
"""
|
28
|
-
|
29
|
-
|
28
|
+
S3ObjectArgs._configure(
|
29
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
30
|
+
bucket_name=bucket_name,
|
31
|
+
object_name=object_name,
|
32
|
+
content=content,
|
33
|
+
content_base64=content_base64,
|
34
|
+
content_type=content_type,
|
35
|
+
etag=etag,
|
36
|
+
source=source,
|
37
|
+
version_id=version_id,
|
38
|
+
)
|
39
|
+
@staticmethod
|
40
|
+
def _configure(
|
41
|
+
_setter: Callable[[Any, Any], None],
|
42
|
+
bucket_name: pulumi.Input[str],
|
43
|
+
object_name: pulumi.Input[str],
|
44
|
+
content: Optional[pulumi.Input[str]] = None,
|
45
|
+
content_base64: Optional[pulumi.Input[str]] = None,
|
46
|
+
content_type: Optional[pulumi.Input[str]] = None,
|
47
|
+
etag: Optional[pulumi.Input[str]] = None,
|
48
|
+
source: Optional[pulumi.Input[str]] = None,
|
49
|
+
version_id: Optional[pulumi.Input[str]] = None,
|
50
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
51
|
+
_setter("bucket_name", bucket_name)
|
52
|
+
_setter("object_name", object_name)
|
30
53
|
if content is not None:
|
31
|
-
|
54
|
+
_setter("content", content)
|
32
55
|
if content_base64 is not None:
|
33
|
-
|
56
|
+
_setter("content_base64", content_base64)
|
34
57
|
if content_type is not None:
|
35
|
-
|
58
|
+
_setter("content_type", content_type)
|
36
59
|
if etag is not None:
|
37
|
-
|
60
|
+
_setter("etag", etag)
|
38
61
|
if source is not None:
|
39
|
-
|
62
|
+
_setter("source", source)
|
40
63
|
if version_id is not None:
|
41
|
-
|
64
|
+
_setter("version_id", version_id)
|
42
65
|
|
43
66
|
@property
|
44
67
|
@pulumi.getter(name="bucketName")
|
@@ -127,22 +150,45 @@ class _S3ObjectState:
|
|
127
150
|
"""
|
128
151
|
Input properties used for looking up and filtering S3Object resources.
|
129
152
|
"""
|
153
|
+
_S3ObjectState._configure(
|
154
|
+
lambda key, value: pulumi.set(__self__, key, value),
|
155
|
+
bucket_name=bucket_name,
|
156
|
+
content=content,
|
157
|
+
content_base64=content_base64,
|
158
|
+
content_type=content_type,
|
159
|
+
etag=etag,
|
160
|
+
object_name=object_name,
|
161
|
+
source=source,
|
162
|
+
version_id=version_id,
|
163
|
+
)
|
164
|
+
@staticmethod
|
165
|
+
def _configure(
|
166
|
+
_setter: Callable[[Any, Any], None],
|
167
|
+
bucket_name: Optional[pulumi.Input[str]] = None,
|
168
|
+
content: Optional[pulumi.Input[str]] = None,
|
169
|
+
content_base64: Optional[pulumi.Input[str]] = None,
|
170
|
+
content_type: Optional[pulumi.Input[str]] = None,
|
171
|
+
etag: Optional[pulumi.Input[str]] = None,
|
172
|
+
object_name: Optional[pulumi.Input[str]] = None,
|
173
|
+
source: Optional[pulumi.Input[str]] = None,
|
174
|
+
version_id: Optional[pulumi.Input[str]] = None,
|
175
|
+
opts: Optional[pulumi.ResourceOptions]=None):
|
130
176
|
if bucket_name is not None:
|
131
|
-
|
177
|
+
_setter("bucket_name", bucket_name)
|
132
178
|
if content is not None:
|
133
|
-
|
179
|
+
_setter("content", content)
|
134
180
|
if content_base64 is not None:
|
135
|
-
|
181
|
+
_setter("content_base64", content_base64)
|
136
182
|
if content_type is not None:
|
137
|
-
|
183
|
+
_setter("content_type", content_type)
|
138
184
|
if etag is not None:
|
139
|
-
|
185
|
+
_setter("etag", etag)
|
140
186
|
if object_name is not None:
|
141
|
-
|
187
|
+
_setter("object_name", object_name)
|
142
188
|
if source is not None:
|
143
|
-
|
189
|
+
_setter("source", source)
|
144
190
|
if version_id is not None:
|
145
|
-
|
191
|
+
_setter("version_id", version_id)
|
146
192
|
|
147
193
|
@property
|
148
194
|
@pulumi.getter(name="bucketName")
|
@@ -288,6 +334,10 @@ class S3Object(pulumi.CustomResource):
|
|
288
334
|
if resource_args is not None:
|
289
335
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
290
336
|
else:
|
337
|
+
kwargs = kwargs or {}
|
338
|
+
def _setter(key, value):
|
339
|
+
kwargs[key] = value
|
340
|
+
S3ObjectArgs._configure(_setter, **kwargs)
|
291
341
|
__self__._internal_init(resource_name, *args, **kwargs)
|
292
342
|
|
293
343
|
def _internal_init(__self__,
|