BastionHostInstance
Cloud Bastionhost instance resource (“Yundun_bastionhost” is the short term of this product).
NOTE: The endpoint of bssopenapi used only support “business.aliyuncs.com” at present.
NOTE: Available in 1.63.0+ .
NOTE: In order to destroy Cloud Bastionhost instance , users are required to apply for white list first
Create a BastionHostInstance Resource
new BastionHostInstance(name: string, args: BastionHostInstanceArgs, opts?: CustomResourceOptions);def BastionHostInstance(resource_name, opts=None, description=None, license_code=None, period=None, resource_group_id=None, security_group_ids=None, tags=None, vswitch_id=None, __props__=None);func NewBastionHostInstance(ctx *Context, name string, args BastionHostInstanceArgs, opts ...ResourceOption) (*BastionHostInstance, error)public BastionHostInstance(string name, BastionHostInstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args BastionHostInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BastionHostInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BastionHostInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
BastionHostInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The BastionHostInstance resource accepts the following input properties:
- Description string
Description of the instance. This name can have a string of 1 to 63 characters.
- License
Code string - Security
Group List<string>Ids security group IDs configured to bastionhost
- Vswitch
Id string vSwtich ID configured to bastionhost
- Period int
Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
- Resource
Group stringId The Id of resource group which the Bastionhost Instance belongs. If not set, the resource is created in the default resource group.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Description string
Description of the instance. This name can have a string of 1 to 63 characters.
- License
Code string - Security
Group []stringIds security group IDs configured to bastionhost
- Vswitch
Id string vSwtich ID configured to bastionhost
- Period int
Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
- Resource
Group stringId The Id of resource group which the Bastionhost Instance belongs. If not set, the resource is created in the default resource group.
- map[string]interface{}
A mapping of tags to assign to the resource.
- description string
Description of the instance. This name can have a string of 1 to 63 characters.
- license
Code string - security
Group string[]Ids security group IDs configured to bastionhost
- vswitch
Id string vSwtich ID configured to bastionhost
- period number
Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
- resource
Group stringId The Id of resource group which the Bastionhost Instance belongs. If not set, the resource is created in the default resource group.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- description str
Description of the instance. This name can have a string of 1 to 63 characters.
- license_
code str - security_
group_ List[str]ids security group IDs configured to bastionhost
- vswitch_
id str vSwtich ID configured to bastionhost
- period float
Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
- resource_
group_ strid The Id of resource group which the Bastionhost Instance belongs. If not set, the resource is created in the default resource group.
- Dict[str, Any]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the BastionHostInstance resource produces the following output properties:
Look up an Existing BastionHostInstance Resource
Get an existing BastionHostInstance 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?: BastionHostInstanceState, opts?: CustomResourceOptions): BastionHostInstancestatic get(resource_name, id, opts=None, description=None, license_code=None, period=None, resource_group_id=None, security_group_ids=None, tags=None, vswitch_id=None, __props__=None);func GetBastionHostInstance(ctx *Context, name string, id IDInput, state *BastionHostInstanceState, opts ...ResourceOption) (*BastionHostInstance, error)public static BastionHostInstance Get(string name, Input<string> id, BastionHostInstanceState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Description string
Description of the instance. This name can have a string of 1 to 63 characters.
- License
Code string - Period int
Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
- Resource
Group stringId The Id of resource group which the Bastionhost Instance belongs. If not set, the resource is created in the default resource group.
- Security
Group List<string>Ids security group IDs configured to bastionhost
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Vswitch
Id string vSwtich ID configured to bastionhost
- Description string
Description of the instance. This name can have a string of 1 to 63 characters.
- License
Code string - Period int
Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
- Resource
Group stringId The Id of resource group which the Bastionhost Instance belongs. If not set, the resource is created in the default resource group.
- Security
Group []stringIds security group IDs configured to bastionhost
- map[string]interface{}
A mapping of tags to assign to the resource.
- Vswitch
Id string vSwtich ID configured to bastionhost
- description string
Description of the instance. This name can have a string of 1 to 63 characters.
- license
Code string - period number
Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
- resource
Group stringId The Id of resource group which the Bastionhost Instance belongs. If not set, the resource is created in the default resource group.
- security
Group string[]Ids security group IDs configured to bastionhost
- {[key: string]: any}
A mapping of tags to assign to the resource.
- vswitch
Id string vSwtich ID configured to bastionhost
- description str
Description of the instance. This name can have a string of 1 to 63 characters.
- license_
code str - period float
Duration for initially producing the instance. Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
- resource_
group_ strid The Id of resource group which the Bastionhost Instance belongs. If not set, the resource is created in the default resource group.
- security_
group_ List[str]ids security group IDs configured to bastionhost
- Dict[str, Any]
A mapping of tags to assign to the resource.
- vswitch_
id str vSwtich ID configured to bastionhost
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.