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-h",
}));
const defaultInstance = new alicloud.kms.Instance("default", {
productVersion: "3",
vpcId: _default.then(_default => _default.ids?.[0]),
zoneIds: [
"cn-hangzhou-h",
"cn-hangzhou-g",
],
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-h")
default_instance = alicloud.kms.Instance("default",
product_version="3",
vpc_id=default.ids[0],
zone_ids=[
"cn-hangzhou-h",
"cn-hangzhou-g",
],
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-h"),
}, 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-h"),
pulumi.String("cn-hangzhou-g"),
},
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-h",
});
var defaultInstance = new AliCloud.Kms.Instance("default", new()
{
ProductVersion = "3",
VpcId = @default.Apply(@default => @default.Apply(getNetworksResult => getNetworksResult.Ids[0])),
ZoneIds = new[]
{
"cn-hangzhou-h",
"cn-hangzhou-g",
},
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-h")
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.productVersion("3")
.vpcId(default_.ids()[0])
.zoneIds(
"cn-hangzhou-h",
"cn-hangzhou-g")
.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-h
- cn-hangzhou-g
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-h
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,
vpc_id: Optional[str] = None,
zone_ids: Optional[Sequence[str]] = None,
vswitch_ids: Optional[Sequence[str]] = None,
log_storage: Optional[int] = None,
bind_vpcs: Optional[Sequence[InstanceBindVpcArgs]] = None,
payment_type: Optional[str] = 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,
log: Optional[str] = None,
vpc_num: Optional[int] = None,
key_num: Optional[int] = None,
force_delete_without_backup: 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromKmsinstance = new AliCloud.Kms.Instance("exampleinstanceResourceResourceFromKmsinstance", new()
{
VpcId = "string",
ZoneIds = new[]
{
"string",
},
VswitchIds = new[]
{
"string",
},
LogStorage = 0,
BindVpcs = new[]
{
new AliCloud.Kms.Inputs.InstanceBindVpcArgs
{
RegionId = "string",
VpcId = "string",
VpcOwnerId = 0,
VswitchId = "string",
},
},
PaymentType = "string",
Period = 0,
ProductVersion = "string",
RenewPeriod = 0,
RenewStatus = "string",
SecretNum = 0,
Spec = 0,
Log = "string",
VpcNum = 0,
KeyNum = 0,
ForceDeleteWithoutBackup = "string",
});
example, err := kms.NewInstance(ctx, "exampleinstanceResourceResourceFromKmsinstance", &kms.InstanceArgs{
VpcId: pulumi.String("string"),
ZoneIds: pulumi.StringArray{
pulumi.String("string"),
},
VswitchIds: pulumi.StringArray{
pulumi.String("string"),
},
LogStorage: pulumi.Int(0),
BindVpcs: kms.InstanceBindVpcArray{
&kms.InstanceBindVpcArgs{
RegionId: pulumi.String("string"),
VpcId: pulumi.String("string"),
VpcOwnerId: pulumi.Int(0),
VswitchId: pulumi.String("string"),
},
},
PaymentType: pulumi.String("string"),
Period: pulumi.Int(0),
ProductVersion: pulumi.String("string"),
RenewPeriod: pulumi.Int(0),
RenewStatus: pulumi.String("string"),
SecretNum: pulumi.Int(0),
Spec: pulumi.Int(0),
Log: pulumi.String("string"),
VpcNum: pulumi.Int(0),
KeyNum: pulumi.Int(0),
ForceDeleteWithoutBackup: pulumi.String("string"),
})
var exampleinstanceResourceResourceFromKmsinstance = new Instance("exampleinstanceResourceResourceFromKmsinstance", InstanceArgs.builder()
.vpcId("string")
.zoneIds("string")
.vswitchIds("string")
.logStorage(0)
.bindVpcs(InstanceBindVpcArgs.builder()
.regionId("string")
.vpcId("string")
.vpcOwnerId(0)
.vswitchId("string")
.build())
.paymentType("string")
.period(0)
.productVersion("string")
.renewPeriod(0)
.renewStatus("string")
.secretNum(0)
.spec(0)
.log("string")
.vpcNum(0)
.keyNum(0)
.forceDeleteWithoutBackup("string")
.build());
exampleinstance_resource_resource_from_kmsinstance = alicloud.kms.Instance("exampleinstanceResourceResourceFromKmsinstance",
vpc_id="string",
zone_ids=["string"],
vswitch_ids=["string"],
log_storage=0,
bind_vpcs=[alicloud.kms.InstanceBindVpcArgs(
region_id="string",
vpc_id="string",
vpc_owner_id=0,
vswitch_id="string",
)],
payment_type="string",
period=0,
product_version="string",
renew_period=0,
renew_status="string",
secret_num=0,
spec=0,
log="string",
vpc_num=0,
key_num=0,
force_delete_without_backup="string")
const exampleinstanceResourceResourceFromKmsinstance = new alicloud.kms.Instance("exampleinstanceResourceResourceFromKmsinstance", {
vpcId: "string",
zoneIds: ["string"],
vswitchIds: ["string"],
logStorage: 0,
bindVpcs: [{
regionId: "string",
vpcId: "string",
vpcOwnerId: 0,
vswitchId: "string",
}],
paymentType: "string",
period: 0,
productVersion: "string",
renewPeriod: 0,
renewStatus: "string",
secretNum: 0,
spec: 0,
log: "string",
vpcNum: 0,
keyNum: 0,
forceDeleteWithoutBackup: "string",
});
type: alicloud:kms:Instance
properties:
bindVpcs:
- regionId: string
vpcId: string
vpcOwnerId: 0
vswitchId: string
forceDeleteWithoutBackup: string
keyNum: 0
log: string
logStorage: 0
paymentType: string
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:
- Vpc
Id string - Instance VPC id.
- 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. - Force
Delete stringWithout Backup - Whether to force deletion even without backup.
- Key
Num int - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - Log string
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - Log
Storage int - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - Payment
Type string - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - Period int
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - Product
Version string - KMS Instance commodity type (software/hardware).
- Renew
Period int - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - Renew
Status string - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - Secret
Num int - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - Spec int
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - Vpc
Num int - 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
isSubscription
.
- Vpc
Id string - Instance VPC id.
- 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. - Force
Delete stringWithout Backup - Whether to force deletion even without backup.
- Key
Num int - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - Log string
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - Log
Storage int - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - Payment
Type string - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - Period int
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - Product
Version string - KMS Instance commodity type (software/hardware).
- Renew
Period int - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - Renew
Status string - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - Secret
Num int - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - Spec int
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - Vpc
Num int - 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
isSubscription
.
- vpc
Id String - Instance VPC id.
- 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. - force
Delete StringWithout Backup - Whether to force deletion even without backup.
- key
Num Integer - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - log String
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - log
Storage Integer - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - payment
Type String - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - period Integer
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - product
Version String - KMS Instance commodity type (software/hardware).
- renew
Period Integer - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - renew
Status String - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - secret
Num Integer - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - spec Integer
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - vpc
Num Integer - 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
isSubscription
.
- vpc
Id string - Instance VPC id.
- 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. - force
Delete stringWithout Backup - Whether to force deletion even without backup.
- key
Num number - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - log string
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - log
Storage number - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - payment
Type string - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - period number
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - product
Version string - KMS Instance commodity type (software/hardware).
- renew
Period number - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - renew
Status string - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - secret
Num number - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - spec number
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - vpc
Num number - 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
isSubscription
.
- vpc_
id str - Instance VPC id.
- 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. - force_
delete_ strwithout_ backup - Whether to force deletion even without backup.
- key_
num int - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - log str
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - log_
storage int - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - payment_
type str - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - period int
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - product_
version str - KMS Instance commodity type (software/hardware).
- renew_
period int - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - renew_
status str - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - secret_
num int - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - spec int
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - vpc_
num int - 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
isSubscription
.
- vpc
Id String - Instance VPC id.
- 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. - force
Delete StringWithout Backup - Whether to force deletion even without backup.
- key
Num Number - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - log String
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - log
Storage Number - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - payment
Type String - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - period Number
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - product
Version String - KMS Instance commodity type (software/hardware).
- renew
Period Number - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - renew
Status String - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - secret
Num Number - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - spec Number
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - vpc
Num Number - 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
isSubscription
.
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,
force_delete_without_backup: Optional[str] = None,
instance_name: Optional[str] = None,
key_num: Optional[int] = None,
log: Optional[str] = None,
log_storage: Optional[int] = None,
payment_type: Optional[str] = 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.
- Force
Delete stringWithout Backup - Whether to force deletion even without backup.
- Instance
Name string - The name of the resource.
- Key
Num int - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - Log string
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - Log
Storage int - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - Payment
Type string - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - Period int
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - Product
Version string - KMS Instance commodity type (software/hardware).
- Renew
Period int - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - Renew
Status string - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - Secret
Num int - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - Spec int
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - 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. The attribute is valid when the attribute
payment_type
isSubscription
. - 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.
- Force
Delete stringWithout Backup - Whether to force deletion even without backup.
- Instance
Name string - The name of the resource.
- Key
Num int - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - Log string
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - Log
Storage int - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - Payment
Type string - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - Period int
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - Product
Version string - KMS Instance commodity type (software/hardware).
- Renew
Period int - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - Renew
Status string - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - Secret
Num int - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - Spec int
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - 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. The attribute is valid when the attribute
payment_type
isSubscription
. - 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.
- force
Delete StringWithout Backup - Whether to force deletion even without backup.
- instance
Name String - The name of the resource.
- key
Num Integer - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - log String
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - log
Storage Integer - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - payment
Type String - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - period Integer
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - product
Version String - KMS Instance commodity type (software/hardware).
- renew
Period Integer - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - renew
Status String - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - secret
Num Integer - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - spec Integer
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - 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. The attribute is valid when the attribute
payment_type
isSubscription
. - 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.
- force
Delete stringWithout Backup - Whether to force deletion even without backup.
- instance
Name string - The name of the resource.
- key
Num number - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - log string
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - log
Storage number - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - payment
Type string - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - period number
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - product
Version string - KMS Instance commodity type (software/hardware).
- renew
Period number - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - renew
Status string - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - secret
Num number - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - spec number
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - 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. The attribute is valid when the attribute
payment_type
isSubscription
. - 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.
- force_
delete_ strwithout_ backup - Whether to force deletion even without backup.
- instance_
name str - The name of the resource.
- key_
num int - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - log str
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - log_
storage int - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - payment_
type str - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - period int
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - product_
version str - KMS Instance commodity type (software/hardware).
- renew_
period int - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - renew_
status str - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - secret_
num int - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - spec int
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - 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. The attribute is valid when the attribute
payment_type
isSubscription
. - 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.
- force
Delete StringWithout Backup - Whether to force deletion even without backup.
- instance
Name String - The name of the resource.
- key
Num Number - Maximum number of stored keys. The attribute is valid when the attribute
payment_type
isSubscription
. - log String
- Instance Audit Log Switch. The attribute is valid when the attribute
payment_type
isSubscription
. - log
Storage Number - Instance log capacity. The attribute is valid when the attribute
payment_type
isSubscription
. - payment
Type String - Payment type, valid values:
Subscription
: Prepaid.PayAsYouGo
: Postpaid, available since v1.223.2. - period Number
- Purchase cycle, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - product
Version String - KMS Instance commodity type (software/hardware).
- renew
Period Number - Automatic renewal period, in months. The attribute is valid when the attribute
payment_type
isSubscription
. - renew
Status String - Renewal options. Valid values:
AutoRenewal
,ManualRenewal
. The attribute is valid when the attributepayment_type
isSubscription
. - secret
Num Number - Maximum number of Secrets. The attribute is valid when the attribute
payment_type
isSubscription
. - spec Number
- The computation performance level of the KMS instance. The attribute is valid when the attribute
payment_type
isSubscription
. - 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. The attribute is valid when the attribute
payment_type
isSubscription
. - 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.