pulumi-gcp 8.10.0__py3-none-any.whl → 8.10.0a1731739693__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_gcp/__init__.py +0 -24
- pulumi_gcp/accesscontextmanager/__init__.py +0 -1
- pulumi_gcp/accesscontextmanager/_inputs.py +54 -90
- pulumi_gcp/accesscontextmanager/outputs.py +36 -60
- pulumi_gcp/artifactregistry/_inputs.py +0 -56
- pulumi_gcp/artifactregistry/outputs.py +0 -65
- pulumi_gcp/artifactregistry/repository.py +0 -48
- pulumi_gcp/backupdisasterrecovery/__init__.py +0 -1
- pulumi_gcp/backupdisasterrecovery/backup_vault.py +0 -63
- pulumi_gcp/backupdisasterrecovery/outputs.py +0 -402
- pulumi_gcp/certificateauthority/authority.py +138 -28
- pulumi_gcp/cloudrun/service.py +10 -0
- pulumi_gcp/cloudrunv2/get_service.py +4 -15
- pulumi_gcp/cloudrunv2/service.py +2 -30
- pulumi_gcp/compute/_inputs.py +12 -12
- pulumi_gcp/compute/outputs.py +10 -10
- pulumi_gcp/dataproc/__init__.py +0 -1
- pulumi_gcp/dataproc/_inputs.py +0 -490
- pulumi_gcp/dataproc/outputs.py +0 -385
- pulumi_gcp/filestore/_inputs.py +0 -152
- pulumi_gcp/filestore/get_instance.py +1 -12
- pulumi_gcp/filestore/instance.py +0 -47
- pulumi_gcp/filestore/outputs.py +0 -229
- pulumi_gcp/iam/__init__.py +0 -2
- pulumi_gcp/iam/_inputs.py +0 -274
- pulumi_gcp/iam/outputs.py +0 -198
- pulumi_gcp/managedkafka/cluster.py +0 -4
- pulumi_gcp/managedkafka/topic.py +0 -4
- pulumi_gcp/pubsub/subscription.py +8 -8
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/_inputs.py +0 -213
- pulumi_gcp/redis/cluster.py +0 -289
- pulumi_gcp/redis/outputs.py +0 -185
- pulumi_gcp/securesourcemanager/_inputs.py +0 -33
- pulumi_gcp/securesourcemanager/instance.py +3 -90
- pulumi_gcp/securesourcemanager/outputs.py +0 -19
- pulumi_gcp/spanner/database.py +14 -14
- pulumi_gcp/sql/_inputs.py +0 -73
- pulumi_gcp/sql/database_instance.py +0 -60
- pulumi_gcp/sql/outputs.py +0 -146
- pulumi_gcp/sql/user.py +2 -2
- pulumi_gcp/tags/location_tag_binding.py +8 -8
- pulumi_gcp/vertex/ai_endpoint.py +29 -22
- {pulumi_gcp-8.10.0.dist-info → pulumi_gcp-8.10.0a1731739693.dist-info}/METADATA +5 -5
- {pulumi_gcp-8.10.0.dist-info → pulumi_gcp-8.10.0a1731739693.dist-info}/RECORD +47 -52
- {pulumi_gcp-8.10.0.dist-info → pulumi_gcp-8.10.0a1731739693.dist-info}/WHEEL +1 -1
- pulumi_gcp/accesscontextmanager/get_access_policy.py +0 -158
- pulumi_gcp/backupdisasterrecovery/get_data_source.py +0 -263
- pulumi_gcp/dataproc/gdc_spark_application.py +0 -1658
- pulumi_gcp/iam/folders_policy_binding.py +0 -917
- pulumi_gcp/iam/organizations_policy_binding.py +0 -901
- {pulumi_gcp-8.10.0.dist-info → pulumi_gcp-8.10.0a1731739693.dist-info}/top_level.txt +0 -0
pulumi_gcp/redis/_inputs.py
CHANGED
@@ -27,12 +27,6 @@ __all__ = [
|
|
27
27
|
'ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgsDict',
|
28
28
|
'ClusterMaintenanceScheduleArgs',
|
29
29
|
'ClusterMaintenanceScheduleArgsDict',
|
30
|
-
'ClusterPersistenceConfigArgs',
|
31
|
-
'ClusterPersistenceConfigArgsDict',
|
32
|
-
'ClusterPersistenceConfigAofConfigArgs',
|
33
|
-
'ClusterPersistenceConfigAofConfigArgsDict',
|
34
|
-
'ClusterPersistenceConfigRdbConfigArgs',
|
35
|
-
'ClusterPersistenceConfigRdbConfigArgsDict',
|
36
30
|
'ClusterPscConfigArgs',
|
37
31
|
'ClusterPscConfigArgsDict',
|
38
32
|
'ClusterPscConnectionArgs',
|
@@ -582,213 +576,6 @@ class ClusterMaintenanceScheduleArgs:
|
|
582
576
|
pulumi.set(self, "start_time", value)
|
583
577
|
|
584
578
|
|
585
|
-
if not MYPY:
|
586
|
-
class ClusterPersistenceConfigArgsDict(TypedDict):
|
587
|
-
aof_config: NotRequired[pulumi.Input['ClusterPersistenceConfigAofConfigArgsDict']]
|
588
|
-
"""
|
589
|
-
AOF configuration. This field will be ignored if mode is not AOF.
|
590
|
-
Structure is documented below.
|
591
|
-
"""
|
592
|
-
mode: NotRequired[pulumi.Input[str]]
|
593
|
-
"""
|
594
|
-
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
|
595
|
-
- DISABLED: Persistence (both backup and restore) is disabled for the cluster.
|
596
|
-
- RDB: RDB based Persistence is enabled.
|
597
|
-
- AOF: AOF based Persistence is enabled.
|
598
|
-
Possible values are: `PERSISTENCE_MODE_UNSPECIFIED`, `DISABLED`, `RDB`, `AOF`.
|
599
|
-
"""
|
600
|
-
rdb_config: NotRequired[pulumi.Input['ClusterPersistenceConfigRdbConfigArgsDict']]
|
601
|
-
"""
|
602
|
-
RDB configuration. This field will be ignored if mode is not RDB.
|
603
|
-
Structure is documented below.
|
604
|
-
"""
|
605
|
-
elif False:
|
606
|
-
ClusterPersistenceConfigArgsDict: TypeAlias = Mapping[str, Any]
|
607
|
-
|
608
|
-
@pulumi.input_type
|
609
|
-
class ClusterPersistenceConfigArgs:
|
610
|
-
def __init__(__self__, *,
|
611
|
-
aof_config: Optional[pulumi.Input['ClusterPersistenceConfigAofConfigArgs']] = None,
|
612
|
-
mode: Optional[pulumi.Input[str]] = None,
|
613
|
-
rdb_config: Optional[pulumi.Input['ClusterPersistenceConfigRdbConfigArgs']] = None):
|
614
|
-
"""
|
615
|
-
:param pulumi.Input['ClusterPersistenceConfigAofConfigArgs'] aof_config: AOF configuration. This field will be ignored if mode is not AOF.
|
616
|
-
Structure is documented below.
|
617
|
-
:param pulumi.Input[str] mode: Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
|
618
|
-
- DISABLED: Persistence (both backup and restore) is disabled for the cluster.
|
619
|
-
- RDB: RDB based Persistence is enabled.
|
620
|
-
- AOF: AOF based Persistence is enabled.
|
621
|
-
Possible values are: `PERSISTENCE_MODE_UNSPECIFIED`, `DISABLED`, `RDB`, `AOF`.
|
622
|
-
:param pulumi.Input['ClusterPersistenceConfigRdbConfigArgs'] rdb_config: RDB configuration. This field will be ignored if mode is not RDB.
|
623
|
-
Structure is documented below.
|
624
|
-
"""
|
625
|
-
if aof_config is not None:
|
626
|
-
pulumi.set(__self__, "aof_config", aof_config)
|
627
|
-
if mode is not None:
|
628
|
-
pulumi.set(__self__, "mode", mode)
|
629
|
-
if rdb_config is not None:
|
630
|
-
pulumi.set(__self__, "rdb_config", rdb_config)
|
631
|
-
|
632
|
-
@property
|
633
|
-
@pulumi.getter(name="aofConfig")
|
634
|
-
def aof_config(self) -> Optional[pulumi.Input['ClusterPersistenceConfigAofConfigArgs']]:
|
635
|
-
"""
|
636
|
-
AOF configuration. This field will be ignored if mode is not AOF.
|
637
|
-
Structure is documented below.
|
638
|
-
"""
|
639
|
-
return pulumi.get(self, "aof_config")
|
640
|
-
|
641
|
-
@aof_config.setter
|
642
|
-
def aof_config(self, value: Optional[pulumi.Input['ClusterPersistenceConfigAofConfigArgs']]):
|
643
|
-
pulumi.set(self, "aof_config", value)
|
644
|
-
|
645
|
-
@property
|
646
|
-
@pulumi.getter
|
647
|
-
def mode(self) -> Optional[pulumi.Input[str]]:
|
648
|
-
"""
|
649
|
-
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.
|
650
|
-
- DISABLED: Persistence (both backup and restore) is disabled for the cluster.
|
651
|
-
- RDB: RDB based Persistence is enabled.
|
652
|
-
- AOF: AOF based Persistence is enabled.
|
653
|
-
Possible values are: `PERSISTENCE_MODE_UNSPECIFIED`, `DISABLED`, `RDB`, `AOF`.
|
654
|
-
"""
|
655
|
-
return pulumi.get(self, "mode")
|
656
|
-
|
657
|
-
@mode.setter
|
658
|
-
def mode(self, value: Optional[pulumi.Input[str]]):
|
659
|
-
pulumi.set(self, "mode", value)
|
660
|
-
|
661
|
-
@property
|
662
|
-
@pulumi.getter(name="rdbConfig")
|
663
|
-
def rdb_config(self) -> Optional[pulumi.Input['ClusterPersistenceConfigRdbConfigArgs']]:
|
664
|
-
"""
|
665
|
-
RDB configuration. This field will be ignored if mode is not RDB.
|
666
|
-
Structure is documented below.
|
667
|
-
"""
|
668
|
-
return pulumi.get(self, "rdb_config")
|
669
|
-
|
670
|
-
@rdb_config.setter
|
671
|
-
def rdb_config(self, value: Optional[pulumi.Input['ClusterPersistenceConfigRdbConfigArgs']]):
|
672
|
-
pulumi.set(self, "rdb_config", value)
|
673
|
-
|
674
|
-
|
675
|
-
if not MYPY:
|
676
|
-
class ClusterPersistenceConfigAofConfigArgsDict(TypedDict):
|
677
|
-
append_fsync: NotRequired[pulumi.Input[str]]
|
678
|
-
"""
|
679
|
-
Optional. Available fsync modes.
|
680
|
-
- NO - Do not explicilty call fsync(). Rely on OS defaults.
|
681
|
-
- EVERYSEC - Call fsync() once per second in a background thread. A balance between performance and durability.
|
682
|
-
- ALWAYS - Call fsync() for earch write command.
|
683
|
-
Possible values are: `APPEND_FSYNC_UNSPECIFIED`, `NO`, `EVERYSEC`, `ALWAYS`.
|
684
|
-
"""
|
685
|
-
elif False:
|
686
|
-
ClusterPersistenceConfigAofConfigArgsDict: TypeAlias = Mapping[str, Any]
|
687
|
-
|
688
|
-
@pulumi.input_type
|
689
|
-
class ClusterPersistenceConfigAofConfigArgs:
|
690
|
-
def __init__(__self__, *,
|
691
|
-
append_fsync: Optional[pulumi.Input[str]] = None):
|
692
|
-
"""
|
693
|
-
:param pulumi.Input[str] append_fsync: Optional. Available fsync modes.
|
694
|
-
- NO - Do not explicilty call fsync(). Rely on OS defaults.
|
695
|
-
- EVERYSEC - Call fsync() once per second in a background thread. A balance between performance and durability.
|
696
|
-
- ALWAYS - Call fsync() for earch write command.
|
697
|
-
Possible values are: `APPEND_FSYNC_UNSPECIFIED`, `NO`, `EVERYSEC`, `ALWAYS`.
|
698
|
-
"""
|
699
|
-
if append_fsync is not None:
|
700
|
-
pulumi.set(__self__, "append_fsync", append_fsync)
|
701
|
-
|
702
|
-
@property
|
703
|
-
@pulumi.getter(name="appendFsync")
|
704
|
-
def append_fsync(self) -> Optional[pulumi.Input[str]]:
|
705
|
-
"""
|
706
|
-
Optional. Available fsync modes.
|
707
|
-
- NO - Do not explicilty call fsync(). Rely on OS defaults.
|
708
|
-
- EVERYSEC - Call fsync() once per second in a background thread. A balance between performance and durability.
|
709
|
-
- ALWAYS - Call fsync() for earch write command.
|
710
|
-
Possible values are: `APPEND_FSYNC_UNSPECIFIED`, `NO`, `EVERYSEC`, `ALWAYS`.
|
711
|
-
"""
|
712
|
-
return pulumi.get(self, "append_fsync")
|
713
|
-
|
714
|
-
@append_fsync.setter
|
715
|
-
def append_fsync(self, value: Optional[pulumi.Input[str]]):
|
716
|
-
pulumi.set(self, "append_fsync", value)
|
717
|
-
|
718
|
-
|
719
|
-
if not MYPY:
|
720
|
-
class ClusterPersistenceConfigRdbConfigArgsDict(TypedDict):
|
721
|
-
rdb_snapshot_period: NotRequired[pulumi.Input[str]]
|
722
|
-
"""
|
723
|
-
Optional. Available snapshot periods for scheduling.
|
724
|
-
- ONE_HOUR: Snapshot every 1 hour.
|
725
|
-
- SIX_HOURS: Snapshot every 6 hours.
|
726
|
-
- TWELVE_HOURS: Snapshot every 12 hours.
|
727
|
-
- TWENTY_FOUR_HOURS: Snapshot every 24 hours.
|
728
|
-
Possible values are: `SNAPSHOT_PERIOD_UNSPECIFIED`, `ONE_HOUR`, `SIX_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`.
|
729
|
-
"""
|
730
|
-
rdb_snapshot_start_time: NotRequired[pulumi.Input[str]]
|
731
|
-
"""
|
732
|
-
The time that the first snapshot was/will be attempted, and to which
|
733
|
-
future snapshots will be aligned.
|
734
|
-
If not provided, the current time will be used.
|
735
|
-
"""
|
736
|
-
elif False:
|
737
|
-
ClusterPersistenceConfigRdbConfigArgsDict: TypeAlias = Mapping[str, Any]
|
738
|
-
|
739
|
-
@pulumi.input_type
|
740
|
-
class ClusterPersistenceConfigRdbConfigArgs:
|
741
|
-
def __init__(__self__, *,
|
742
|
-
rdb_snapshot_period: Optional[pulumi.Input[str]] = None,
|
743
|
-
rdb_snapshot_start_time: Optional[pulumi.Input[str]] = None):
|
744
|
-
"""
|
745
|
-
:param pulumi.Input[str] rdb_snapshot_period: Optional. Available snapshot periods for scheduling.
|
746
|
-
- ONE_HOUR: Snapshot every 1 hour.
|
747
|
-
- SIX_HOURS: Snapshot every 6 hours.
|
748
|
-
- TWELVE_HOURS: Snapshot every 12 hours.
|
749
|
-
- TWENTY_FOUR_HOURS: Snapshot every 24 hours.
|
750
|
-
Possible values are: `SNAPSHOT_PERIOD_UNSPECIFIED`, `ONE_HOUR`, `SIX_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`.
|
751
|
-
:param pulumi.Input[str] rdb_snapshot_start_time: The time that the first snapshot was/will be attempted, and to which
|
752
|
-
future snapshots will be aligned.
|
753
|
-
If not provided, the current time will be used.
|
754
|
-
"""
|
755
|
-
if rdb_snapshot_period is not None:
|
756
|
-
pulumi.set(__self__, "rdb_snapshot_period", rdb_snapshot_period)
|
757
|
-
if rdb_snapshot_start_time is not None:
|
758
|
-
pulumi.set(__self__, "rdb_snapshot_start_time", rdb_snapshot_start_time)
|
759
|
-
|
760
|
-
@property
|
761
|
-
@pulumi.getter(name="rdbSnapshotPeriod")
|
762
|
-
def rdb_snapshot_period(self) -> Optional[pulumi.Input[str]]:
|
763
|
-
"""
|
764
|
-
Optional. Available snapshot periods for scheduling.
|
765
|
-
- ONE_HOUR: Snapshot every 1 hour.
|
766
|
-
- SIX_HOURS: Snapshot every 6 hours.
|
767
|
-
- TWELVE_HOURS: Snapshot every 12 hours.
|
768
|
-
- TWENTY_FOUR_HOURS: Snapshot every 24 hours.
|
769
|
-
Possible values are: `SNAPSHOT_PERIOD_UNSPECIFIED`, `ONE_HOUR`, `SIX_HOURS`, `TWELVE_HOURS`, `TWENTY_FOUR_HOURS`.
|
770
|
-
"""
|
771
|
-
return pulumi.get(self, "rdb_snapshot_period")
|
772
|
-
|
773
|
-
@rdb_snapshot_period.setter
|
774
|
-
def rdb_snapshot_period(self, value: Optional[pulumi.Input[str]]):
|
775
|
-
pulumi.set(self, "rdb_snapshot_period", value)
|
776
|
-
|
777
|
-
@property
|
778
|
-
@pulumi.getter(name="rdbSnapshotStartTime")
|
779
|
-
def rdb_snapshot_start_time(self) -> Optional[pulumi.Input[str]]:
|
780
|
-
"""
|
781
|
-
The time that the first snapshot was/will be attempted, and to which
|
782
|
-
future snapshots will be aligned.
|
783
|
-
If not provided, the current time will be used.
|
784
|
-
"""
|
785
|
-
return pulumi.get(self, "rdb_snapshot_start_time")
|
786
|
-
|
787
|
-
@rdb_snapshot_start_time.setter
|
788
|
-
def rdb_snapshot_start_time(self, value: Optional[pulumi.Input[str]]):
|
789
|
-
pulumi.set(self, "rdb_snapshot_start_time", value)
|
790
|
-
|
791
|
-
|
792
579
|
if not MYPY:
|
793
580
|
class ClusterPscConfigArgsDict(TypedDict):
|
794
581
|
network: pulumi.Input[str]
|
pulumi_gcp/redis/cluster.py
CHANGED
@@ -28,7 +28,6 @@ class ClusterArgs:
|
|
28
28
|
maintenance_policy: Optional[pulumi.Input['ClusterMaintenancePolicyArgs']] = None,
|
29
29
|
name: Optional[pulumi.Input[str]] = None,
|
30
30
|
node_type: Optional[pulumi.Input[str]] = None,
|
31
|
-
persistence_config: Optional[pulumi.Input['ClusterPersistenceConfigArgs']] = None,
|
32
31
|
project: Optional[pulumi.Input[str]] = None,
|
33
32
|
redis_configs: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
34
33
|
region: Optional[pulumi.Input[str]] = None,
|
@@ -52,7 +51,6 @@ class ClusterArgs:
|
|
52
51
|
projects/{projectId}/locations/{locationId}/clusters/{clusterId}
|
53
52
|
:param pulumi.Input[str] node_type: The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values:
|
54
53
|
["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
|
55
|
-
:param pulumi.Input['ClusterPersistenceConfigArgs'] persistence_config: Persistence config (RDB, AOF) for the cluster.
|
56
54
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] redis_configs: Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore
|
57
55
|
documentation for the list of supported parameters:
|
58
56
|
https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
|
@@ -75,8 +73,6 @@ class ClusterArgs:
|
|
75
73
|
pulumi.set(__self__, "name", name)
|
76
74
|
if node_type is not None:
|
77
75
|
pulumi.set(__self__, "node_type", node_type)
|
78
|
-
if persistence_config is not None:
|
79
|
-
pulumi.set(__self__, "persistence_config", persistence_config)
|
80
76
|
if project is not None:
|
81
77
|
pulumi.set(__self__, "project", project)
|
82
78
|
if redis_configs is not None:
|
@@ -182,18 +178,6 @@ class ClusterArgs:
|
|
182
178
|
def node_type(self, value: Optional[pulumi.Input[str]]):
|
183
179
|
pulumi.set(self, "node_type", value)
|
184
180
|
|
185
|
-
@property
|
186
|
-
@pulumi.getter(name="persistenceConfig")
|
187
|
-
def persistence_config(self) -> Optional[pulumi.Input['ClusterPersistenceConfigArgs']]:
|
188
|
-
"""
|
189
|
-
Persistence config (RDB, AOF) for the cluster.
|
190
|
-
"""
|
191
|
-
return pulumi.get(self, "persistence_config")
|
192
|
-
|
193
|
-
@persistence_config.setter
|
194
|
-
def persistence_config(self, value: Optional[pulumi.Input['ClusterPersistenceConfigArgs']]):
|
195
|
-
pulumi.set(self, "persistence_config", value)
|
196
|
-
|
197
181
|
@property
|
198
182
|
@pulumi.getter
|
199
183
|
def project(self) -> Optional[pulumi.Input[str]]:
|
@@ -279,7 +263,6 @@ class _ClusterState:
|
|
279
263
|
maintenance_schedules: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterMaintenanceScheduleArgs']]]] = None,
|
280
264
|
name: Optional[pulumi.Input[str]] = None,
|
281
265
|
node_type: Optional[pulumi.Input[str]] = None,
|
282
|
-
persistence_config: Optional[pulumi.Input['ClusterPersistenceConfigArgs']] = None,
|
283
266
|
precise_size_gb: Optional[pulumi.Input[float]] = None,
|
284
267
|
project: Optional[pulumi.Input[str]] = None,
|
285
268
|
psc_configs: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterPscConfigArgs']]]] = None,
|
@@ -315,7 +298,6 @@ class _ClusterState:
|
|
315
298
|
projects/{projectId}/locations/{locationId}/clusters/{clusterId}
|
316
299
|
:param pulumi.Input[str] node_type: The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values:
|
317
300
|
["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
|
318
|
-
:param pulumi.Input['ClusterPersistenceConfigArgs'] persistence_config: Persistence config (RDB, AOF) for the cluster.
|
319
301
|
:param pulumi.Input[float] precise_size_gb: Output only. Redis memory precise size in GB for the entire cluster.
|
320
302
|
:param pulumi.Input[Sequence[pulumi.Input['ClusterPscConfigArgs']]] psc_configs: Required. Each PscConfig configures the consumer network where two
|
321
303
|
network addresses will be designated to the cluster for client access.
|
@@ -355,8 +337,6 @@ class _ClusterState:
|
|
355
337
|
pulumi.set(__self__, "name", name)
|
356
338
|
if node_type is not None:
|
357
339
|
pulumi.set(__self__, "node_type", node_type)
|
358
|
-
if persistence_config is not None:
|
359
|
-
pulumi.set(__self__, "persistence_config", persistence_config)
|
360
340
|
if precise_size_gb is not None:
|
361
341
|
pulumi.set(__self__, "precise_size_gb", precise_size_gb)
|
362
342
|
if project is not None:
|
@@ -493,18 +473,6 @@ class _ClusterState:
|
|
493
473
|
def node_type(self, value: Optional[pulumi.Input[str]]):
|
494
474
|
pulumi.set(self, "node_type", value)
|
495
475
|
|
496
|
-
@property
|
497
|
-
@pulumi.getter(name="persistenceConfig")
|
498
|
-
def persistence_config(self) -> Optional[pulumi.Input['ClusterPersistenceConfigArgs']]:
|
499
|
-
"""
|
500
|
-
Persistence config (RDB, AOF) for the cluster.
|
501
|
-
"""
|
502
|
-
return pulumi.get(self, "persistence_config")
|
503
|
-
|
504
|
-
@persistence_config.setter
|
505
|
-
def persistence_config(self, value: Optional[pulumi.Input['ClusterPersistenceConfigArgs']]):
|
506
|
-
pulumi.set(self, "persistence_config", value)
|
507
|
-
|
508
476
|
@property
|
509
477
|
@pulumi.getter(name="preciseSizeGb")
|
510
478
|
def precise_size_gb(self) -> Optional[pulumi.Input[float]]:
|
@@ -690,7 +658,6 @@ class Cluster(pulumi.CustomResource):
|
|
690
658
|
maintenance_policy: Optional[pulumi.Input[Union['ClusterMaintenancePolicyArgs', 'ClusterMaintenancePolicyArgsDict']]] = None,
|
691
659
|
name: Optional[pulumi.Input[str]] = None,
|
692
660
|
node_type: Optional[pulumi.Input[str]] = None,
|
693
|
-
persistence_config: Optional[pulumi.Input[Union['ClusterPersistenceConfigArgs', 'ClusterPersistenceConfigArgsDict']]] = None,
|
694
661
|
project: Optional[pulumi.Input[str]] = None,
|
695
662
|
psc_configs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ClusterPscConfigArgs', 'ClusterPscConfigArgsDict']]]]] = None,
|
696
663
|
redis_configs: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
@@ -813,127 +780,6 @@ class Cluster(pulumi.CustomResource):
|
|
813
780
|
deletion_protection_enabled=True,
|
814
781
|
opts = pulumi.ResourceOptions(depends_on=[default]))
|
815
782
|
```
|
816
|
-
### Redis Cluster Rdb
|
817
|
-
|
818
|
-
```python
|
819
|
-
import pulumi
|
820
|
-
import pulumi_gcp as gcp
|
821
|
-
|
822
|
-
producer_net = gcp.compute.Network("producer_net",
|
823
|
-
name="mynetwork",
|
824
|
-
auto_create_subnetworks=False)
|
825
|
-
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
|
826
|
-
name="mysubnet",
|
827
|
-
ip_cidr_range="10.0.0.248/29",
|
828
|
-
region="us-central1",
|
829
|
-
network=producer_net.id)
|
830
|
-
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
|
831
|
-
name="mypolicy",
|
832
|
-
location="us-central1",
|
833
|
-
service_class="gcp-memorystore-redis",
|
834
|
-
description="my basic service connection policy",
|
835
|
-
network=producer_net.id,
|
836
|
-
psc_config={
|
837
|
-
"subnetworks": [producer_subnet.id],
|
838
|
-
})
|
839
|
-
cluster_rdb = gcp.redis.Cluster("cluster-rdb",
|
840
|
-
name="rdb-cluster",
|
841
|
-
shard_count=3,
|
842
|
-
psc_configs=[{
|
843
|
-
"network": producer_net.id,
|
844
|
-
}],
|
845
|
-
region="us-central1",
|
846
|
-
replica_count=0,
|
847
|
-
node_type="REDIS_SHARED_CORE_NANO",
|
848
|
-
transit_encryption_mode="TRANSIT_ENCRYPTION_MODE_DISABLED",
|
849
|
-
authorization_mode="AUTH_MODE_DISABLED",
|
850
|
-
redis_configs={
|
851
|
-
"maxmemory-policy": "volatile-ttl",
|
852
|
-
},
|
853
|
-
deletion_protection_enabled=True,
|
854
|
-
zone_distribution_config={
|
855
|
-
"mode": "MULTI_ZONE",
|
856
|
-
},
|
857
|
-
maintenance_policy={
|
858
|
-
"weekly_maintenance_windows": [{
|
859
|
-
"day": "MONDAY",
|
860
|
-
"start_time": {
|
861
|
-
"hours": 1,
|
862
|
-
"minutes": 0,
|
863
|
-
"seconds": 0,
|
864
|
-
"nanos": 0,
|
865
|
-
},
|
866
|
-
}],
|
867
|
-
},
|
868
|
-
persistence_config={
|
869
|
-
"mode": "RDB",
|
870
|
-
"rdb_config": {
|
871
|
-
"rdb_snapshot_period": "ONE_HOUR",
|
872
|
-
"rdb_snapshot_start_time": "2024-10-02T15:01:23Z",
|
873
|
-
},
|
874
|
-
},
|
875
|
-
opts = pulumi.ResourceOptions(depends_on=[default]))
|
876
|
-
```
|
877
|
-
### Redis Cluster Aof
|
878
|
-
|
879
|
-
```python
|
880
|
-
import pulumi
|
881
|
-
import pulumi_gcp as gcp
|
882
|
-
|
883
|
-
producer_net = gcp.compute.Network("producer_net",
|
884
|
-
name="mynetwork",
|
885
|
-
auto_create_subnetworks=False)
|
886
|
-
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
|
887
|
-
name="mysubnet",
|
888
|
-
ip_cidr_range="10.0.0.248/29",
|
889
|
-
region="us-central1",
|
890
|
-
network=producer_net.id)
|
891
|
-
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
|
892
|
-
name="mypolicy",
|
893
|
-
location="us-central1",
|
894
|
-
service_class="gcp-memorystore-redis",
|
895
|
-
description="my basic service connection policy",
|
896
|
-
network=producer_net.id,
|
897
|
-
psc_config={
|
898
|
-
"subnetworks": [producer_subnet.id],
|
899
|
-
})
|
900
|
-
cluster_aof = gcp.redis.Cluster("cluster-aof",
|
901
|
-
name="aof-cluster",
|
902
|
-
shard_count=3,
|
903
|
-
psc_configs=[{
|
904
|
-
"network": producer_net.id,
|
905
|
-
}],
|
906
|
-
region="us-central1",
|
907
|
-
replica_count=0,
|
908
|
-
node_type="REDIS_SHARED_CORE_NANO",
|
909
|
-
transit_encryption_mode="TRANSIT_ENCRYPTION_MODE_DISABLED",
|
910
|
-
authorization_mode="AUTH_MODE_DISABLED",
|
911
|
-
redis_configs={
|
912
|
-
"maxmemory-policy": "volatile-ttl",
|
913
|
-
},
|
914
|
-
deletion_protection_enabled=True,
|
915
|
-
zone_distribution_config={
|
916
|
-
"mode": "MULTI_ZONE",
|
917
|
-
},
|
918
|
-
maintenance_policy={
|
919
|
-
"weekly_maintenance_windows": [{
|
920
|
-
"day": "MONDAY",
|
921
|
-
"start_time": {
|
922
|
-
"hours": 1,
|
923
|
-
"minutes": 0,
|
924
|
-
"seconds": 0,
|
925
|
-
"nanos": 0,
|
926
|
-
},
|
927
|
-
}],
|
928
|
-
},
|
929
|
-
persistence_config={
|
930
|
-
"mode": "AOF",
|
931
|
-
"aof_config": {
|
932
|
-
"append_fsync": "EVERYSEC",
|
933
|
-
},
|
934
|
-
},
|
935
|
-
opts = pulumi.ResourceOptions(depends_on=[default]))
|
936
|
-
```
|
937
783
|
|
938
784
|
## Import
|
939
785
|
|
@@ -977,7 +823,6 @@ class Cluster(pulumi.CustomResource):
|
|
977
823
|
projects/{projectId}/locations/{locationId}/clusters/{clusterId}
|
978
824
|
:param pulumi.Input[str] node_type: The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values:
|
979
825
|
["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
|
980
|
-
:param pulumi.Input[Union['ClusterPersistenceConfigArgs', 'ClusterPersistenceConfigArgsDict']] persistence_config: Persistence config (RDB, AOF) for the cluster.
|
981
826
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ClusterPscConfigArgs', 'ClusterPscConfigArgsDict']]]] psc_configs: Required. Each PscConfig configures the consumer network where two
|
982
827
|
network addresses will be designated to the cluster for client access.
|
983
828
|
Currently, only one PscConfig is supported.
|
@@ -1112,127 +957,6 @@ class Cluster(pulumi.CustomResource):
|
|
1112
957
|
deletion_protection_enabled=True,
|
1113
958
|
opts = pulumi.ResourceOptions(depends_on=[default]))
|
1114
959
|
```
|
1115
|
-
### Redis Cluster Rdb
|
1116
|
-
|
1117
|
-
```python
|
1118
|
-
import pulumi
|
1119
|
-
import pulumi_gcp as gcp
|
1120
|
-
|
1121
|
-
producer_net = gcp.compute.Network("producer_net",
|
1122
|
-
name="mynetwork",
|
1123
|
-
auto_create_subnetworks=False)
|
1124
|
-
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
|
1125
|
-
name="mysubnet",
|
1126
|
-
ip_cidr_range="10.0.0.248/29",
|
1127
|
-
region="us-central1",
|
1128
|
-
network=producer_net.id)
|
1129
|
-
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
|
1130
|
-
name="mypolicy",
|
1131
|
-
location="us-central1",
|
1132
|
-
service_class="gcp-memorystore-redis",
|
1133
|
-
description="my basic service connection policy",
|
1134
|
-
network=producer_net.id,
|
1135
|
-
psc_config={
|
1136
|
-
"subnetworks": [producer_subnet.id],
|
1137
|
-
})
|
1138
|
-
cluster_rdb = gcp.redis.Cluster("cluster-rdb",
|
1139
|
-
name="rdb-cluster",
|
1140
|
-
shard_count=3,
|
1141
|
-
psc_configs=[{
|
1142
|
-
"network": producer_net.id,
|
1143
|
-
}],
|
1144
|
-
region="us-central1",
|
1145
|
-
replica_count=0,
|
1146
|
-
node_type="REDIS_SHARED_CORE_NANO",
|
1147
|
-
transit_encryption_mode="TRANSIT_ENCRYPTION_MODE_DISABLED",
|
1148
|
-
authorization_mode="AUTH_MODE_DISABLED",
|
1149
|
-
redis_configs={
|
1150
|
-
"maxmemory-policy": "volatile-ttl",
|
1151
|
-
},
|
1152
|
-
deletion_protection_enabled=True,
|
1153
|
-
zone_distribution_config={
|
1154
|
-
"mode": "MULTI_ZONE",
|
1155
|
-
},
|
1156
|
-
maintenance_policy={
|
1157
|
-
"weekly_maintenance_windows": [{
|
1158
|
-
"day": "MONDAY",
|
1159
|
-
"start_time": {
|
1160
|
-
"hours": 1,
|
1161
|
-
"minutes": 0,
|
1162
|
-
"seconds": 0,
|
1163
|
-
"nanos": 0,
|
1164
|
-
},
|
1165
|
-
}],
|
1166
|
-
},
|
1167
|
-
persistence_config={
|
1168
|
-
"mode": "RDB",
|
1169
|
-
"rdb_config": {
|
1170
|
-
"rdb_snapshot_period": "ONE_HOUR",
|
1171
|
-
"rdb_snapshot_start_time": "2024-10-02T15:01:23Z",
|
1172
|
-
},
|
1173
|
-
},
|
1174
|
-
opts = pulumi.ResourceOptions(depends_on=[default]))
|
1175
|
-
```
|
1176
|
-
### Redis Cluster Aof
|
1177
|
-
|
1178
|
-
```python
|
1179
|
-
import pulumi
|
1180
|
-
import pulumi_gcp as gcp
|
1181
|
-
|
1182
|
-
producer_net = gcp.compute.Network("producer_net",
|
1183
|
-
name="mynetwork",
|
1184
|
-
auto_create_subnetworks=False)
|
1185
|
-
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
|
1186
|
-
name="mysubnet",
|
1187
|
-
ip_cidr_range="10.0.0.248/29",
|
1188
|
-
region="us-central1",
|
1189
|
-
network=producer_net.id)
|
1190
|
-
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
|
1191
|
-
name="mypolicy",
|
1192
|
-
location="us-central1",
|
1193
|
-
service_class="gcp-memorystore-redis",
|
1194
|
-
description="my basic service connection policy",
|
1195
|
-
network=producer_net.id,
|
1196
|
-
psc_config={
|
1197
|
-
"subnetworks": [producer_subnet.id],
|
1198
|
-
})
|
1199
|
-
cluster_aof = gcp.redis.Cluster("cluster-aof",
|
1200
|
-
name="aof-cluster",
|
1201
|
-
shard_count=3,
|
1202
|
-
psc_configs=[{
|
1203
|
-
"network": producer_net.id,
|
1204
|
-
}],
|
1205
|
-
region="us-central1",
|
1206
|
-
replica_count=0,
|
1207
|
-
node_type="REDIS_SHARED_CORE_NANO",
|
1208
|
-
transit_encryption_mode="TRANSIT_ENCRYPTION_MODE_DISABLED",
|
1209
|
-
authorization_mode="AUTH_MODE_DISABLED",
|
1210
|
-
redis_configs={
|
1211
|
-
"maxmemory-policy": "volatile-ttl",
|
1212
|
-
},
|
1213
|
-
deletion_protection_enabled=True,
|
1214
|
-
zone_distribution_config={
|
1215
|
-
"mode": "MULTI_ZONE",
|
1216
|
-
},
|
1217
|
-
maintenance_policy={
|
1218
|
-
"weekly_maintenance_windows": [{
|
1219
|
-
"day": "MONDAY",
|
1220
|
-
"start_time": {
|
1221
|
-
"hours": 1,
|
1222
|
-
"minutes": 0,
|
1223
|
-
"seconds": 0,
|
1224
|
-
"nanos": 0,
|
1225
|
-
},
|
1226
|
-
}],
|
1227
|
-
},
|
1228
|
-
persistence_config={
|
1229
|
-
"mode": "AOF",
|
1230
|
-
"aof_config": {
|
1231
|
-
"append_fsync": "EVERYSEC",
|
1232
|
-
},
|
1233
|
-
},
|
1234
|
-
opts = pulumi.ResourceOptions(depends_on=[default]))
|
1235
|
-
```
|
1236
960
|
|
1237
961
|
## Import
|
1238
962
|
|
@@ -1284,7 +1008,6 @@ class Cluster(pulumi.CustomResource):
|
|
1284
1008
|
maintenance_policy: Optional[pulumi.Input[Union['ClusterMaintenancePolicyArgs', 'ClusterMaintenancePolicyArgsDict']]] = None,
|
1285
1009
|
name: Optional[pulumi.Input[str]] = None,
|
1286
1010
|
node_type: Optional[pulumi.Input[str]] = None,
|
1287
|
-
persistence_config: Optional[pulumi.Input[Union['ClusterPersistenceConfigArgs', 'ClusterPersistenceConfigArgsDict']]] = None,
|
1288
1011
|
project: Optional[pulumi.Input[str]] = None,
|
1289
1012
|
psc_configs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ClusterPscConfigArgs', 'ClusterPscConfigArgsDict']]]]] = None,
|
1290
1013
|
redis_configs: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
@@ -1307,7 +1030,6 @@ class Cluster(pulumi.CustomResource):
|
|
1307
1030
|
__props__.__dict__["maintenance_policy"] = maintenance_policy
|
1308
1031
|
__props__.__dict__["name"] = name
|
1309
1032
|
__props__.__dict__["node_type"] = node_type
|
1310
|
-
__props__.__dict__["persistence_config"] = persistence_config
|
1311
1033
|
__props__.__dict__["project"] = project
|
1312
1034
|
if psc_configs is None and not opts.urn:
|
1313
1035
|
raise TypeError("Missing required property 'psc_configs'")
|
@@ -1347,7 +1069,6 @@ class Cluster(pulumi.CustomResource):
|
|
1347
1069
|
maintenance_schedules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ClusterMaintenanceScheduleArgs', 'ClusterMaintenanceScheduleArgsDict']]]]] = None,
|
1348
1070
|
name: Optional[pulumi.Input[str]] = None,
|
1349
1071
|
node_type: Optional[pulumi.Input[str]] = None,
|
1350
|
-
persistence_config: Optional[pulumi.Input[Union['ClusterPersistenceConfigArgs', 'ClusterPersistenceConfigArgsDict']]] = None,
|
1351
1072
|
precise_size_gb: Optional[pulumi.Input[float]] = None,
|
1352
1073
|
project: Optional[pulumi.Input[str]] = None,
|
1353
1074
|
psc_configs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ClusterPscConfigArgs', 'ClusterPscConfigArgsDict']]]]] = None,
|
@@ -1388,7 +1109,6 @@ class Cluster(pulumi.CustomResource):
|
|
1388
1109
|
projects/{projectId}/locations/{locationId}/clusters/{clusterId}
|
1389
1110
|
:param pulumi.Input[str] node_type: The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values:
|
1390
1111
|
["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
|
1391
|
-
:param pulumi.Input[Union['ClusterPersistenceConfigArgs', 'ClusterPersistenceConfigArgsDict']] persistence_config: Persistence config (RDB, AOF) for the cluster.
|
1392
1112
|
:param pulumi.Input[float] precise_size_gb: Output only. Redis memory precise size in GB for the entire cluster.
|
1393
1113
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ClusterPscConfigArgs', 'ClusterPscConfigArgsDict']]]] psc_configs: Required. Each PscConfig configures the consumer network where two
|
1394
1114
|
network addresses will be designated to the cluster for client access.
|
@@ -1424,7 +1144,6 @@ class Cluster(pulumi.CustomResource):
|
|
1424
1144
|
__props__.__dict__["maintenance_schedules"] = maintenance_schedules
|
1425
1145
|
__props__.__dict__["name"] = name
|
1426
1146
|
__props__.__dict__["node_type"] = node_type
|
1427
|
-
__props__.__dict__["persistence_config"] = persistence_config
|
1428
1147
|
__props__.__dict__["precise_size_gb"] = precise_size_gb
|
1429
1148
|
__props__.__dict__["project"] = project
|
1430
1149
|
__props__.__dict__["psc_configs"] = psc_configs
|
@@ -1516,14 +1235,6 @@ class Cluster(pulumi.CustomResource):
|
|
1516
1235
|
"""
|
1517
1236
|
return pulumi.get(self, "node_type")
|
1518
1237
|
|
1519
|
-
@property
|
1520
|
-
@pulumi.getter(name="persistenceConfig")
|
1521
|
-
def persistence_config(self) -> pulumi.Output['outputs.ClusterPersistenceConfig']:
|
1522
|
-
"""
|
1523
|
-
Persistence config (RDB, AOF) for the cluster.
|
1524
|
-
"""
|
1525
|
-
return pulumi.get(self, "persistence_config")
|
1526
|
-
|
1527
1238
|
@property
|
1528
1239
|
@pulumi.getter(name="preciseSizeGb")
|
1529
1240
|
def precise_size_gb(self) -> pulumi.Output[float]:
|