pulumi-alicloud 3.84.0a1756507491__py3-none-any.whl → 3.84.0a1757017465__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.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +108 -0
- pulumi_alicloud/_inputs.py +635 -0
- pulumi_alicloud/ackone/membership_attachment.py +122 -0
- pulumi_alicloud/actiontrail/__init__.py +1 -0
- pulumi_alicloud/actiontrail/advanced_query_template.py +311 -0
- pulumi_alicloud/actiontrail/trail.py +303 -149
- pulumi_alicloud/actiontrail/trail_deprecated.py +131 -23
- pulumi_alicloud/alb/a_script.py +170 -0
- pulumi_alicloud/alb/get_rules.py +206 -0
- pulumi_alicloud/alb/listener.py +240 -0
- pulumi_alicloud/alb/listener_acl_attachment.py +180 -0
- pulumi_alicloud/alb/listener_additional_certificate_attachment.py +314 -0
- pulumi_alicloud/alb/load_balancer_access_log_config_attachment.py +136 -0
- pulumi_alicloud/alb/load_balancer_common_bandwidth_package_attachment.py +122 -0
- pulumi_alicloud/alb/load_balancer_zone_shifted_attachment.py +124 -0
- pulumi_alicloud/alb/rule.py +202 -0
- pulumi_alicloud/alikafka/sasl_user.py +2 -2
- pulumi_alicloud/apig/environment.py +86 -0
- pulumi_alicloud/arms/__init__.py +6 -0
- pulumi_alicloud/arms/addon_release.py +174 -0
- pulumi_alicloud/arms/env_feature.py +158 -0
- pulumi_alicloud/arms/env_pod_monitor.py +206 -0
- pulumi_alicloud/arms/env_service_monitor.py +204 -0
- pulumi_alicloud/arms/environment.py +150 -0
- pulumi_alicloud/arms/get_addon_releases.py +354 -0
- pulumi_alicloud/arms/get_env_custom_jobs.py +268 -0
- pulumi_alicloud/arms/get_env_features.py +342 -0
- pulumi_alicloud/arms/get_env_pod_monitors.py +390 -0
- pulumi_alicloud/arms/get_env_service_monitors.py +388 -0
- pulumi_alicloud/arms/get_environments.py +282 -0
- pulumi_alicloud/arms/outputs.py +620 -0
- pulumi_alicloud/arms/prometheus_monitoring.py +190 -0
- pulumi_alicloud/cen/transit_router_multicast_domain_member.py +118 -0
- pulumi_alicloud/cen/transit_router_multicast_domain_source.py +160 -0
- pulumi_alicloud/cfg/aggregate_delivery.py +100 -0
- pulumi_alicloud/cfg/delivery_channel.py +54 -0
- pulumi_alicloud/cloudauth/face_config.py +48 -0
- pulumi_alicloud/cloudfirewall/nat_firewall_control_policy.py +236 -0
- pulumi_alicloud/cloudmonitor/__init__.py +1 -0
- pulumi_alicloud/cloudmonitor/get_service_metric_alarm_rules.py +333 -0
- pulumi_alicloud/cloudmonitor/outputs.py +696 -0
- pulumi_alicloud/cloudsso/access_configuration.py +12 -12
- pulumi_alicloud/cloudsso/access_configuration_provisioning.py +84 -0
- pulumi_alicloud/cloudsso/access_management.py +90 -0
- pulumi_alicloud/cloudsso/group.py +60 -0
- pulumi_alicloud/cloudsso/user.py +66 -0
- pulumi_alicloud/cloudsso/user_attachment.py +82 -0
- pulumi_alicloud/cloudstoragegateway/express_sync.py +154 -0
- pulumi_alicloud/cloudstoragegateway/express_sync_share_attachment.py +160 -0
- pulumi_alicloud/cloudstoragegateway/gateway.py +0 -13
- pulumi_alicloud/cloudstoragegateway/gateway_block_volume.py +132 -0
- pulumi_alicloud/cloudstoragegateway/gateway_cache_disk.py +92 -0
- pulumi_alicloud/cloudstoragegateway/gateway_file_share.py +130 -0
- pulumi_alicloud/cloudstoragegateway/gateway_logging.py +120 -0
- pulumi_alicloud/cloudstoragegateway/gateway_smb_user.py +92 -0
- pulumi_alicloud/cms/alarm.py +4 -4
- pulumi_alicloud/cms/get_site_monitors.py +20 -20
- pulumi_alicloud/cms/hybrid_monitor_fc_task.py +24 -24
- pulumi_alicloud/cms/hybrid_monitor_sls_task.py +164 -0
- pulumi_alicloud/cms/site_monitor.py +20 -20
- pulumi_alicloud/cms/sls_group.py +80 -0
- pulumi_alicloud/compute/nest_service_instance.py +10 -10
- pulumi_alicloud/cs/_inputs.py +565 -0
- pulumi_alicloud/cs/autoscaling_config.py +260 -35
- pulumi_alicloud/cs/get_cluster_credential.py +30 -0
- pulumi_alicloud/cs/get_kubernetes_addon_metadata.py +78 -0
- pulumi_alicloud/cs/get_kubernetes_addons.py +72 -0
- pulumi_alicloud/cs/get_kubernetes_node_pools.py +124 -0
- pulumi_alicloud/cs/kubernetes.py +296 -0
- pulumi_alicloud/cs/kubernetes_addon.py +108 -0
- pulumi_alicloud/cs/kubernetes_permission.py +162 -0
- pulumi_alicloud/cs/managed_kubernetes.py +583 -14
- pulumi_alicloud/cs/node_pool.py +416 -0
- pulumi_alicloud/cs/outputs.py +374 -0
- pulumi_alicloud/dataworks/data_source_shared_rule.py +116 -0
- pulumi_alicloud/dataworks/dw_resource_group.py +82 -0
- pulumi_alicloud/dataworks/network.py +100 -0
- pulumi_alicloud/ddos/domain_resource.py +6 -6
- pulumi_alicloud/directmail/mail_address.py +62 -0
- pulumi_alicloud/directmail/receivers.py +40 -0
- pulumi_alicloud/dns/access_strategy.py +152 -0
- pulumi_alicloud/dns/address_pool.py +4 -4
- pulumi_alicloud/dts/job_monitor_rule.py +228 -0
- pulumi_alicloud/dts/migration_job.py +238 -0
- pulumi_alicloud/dts/synchronization_job.py +266 -14
- pulumi_alicloud/ebs/disk_replica_pair.py +112 -0
- pulumi_alicloud/ecs/ecs_network_interface_permission.py +84 -0
- pulumi_alicloud/ecs/image_import.py +2 -2
- pulumi_alicloud/ecs/ram_role_attachment.py +28 -28
- pulumi_alicloud/edas/k8s_application.py +124 -0
- pulumi_alicloud/edas/k8s_cluster.py +104 -0
- pulumi_alicloud/edas/k8s_slb_attachment.py +152 -0
- pulumi_alicloud/eflo/__init__.py +2 -0
- pulumi_alicloud/eflo/_inputs.py +94 -0
- pulumi_alicloud/eflo/er.py +487 -0
- pulumi_alicloud/eflo/node_group_attachment.py +604 -0
- pulumi_alicloud/eflo/outputs.py +75 -0
- pulumi_alicloud/emr/cluster.py +64 -64
- pulumi_alicloud/emr/get_clusters.py +16 -16
- pulumi_alicloud/emrv2/cluster.py +16 -16
- pulumi_alicloud/emrv2/get_cluster_instances.py +16 -16
- pulumi_alicloud/esa/__init__.py +4 -0
- pulumi_alicloud/esa/origin_ca_certificate.py +441 -0
- pulumi_alicloud/esa/origin_client_certificate.py +564 -0
- pulumi_alicloud/esa/origin_protection.py +290 -0
- pulumi_alicloud/esa/site_origin_client_certificate.py +515 -0
- pulumi_alicloud/eventbridge/rule.py +102 -0
- pulumi_alicloud/fc/_inputs.py +77 -3
- pulumi_alicloud/fc/custom_domain.py +14 -14
- pulumi_alicloud/fc/function.py +14 -14
- pulumi_alicloud/fc/function_async_invoke_config.py +48 -48
- pulumi_alicloud/fc/outputs.py +63 -2
- pulumi_alicloud/fc/trigger.py +100 -100
- pulumi_alicloud/fc/v3_async_invoke_config.py +154 -0
- pulumi_alicloud/fc/v3_function.py +189 -3
- pulumi_alicloud/fc/v3_function_version.py +30 -2
- pulumi_alicloud/fnf/execution.py +14 -14
- pulumi_alicloud/fnf/flow.py +14 -14
- pulumi_alicloud/ga/additional_certificate.py +236 -0
- pulumi_alicloud/gpdb/hadoop_data_source.py +16 -16
- pulumi_alicloud/gpdb/streaming_job.py +4 -4
- pulumi_alicloud/gwlb/listener.py +172 -0
- pulumi_alicloud/gwlb/load_balancer.py +96 -0
- pulumi_alicloud/gwlb/server_group.py +160 -0
- pulumi_alicloud/hbr/ecs_backup_plan.py +4 -4
- pulumi_alicloud/hbr/ots_backup_plan.py +28 -28
- pulumi_alicloud/hbr/restore_job.py +4 -4
- pulumi_alicloud/imm/project.py +14 -14
- pulumi_alicloud/kms/get_aliases.py +6 -6
- pulumi_alicloud/kms/get_instances.py +178 -0
- pulumi_alicloud/kms/instance.py +423 -16
- pulumi_alicloud/kms/policy.py +96 -0
- pulumi_alicloud/log/dashboard.py +40 -40
- pulumi_alicloud/log/ingestion.py +38 -38
- pulumi_alicloud/log/log_tail_attachment.py +20 -20
- pulumi_alicloud/log/log_tail_config.py +20 -20
- pulumi_alicloud/log/project.py +20 -20
- pulumi_alicloud/log/resource.py +22 -22
- pulumi_alicloud/log/resource_record.py +40 -40
- pulumi_alicloud/maxcompute/get_service.py +2 -2
- pulumi_alicloud/message/__init__.py +1 -0
- pulumi_alicloud/message/_inputs.py +141 -0
- pulumi_alicloud/message/outputs.py +120 -0
- pulumi_alicloud/message/service_event_rule.py +490 -0
- pulumi_alicloud/mongodb/__init__.py +1 -0
- pulumi_alicloud/mongodb/global_security_ip_group.py +304 -0
- pulumi_alicloud/mongodb/instance.py +47 -0
- pulumi_alicloud/mongodb/sharding_instance.py +47 -0
- pulumi_alicloud/msc_sub_webhook.py +44 -0
- pulumi_alicloud/mse/cluster.py +47 -0
- pulumi_alicloud/mse/gateway.py +62 -0
- pulumi_alicloud/nas/access_group.py +46 -18
- pulumi_alicloud/nas/access_rule.py +28 -0
- pulumi_alicloud/nas/data_flow.py +114 -0
- pulumi_alicloud/nlb/listener_additional_certificate_attachment.py +328 -0
- pulumi_alicloud/oos/execution.py +30 -30
- pulumi_alicloud/oos/get_parameters.py +10 -10
- pulumi_alicloud/oos/get_secret_parameters.py +10 -10
- pulumi_alicloud/oos/template.py +28 -28
- pulumi_alicloud/oss/bucket.py +578 -0
- pulumi_alicloud/oss/bucket_replication.py +56 -56
- pulumi_alicloud/outputs.py +489 -0
- pulumi_alicloud/pai/flow_pipeline.py +70 -70
- pulumi_alicloud/pai/workspace_datasetversion.py +108 -0
- pulumi_alicloud/pai/workspace_run.py +62 -0
- pulumi_alicloud/polardb/cluster.py +7 -7
- pulumi_alicloud/privatelink/vpc_endpoint_service.py +11 -11
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/endpoint.py +96 -0
- pulumi_alicloud/pvtz/rule.py +122 -0
- pulumi_alicloud/pvtz/rule_attachment.py +150 -0
- pulumi_alicloud/ram/get_policies.py +18 -18
- pulumi_alicloud/ram/get_policy_document.py +2 -2
- pulumi_alicloud/ram/get_role_policy_attachments.py +34 -34
- pulumi_alicloud/ram/get_users.py +32 -32
- pulumi_alicloud/ram/group_membership.py +74 -0
- pulumi_alicloud/ram/group_policy_attachment.py +18 -18
- pulumi_alicloud/ram/policy.py +18 -18
- pulumi_alicloud/ram/role.py +16 -16
- pulumi_alicloud/ram/role_attachment.py +14 -14
- pulumi_alicloud/ram/role_policy_attachment.py +34 -34
- pulumi_alicloud/ram/user_policy_attachment.py +18 -18
- pulumi_alicloud/rds/get_instance_classes.py +6 -4
- pulumi_alicloud/rds/outputs.py +4 -0
- pulumi_alicloud/rds/rds_clone_db_instance.py +8 -1
- pulumi_alicloud/resourcemanager/auto_grouping_rule.py +24 -24
- pulumi_alicloud/resourcemanager/control_policy.py +18 -18
- pulumi_alicloud/resourcemanager/control_policy_attachment.py +18 -18
- pulumi_alicloud/resourcemanager/get_shared_resources.py +64 -0
- pulumi_alicloud/resourcemanager/policy.py +16 -16
- pulumi_alicloud/resourcemanager/policy_attachment.py +82 -0
- pulumi_alicloud/resourcemanager/policy_version.py +32 -32
- pulumi_alicloud/resourcemanager/role.py +14 -14
- pulumi_alicloud/rocketmq/qos_policy.py +70 -0
- pulumi_alicloud/ros/_inputs.py +70 -18
- pulumi_alicloud/ros/outputs.py +59 -12
- pulumi_alicloud/ros/stack.py +14 -14
- pulumi_alicloud/ros/stack_group.py +342 -223
- pulumi_alicloud/ros/template.py +2 -2
- pulumi_alicloud/sag/qos_policy.py +70 -0
- pulumi_alicloud/sddp/data_limit.py +148 -0
- pulumi_alicloud/sddp/rule.py +10 -10
- pulumi_alicloud/servicecatalog/principal_portfolio_association.py +16 -16
- pulumi_alicloud/servicecatalog/product_portfolio_association.py +54 -0
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/collection_policy.py +276 -0
- pulumi_alicloud/sls/get_etls.py +294 -0
- pulumi_alicloud/sls/oss_export_sink.py +134 -0
- pulumi_alicloud/sls/outputs.py +277 -0
- pulumi_alicloud/sslcertificatesservice/__init__.py +9 -0
- pulumi_alicloud/sslcertificatesservice/pca_certificate.py +646 -0
- pulumi_alicloud/star_rocks_instance.py +1425 -0
- pulumi_alicloud/tag/policy.py +2 -2
- pulumi_alicloud/tag/policy_attachment.py +2 -2
- pulumi_alicloud/threatdetection/__init__.py +1 -0
- pulumi_alicloud/threatdetection/_inputs.py +183 -0
- pulumi_alicloud/threatdetection/anti_brute_force_rule.py +50 -1
- pulumi_alicloud/threatdetection/attack_path_sensitive_asset_config.py +218 -0
- pulumi_alicloud/threatdetection/image_event_operation.py +191 -90
- pulumi_alicloud/threatdetection/oss_scan_config.py +257 -65
- pulumi_alicloud/threatdetection/outputs.py +147 -0
- pulumi_alicloud/vod/editing_project.py +8 -8
- pulumi_alicloud/vpc/common_bandwith_package.py +28 -0
- pulumi_alicloud/vpc/flow_log.py +92 -0
- pulumi_alicloud/vpc/gateway_endpoint.py +12 -12
- pulumi_alicloud/vpc/gateway_endpoint_route_table_attachment.py +12 -12
- pulumi_alicloud/vpc/ipam_ipam_pool.py +54 -0
- pulumi_alicloud/vpc/route_entry.py +6 -2
- pulumi_alicloud/vpc/vbr_ha.py +100 -0
- pulumi_alicloud/vpc/vpc_network_acl_attachment.py +48 -0
- pulumi_alicloud/vpn/get_gateways.py +98 -0
- pulumi_alicloud/vpn/ssl_vpn_client_cert.py +82 -0
- pulumi_alicloud/vpn/ssl_vpn_server.py +76 -0
- pulumi_alicloud/wafv3/__init__.py +1 -0
- pulumi_alicloud/wafv3/_inputs.py +1318 -182
- pulumi_alicloud/wafv3/defense_rule.py +806 -0
- pulumi_alicloud/wafv3/defense_template.py +87 -124
- pulumi_alicloud/wafv3/domain.py +136 -35
- pulumi_alicloud/wafv3/outputs.py +925 -123
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/RECORD +243 -221
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/top_level.txt +0 -0
pulumi_alicloud/kms/instance.py
CHANGED
|
@@ -35,12 +35,13 @@ class InstanceArgs:
|
|
|
35
35
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
36
36
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
37
37
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
38
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
38
39
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
39
40
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
40
41
|
vpc_num: Optional[pulumi.Input[_builtins.int]] = None):
|
|
41
42
|
"""
|
|
42
43
|
The set of arguments for constructing a Instance resource.
|
|
43
|
-
:param pulumi.Input[_builtins.str] vpc_id:
|
|
44
|
+
:param pulumi.Input[_builtins.str] vpc_id: The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
44
45
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] vswitch_ids: Instance bind vswitches
|
|
45
46
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] zone_ids: zone id
|
|
46
47
|
:param pulumi.Input[Sequence[pulumi.Input['InstanceBindVpcArgs']]] bind_vpcs: Aucillary VPCs used to access this KMS instance See `bind_vpcs` below.
|
|
@@ -49,13 +50,16 @@ class InstanceArgs:
|
|
|
49
50
|
:param pulumi.Input[_builtins.int] key_num: Maximum number of stored keys. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
50
51
|
:param pulumi.Input[_builtins.str] log: Instance Audit Log Switch. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
51
52
|
:param pulumi.Input[_builtins.int] log_storage: Instance log capacity. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
52
|
-
:param pulumi.Input[_builtins.str] payment_type: Payment type,valid values:
|
|
53
|
+
:param pulumi.Input[_builtins.str] payment_type: Payment type, valid values:
|
|
53
54
|
- `Subscription`: Prepaid.
|
|
54
55
|
- `PayAsYouGo`: Postpaid.
|
|
55
56
|
:param pulumi.Input[_builtins.int] period: Purchase cycle, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
56
57
|
:param pulumi.Input[_builtins.str] product_version: KMS Instance commodity type (software/hardware)
|
|
57
58
|
:param pulumi.Input[_builtins.int] renew_period: Automatic renewal period, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
58
59
|
:param pulumi.Input[_builtins.str] renew_status: Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
60
|
+
:param pulumi.Input[_builtins.str] renewal_period_unit: Automatic renewal period unit, valid value:
|
|
61
|
+
- `M`: Month.
|
|
62
|
+
- `Y`: Year.
|
|
59
63
|
:param pulumi.Input[_builtins.int] secret_num: Maximum number of Secrets. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
60
64
|
:param pulumi.Input[_builtins.int] spec: The computation performance level of the KMS instance. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
61
65
|
:param pulumi.Input[_builtins.int] vpc_num: The number of managed accesses. The maximum number of VPCs that can access this KMS instance. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
@@ -85,6 +89,8 @@ class InstanceArgs:
|
|
|
85
89
|
pulumi.set(__self__, "renew_period", renew_period)
|
|
86
90
|
if renew_status is not None:
|
|
87
91
|
pulumi.set(__self__, "renew_status", renew_status)
|
|
92
|
+
if renewal_period_unit is not None:
|
|
93
|
+
pulumi.set(__self__, "renewal_period_unit", renewal_period_unit)
|
|
88
94
|
if secret_num is not None:
|
|
89
95
|
pulumi.set(__self__, "secret_num", secret_num)
|
|
90
96
|
if spec is not None:
|
|
@@ -96,7 +102,7 @@ class InstanceArgs:
|
|
|
96
102
|
@pulumi.getter(name="vpcId")
|
|
97
103
|
def vpc_id(self) -> pulumi.Input[_builtins.str]:
|
|
98
104
|
"""
|
|
99
|
-
|
|
105
|
+
The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
100
106
|
"""
|
|
101
107
|
return pulumi.get(self, "vpc_id")
|
|
102
108
|
|
|
@@ -204,7 +210,7 @@ class InstanceArgs:
|
|
|
204
210
|
@pulumi.getter(name="paymentType")
|
|
205
211
|
def payment_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
206
212
|
"""
|
|
207
|
-
Payment type,valid values:
|
|
213
|
+
Payment type, valid values:
|
|
208
214
|
- `Subscription`: Prepaid.
|
|
209
215
|
- `PayAsYouGo`: Postpaid.
|
|
210
216
|
"""
|
|
@@ -262,6 +268,20 @@ class InstanceArgs:
|
|
|
262
268
|
def renew_status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
263
269
|
pulumi.set(self, "renew_status", value)
|
|
264
270
|
|
|
271
|
+
@_builtins.property
|
|
272
|
+
@pulumi.getter(name="renewalPeriodUnit")
|
|
273
|
+
def renewal_period_unit(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
274
|
+
"""
|
|
275
|
+
Automatic renewal period unit, valid value:
|
|
276
|
+
- `M`: Month.
|
|
277
|
+
- `Y`: Year.
|
|
278
|
+
"""
|
|
279
|
+
return pulumi.get(self, "renewal_period_unit")
|
|
280
|
+
|
|
281
|
+
@renewal_period_unit.setter
|
|
282
|
+
def renewal_period_unit(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
283
|
+
pulumi.set(self, "renewal_period_unit", value)
|
|
284
|
+
|
|
265
285
|
@_builtins.property
|
|
266
286
|
@pulumi.getter(name="secretNum")
|
|
267
287
|
def secret_num(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
@@ -316,6 +336,7 @@ class _InstanceState:
|
|
|
316
336
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
317
337
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
318
338
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
339
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
319
340
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
320
341
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
321
342
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -334,17 +355,20 @@ class _InstanceState:
|
|
|
334
355
|
:param pulumi.Input[_builtins.int] key_num: Maximum number of stored keys. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
335
356
|
:param pulumi.Input[_builtins.str] log: Instance Audit Log Switch. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
336
357
|
:param pulumi.Input[_builtins.int] log_storage: Instance log capacity. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
337
|
-
:param pulumi.Input[_builtins.str] payment_type: Payment type,valid values:
|
|
358
|
+
:param pulumi.Input[_builtins.str] payment_type: Payment type, valid values:
|
|
338
359
|
- `Subscription`: Prepaid.
|
|
339
360
|
- `PayAsYouGo`: Postpaid.
|
|
340
361
|
:param pulumi.Input[_builtins.int] period: Purchase cycle, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
341
362
|
:param pulumi.Input[_builtins.str] product_version: KMS Instance commodity type (software/hardware)
|
|
342
363
|
:param pulumi.Input[_builtins.int] renew_period: Automatic renewal period, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
343
364
|
:param pulumi.Input[_builtins.str] renew_status: Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
365
|
+
:param pulumi.Input[_builtins.str] renewal_period_unit: Automatic renewal period unit, valid value:
|
|
366
|
+
- `M`: Month.
|
|
367
|
+
- `Y`: Year.
|
|
344
368
|
:param pulumi.Input[_builtins.int] secret_num: Maximum number of Secrets. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
345
369
|
:param pulumi.Input[_builtins.int] spec: The computation performance level of the KMS instance. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
346
370
|
:param pulumi.Input[_builtins.str] status: Instance status.
|
|
347
|
-
:param pulumi.Input[_builtins.str] vpc_id:
|
|
371
|
+
:param pulumi.Input[_builtins.str] vpc_id: The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
348
372
|
:param pulumi.Input[_builtins.int] vpc_num: The number of managed accesses. The maximum number of VPCs that can access this KMS instance. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
349
373
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] vswitch_ids: Instance bind vswitches
|
|
350
374
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] zone_ids: zone id
|
|
@@ -377,6 +401,8 @@ class _InstanceState:
|
|
|
377
401
|
pulumi.set(__self__, "renew_period", renew_period)
|
|
378
402
|
if renew_status is not None:
|
|
379
403
|
pulumi.set(__self__, "renew_status", renew_status)
|
|
404
|
+
if renewal_period_unit is not None:
|
|
405
|
+
pulumi.set(__self__, "renewal_period_unit", renewal_period_unit)
|
|
380
406
|
if secret_num is not None:
|
|
381
407
|
pulumi.set(__self__, "secret_num", secret_num)
|
|
382
408
|
if spec is not None:
|
|
@@ -504,7 +530,7 @@ class _InstanceState:
|
|
|
504
530
|
@pulumi.getter(name="paymentType")
|
|
505
531
|
def payment_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
506
532
|
"""
|
|
507
|
-
Payment type,valid values:
|
|
533
|
+
Payment type, valid values:
|
|
508
534
|
- `Subscription`: Prepaid.
|
|
509
535
|
- `PayAsYouGo`: Postpaid.
|
|
510
536
|
"""
|
|
@@ -562,6 +588,20 @@ class _InstanceState:
|
|
|
562
588
|
def renew_status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
563
589
|
pulumi.set(self, "renew_status", value)
|
|
564
590
|
|
|
591
|
+
@_builtins.property
|
|
592
|
+
@pulumi.getter(name="renewalPeriodUnit")
|
|
593
|
+
def renewal_period_unit(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
594
|
+
"""
|
|
595
|
+
Automatic renewal period unit, valid value:
|
|
596
|
+
- `M`: Month.
|
|
597
|
+
- `Y`: Year.
|
|
598
|
+
"""
|
|
599
|
+
return pulumi.get(self, "renewal_period_unit")
|
|
600
|
+
|
|
601
|
+
@renewal_period_unit.setter
|
|
602
|
+
def renewal_period_unit(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
603
|
+
pulumi.set(self, "renewal_period_unit", value)
|
|
604
|
+
|
|
565
605
|
@_builtins.property
|
|
566
606
|
@pulumi.getter(name="secretNum")
|
|
567
607
|
def secret_num(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
@@ -602,7 +642,7 @@ class _InstanceState:
|
|
|
602
642
|
@pulumi.getter(name="vpcId")
|
|
603
643
|
def vpc_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
604
644
|
"""
|
|
605
|
-
|
|
645
|
+
The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
606
646
|
"""
|
|
607
647
|
return pulumi.get(self, "vpc_id")
|
|
608
648
|
|
|
@@ -664,6 +704,7 @@ class Instance(pulumi.CustomResource):
|
|
|
664
704
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
665
705
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
666
706
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
707
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
667
708
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
668
709
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
669
710
|
vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -678,6 +719,179 @@ class Instance(pulumi.CustomResource):
|
|
|
678
719
|
|
|
679
720
|
> **NOTE:** Available since v1.210.0.
|
|
680
721
|
|
|
722
|
+
## Example Usage
|
|
723
|
+
|
|
724
|
+
Create a subscription kms instance
|
|
725
|
+
|
|
726
|
+
```python
|
|
727
|
+
import pulumi
|
|
728
|
+
import pulumi_alicloud as alicloud
|
|
729
|
+
import pulumi_std as std
|
|
730
|
+
|
|
731
|
+
config = pulumi.Config()
|
|
732
|
+
region = config.get("region")
|
|
733
|
+
if region is None:
|
|
734
|
+
region = "cn-hangzhou"
|
|
735
|
+
name = config.get("name")
|
|
736
|
+
if name is None:
|
|
737
|
+
name = "terraform-example"
|
|
738
|
+
current = alicloud.get_account()
|
|
739
|
+
vpc_amp_instance_example = alicloud.vpc.Network("vpc-amp-instance-example",
|
|
740
|
+
cidr_block="172.16.0.0/12",
|
|
741
|
+
vpc_name=name)
|
|
742
|
+
vswitch = alicloud.vpc.Switch("vswitch",
|
|
743
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
744
|
+
zone_id="cn-hangzhou-k",
|
|
745
|
+
cidr_block="172.16.1.0/24")
|
|
746
|
+
vswitch_j = alicloud.vpc.Switch("vswitch-j",
|
|
747
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
748
|
+
zone_id="cn-hangzhou-j",
|
|
749
|
+
cidr_block="172.16.2.0/24")
|
|
750
|
+
share_vpc = alicloud.vpc.Network("shareVPC",
|
|
751
|
+
cidr_block="172.16.0.0/12",
|
|
752
|
+
vpc_name=std.format(input="%s3",
|
|
753
|
+
args=[name]).result)
|
|
754
|
+
share_vswitch = alicloud.vpc.Switch("shareVswitch",
|
|
755
|
+
vpc_id=share_vpc.id,
|
|
756
|
+
zone_id="cn-hangzhou-k",
|
|
757
|
+
cidr_block="172.16.1.0/24")
|
|
758
|
+
share__vpc2 = alicloud.vpc.Network("share-VPC2",
|
|
759
|
+
cidr_block="172.16.0.0/12",
|
|
760
|
+
vpc_name=std.format(input="%s5",
|
|
761
|
+
args=[name]).result)
|
|
762
|
+
share_vswitch2 = alicloud.vpc.Switch("share-vswitch2",
|
|
763
|
+
vpc_id=share__vpc2.id,
|
|
764
|
+
zone_id="cn-hangzhou-k",
|
|
765
|
+
cidr_block="172.16.1.0/24")
|
|
766
|
+
share__vpc3 = alicloud.vpc.Network("share-VPC3",
|
|
767
|
+
cidr_block="172.16.0.0/12",
|
|
768
|
+
vpc_name=std.format(input="%s7",
|
|
769
|
+
args=[name]).result)
|
|
770
|
+
share_vsw3 = alicloud.vpc.Switch("share-vsw3",
|
|
771
|
+
vpc_id=share__vpc3.id,
|
|
772
|
+
zone_id="cn-hangzhou-k",
|
|
773
|
+
cidr_block="172.16.1.0/24")
|
|
774
|
+
default = alicloud.kms.Instance("default",
|
|
775
|
+
vpc_num=7,
|
|
776
|
+
key_num=1000,
|
|
777
|
+
secret_num=0,
|
|
778
|
+
spec=1000,
|
|
779
|
+
renew_status="ManualRenewal",
|
|
780
|
+
product_version="3",
|
|
781
|
+
renew_period=3,
|
|
782
|
+
vpc_id=vswitch.vpc_id,
|
|
783
|
+
zone_ids=[
|
|
784
|
+
"cn-hangzhou-k",
|
|
785
|
+
"cn-hangzhou-j",
|
|
786
|
+
],
|
|
787
|
+
vswitch_ids=[vswitch_j.id],
|
|
788
|
+
bind_vpcs=[
|
|
789
|
+
{
|
|
790
|
+
"vpc_id": share_vswitch.vpc_id,
|
|
791
|
+
"region_id": region,
|
|
792
|
+
"vswitch_id": share_vswitch.id,
|
|
793
|
+
"vpc_owner_id": current.id,
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"vpc_id": share_vswitch2.vpc_id,
|
|
797
|
+
"region_id": region,
|
|
798
|
+
"vswitch_id": share_vswitch2.id,
|
|
799
|
+
"vpc_owner_id": current.id,
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"vpc_id": share_vsw3.vpc_id,
|
|
803
|
+
"region_id": region,
|
|
804
|
+
"vswitch_id": share_vsw3.id,
|
|
805
|
+
"vpc_owner_id": current.id,
|
|
806
|
+
},
|
|
807
|
+
],
|
|
808
|
+
log="0",
|
|
809
|
+
period=1,
|
|
810
|
+
log_storage=0,
|
|
811
|
+
payment_type="Subscription")
|
|
812
|
+
```
|
|
813
|
+
Create a pay-as-you-go kms instance
|
|
814
|
+
|
|
815
|
+
```python
|
|
816
|
+
import pulumi
|
|
817
|
+
import pulumi_alicloud as alicloud
|
|
818
|
+
import pulumi_std as std
|
|
819
|
+
|
|
820
|
+
config = pulumi.Config()
|
|
821
|
+
region = config.get("region")
|
|
822
|
+
if region is None:
|
|
823
|
+
region = "cn-hangzhou"
|
|
824
|
+
name = config.get("name")
|
|
825
|
+
if name is None:
|
|
826
|
+
name = "terraform-example"
|
|
827
|
+
current = alicloud.get_account()
|
|
828
|
+
vpc_amp_instance_example = alicloud.vpc.Network("vpc-amp-instance-example",
|
|
829
|
+
cidr_block="172.16.0.0/12",
|
|
830
|
+
vpc_name=name)
|
|
831
|
+
vswitch = alicloud.vpc.Switch("vswitch",
|
|
832
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
833
|
+
zone_id="cn-hangzhou-k",
|
|
834
|
+
cidr_block="172.16.1.0/24")
|
|
835
|
+
vswitch_j = alicloud.vpc.Switch("vswitch-j",
|
|
836
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
837
|
+
zone_id="cn-hangzhou-j",
|
|
838
|
+
cidr_block="172.16.2.0/24")
|
|
839
|
+
share_vpc = alicloud.vpc.Network("shareVPC",
|
|
840
|
+
cidr_block="172.16.0.0/12",
|
|
841
|
+
vpc_name=std.format(input="%s3",
|
|
842
|
+
args=[name]).result)
|
|
843
|
+
share_vswitch = alicloud.vpc.Switch("shareVswitch",
|
|
844
|
+
vpc_id=share_vpc.id,
|
|
845
|
+
zone_id="cn-hangzhou-k",
|
|
846
|
+
cidr_block="172.16.1.0/24")
|
|
847
|
+
share__vpc2 = alicloud.vpc.Network("share-VPC2",
|
|
848
|
+
cidr_block="172.16.0.0/12",
|
|
849
|
+
vpc_name=std.format(input="%s5",
|
|
850
|
+
args=[name]).result)
|
|
851
|
+
share_vswitch2 = alicloud.vpc.Switch("share-vswitch2",
|
|
852
|
+
vpc_id=share__vpc2.id,
|
|
853
|
+
zone_id="cn-hangzhou-k",
|
|
854
|
+
cidr_block="172.16.1.0/24")
|
|
855
|
+
share__vpc3 = alicloud.vpc.Network("share-VPC3",
|
|
856
|
+
cidr_block="172.16.0.0/12",
|
|
857
|
+
vpc_name=std.format(input="%s7",
|
|
858
|
+
args=[name]).result)
|
|
859
|
+
share_vsw3 = alicloud.vpc.Switch("share-vsw3",
|
|
860
|
+
vpc_id=share__vpc3.id,
|
|
861
|
+
zone_id="cn-hangzhou-k",
|
|
862
|
+
cidr_block="172.16.1.0/24")
|
|
863
|
+
default = alicloud.kms.Instance("default",
|
|
864
|
+
payment_type="PayAsYouGo",
|
|
865
|
+
product_version="3",
|
|
866
|
+
vpc_id=vswitch.vpc_id,
|
|
867
|
+
zone_ids=[
|
|
868
|
+
vswitch.zone_id,
|
|
869
|
+
vswitch_j.zone_id,
|
|
870
|
+
],
|
|
871
|
+
vswitch_ids=[vswitch.id],
|
|
872
|
+
force_delete_without_backup="true",
|
|
873
|
+
bind_vpcs=[
|
|
874
|
+
{
|
|
875
|
+
"vpc_id": share_vswitch.vpc_id,
|
|
876
|
+
"region_id": region,
|
|
877
|
+
"vswitch_id": share_vswitch.id,
|
|
878
|
+
"vpc_owner_id": current.id,
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"vpc_id": share_vswitch2.vpc_id,
|
|
882
|
+
"region_id": region,
|
|
883
|
+
"vswitch_id": share_vswitch2.id,
|
|
884
|
+
"vpc_owner_id": current.id,
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"vpc_id": share_vsw3.vpc_id,
|
|
888
|
+
"region_id": region,
|
|
889
|
+
"vswitch_id": share_vsw3.id,
|
|
890
|
+
"vpc_owner_id": current.id,
|
|
891
|
+
},
|
|
892
|
+
])
|
|
893
|
+
```
|
|
894
|
+
|
|
681
895
|
## Import
|
|
682
896
|
|
|
683
897
|
KMS Instance can be imported using the id, e.g.
|
|
@@ -694,16 +908,19 @@ class Instance(pulumi.CustomResource):
|
|
|
694
908
|
:param pulumi.Input[_builtins.int] key_num: Maximum number of stored keys. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
695
909
|
:param pulumi.Input[_builtins.str] log: Instance Audit Log Switch. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
696
910
|
:param pulumi.Input[_builtins.int] log_storage: Instance log capacity. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
697
|
-
:param pulumi.Input[_builtins.str] payment_type: Payment type,valid values:
|
|
911
|
+
:param pulumi.Input[_builtins.str] payment_type: Payment type, valid values:
|
|
698
912
|
- `Subscription`: Prepaid.
|
|
699
913
|
- `PayAsYouGo`: Postpaid.
|
|
700
914
|
:param pulumi.Input[_builtins.int] period: Purchase cycle, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
701
915
|
:param pulumi.Input[_builtins.str] product_version: KMS Instance commodity type (software/hardware)
|
|
702
916
|
:param pulumi.Input[_builtins.int] renew_period: Automatic renewal period, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
703
917
|
:param pulumi.Input[_builtins.str] renew_status: Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
918
|
+
:param pulumi.Input[_builtins.str] renewal_period_unit: Automatic renewal period unit, valid value:
|
|
919
|
+
- `M`: Month.
|
|
920
|
+
- `Y`: Year.
|
|
704
921
|
:param pulumi.Input[_builtins.int] secret_num: Maximum number of Secrets. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
705
922
|
:param pulumi.Input[_builtins.int] spec: The computation performance level of the KMS instance. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
706
|
-
:param pulumi.Input[_builtins.str] vpc_id:
|
|
923
|
+
:param pulumi.Input[_builtins.str] vpc_id: The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
707
924
|
:param pulumi.Input[_builtins.int] vpc_num: The number of managed accesses. The maximum number of VPCs that can access this KMS instance. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
708
925
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] vswitch_ids: Instance bind vswitches
|
|
709
926
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] zone_ids: zone id
|
|
@@ -721,6 +938,179 @@ class Instance(pulumi.CustomResource):
|
|
|
721
938
|
|
|
722
939
|
> **NOTE:** Available since v1.210.0.
|
|
723
940
|
|
|
941
|
+
## Example Usage
|
|
942
|
+
|
|
943
|
+
Create a subscription kms instance
|
|
944
|
+
|
|
945
|
+
```python
|
|
946
|
+
import pulumi
|
|
947
|
+
import pulumi_alicloud as alicloud
|
|
948
|
+
import pulumi_std as std
|
|
949
|
+
|
|
950
|
+
config = pulumi.Config()
|
|
951
|
+
region = config.get("region")
|
|
952
|
+
if region is None:
|
|
953
|
+
region = "cn-hangzhou"
|
|
954
|
+
name = config.get("name")
|
|
955
|
+
if name is None:
|
|
956
|
+
name = "terraform-example"
|
|
957
|
+
current = alicloud.get_account()
|
|
958
|
+
vpc_amp_instance_example = alicloud.vpc.Network("vpc-amp-instance-example",
|
|
959
|
+
cidr_block="172.16.0.0/12",
|
|
960
|
+
vpc_name=name)
|
|
961
|
+
vswitch = alicloud.vpc.Switch("vswitch",
|
|
962
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
963
|
+
zone_id="cn-hangzhou-k",
|
|
964
|
+
cidr_block="172.16.1.0/24")
|
|
965
|
+
vswitch_j = alicloud.vpc.Switch("vswitch-j",
|
|
966
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
967
|
+
zone_id="cn-hangzhou-j",
|
|
968
|
+
cidr_block="172.16.2.0/24")
|
|
969
|
+
share_vpc = alicloud.vpc.Network("shareVPC",
|
|
970
|
+
cidr_block="172.16.0.0/12",
|
|
971
|
+
vpc_name=std.format(input="%s3",
|
|
972
|
+
args=[name]).result)
|
|
973
|
+
share_vswitch = alicloud.vpc.Switch("shareVswitch",
|
|
974
|
+
vpc_id=share_vpc.id,
|
|
975
|
+
zone_id="cn-hangzhou-k",
|
|
976
|
+
cidr_block="172.16.1.0/24")
|
|
977
|
+
share__vpc2 = alicloud.vpc.Network("share-VPC2",
|
|
978
|
+
cidr_block="172.16.0.0/12",
|
|
979
|
+
vpc_name=std.format(input="%s5",
|
|
980
|
+
args=[name]).result)
|
|
981
|
+
share_vswitch2 = alicloud.vpc.Switch("share-vswitch2",
|
|
982
|
+
vpc_id=share__vpc2.id,
|
|
983
|
+
zone_id="cn-hangzhou-k",
|
|
984
|
+
cidr_block="172.16.1.0/24")
|
|
985
|
+
share__vpc3 = alicloud.vpc.Network("share-VPC3",
|
|
986
|
+
cidr_block="172.16.0.0/12",
|
|
987
|
+
vpc_name=std.format(input="%s7",
|
|
988
|
+
args=[name]).result)
|
|
989
|
+
share_vsw3 = alicloud.vpc.Switch("share-vsw3",
|
|
990
|
+
vpc_id=share__vpc3.id,
|
|
991
|
+
zone_id="cn-hangzhou-k",
|
|
992
|
+
cidr_block="172.16.1.0/24")
|
|
993
|
+
default = alicloud.kms.Instance("default",
|
|
994
|
+
vpc_num=7,
|
|
995
|
+
key_num=1000,
|
|
996
|
+
secret_num=0,
|
|
997
|
+
spec=1000,
|
|
998
|
+
renew_status="ManualRenewal",
|
|
999
|
+
product_version="3",
|
|
1000
|
+
renew_period=3,
|
|
1001
|
+
vpc_id=vswitch.vpc_id,
|
|
1002
|
+
zone_ids=[
|
|
1003
|
+
"cn-hangzhou-k",
|
|
1004
|
+
"cn-hangzhou-j",
|
|
1005
|
+
],
|
|
1006
|
+
vswitch_ids=[vswitch_j.id],
|
|
1007
|
+
bind_vpcs=[
|
|
1008
|
+
{
|
|
1009
|
+
"vpc_id": share_vswitch.vpc_id,
|
|
1010
|
+
"region_id": region,
|
|
1011
|
+
"vswitch_id": share_vswitch.id,
|
|
1012
|
+
"vpc_owner_id": current.id,
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"vpc_id": share_vswitch2.vpc_id,
|
|
1016
|
+
"region_id": region,
|
|
1017
|
+
"vswitch_id": share_vswitch2.id,
|
|
1018
|
+
"vpc_owner_id": current.id,
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"vpc_id": share_vsw3.vpc_id,
|
|
1022
|
+
"region_id": region,
|
|
1023
|
+
"vswitch_id": share_vsw3.id,
|
|
1024
|
+
"vpc_owner_id": current.id,
|
|
1025
|
+
},
|
|
1026
|
+
],
|
|
1027
|
+
log="0",
|
|
1028
|
+
period=1,
|
|
1029
|
+
log_storage=0,
|
|
1030
|
+
payment_type="Subscription")
|
|
1031
|
+
```
|
|
1032
|
+
Create a pay-as-you-go kms instance
|
|
1033
|
+
|
|
1034
|
+
```python
|
|
1035
|
+
import pulumi
|
|
1036
|
+
import pulumi_alicloud as alicloud
|
|
1037
|
+
import pulumi_std as std
|
|
1038
|
+
|
|
1039
|
+
config = pulumi.Config()
|
|
1040
|
+
region = config.get("region")
|
|
1041
|
+
if region is None:
|
|
1042
|
+
region = "cn-hangzhou"
|
|
1043
|
+
name = config.get("name")
|
|
1044
|
+
if name is None:
|
|
1045
|
+
name = "terraform-example"
|
|
1046
|
+
current = alicloud.get_account()
|
|
1047
|
+
vpc_amp_instance_example = alicloud.vpc.Network("vpc-amp-instance-example",
|
|
1048
|
+
cidr_block="172.16.0.0/12",
|
|
1049
|
+
vpc_name=name)
|
|
1050
|
+
vswitch = alicloud.vpc.Switch("vswitch",
|
|
1051
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
1052
|
+
zone_id="cn-hangzhou-k",
|
|
1053
|
+
cidr_block="172.16.1.0/24")
|
|
1054
|
+
vswitch_j = alicloud.vpc.Switch("vswitch-j",
|
|
1055
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
1056
|
+
zone_id="cn-hangzhou-j",
|
|
1057
|
+
cidr_block="172.16.2.0/24")
|
|
1058
|
+
share_vpc = alicloud.vpc.Network("shareVPC",
|
|
1059
|
+
cidr_block="172.16.0.0/12",
|
|
1060
|
+
vpc_name=std.format(input="%s3",
|
|
1061
|
+
args=[name]).result)
|
|
1062
|
+
share_vswitch = alicloud.vpc.Switch("shareVswitch",
|
|
1063
|
+
vpc_id=share_vpc.id,
|
|
1064
|
+
zone_id="cn-hangzhou-k",
|
|
1065
|
+
cidr_block="172.16.1.0/24")
|
|
1066
|
+
share__vpc2 = alicloud.vpc.Network("share-VPC2",
|
|
1067
|
+
cidr_block="172.16.0.0/12",
|
|
1068
|
+
vpc_name=std.format(input="%s5",
|
|
1069
|
+
args=[name]).result)
|
|
1070
|
+
share_vswitch2 = alicloud.vpc.Switch("share-vswitch2",
|
|
1071
|
+
vpc_id=share__vpc2.id,
|
|
1072
|
+
zone_id="cn-hangzhou-k",
|
|
1073
|
+
cidr_block="172.16.1.0/24")
|
|
1074
|
+
share__vpc3 = alicloud.vpc.Network("share-VPC3",
|
|
1075
|
+
cidr_block="172.16.0.0/12",
|
|
1076
|
+
vpc_name=std.format(input="%s7",
|
|
1077
|
+
args=[name]).result)
|
|
1078
|
+
share_vsw3 = alicloud.vpc.Switch("share-vsw3",
|
|
1079
|
+
vpc_id=share__vpc3.id,
|
|
1080
|
+
zone_id="cn-hangzhou-k",
|
|
1081
|
+
cidr_block="172.16.1.0/24")
|
|
1082
|
+
default = alicloud.kms.Instance("default",
|
|
1083
|
+
payment_type="PayAsYouGo",
|
|
1084
|
+
product_version="3",
|
|
1085
|
+
vpc_id=vswitch.vpc_id,
|
|
1086
|
+
zone_ids=[
|
|
1087
|
+
vswitch.zone_id,
|
|
1088
|
+
vswitch_j.zone_id,
|
|
1089
|
+
],
|
|
1090
|
+
vswitch_ids=[vswitch.id],
|
|
1091
|
+
force_delete_without_backup="true",
|
|
1092
|
+
bind_vpcs=[
|
|
1093
|
+
{
|
|
1094
|
+
"vpc_id": share_vswitch.vpc_id,
|
|
1095
|
+
"region_id": region,
|
|
1096
|
+
"vswitch_id": share_vswitch.id,
|
|
1097
|
+
"vpc_owner_id": current.id,
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"vpc_id": share_vswitch2.vpc_id,
|
|
1101
|
+
"region_id": region,
|
|
1102
|
+
"vswitch_id": share_vswitch2.id,
|
|
1103
|
+
"vpc_owner_id": current.id,
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"vpc_id": share_vsw3.vpc_id,
|
|
1107
|
+
"region_id": region,
|
|
1108
|
+
"vswitch_id": share_vsw3.id,
|
|
1109
|
+
"vpc_owner_id": current.id,
|
|
1110
|
+
},
|
|
1111
|
+
])
|
|
1112
|
+
```
|
|
1113
|
+
|
|
724
1114
|
## Import
|
|
725
1115
|
|
|
726
1116
|
KMS Instance can be imported using the id, e.g.
|
|
@@ -755,6 +1145,7 @@ class Instance(pulumi.CustomResource):
|
|
|
755
1145
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
756
1146
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
757
1147
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1148
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
758
1149
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
759
1150
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
760
1151
|
vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -781,6 +1172,7 @@ class Instance(pulumi.CustomResource):
|
|
|
781
1172
|
__props__.__dict__["product_version"] = product_version
|
|
782
1173
|
__props__.__dict__["renew_period"] = renew_period
|
|
783
1174
|
__props__.__dict__["renew_status"] = renew_status
|
|
1175
|
+
__props__.__dict__["renewal_period_unit"] = renewal_period_unit
|
|
784
1176
|
__props__.__dict__["secret_num"] = secret_num
|
|
785
1177
|
__props__.__dict__["spec"] = spec
|
|
786
1178
|
if vpc_id is None and not opts.urn:
|
|
@@ -821,6 +1213,7 @@ class Instance(pulumi.CustomResource):
|
|
|
821
1213
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
822
1214
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
823
1215
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1216
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
824
1217
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
825
1218
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
826
1219
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -844,17 +1237,20 @@ class Instance(pulumi.CustomResource):
|
|
|
844
1237
|
:param pulumi.Input[_builtins.int] key_num: Maximum number of stored keys. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
845
1238
|
:param pulumi.Input[_builtins.str] log: Instance Audit Log Switch. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
846
1239
|
:param pulumi.Input[_builtins.int] log_storage: Instance log capacity. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
847
|
-
:param pulumi.Input[_builtins.str] payment_type: Payment type,valid values:
|
|
1240
|
+
:param pulumi.Input[_builtins.str] payment_type: Payment type, valid values:
|
|
848
1241
|
- `Subscription`: Prepaid.
|
|
849
1242
|
- `PayAsYouGo`: Postpaid.
|
|
850
1243
|
:param pulumi.Input[_builtins.int] period: Purchase cycle, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
851
1244
|
:param pulumi.Input[_builtins.str] product_version: KMS Instance commodity type (software/hardware)
|
|
852
1245
|
:param pulumi.Input[_builtins.int] renew_period: Automatic renewal period, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
853
1246
|
:param pulumi.Input[_builtins.str] renew_status: Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
1247
|
+
:param pulumi.Input[_builtins.str] renewal_period_unit: Automatic renewal period unit, valid value:
|
|
1248
|
+
- `M`: Month.
|
|
1249
|
+
- `Y`: Year.
|
|
854
1250
|
:param pulumi.Input[_builtins.int] secret_num: Maximum number of Secrets. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
855
1251
|
:param pulumi.Input[_builtins.int] spec: The computation performance level of the KMS instance. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
856
1252
|
:param pulumi.Input[_builtins.str] status: Instance status.
|
|
857
|
-
:param pulumi.Input[_builtins.str] vpc_id:
|
|
1253
|
+
:param pulumi.Input[_builtins.str] vpc_id: The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
858
1254
|
:param pulumi.Input[_builtins.int] vpc_num: The number of managed accesses. The maximum number of VPCs that can access this KMS instance. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
859
1255
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] vswitch_ids: Instance bind vswitches
|
|
860
1256
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] zone_ids: zone id
|
|
@@ -877,6 +1273,7 @@ class Instance(pulumi.CustomResource):
|
|
|
877
1273
|
__props__.__dict__["product_version"] = product_version
|
|
878
1274
|
__props__.__dict__["renew_period"] = renew_period
|
|
879
1275
|
__props__.__dict__["renew_status"] = renew_status
|
|
1276
|
+
__props__.__dict__["renewal_period_unit"] = renewal_period_unit
|
|
880
1277
|
__props__.__dict__["secret_num"] = secret_num
|
|
881
1278
|
__props__.__dict__["spec"] = spec
|
|
882
1279
|
__props__.__dict__["status"] = status
|
|
@@ -962,7 +1359,7 @@ class Instance(pulumi.CustomResource):
|
|
|
962
1359
|
@pulumi.getter(name="paymentType")
|
|
963
1360
|
def payment_type(self) -> pulumi.Output[_builtins.str]:
|
|
964
1361
|
"""
|
|
965
|
-
Payment type,valid values:
|
|
1362
|
+
Payment type, valid values:
|
|
966
1363
|
- `Subscription`: Prepaid.
|
|
967
1364
|
- `PayAsYouGo`: Postpaid.
|
|
968
1365
|
"""
|
|
@@ -978,7 +1375,7 @@ class Instance(pulumi.CustomResource):
|
|
|
978
1375
|
|
|
979
1376
|
@_builtins.property
|
|
980
1377
|
@pulumi.getter(name="productVersion")
|
|
981
|
-
def product_version(self) -> pulumi.Output[
|
|
1378
|
+
def product_version(self) -> pulumi.Output[_builtins.str]:
|
|
982
1379
|
"""
|
|
983
1380
|
KMS Instance commodity type (software/hardware)
|
|
984
1381
|
"""
|
|
@@ -994,12 +1391,22 @@ class Instance(pulumi.CustomResource):
|
|
|
994
1391
|
|
|
995
1392
|
@_builtins.property
|
|
996
1393
|
@pulumi.getter(name="renewStatus")
|
|
997
|
-
def renew_status(self) -> pulumi.Output[
|
|
1394
|
+
def renew_status(self) -> pulumi.Output[_builtins.str]:
|
|
998
1395
|
"""
|
|
999
1396
|
Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
1000
1397
|
"""
|
|
1001
1398
|
return pulumi.get(self, "renew_status")
|
|
1002
1399
|
|
|
1400
|
+
@_builtins.property
|
|
1401
|
+
@pulumi.getter(name="renewalPeriodUnit")
|
|
1402
|
+
def renewal_period_unit(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1403
|
+
"""
|
|
1404
|
+
Automatic renewal period unit, valid value:
|
|
1405
|
+
- `M`: Month.
|
|
1406
|
+
- `Y`: Year.
|
|
1407
|
+
"""
|
|
1408
|
+
return pulumi.get(self, "renewal_period_unit")
|
|
1409
|
+
|
|
1003
1410
|
@_builtins.property
|
|
1004
1411
|
@pulumi.getter(name="secretNum")
|
|
1005
1412
|
def secret_num(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
@@ -1028,7 +1435,7 @@ class Instance(pulumi.CustomResource):
|
|
|
1028
1435
|
@pulumi.getter(name="vpcId")
|
|
1029
1436
|
def vpc_id(self) -> pulumi.Output[_builtins.str]:
|
|
1030
1437
|
"""
|
|
1031
|
-
|
|
1438
|
+
The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
1032
1439
|
"""
|
|
1033
1440
|
return pulumi.get(self, "vpc_id")
|
|
1034
1441
|
|