pulumi-alicloud 3.84.0a1756507491__py3-none-any.whl → 3.85.0a1757389637__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 +172 -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/amqp/get_instances.py +49 -20
- pulumi_alicloud/amqp/outputs.py +20 -20
- pulumi_alicloud/amqp/virtual_host.py +46 -20
- 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/__init__.py +1 -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/delegate_account.py +218 -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 +423 -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/bgp_ip.py +57 -48
- pulumi_alicloud/ddos/ddos_bgp_instance.py +246 -106
- 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/dms/__init__.py +1 -0
- pulumi_alicloud/dms/enterprise_workspace.py +354 -0
- pulumi_alicloud/dns/access_strategy.py +152 -0
- pulumi_alicloud/dns/address_pool.py +4 -4
- pulumi_alicloud/dns/ddos_bgp_instance.py +246 -106
- 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.py +54 -7
- 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 +7 -0
- pulumi_alicloud/esa/kv_account.py +145 -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/routine_related_record.py +226 -0
- pulumi_alicloud/esa/site_origin_client_certificate.py +515 -0
- pulumi_alicloud/esa/url_observation.py +352 -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/get_service.py +2 -2
- 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/hologram/instance.py +35 -0
- 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 +470 -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/oss_export.py +6 -0
- 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/message/service_subscription.py +48 -1
- 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 +385 -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/nlb/server_group.py +28 -21
- 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 +634 -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.py +21 -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/__init__.py +1 -0
- 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/delegated_administrator.py +22 -50
- pulumi_alicloud/resourcemanager/folder.py +106 -29
- pulumi_alicloud/resourcemanager/get_accounts.py +35 -18
- pulumi_alicloud/resourcemanager/get_shared_resources.py +64 -0
- pulumi_alicloud/resourcemanager/message_contact.py +572 -0
- pulumi_alicloud/resourcemanager/outputs.py +31 -20
- 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/resource_directory.py +137 -46
- pulumi_alicloud/resourcemanager/role.py +14 -14
- pulumi_alicloud/resourcemanager/shared_resource.py +81 -45
- pulumi_alicloud/resourcemanager/shared_target.py +60 -24
- 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 +5 -0
- pulumi_alicloud/sls/_inputs.py +128 -0
- pulumi_alicloud/sls/collection_policy.py +276 -0
- pulumi_alicloud/sls/get_etls.py +294 -0
- pulumi_alicloud/sls/get_logtail_configs.py +395 -0
- pulumi_alicloud/sls/get_machine_groups.py +229 -0
- pulumi_alicloud/sls/logtail_config.py +692 -0
- pulumi_alicloud/sls/machine_group.py +502 -0
- pulumi_alicloud/sls/oss_export_sink.py +134 -0
- pulumi_alicloud/sls/outputs.py +449 -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/_inputs.py +87 -54
- pulumi_alicloud/vpc/common_bandwith_package.py +28 -0
- pulumi_alicloud/vpc/dhcp_options_set.py +97 -58
- pulumi_alicloud/vpc/flow_log.py +117 -25
- pulumi_alicloud/vpc/gateway_endpoint.py +12 -12
- pulumi_alicloud/vpc/gateway_endpoint_route_table_attachment.py +12 -12
- pulumi_alicloud/vpc/ha_vip_attachment.py +41 -60
- pulumi_alicloud/vpc/ha_vipv2.py +100 -88
- pulumi_alicloud/vpc/ipam_ipam_pool.py +54 -0
- pulumi_alicloud/vpc/network_acl.py +34 -23
- pulumi_alicloud/vpc/outputs.py +58 -36
- 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.85.0a1757389637.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/RECORD +283 -251
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/top_level.txt +0 -0
pulumi_alicloud/kms/instance.py
CHANGED
|
@@ -35,12 +35,14 @@ 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,
|
|
41
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
40
42
|
vpc_num: Optional[pulumi.Input[_builtins.int]] = None):
|
|
41
43
|
"""
|
|
42
44
|
The set of arguments for constructing a Instance resource.
|
|
43
|
-
:param pulumi.Input[_builtins.str] vpc_id:
|
|
45
|
+
:param pulumi.Input[_builtins.str] vpc_id: The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
44
46
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] vswitch_ids: Instance bind vswitches
|
|
45
47
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] zone_ids: zone id
|
|
46
48
|
:param pulumi.Input[Sequence[pulumi.Input['InstanceBindVpcArgs']]] bind_vpcs: Aucillary VPCs used to access this KMS instance See `bind_vpcs` below.
|
|
@@ -49,15 +51,19 @@ class InstanceArgs:
|
|
|
49
51
|
:param pulumi.Input[_builtins.int] key_num: Maximum number of stored keys. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
50
52
|
:param pulumi.Input[_builtins.str] log: Instance Audit Log Switch. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
51
53
|
: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:
|
|
54
|
+
:param pulumi.Input[_builtins.str] payment_type: Payment type, valid values:
|
|
53
55
|
- `Subscription`: Prepaid.
|
|
54
56
|
- `PayAsYouGo`: Postpaid.
|
|
55
57
|
:param pulumi.Input[_builtins.int] period: Purchase cycle, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
56
58
|
:param pulumi.Input[_builtins.str] product_version: KMS Instance commodity type (software/hardware)
|
|
57
59
|
:param pulumi.Input[_builtins.int] renew_period: Automatic renewal period, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
58
60
|
:param pulumi.Input[_builtins.str] renew_status: Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
61
|
+
:param pulumi.Input[_builtins.str] renewal_period_unit: Automatic renewal period unit, valid value:
|
|
62
|
+
- `M`: Month.
|
|
63
|
+
- `Y`: Year.
|
|
59
64
|
:param pulumi.Input[_builtins.int] secret_num: Maximum number of Secrets. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
60
65
|
: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`.
|
|
66
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: A mapping of tags to assign to the resource.
|
|
61
67
|
: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`.
|
|
62
68
|
"""
|
|
63
69
|
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
@@ -85,10 +91,14 @@ class InstanceArgs:
|
|
|
85
91
|
pulumi.set(__self__, "renew_period", renew_period)
|
|
86
92
|
if renew_status is not None:
|
|
87
93
|
pulumi.set(__self__, "renew_status", renew_status)
|
|
94
|
+
if renewal_period_unit is not None:
|
|
95
|
+
pulumi.set(__self__, "renewal_period_unit", renewal_period_unit)
|
|
88
96
|
if secret_num is not None:
|
|
89
97
|
pulumi.set(__self__, "secret_num", secret_num)
|
|
90
98
|
if spec is not None:
|
|
91
99
|
pulumi.set(__self__, "spec", spec)
|
|
100
|
+
if tags is not None:
|
|
101
|
+
pulumi.set(__self__, "tags", tags)
|
|
92
102
|
if vpc_num is not None:
|
|
93
103
|
pulumi.set(__self__, "vpc_num", vpc_num)
|
|
94
104
|
|
|
@@ -96,7 +106,7 @@ class InstanceArgs:
|
|
|
96
106
|
@pulumi.getter(name="vpcId")
|
|
97
107
|
def vpc_id(self) -> pulumi.Input[_builtins.str]:
|
|
98
108
|
"""
|
|
99
|
-
|
|
109
|
+
The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
100
110
|
"""
|
|
101
111
|
return pulumi.get(self, "vpc_id")
|
|
102
112
|
|
|
@@ -204,7 +214,7 @@ class InstanceArgs:
|
|
|
204
214
|
@pulumi.getter(name="paymentType")
|
|
205
215
|
def payment_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
206
216
|
"""
|
|
207
|
-
Payment type,valid values:
|
|
217
|
+
Payment type, valid values:
|
|
208
218
|
- `Subscription`: Prepaid.
|
|
209
219
|
- `PayAsYouGo`: Postpaid.
|
|
210
220
|
"""
|
|
@@ -262,6 +272,20 @@ class InstanceArgs:
|
|
|
262
272
|
def renew_status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
263
273
|
pulumi.set(self, "renew_status", value)
|
|
264
274
|
|
|
275
|
+
@_builtins.property
|
|
276
|
+
@pulumi.getter(name="renewalPeriodUnit")
|
|
277
|
+
def renewal_period_unit(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
278
|
+
"""
|
|
279
|
+
Automatic renewal period unit, valid value:
|
|
280
|
+
- `M`: Month.
|
|
281
|
+
- `Y`: Year.
|
|
282
|
+
"""
|
|
283
|
+
return pulumi.get(self, "renewal_period_unit")
|
|
284
|
+
|
|
285
|
+
@renewal_period_unit.setter
|
|
286
|
+
def renewal_period_unit(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
287
|
+
pulumi.set(self, "renewal_period_unit", value)
|
|
288
|
+
|
|
265
289
|
@_builtins.property
|
|
266
290
|
@pulumi.getter(name="secretNum")
|
|
267
291
|
def secret_num(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
@@ -286,6 +310,18 @@ class InstanceArgs:
|
|
|
286
310
|
def spec(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
287
311
|
pulumi.set(self, "spec", value)
|
|
288
312
|
|
|
313
|
+
@_builtins.property
|
|
314
|
+
@pulumi.getter
|
|
315
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
316
|
+
"""
|
|
317
|
+
A mapping of tags to assign to the resource.
|
|
318
|
+
"""
|
|
319
|
+
return pulumi.get(self, "tags")
|
|
320
|
+
|
|
321
|
+
@tags.setter
|
|
322
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
323
|
+
pulumi.set(self, "tags", value)
|
|
324
|
+
|
|
289
325
|
@_builtins.property
|
|
290
326
|
@pulumi.getter(name="vpcNum")
|
|
291
327
|
def vpc_num(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
@@ -316,9 +352,11 @@ class _InstanceState:
|
|
|
316
352
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
317
353
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
318
354
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
355
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
319
356
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
320
357
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
321
358
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
359
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
322
360
|
vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
323
361
|
vpc_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
324
362
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -334,17 +372,21 @@ class _InstanceState:
|
|
|
334
372
|
:param pulumi.Input[_builtins.int] key_num: Maximum number of stored keys. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
335
373
|
:param pulumi.Input[_builtins.str] log: Instance Audit Log Switch. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
336
374
|
: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:
|
|
375
|
+
:param pulumi.Input[_builtins.str] payment_type: Payment type, valid values:
|
|
338
376
|
- `Subscription`: Prepaid.
|
|
339
377
|
- `PayAsYouGo`: Postpaid.
|
|
340
378
|
:param pulumi.Input[_builtins.int] period: Purchase cycle, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
341
379
|
:param pulumi.Input[_builtins.str] product_version: KMS Instance commodity type (software/hardware)
|
|
342
380
|
:param pulumi.Input[_builtins.int] renew_period: Automatic renewal period, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
343
381
|
:param pulumi.Input[_builtins.str] renew_status: Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
382
|
+
:param pulumi.Input[_builtins.str] renewal_period_unit: Automatic renewal period unit, valid value:
|
|
383
|
+
- `M`: Month.
|
|
384
|
+
- `Y`: Year.
|
|
344
385
|
:param pulumi.Input[_builtins.int] secret_num: Maximum number of Secrets. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
345
386
|
: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
387
|
:param pulumi.Input[_builtins.str] status: Instance status.
|
|
347
|
-
:param pulumi.Input[_builtins.str]
|
|
388
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: A mapping of tags to assign to the resource.
|
|
389
|
+
:param pulumi.Input[_builtins.str] vpc_id: The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
348
390
|
: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
391
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] vswitch_ids: Instance bind vswitches
|
|
350
392
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] zone_ids: zone id
|
|
@@ -377,12 +419,16 @@ class _InstanceState:
|
|
|
377
419
|
pulumi.set(__self__, "renew_period", renew_period)
|
|
378
420
|
if renew_status is not None:
|
|
379
421
|
pulumi.set(__self__, "renew_status", renew_status)
|
|
422
|
+
if renewal_period_unit is not None:
|
|
423
|
+
pulumi.set(__self__, "renewal_period_unit", renewal_period_unit)
|
|
380
424
|
if secret_num is not None:
|
|
381
425
|
pulumi.set(__self__, "secret_num", secret_num)
|
|
382
426
|
if spec is not None:
|
|
383
427
|
pulumi.set(__self__, "spec", spec)
|
|
384
428
|
if status is not None:
|
|
385
429
|
pulumi.set(__self__, "status", status)
|
|
430
|
+
if tags is not None:
|
|
431
|
+
pulumi.set(__self__, "tags", tags)
|
|
386
432
|
if vpc_id is not None:
|
|
387
433
|
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
388
434
|
if vpc_num is not None:
|
|
@@ -504,7 +550,7 @@ class _InstanceState:
|
|
|
504
550
|
@pulumi.getter(name="paymentType")
|
|
505
551
|
def payment_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
506
552
|
"""
|
|
507
|
-
Payment type,valid values:
|
|
553
|
+
Payment type, valid values:
|
|
508
554
|
- `Subscription`: Prepaid.
|
|
509
555
|
- `PayAsYouGo`: Postpaid.
|
|
510
556
|
"""
|
|
@@ -562,6 +608,20 @@ class _InstanceState:
|
|
|
562
608
|
def renew_status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
563
609
|
pulumi.set(self, "renew_status", value)
|
|
564
610
|
|
|
611
|
+
@_builtins.property
|
|
612
|
+
@pulumi.getter(name="renewalPeriodUnit")
|
|
613
|
+
def renewal_period_unit(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
614
|
+
"""
|
|
615
|
+
Automatic renewal period unit, valid value:
|
|
616
|
+
- `M`: Month.
|
|
617
|
+
- `Y`: Year.
|
|
618
|
+
"""
|
|
619
|
+
return pulumi.get(self, "renewal_period_unit")
|
|
620
|
+
|
|
621
|
+
@renewal_period_unit.setter
|
|
622
|
+
def renewal_period_unit(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
623
|
+
pulumi.set(self, "renewal_period_unit", value)
|
|
624
|
+
|
|
565
625
|
@_builtins.property
|
|
566
626
|
@pulumi.getter(name="secretNum")
|
|
567
627
|
def secret_num(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
@@ -598,11 +658,23 @@ class _InstanceState:
|
|
|
598
658
|
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
599
659
|
pulumi.set(self, "status", value)
|
|
600
660
|
|
|
661
|
+
@_builtins.property
|
|
662
|
+
@pulumi.getter
|
|
663
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
664
|
+
"""
|
|
665
|
+
A mapping of tags to assign to the resource.
|
|
666
|
+
"""
|
|
667
|
+
return pulumi.get(self, "tags")
|
|
668
|
+
|
|
669
|
+
@tags.setter
|
|
670
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
671
|
+
pulumi.set(self, "tags", value)
|
|
672
|
+
|
|
601
673
|
@_builtins.property
|
|
602
674
|
@pulumi.getter(name="vpcId")
|
|
603
675
|
def vpc_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
604
676
|
"""
|
|
605
|
-
|
|
677
|
+
The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
606
678
|
"""
|
|
607
679
|
return pulumi.get(self, "vpc_id")
|
|
608
680
|
|
|
@@ -664,8 +736,10 @@ class Instance(pulumi.CustomResource):
|
|
|
664
736
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
665
737
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
666
738
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
739
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
667
740
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
668
741
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
742
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
669
743
|
vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
670
744
|
vpc_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
671
745
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -678,6 +752,179 @@ class Instance(pulumi.CustomResource):
|
|
|
678
752
|
|
|
679
753
|
> **NOTE:** Available since v1.210.0.
|
|
680
754
|
|
|
755
|
+
## Example Usage
|
|
756
|
+
|
|
757
|
+
Create a subscription kms instance
|
|
758
|
+
|
|
759
|
+
```python
|
|
760
|
+
import pulumi
|
|
761
|
+
import pulumi_alicloud as alicloud
|
|
762
|
+
import pulumi_std as std
|
|
763
|
+
|
|
764
|
+
config = pulumi.Config()
|
|
765
|
+
region = config.get("region")
|
|
766
|
+
if region is None:
|
|
767
|
+
region = "cn-hangzhou"
|
|
768
|
+
name = config.get("name")
|
|
769
|
+
if name is None:
|
|
770
|
+
name = "terraform-example"
|
|
771
|
+
current = alicloud.get_account()
|
|
772
|
+
vpc_amp_instance_example = alicloud.vpc.Network("vpc-amp-instance-example",
|
|
773
|
+
cidr_block="172.16.0.0/12",
|
|
774
|
+
vpc_name=name)
|
|
775
|
+
vswitch = alicloud.vpc.Switch("vswitch",
|
|
776
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
777
|
+
zone_id="cn-hangzhou-k",
|
|
778
|
+
cidr_block="172.16.1.0/24")
|
|
779
|
+
vswitch_j = alicloud.vpc.Switch("vswitch-j",
|
|
780
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
781
|
+
zone_id="cn-hangzhou-j",
|
|
782
|
+
cidr_block="172.16.2.0/24")
|
|
783
|
+
share_vpc = alicloud.vpc.Network("shareVPC",
|
|
784
|
+
cidr_block="172.16.0.0/12",
|
|
785
|
+
vpc_name=std.format(input="%s3",
|
|
786
|
+
args=[name]).result)
|
|
787
|
+
share_vswitch = alicloud.vpc.Switch("shareVswitch",
|
|
788
|
+
vpc_id=share_vpc.id,
|
|
789
|
+
zone_id="cn-hangzhou-k",
|
|
790
|
+
cidr_block="172.16.1.0/24")
|
|
791
|
+
share__vpc2 = alicloud.vpc.Network("share-VPC2",
|
|
792
|
+
cidr_block="172.16.0.0/12",
|
|
793
|
+
vpc_name=std.format(input="%s5",
|
|
794
|
+
args=[name]).result)
|
|
795
|
+
share_vswitch2 = alicloud.vpc.Switch("share-vswitch2",
|
|
796
|
+
vpc_id=share__vpc2.id,
|
|
797
|
+
zone_id="cn-hangzhou-k",
|
|
798
|
+
cidr_block="172.16.1.0/24")
|
|
799
|
+
share__vpc3 = alicloud.vpc.Network("share-VPC3",
|
|
800
|
+
cidr_block="172.16.0.0/12",
|
|
801
|
+
vpc_name=std.format(input="%s7",
|
|
802
|
+
args=[name]).result)
|
|
803
|
+
share_vsw3 = alicloud.vpc.Switch("share-vsw3",
|
|
804
|
+
vpc_id=share__vpc3.id,
|
|
805
|
+
zone_id="cn-hangzhou-k",
|
|
806
|
+
cidr_block="172.16.1.0/24")
|
|
807
|
+
default = alicloud.kms.Instance("default",
|
|
808
|
+
vpc_num=7,
|
|
809
|
+
key_num=1000,
|
|
810
|
+
secret_num=0,
|
|
811
|
+
spec=1000,
|
|
812
|
+
renew_status="ManualRenewal",
|
|
813
|
+
product_version="3",
|
|
814
|
+
renew_period=3,
|
|
815
|
+
vpc_id=vswitch.vpc_id,
|
|
816
|
+
zone_ids=[
|
|
817
|
+
"cn-hangzhou-k",
|
|
818
|
+
"cn-hangzhou-j",
|
|
819
|
+
],
|
|
820
|
+
vswitch_ids=[vswitch_j.id],
|
|
821
|
+
bind_vpcs=[
|
|
822
|
+
{
|
|
823
|
+
"vpc_id": share_vswitch.vpc_id,
|
|
824
|
+
"region_id": region,
|
|
825
|
+
"vswitch_id": share_vswitch.id,
|
|
826
|
+
"vpc_owner_id": current.id,
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"vpc_id": share_vswitch2.vpc_id,
|
|
830
|
+
"region_id": region,
|
|
831
|
+
"vswitch_id": share_vswitch2.id,
|
|
832
|
+
"vpc_owner_id": current.id,
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"vpc_id": share_vsw3.vpc_id,
|
|
836
|
+
"region_id": region,
|
|
837
|
+
"vswitch_id": share_vsw3.id,
|
|
838
|
+
"vpc_owner_id": current.id,
|
|
839
|
+
},
|
|
840
|
+
],
|
|
841
|
+
log="0",
|
|
842
|
+
period=1,
|
|
843
|
+
log_storage=0,
|
|
844
|
+
payment_type="Subscription")
|
|
845
|
+
```
|
|
846
|
+
Create a pay-as-you-go kms instance
|
|
847
|
+
|
|
848
|
+
```python
|
|
849
|
+
import pulumi
|
|
850
|
+
import pulumi_alicloud as alicloud
|
|
851
|
+
import pulumi_std as std
|
|
852
|
+
|
|
853
|
+
config = pulumi.Config()
|
|
854
|
+
region = config.get("region")
|
|
855
|
+
if region is None:
|
|
856
|
+
region = "cn-hangzhou"
|
|
857
|
+
name = config.get("name")
|
|
858
|
+
if name is None:
|
|
859
|
+
name = "terraform-example"
|
|
860
|
+
current = alicloud.get_account()
|
|
861
|
+
vpc_amp_instance_example = alicloud.vpc.Network("vpc-amp-instance-example",
|
|
862
|
+
cidr_block="172.16.0.0/12",
|
|
863
|
+
vpc_name=name)
|
|
864
|
+
vswitch = alicloud.vpc.Switch("vswitch",
|
|
865
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
866
|
+
zone_id="cn-hangzhou-k",
|
|
867
|
+
cidr_block="172.16.1.0/24")
|
|
868
|
+
vswitch_j = alicloud.vpc.Switch("vswitch-j",
|
|
869
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
870
|
+
zone_id="cn-hangzhou-j",
|
|
871
|
+
cidr_block="172.16.2.0/24")
|
|
872
|
+
share_vpc = alicloud.vpc.Network("shareVPC",
|
|
873
|
+
cidr_block="172.16.0.0/12",
|
|
874
|
+
vpc_name=std.format(input="%s3",
|
|
875
|
+
args=[name]).result)
|
|
876
|
+
share_vswitch = alicloud.vpc.Switch("shareVswitch",
|
|
877
|
+
vpc_id=share_vpc.id,
|
|
878
|
+
zone_id="cn-hangzhou-k",
|
|
879
|
+
cidr_block="172.16.1.0/24")
|
|
880
|
+
share__vpc2 = alicloud.vpc.Network("share-VPC2",
|
|
881
|
+
cidr_block="172.16.0.0/12",
|
|
882
|
+
vpc_name=std.format(input="%s5",
|
|
883
|
+
args=[name]).result)
|
|
884
|
+
share_vswitch2 = alicloud.vpc.Switch("share-vswitch2",
|
|
885
|
+
vpc_id=share__vpc2.id,
|
|
886
|
+
zone_id="cn-hangzhou-k",
|
|
887
|
+
cidr_block="172.16.1.0/24")
|
|
888
|
+
share__vpc3 = alicloud.vpc.Network("share-VPC3",
|
|
889
|
+
cidr_block="172.16.0.0/12",
|
|
890
|
+
vpc_name=std.format(input="%s7",
|
|
891
|
+
args=[name]).result)
|
|
892
|
+
share_vsw3 = alicloud.vpc.Switch("share-vsw3",
|
|
893
|
+
vpc_id=share__vpc3.id,
|
|
894
|
+
zone_id="cn-hangzhou-k",
|
|
895
|
+
cidr_block="172.16.1.0/24")
|
|
896
|
+
default = alicloud.kms.Instance("default",
|
|
897
|
+
payment_type="PayAsYouGo",
|
|
898
|
+
product_version="3",
|
|
899
|
+
vpc_id=vswitch.vpc_id,
|
|
900
|
+
zone_ids=[
|
|
901
|
+
vswitch.zone_id,
|
|
902
|
+
vswitch_j.zone_id,
|
|
903
|
+
],
|
|
904
|
+
vswitch_ids=[vswitch.id],
|
|
905
|
+
force_delete_without_backup="true",
|
|
906
|
+
bind_vpcs=[
|
|
907
|
+
{
|
|
908
|
+
"vpc_id": share_vswitch.vpc_id,
|
|
909
|
+
"region_id": region,
|
|
910
|
+
"vswitch_id": share_vswitch.id,
|
|
911
|
+
"vpc_owner_id": current.id,
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"vpc_id": share_vswitch2.vpc_id,
|
|
915
|
+
"region_id": region,
|
|
916
|
+
"vswitch_id": share_vswitch2.id,
|
|
917
|
+
"vpc_owner_id": current.id,
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"vpc_id": share_vsw3.vpc_id,
|
|
921
|
+
"region_id": region,
|
|
922
|
+
"vswitch_id": share_vsw3.id,
|
|
923
|
+
"vpc_owner_id": current.id,
|
|
924
|
+
},
|
|
925
|
+
])
|
|
926
|
+
```
|
|
927
|
+
|
|
681
928
|
## Import
|
|
682
929
|
|
|
683
930
|
KMS Instance can be imported using the id, e.g.
|
|
@@ -694,16 +941,20 @@ class Instance(pulumi.CustomResource):
|
|
|
694
941
|
:param pulumi.Input[_builtins.int] key_num: Maximum number of stored keys. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
695
942
|
:param pulumi.Input[_builtins.str] log: Instance Audit Log Switch. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
696
943
|
: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:
|
|
944
|
+
:param pulumi.Input[_builtins.str] payment_type: Payment type, valid values:
|
|
698
945
|
- `Subscription`: Prepaid.
|
|
699
946
|
- `PayAsYouGo`: Postpaid.
|
|
700
947
|
:param pulumi.Input[_builtins.int] period: Purchase cycle, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
701
948
|
:param pulumi.Input[_builtins.str] product_version: KMS Instance commodity type (software/hardware)
|
|
702
949
|
:param pulumi.Input[_builtins.int] renew_period: Automatic renewal period, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
703
950
|
:param pulumi.Input[_builtins.str] renew_status: Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
951
|
+
:param pulumi.Input[_builtins.str] renewal_period_unit: Automatic renewal period unit, valid value:
|
|
952
|
+
- `M`: Month.
|
|
953
|
+
- `Y`: Year.
|
|
704
954
|
:param pulumi.Input[_builtins.int] secret_num: Maximum number of Secrets. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
705
955
|
: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]
|
|
956
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: A mapping of tags to assign to the resource.
|
|
957
|
+
:param pulumi.Input[_builtins.str] vpc_id: The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
707
958
|
: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
959
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] vswitch_ids: Instance bind vswitches
|
|
709
960
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] zone_ids: zone id
|
|
@@ -721,6 +972,179 @@ class Instance(pulumi.CustomResource):
|
|
|
721
972
|
|
|
722
973
|
> **NOTE:** Available since v1.210.0.
|
|
723
974
|
|
|
975
|
+
## Example Usage
|
|
976
|
+
|
|
977
|
+
Create a subscription kms instance
|
|
978
|
+
|
|
979
|
+
```python
|
|
980
|
+
import pulumi
|
|
981
|
+
import pulumi_alicloud as alicloud
|
|
982
|
+
import pulumi_std as std
|
|
983
|
+
|
|
984
|
+
config = pulumi.Config()
|
|
985
|
+
region = config.get("region")
|
|
986
|
+
if region is None:
|
|
987
|
+
region = "cn-hangzhou"
|
|
988
|
+
name = config.get("name")
|
|
989
|
+
if name is None:
|
|
990
|
+
name = "terraform-example"
|
|
991
|
+
current = alicloud.get_account()
|
|
992
|
+
vpc_amp_instance_example = alicloud.vpc.Network("vpc-amp-instance-example",
|
|
993
|
+
cidr_block="172.16.0.0/12",
|
|
994
|
+
vpc_name=name)
|
|
995
|
+
vswitch = alicloud.vpc.Switch("vswitch",
|
|
996
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
997
|
+
zone_id="cn-hangzhou-k",
|
|
998
|
+
cidr_block="172.16.1.0/24")
|
|
999
|
+
vswitch_j = alicloud.vpc.Switch("vswitch-j",
|
|
1000
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
1001
|
+
zone_id="cn-hangzhou-j",
|
|
1002
|
+
cidr_block="172.16.2.0/24")
|
|
1003
|
+
share_vpc = alicloud.vpc.Network("shareVPC",
|
|
1004
|
+
cidr_block="172.16.0.0/12",
|
|
1005
|
+
vpc_name=std.format(input="%s3",
|
|
1006
|
+
args=[name]).result)
|
|
1007
|
+
share_vswitch = alicloud.vpc.Switch("shareVswitch",
|
|
1008
|
+
vpc_id=share_vpc.id,
|
|
1009
|
+
zone_id="cn-hangzhou-k",
|
|
1010
|
+
cidr_block="172.16.1.0/24")
|
|
1011
|
+
share__vpc2 = alicloud.vpc.Network("share-VPC2",
|
|
1012
|
+
cidr_block="172.16.0.0/12",
|
|
1013
|
+
vpc_name=std.format(input="%s5",
|
|
1014
|
+
args=[name]).result)
|
|
1015
|
+
share_vswitch2 = alicloud.vpc.Switch("share-vswitch2",
|
|
1016
|
+
vpc_id=share__vpc2.id,
|
|
1017
|
+
zone_id="cn-hangzhou-k",
|
|
1018
|
+
cidr_block="172.16.1.0/24")
|
|
1019
|
+
share__vpc3 = alicloud.vpc.Network("share-VPC3",
|
|
1020
|
+
cidr_block="172.16.0.0/12",
|
|
1021
|
+
vpc_name=std.format(input="%s7",
|
|
1022
|
+
args=[name]).result)
|
|
1023
|
+
share_vsw3 = alicloud.vpc.Switch("share-vsw3",
|
|
1024
|
+
vpc_id=share__vpc3.id,
|
|
1025
|
+
zone_id="cn-hangzhou-k",
|
|
1026
|
+
cidr_block="172.16.1.0/24")
|
|
1027
|
+
default = alicloud.kms.Instance("default",
|
|
1028
|
+
vpc_num=7,
|
|
1029
|
+
key_num=1000,
|
|
1030
|
+
secret_num=0,
|
|
1031
|
+
spec=1000,
|
|
1032
|
+
renew_status="ManualRenewal",
|
|
1033
|
+
product_version="3",
|
|
1034
|
+
renew_period=3,
|
|
1035
|
+
vpc_id=vswitch.vpc_id,
|
|
1036
|
+
zone_ids=[
|
|
1037
|
+
"cn-hangzhou-k",
|
|
1038
|
+
"cn-hangzhou-j",
|
|
1039
|
+
],
|
|
1040
|
+
vswitch_ids=[vswitch_j.id],
|
|
1041
|
+
bind_vpcs=[
|
|
1042
|
+
{
|
|
1043
|
+
"vpc_id": share_vswitch.vpc_id,
|
|
1044
|
+
"region_id": region,
|
|
1045
|
+
"vswitch_id": share_vswitch.id,
|
|
1046
|
+
"vpc_owner_id": current.id,
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"vpc_id": share_vswitch2.vpc_id,
|
|
1050
|
+
"region_id": region,
|
|
1051
|
+
"vswitch_id": share_vswitch2.id,
|
|
1052
|
+
"vpc_owner_id": current.id,
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"vpc_id": share_vsw3.vpc_id,
|
|
1056
|
+
"region_id": region,
|
|
1057
|
+
"vswitch_id": share_vsw3.id,
|
|
1058
|
+
"vpc_owner_id": current.id,
|
|
1059
|
+
},
|
|
1060
|
+
],
|
|
1061
|
+
log="0",
|
|
1062
|
+
period=1,
|
|
1063
|
+
log_storage=0,
|
|
1064
|
+
payment_type="Subscription")
|
|
1065
|
+
```
|
|
1066
|
+
Create a pay-as-you-go kms instance
|
|
1067
|
+
|
|
1068
|
+
```python
|
|
1069
|
+
import pulumi
|
|
1070
|
+
import pulumi_alicloud as alicloud
|
|
1071
|
+
import pulumi_std as std
|
|
1072
|
+
|
|
1073
|
+
config = pulumi.Config()
|
|
1074
|
+
region = config.get("region")
|
|
1075
|
+
if region is None:
|
|
1076
|
+
region = "cn-hangzhou"
|
|
1077
|
+
name = config.get("name")
|
|
1078
|
+
if name is None:
|
|
1079
|
+
name = "terraform-example"
|
|
1080
|
+
current = alicloud.get_account()
|
|
1081
|
+
vpc_amp_instance_example = alicloud.vpc.Network("vpc-amp-instance-example",
|
|
1082
|
+
cidr_block="172.16.0.0/12",
|
|
1083
|
+
vpc_name=name)
|
|
1084
|
+
vswitch = alicloud.vpc.Switch("vswitch",
|
|
1085
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
1086
|
+
zone_id="cn-hangzhou-k",
|
|
1087
|
+
cidr_block="172.16.1.0/24")
|
|
1088
|
+
vswitch_j = alicloud.vpc.Switch("vswitch-j",
|
|
1089
|
+
vpc_id=vpc_amp_instance_example.id,
|
|
1090
|
+
zone_id="cn-hangzhou-j",
|
|
1091
|
+
cidr_block="172.16.2.0/24")
|
|
1092
|
+
share_vpc = alicloud.vpc.Network("shareVPC",
|
|
1093
|
+
cidr_block="172.16.0.0/12",
|
|
1094
|
+
vpc_name=std.format(input="%s3",
|
|
1095
|
+
args=[name]).result)
|
|
1096
|
+
share_vswitch = alicloud.vpc.Switch("shareVswitch",
|
|
1097
|
+
vpc_id=share_vpc.id,
|
|
1098
|
+
zone_id="cn-hangzhou-k",
|
|
1099
|
+
cidr_block="172.16.1.0/24")
|
|
1100
|
+
share__vpc2 = alicloud.vpc.Network("share-VPC2",
|
|
1101
|
+
cidr_block="172.16.0.0/12",
|
|
1102
|
+
vpc_name=std.format(input="%s5",
|
|
1103
|
+
args=[name]).result)
|
|
1104
|
+
share_vswitch2 = alicloud.vpc.Switch("share-vswitch2",
|
|
1105
|
+
vpc_id=share__vpc2.id,
|
|
1106
|
+
zone_id="cn-hangzhou-k",
|
|
1107
|
+
cidr_block="172.16.1.0/24")
|
|
1108
|
+
share__vpc3 = alicloud.vpc.Network("share-VPC3",
|
|
1109
|
+
cidr_block="172.16.0.0/12",
|
|
1110
|
+
vpc_name=std.format(input="%s7",
|
|
1111
|
+
args=[name]).result)
|
|
1112
|
+
share_vsw3 = alicloud.vpc.Switch("share-vsw3",
|
|
1113
|
+
vpc_id=share__vpc3.id,
|
|
1114
|
+
zone_id="cn-hangzhou-k",
|
|
1115
|
+
cidr_block="172.16.1.0/24")
|
|
1116
|
+
default = alicloud.kms.Instance("default",
|
|
1117
|
+
payment_type="PayAsYouGo",
|
|
1118
|
+
product_version="3",
|
|
1119
|
+
vpc_id=vswitch.vpc_id,
|
|
1120
|
+
zone_ids=[
|
|
1121
|
+
vswitch.zone_id,
|
|
1122
|
+
vswitch_j.zone_id,
|
|
1123
|
+
],
|
|
1124
|
+
vswitch_ids=[vswitch.id],
|
|
1125
|
+
force_delete_without_backup="true",
|
|
1126
|
+
bind_vpcs=[
|
|
1127
|
+
{
|
|
1128
|
+
"vpc_id": share_vswitch.vpc_id,
|
|
1129
|
+
"region_id": region,
|
|
1130
|
+
"vswitch_id": share_vswitch.id,
|
|
1131
|
+
"vpc_owner_id": current.id,
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"vpc_id": share_vswitch2.vpc_id,
|
|
1135
|
+
"region_id": region,
|
|
1136
|
+
"vswitch_id": share_vswitch2.id,
|
|
1137
|
+
"vpc_owner_id": current.id,
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"vpc_id": share_vsw3.vpc_id,
|
|
1141
|
+
"region_id": region,
|
|
1142
|
+
"vswitch_id": share_vsw3.id,
|
|
1143
|
+
"vpc_owner_id": current.id,
|
|
1144
|
+
},
|
|
1145
|
+
])
|
|
1146
|
+
```
|
|
1147
|
+
|
|
724
1148
|
## Import
|
|
725
1149
|
|
|
726
1150
|
KMS Instance can be imported using the id, e.g.
|
|
@@ -755,8 +1179,10 @@ class Instance(pulumi.CustomResource):
|
|
|
755
1179
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
756
1180
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
757
1181
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1182
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
758
1183
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
759
1184
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1185
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
760
1186
|
vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
761
1187
|
vpc_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
762
1188
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -781,8 +1207,10 @@ class Instance(pulumi.CustomResource):
|
|
|
781
1207
|
__props__.__dict__["product_version"] = product_version
|
|
782
1208
|
__props__.__dict__["renew_period"] = renew_period
|
|
783
1209
|
__props__.__dict__["renew_status"] = renew_status
|
|
1210
|
+
__props__.__dict__["renewal_period_unit"] = renewal_period_unit
|
|
784
1211
|
__props__.__dict__["secret_num"] = secret_num
|
|
785
1212
|
__props__.__dict__["spec"] = spec
|
|
1213
|
+
__props__.__dict__["tags"] = tags
|
|
786
1214
|
if vpc_id is None and not opts.urn:
|
|
787
1215
|
raise TypeError("Missing required property 'vpc_id'")
|
|
788
1216
|
__props__.__dict__["vpc_id"] = vpc_id
|
|
@@ -821,9 +1249,11 @@ class Instance(pulumi.CustomResource):
|
|
|
821
1249
|
product_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
822
1250
|
renew_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
823
1251
|
renew_status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1252
|
+
renewal_period_unit: Optional[pulumi.Input[_builtins.str]] = None,
|
|
824
1253
|
secret_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
825
1254
|
spec: Optional[pulumi.Input[_builtins.int]] = None,
|
|
826
1255
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1256
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
827
1257
|
vpc_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
828
1258
|
vpc_num: Optional[pulumi.Input[_builtins.int]] = None,
|
|
829
1259
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -844,17 +1274,21 @@ class Instance(pulumi.CustomResource):
|
|
|
844
1274
|
:param pulumi.Input[_builtins.int] key_num: Maximum number of stored keys. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
845
1275
|
:param pulumi.Input[_builtins.str] log: Instance Audit Log Switch. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
846
1276
|
: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:
|
|
1277
|
+
:param pulumi.Input[_builtins.str] payment_type: Payment type, valid values:
|
|
848
1278
|
- `Subscription`: Prepaid.
|
|
849
1279
|
- `PayAsYouGo`: Postpaid.
|
|
850
1280
|
:param pulumi.Input[_builtins.int] period: Purchase cycle, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
851
1281
|
:param pulumi.Input[_builtins.str] product_version: KMS Instance commodity type (software/hardware)
|
|
852
1282
|
:param pulumi.Input[_builtins.int] renew_period: Automatic renewal period, in months. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
853
1283
|
:param pulumi.Input[_builtins.str] renew_status: Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
1284
|
+
:param pulumi.Input[_builtins.str] renewal_period_unit: Automatic renewal period unit, valid value:
|
|
1285
|
+
- `M`: Month.
|
|
1286
|
+
- `Y`: Year.
|
|
854
1287
|
:param pulumi.Input[_builtins.int] secret_num: Maximum number of Secrets. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
855
1288
|
: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
1289
|
:param pulumi.Input[_builtins.str] status: Instance status.
|
|
857
|
-
:param pulumi.Input[_builtins.str]
|
|
1290
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] tags: A mapping of tags to assign to the resource.
|
|
1291
|
+
:param pulumi.Input[_builtins.str] vpc_id: The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
858
1292
|
: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
1293
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] vswitch_ids: Instance bind vswitches
|
|
860
1294
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] zone_ids: zone id
|
|
@@ -877,9 +1311,11 @@ class Instance(pulumi.CustomResource):
|
|
|
877
1311
|
__props__.__dict__["product_version"] = product_version
|
|
878
1312
|
__props__.__dict__["renew_period"] = renew_period
|
|
879
1313
|
__props__.__dict__["renew_status"] = renew_status
|
|
1314
|
+
__props__.__dict__["renewal_period_unit"] = renewal_period_unit
|
|
880
1315
|
__props__.__dict__["secret_num"] = secret_num
|
|
881
1316
|
__props__.__dict__["spec"] = spec
|
|
882
1317
|
__props__.__dict__["status"] = status
|
|
1318
|
+
__props__.__dict__["tags"] = tags
|
|
883
1319
|
__props__.__dict__["vpc_id"] = vpc_id
|
|
884
1320
|
__props__.__dict__["vpc_num"] = vpc_num
|
|
885
1321
|
__props__.__dict__["vswitch_ids"] = vswitch_ids
|
|
@@ -962,7 +1398,7 @@ class Instance(pulumi.CustomResource):
|
|
|
962
1398
|
@pulumi.getter(name="paymentType")
|
|
963
1399
|
def payment_type(self) -> pulumi.Output[_builtins.str]:
|
|
964
1400
|
"""
|
|
965
|
-
Payment type,valid values:
|
|
1401
|
+
Payment type, valid values:
|
|
966
1402
|
- `Subscription`: Prepaid.
|
|
967
1403
|
- `PayAsYouGo`: Postpaid.
|
|
968
1404
|
"""
|
|
@@ -978,7 +1414,7 @@ class Instance(pulumi.CustomResource):
|
|
|
978
1414
|
|
|
979
1415
|
@_builtins.property
|
|
980
1416
|
@pulumi.getter(name="productVersion")
|
|
981
|
-
def product_version(self) -> pulumi.Output[
|
|
1417
|
+
def product_version(self) -> pulumi.Output[_builtins.str]:
|
|
982
1418
|
"""
|
|
983
1419
|
KMS Instance commodity type (software/hardware)
|
|
984
1420
|
"""
|
|
@@ -994,12 +1430,22 @@ class Instance(pulumi.CustomResource):
|
|
|
994
1430
|
|
|
995
1431
|
@_builtins.property
|
|
996
1432
|
@pulumi.getter(name="renewStatus")
|
|
997
|
-
def renew_status(self) -> pulumi.Output[
|
|
1433
|
+
def renew_status(self) -> pulumi.Output[_builtins.str]:
|
|
998
1434
|
"""
|
|
999
1435
|
Renewal options. Valid values: `AutoRenewal`, `ManualRenewal`. The attribute is valid when the attribute `payment_type` is `Subscription`.
|
|
1000
1436
|
"""
|
|
1001
1437
|
return pulumi.get(self, "renew_status")
|
|
1002
1438
|
|
|
1439
|
+
@_builtins.property
|
|
1440
|
+
@pulumi.getter(name="renewalPeriodUnit")
|
|
1441
|
+
def renewal_period_unit(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1442
|
+
"""
|
|
1443
|
+
Automatic renewal period unit, valid value:
|
|
1444
|
+
- `M`: Month.
|
|
1445
|
+
- `Y`: Year.
|
|
1446
|
+
"""
|
|
1447
|
+
return pulumi.get(self, "renewal_period_unit")
|
|
1448
|
+
|
|
1003
1449
|
@_builtins.property
|
|
1004
1450
|
@pulumi.getter(name="secretNum")
|
|
1005
1451
|
def secret_num(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
@@ -1024,11 +1470,19 @@ class Instance(pulumi.CustomResource):
|
|
|
1024
1470
|
"""
|
|
1025
1471
|
return pulumi.get(self, "status")
|
|
1026
1472
|
|
|
1473
|
+
@_builtins.property
|
|
1474
|
+
@pulumi.getter
|
|
1475
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
1476
|
+
"""
|
|
1477
|
+
A mapping of tags to assign to the resource.
|
|
1478
|
+
"""
|
|
1479
|
+
return pulumi.get(self, "tags")
|
|
1480
|
+
|
|
1027
1481
|
@_builtins.property
|
|
1028
1482
|
@pulumi.getter(name="vpcId")
|
|
1029
1483
|
def vpc_id(self) -> pulumi.Output[_builtins.str]:
|
|
1030
1484
|
"""
|
|
1031
|
-
|
|
1485
|
+
The ID of the virtual private cloud (VPC) that is associated with the KMS instance.
|
|
1032
1486
|
"""
|
|
1033
1487
|
return pulumi.get(self, "vpc_id")
|
|
1034
1488
|
|