alicloud.kms.Instance
Explore with Pulumi AI
Provides a KMS Instance resource.
For information about KMS Instance and how to use it, see What is Instance.
NOTE: Available since v1.210.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const default = alicloud.vpc.getNetworks({
nameRegex: "^default-NODELETING$",
cidrBlock: "172.16.0.0/16",
});
const defaultGetSwitches = _default.then(_default => alicloud.vpc.getSwitches({
vpcId: _default.ids?.[0],
zoneId: "cn-hangzhou-k",
}));
const defaultInstance = new alicloud.kms.Instance("default", {
productVersion: "3",
vpcId: _default.then(_default => _default.ids?.[0]),
zoneIds: [
"cn-hangzhou-k",
"cn-hangzhou-j",
],
vswitchIds: [defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0])],
vpcNum: 1,
keyNum: 1000,
secretNum: 0,
spec: 1000,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.vpc.get_networks(name_regex="^default-NODELETING$",
cidr_block="172.16.0.0/16")
default_get_switches = alicloud.vpc.get_switches(vpc_id=default.ids[0],
zone_id="cn-hangzhou-k")
default_instance = alicloud.kms.Instance("default",
product_version="3",
vpc_id=default.ids[0],
zone_ids=[
"cn-hangzhou-k",
"cn-hangzhou-j",
],
vswitch_ids=[default_get_switches.ids[0]],
vpc_num=1,
key_num=1000,
secret_num=0,
spec=1000)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("^default-NODELETING$"),
CidrBlock: pulumi.StringRef("172.16.0.0/16"),
}, nil)
if err != nil {
return err
}
defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(_default.Ids[0]),
ZoneId: pulumi.StringRef("cn-hangzhou-k"),
}, nil)
if err != nil {
return err
}
_, err = kms.NewInstance(ctx, "default", &kms.InstanceArgs{
ProductVersion: pulumi.String("3"),
VpcId: pulumi.String(_default.Ids[0]),
ZoneIds: pulumi.StringArray{
pulumi.String("cn-hangzhou-k"),
pulumi.String("cn-hangzhou-j"),
},
VswitchIds: pulumi.StringArray{
pulumi.String(defaultGetSwitches.Ids[0]),
},
VpcNum: pulumi.Int(1),
KeyNum: pulumi.Int(1000),
SecretNum: pulumi.Int(0),
Spec: pulumi.Int(1000),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "^default-NODELETING$",
CidrBlock = "172.16.0.0/16",
});
var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = @default.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = "cn-hangzhou-k",
});
var defaultInstance = new AliCloud.Kms.Instance("default", new()
{
ProductVersion = "3",
VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])),
ZoneIds = new[]
{
"cn-hangzhou-k",
"cn-hangzhou-j",
},
VswitchIds = new[]
{
defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
},
VpcNum = 1,
KeyNum = 1000,
SecretNum = 0,
Spec = 1000,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.kms.Instance;
import com.pulumi.alicloud.kms.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var default = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("^default-NODELETING$")
.cidrBlock("172.16.0.0/16")
.build());
final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(default_.ids()[0])
.zoneId("cn-hangzhou-k")
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.productVersion("3")
.vpcId(default_.ids()[0])
.zoneIds(
"cn-hangzhou-k",
"cn-hangzhou-j")
.vswitchIds(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.vpcNum("1")
.keyNum("1000")
.secretNum("0")
.spec("1000")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultInstance:
type: alicloud:kms:Instance
name: default
properties:
productVersion: '3'
vpcId: ${default.ids[0]}
zoneIds:
- cn-hangzhou-k
- cn-hangzhou-j
vswitchIds:
- ${defaultGetSwitches.ids[0]}
vpcNum: '1'
keyNum: '1000'
secretNum: '0'
spec: '1000'
variables:
default:
fn::invoke:
Function: alicloud:vpc:getNetworks
Arguments:
nameRegex: ^default-NODELETING$
cidrBlock: 172.16.0.0/16
defaultGetSwitches:
fn::invoke:
Function: alicloud:vpc:getSwitches
Arguments:
vpcId: ${default.ids[0]}
zoneId: cn-hangzhou-k
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
secret_num: Optional[int] = None,
key_num: Optional[int] = None,
zone_ids: Optional[Sequence[str]] = None,
vswitch_ids: Optional[Sequence[str]] = None,
vpc_num: Optional[int] = None,
vpc_id: Optional[str] = None,
spec: Optional[int] = None,
log_storage: Optional[int] = None,
renew_status: Optional[str] = None,
renew_period: Optional[int] = None,
product_version: Optional[str] = None,
period: Optional[int] = None,
bind_vpcs: Optional[Sequence[InstanceBindVpcArgs]] = None,
log: Optional[str] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:kms:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromKmsinstance = new AliCloud.Kms.Instance("exampleinstanceResourceResourceFromKmsinstance", new()
{
SecretNum = 0,
KeyNum = 0,
ZoneIds = new[]
{
"string",
},
VswitchIds = new[]
{
"string",
},
VpcNum = 0,
VpcId = "string",
Spec = 0,
LogStorage = 0,
RenewStatus = "string",
RenewPeriod = 0,
ProductVersion = "string",
Period = 0,
BindVpcs = new[]
{
new AliCloud.Kms.Inputs.InstanceBindVpcArgs
{
RegionId = "string",
VpcId = "string",
VpcOwnerId = 0,
VswitchId = "string",
},
},
Log = "string",
});
example, err := kms.NewInstance(ctx, "exampleinstanceResourceResourceFromKmsinstance", &kms.InstanceArgs{
SecretNum: pulumi.Int(0),
KeyNum: pulumi.Int(0),
ZoneIds: pulumi.StringArray{
pulumi.String("string"),
},
VswitchIds: pulumi.StringArray{
pulumi.String("string"),
},
VpcNum: pulumi.Int(0),
VpcId: pulumi.String("string"),
Spec: pulumi.Int(0),
LogStorage: pulumi.Int(0),
RenewStatus: pulumi.String("string"),
RenewPeriod: pulumi.Int(0),
ProductVersion: pulumi.String("string"),
Period: pulumi.Int(0),
BindVpcs: kms.InstanceBindVpcArray{
&kms.InstanceBindVpcArgs{
RegionId: pulumi.String("string"),
VpcId: pulumi.String("string"),
VpcOwnerId: pulumi.Int(0),
VswitchId: pulumi.String("string"),
},
},
Log: pulumi.String("string"),
})
var exampleinstanceResourceResourceFromKmsinstance = new Instance("exampleinstanceResourceResourceFromKmsinstance", InstanceArgs.builder()
.secretNum(0)
.keyNum(0)
.zoneIds("string")
.vswitchIds("string")
.vpcNum(0)
.vpcId("string")
.spec(0)
.logStorage(0)
.renewStatus("string")
.renewPeriod(0)
.productVersion("string")
.period(0)
.bindVpcs(InstanceBindVpcArgs.builder()
.regionId("string")
.vpcId("string")
.vpcOwnerId(0)
.vswitchId("string")
.build())
.log("string")
.build());
exampleinstance_resource_resource_from_kmsinstance = alicloud.kms.Instance("exampleinstanceResourceResourceFromKmsinstance",
secret_num=0,
key_num=0,
zone_ids=["string"],
vswitch_ids=["string"],
vpc_num=0,
vpc_id="string",
spec=0,
log_storage=0,
renew_status="string",
renew_period=0,
product_version="string",
period=0,
bind_vpcs=[alicloud.kms.InstanceBindVpcArgs(
region_id="string",
vpc_id="string",
vpc_owner_id=0,
vswitch_id="string",
)],
log="string")
const exampleinstanceResourceResourceFromKmsinstance = new alicloud.kms.Instance("exampleinstanceResourceResourceFromKmsinstance", {
secretNum: 0,
keyNum: 0,
zoneIds: ["string"],
vswitchIds: ["string"],
vpcNum: 0,
vpcId: "string",
spec: 0,
logStorage: 0,
renewStatus: "string",
renewPeriod: 0,
productVersion: "string",
period: 0,
bindVpcs: [{
regionId: "string",
vpcId: "string",
vpcOwnerId: 0,
vswitchId: "string",
}],
log: "string",
});
type: alicloud:kms:Instance
properties:
bindVpcs:
- regionId: string
vpcId: string
vpcOwnerId: 0
vswitchId: string
keyNum: 0
log: string
logStorage: 0
period: 0
productVersion: string
renewPeriod: 0
renewStatus: string
secretNum: 0
spec: 0
vpcId: string
vpcNum: 0
vswitchIds:
- string
zoneIds:
- string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Instance resource accepts the following input properties:
- Key
Num int - Maximum number of stored keys.
- Secret
Num int - Maximum number of Secrets.
- Spec int
- The computation performance level of the KMS instance.
- Vpc
Id string - Instance VPC id.
- Vpc
Num int - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- Vswitch
Ids List<string> - Instance bind vswitches.
- Zone
Ids List<string> - zone id.
- Bind
Vpcs List<Pulumi.Ali Cloud. Kms. Inputs. Instance Bind Vpc> - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - Log string
- Instance Audit Log Switch.
- Log
Storage int - Instance log capacity.
- Period int
- Purchase cycle, in months.
- Product
Version string - KMS Instance commodity type (software/hardware).
- Renew
Period int - Automatic renewal period, in months.
- Renew
Status string - Renewal options (manual renewal, automatic renewal, no renewal).
- Key
Num int - Maximum number of stored keys.
- Secret
Num int - Maximum number of Secrets.
- Spec int
- The computation performance level of the KMS instance.
- Vpc
Id string - Instance VPC id.
- Vpc
Num int - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- Vswitch
Ids []string - Instance bind vswitches.
- Zone
Ids []string - zone id.
- Bind
Vpcs []InstanceBind Vpc Args - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - Log string
- Instance Audit Log Switch.
- Log
Storage int - Instance log capacity.
- Period int
- Purchase cycle, in months.
- Product
Version string - KMS Instance commodity type (software/hardware).
- Renew
Period int - Automatic renewal period, in months.
- Renew
Status string - Renewal options (manual renewal, automatic renewal, no renewal).
- key
Num Integer - Maximum number of stored keys.
- secret
Num Integer - Maximum number of Secrets.
- spec Integer
- The computation performance level of the KMS instance.
- vpc
Id String - Instance VPC id.
- vpc
Num Integer - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- vswitch
Ids List<String> - Instance bind vswitches.
- zone
Ids List<String> - zone id.
- bind
Vpcs List<InstanceBind Vpc> - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - log String
- Instance Audit Log Switch.
- log
Storage Integer - Instance log capacity.
- period Integer
- Purchase cycle, in months.
- product
Version String - KMS Instance commodity type (software/hardware).
- renew
Period Integer - Automatic renewal period, in months.
- renew
Status String - Renewal options (manual renewal, automatic renewal, no renewal).
- key
Num number - Maximum number of stored keys.
- secret
Num number - Maximum number of Secrets.
- spec number
- The computation performance level of the KMS instance.
- vpc
Id string - Instance VPC id.
- vpc
Num number - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- vswitch
Ids string[] - Instance bind vswitches.
- zone
Ids string[] - zone id.
- bind
Vpcs InstanceBind Vpc[] - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - log string
- Instance Audit Log Switch.
- log
Storage number - Instance log capacity.
- period number
- Purchase cycle, in months.
- product
Version string - KMS Instance commodity type (software/hardware).
- renew
Period number - Automatic renewal period, in months.
- renew
Status string - Renewal options (manual renewal, automatic renewal, no renewal).
- key_
num int - Maximum number of stored keys.
- secret_
num int - Maximum number of Secrets.
- spec int
- The computation performance level of the KMS instance.
- vpc_
id str - Instance VPC id.
- vpc_
num int - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- vswitch_
ids Sequence[str] - Instance bind vswitches.
- zone_
ids Sequence[str] - zone id.
- bind_
vpcs Sequence[InstanceBind Vpc Args] - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - log str
- Instance Audit Log Switch.
- log_
storage int - Instance log capacity.
- period int
- Purchase cycle, in months.
- product_
version str - KMS Instance commodity type (software/hardware).
- renew_
period int - Automatic renewal period, in months.
- renew_
status str - Renewal options (manual renewal, automatic renewal, no renewal).
- key
Num Number - Maximum number of stored keys.
- secret
Num Number - Maximum number of Secrets.
- spec Number
- The computation performance level of the KMS instance.
- vpc
Id String - Instance VPC id.
- vpc
Num Number - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- vswitch
Ids List<String> - Instance bind vswitches.
- zone
Ids List<String> - zone id.
- bind
Vpcs List<Property Map> - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - log String
- Instance Audit Log Switch.
- log
Storage Number - Instance log capacity.
- period Number
- Purchase cycle, in months.
- product
Version String - KMS Instance commodity type (software/hardware).
- renew
Period Number - Automatic renewal period, in months.
- renew
Status String - Renewal options (manual renewal, automatic renewal, no renewal).
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Ca
Certificate stringChain Pem - KMS instance certificate chain in PEM format.
- Create
Time string - The creation time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Name string - The name of the resource.
- Status string
- Instance status.
- Ca
Certificate stringChain Pem - KMS instance certificate chain in PEM format.
- Create
Time string - The creation time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Name string - The name of the resource.
- Status string
- Instance status.
- ca
Certificate StringChain Pem - KMS instance certificate chain in PEM format.
- create
Time String - The creation time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Name String - The name of the resource.
- status String
- Instance status.
- ca
Certificate stringChain Pem - KMS instance certificate chain in PEM format.
- create
Time string - The creation time of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Name string - The name of the resource.
- status string
- Instance status.
- ca_
certificate_ strchain_ pem - KMS instance certificate chain in PEM format.
- create_
time str - The creation time of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
name str - The name of the resource.
- status str
- Instance status.
- ca
Certificate StringChain Pem - KMS instance certificate chain in PEM format.
- create
Time String - The creation time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Name String - The name of the resource.
- status String
- Instance status.
Look up Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bind_vpcs: Optional[Sequence[InstanceBindVpcArgs]] = None,
ca_certificate_chain_pem: Optional[str] = None,
create_time: Optional[str] = None,
instance_name: Optional[str] = None,
key_num: Optional[int] = None,
log: Optional[str] = None,
log_storage: Optional[int] = None,
period: Optional[int] = None,
product_version: Optional[str] = None,
renew_period: Optional[int] = None,
renew_status: Optional[str] = None,
secret_num: Optional[int] = None,
spec: Optional[int] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_num: Optional[int] = None,
vswitch_ids: Optional[Sequence[str]] = None,
zone_ids: Optional[Sequence[str]] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bind
Vpcs List<Pulumi.Ali Cloud. Kms. Inputs. Instance Bind Vpc> - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - Ca
Certificate stringChain Pem - KMS instance certificate chain in PEM format.
- Create
Time string - The creation time of the resource.
- Instance
Name string - The name of the resource.
- Key
Num int - Maximum number of stored keys.
- Log string
- Instance Audit Log Switch.
- Log
Storage int - Instance log capacity.
- Period int
- Purchase cycle, in months.
- Product
Version string - KMS Instance commodity type (software/hardware).
- Renew
Period int - Automatic renewal period, in months.
- Renew
Status string - Renewal options (manual renewal, automatic renewal, no renewal).
- Secret
Num int - Maximum number of Secrets.
- Spec int
- The computation performance level of the KMS instance.
- Status string
- Instance status.
- Vpc
Id string - Instance VPC id.
- Vpc
Num int - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- Vswitch
Ids List<string> - Instance bind vswitches.
- Zone
Ids List<string> - zone id.
- Bind
Vpcs []InstanceBind Vpc Args - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - Ca
Certificate stringChain Pem - KMS instance certificate chain in PEM format.
- Create
Time string - The creation time of the resource.
- Instance
Name string - The name of the resource.
- Key
Num int - Maximum number of stored keys.
- Log string
- Instance Audit Log Switch.
- Log
Storage int - Instance log capacity.
- Period int
- Purchase cycle, in months.
- Product
Version string - KMS Instance commodity type (software/hardware).
- Renew
Period int - Automatic renewal period, in months.
- Renew
Status string - Renewal options (manual renewal, automatic renewal, no renewal).
- Secret
Num int - Maximum number of Secrets.
- Spec int
- The computation performance level of the KMS instance.
- Status string
- Instance status.
- Vpc
Id string - Instance VPC id.
- Vpc
Num int - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- Vswitch
Ids []string - Instance bind vswitches.
- Zone
Ids []string - zone id.
- bind
Vpcs List<InstanceBind Vpc> - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - ca
Certificate StringChain Pem - KMS instance certificate chain in PEM format.
- create
Time String - The creation time of the resource.
- instance
Name String - The name of the resource.
- key
Num Integer - Maximum number of stored keys.
- log String
- Instance Audit Log Switch.
- log
Storage Integer - Instance log capacity.
- period Integer
- Purchase cycle, in months.
- product
Version String - KMS Instance commodity type (software/hardware).
- renew
Period Integer - Automatic renewal period, in months.
- renew
Status String - Renewal options (manual renewal, automatic renewal, no renewal).
- secret
Num Integer - Maximum number of Secrets.
- spec Integer
- The computation performance level of the KMS instance.
- status String
- Instance status.
- vpc
Id String - Instance VPC id.
- vpc
Num Integer - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- vswitch
Ids List<String> - Instance bind vswitches.
- zone
Ids List<String> - zone id.
- bind
Vpcs InstanceBind Vpc[] - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - ca
Certificate stringChain Pem - KMS instance certificate chain in PEM format.
- create
Time string - The creation time of the resource.
- instance
Name string - The name of the resource.
- key
Num number - Maximum number of stored keys.
- log string
- Instance Audit Log Switch.
- log
Storage number - Instance log capacity.
- period number
- Purchase cycle, in months.
- product
Version string - KMS Instance commodity type (software/hardware).
- renew
Period number - Automatic renewal period, in months.
- renew
Status string - Renewal options (manual renewal, automatic renewal, no renewal).
- secret
Num number - Maximum number of Secrets.
- spec number
- The computation performance level of the KMS instance.
- status string
- Instance status.
- vpc
Id string - Instance VPC id.
- vpc
Num number - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- vswitch
Ids string[] - Instance bind vswitches.
- zone
Ids string[] - zone id.
- bind_
vpcs Sequence[InstanceBind Vpc Args] - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - ca_
certificate_ strchain_ pem - KMS instance certificate chain in PEM format.
- create_
time str - The creation time of the resource.
- instance_
name str - The name of the resource.
- key_
num int - Maximum number of stored keys.
- log str
- Instance Audit Log Switch.
- log_
storage int - Instance log capacity.
- period int
- Purchase cycle, in months.
- product_
version str - KMS Instance commodity type (software/hardware).
- renew_
period int - Automatic renewal period, in months.
- renew_
status str - Renewal options (manual renewal, automatic renewal, no renewal).
- secret_
num int - Maximum number of Secrets.
- spec int
- The computation performance level of the KMS instance.
- status str
- Instance status.
- vpc_
id str - Instance VPC id.
- vpc_
num int - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- vswitch_
ids Sequence[str] - Instance bind vswitches.
- zone_
ids Sequence[str] - zone id.
- bind
Vpcs List<Property Map> - Aucillary VPCs used to access this KMS instance. See
bind_vpcs
below. - ca
Certificate StringChain Pem - KMS instance certificate chain in PEM format.
- create
Time String - The creation time of the resource.
- instance
Name String - The name of the resource.
- key
Num Number - Maximum number of stored keys.
- log String
- Instance Audit Log Switch.
- log
Storage Number - Instance log capacity.
- period Number
- Purchase cycle, in months.
- product
Version String - KMS Instance commodity type (software/hardware).
- renew
Period Number - Automatic renewal period, in months.
- renew
Status String - Renewal options (manual renewal, automatic renewal, no renewal).
- secret
Num Number - Maximum number of Secrets.
- spec Number
- The computation performance level of the KMS instance.
- status String
- Instance status.
- vpc
Id String - Instance VPC id.
- vpc
Num Number - The number of managed accesses. The maximum number of VPCs that can access this KMS instance.
- vswitch
Ids List<String> - Instance bind vswitches.
- zone
Ids List<String> - zone id.
Supporting Types
InstanceBindVpc, InstanceBindVpcArgs
- Region
Id string - region id.
- Vpc
Id string - VPC ID.
- Vpc
Owner intId - VPC owner root user ID.
- Vswitch
Id string - vswitch id.
- Region
Id string - region id.
- Vpc
Id string - VPC ID.
- Vpc
Owner intId - VPC owner root user ID.
- Vswitch
Id string - vswitch id.
- region
Id String - region id.
- vpc
Id String - VPC ID.
- vpc
Owner IntegerId - VPC owner root user ID.
- vswitch
Id String - vswitch id.
- region
Id string - region id.
- vpc
Id string - VPC ID.
- vpc
Owner numberId - VPC owner root user ID.
- vswitch
Id string - vswitch id.
- region_
id str - region id.
- vpc_
id str - VPC ID.
- vpc_
owner_ intid - VPC owner root user ID.
- vswitch_
id str - vswitch id.
- region
Id String - region id.
- vpc
Id String - VPC ID.
- vpc
Owner NumberId - VPC owner root user ID.
- vswitch
Id String - vswitch id.
Import
KMS Instance can be imported using the id, e.g.
$ pulumi import alicloud:kms/instance:Instance example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.