alicloud.yundun.BastionHostInstance
Explore with Pulumi AI
Create BastionHostInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BastionHostInstance(name: string, args: BastionHostInstanceArgs, opts?: CustomResourceOptions);
@overload
def BastionHostInstance(resource_name: str,
args: BastionHostInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BastionHostInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
plan_code: Optional[str] = None,
bandwidth: Optional[str] = None,
description: Optional[str] = None,
vswitch_id: Optional[str] = None,
storage: Optional[str] = None,
license_code: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
public_white_lists: Optional[Sequence[str]] = None,
ad_auth_servers: Optional[Sequence[BastionHostInstanceAdAuthServerArgs]] = None,
renew_period: Optional[int] = None,
renewal_period_unit: Optional[str] = None,
renewal_status: Optional[str] = None,
resource_group_id: Optional[str] = None,
period: Optional[int] = None,
ldap_auth_servers: Optional[Sequence[BastionHostInstanceLdapAuthServerArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
enable_public_access: Optional[bool] = None)
func NewBastionHostInstance(ctx *Context, name string, args BastionHostInstanceArgs, opts ...ResourceOption) (*BastionHostInstance, error)
public BastionHostInstance(string name, BastionHostInstanceArgs args, CustomResourceOptions? opts = null)
public BastionHostInstance(String name, BastionHostInstanceArgs args)
public BastionHostInstance(String name, BastionHostInstanceArgs args, CustomResourceOptions options)
type: alicloud:yundun:BastionHostInstance
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 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.
- args BastionHostInstanceArgs
- 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 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.
- name String
- The unique name of the resource.
- args BastionHostInstanceArgs
- 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 bastionHostInstanceResource = new AliCloud.Yundun.BastionHostInstance("bastionHostInstanceResource", new()
{
PlanCode = "string",
Bandwidth = "string",
Description = "string",
VswitchId = "string",
Storage = "string",
LicenseCode = "string",
SecurityGroupIds = new[]
{
"string",
},
PublicWhiteLists = new[]
{
"string",
},
AdAuthServers = new[]
{
new AliCloud.Yundun.Inputs.BastionHostInstanceAdAuthServerArgs
{
Account = "string",
BaseDn = "string",
Domain = "string",
IsSsl = false,
Password = "string",
Port = 0,
Server = "string",
EmailMapping = "string",
Filter = "string",
MobileMapping = "string",
NameMapping = "string",
StandbyServer = "string",
},
},
RenewPeriod = 0,
RenewalPeriodUnit = "string",
RenewalStatus = "string",
ResourceGroupId = "string",
Period = 0,
LdapAuthServers = new[]
{
new AliCloud.Yundun.Inputs.BastionHostInstanceLdapAuthServerArgs
{
Account = "string",
BaseDn = "string",
Password = "string",
Port = 0,
Server = "string",
EmailMapping = "string",
Filter = "string",
IsSsl = false,
LoginNameMapping = "string",
MobileMapping = "string",
NameMapping = "string",
StandbyServer = "string",
},
},
Tags =
{
{ "string", "string" },
},
EnablePublicAccess = false,
});
example, err := yundun.NewBastionHostInstance(ctx, "bastionHostInstanceResource", &yundun.BastionHostInstanceArgs{
PlanCode: pulumi.String("string"),
Bandwidth: pulumi.String("string"),
Description: pulumi.String("string"),
VswitchId: pulumi.String("string"),
Storage: pulumi.String("string"),
LicenseCode: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
PublicWhiteLists: pulumi.StringArray{
pulumi.String("string"),
},
AdAuthServers: yundun.BastionHostInstanceAdAuthServerArray{
&yundun.BastionHostInstanceAdAuthServerArgs{
Account: pulumi.String("string"),
BaseDn: pulumi.String("string"),
Domain: pulumi.String("string"),
IsSsl: pulumi.Bool(false),
Password: pulumi.String("string"),
Port: pulumi.Int(0),
Server: pulumi.String("string"),
EmailMapping: pulumi.String("string"),
Filter: pulumi.String("string"),
MobileMapping: pulumi.String("string"),
NameMapping: pulumi.String("string"),
StandbyServer: pulumi.String("string"),
},
},
RenewPeriod: pulumi.Int(0),
RenewalPeriodUnit: pulumi.String("string"),
RenewalStatus: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Period: pulumi.Int(0),
LdapAuthServers: yundun.BastionHostInstanceLdapAuthServerArray{
&yundun.BastionHostInstanceLdapAuthServerArgs{
Account: pulumi.String("string"),
BaseDn: pulumi.String("string"),
Password: pulumi.String("string"),
Port: pulumi.Int(0),
Server: pulumi.String("string"),
EmailMapping: pulumi.String("string"),
Filter: pulumi.String("string"),
IsSsl: pulumi.Bool(false),
LoginNameMapping: pulumi.String("string"),
MobileMapping: pulumi.String("string"),
NameMapping: pulumi.String("string"),
StandbyServer: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
EnablePublicAccess: pulumi.Bool(false),
})
var bastionHostInstanceResource = new BastionHostInstance("bastionHostInstanceResource", BastionHostInstanceArgs.builder()
.planCode("string")
.bandwidth("string")
.description("string")
.vswitchId("string")
.storage("string")
.licenseCode("string")
.securityGroupIds("string")
.publicWhiteLists("string")
.adAuthServers(BastionHostInstanceAdAuthServerArgs.builder()
.account("string")
.baseDn("string")
.domain("string")
.isSsl(false)
.password("string")
.port(0)
.server("string")
.emailMapping("string")
.filter("string")
.mobileMapping("string")
.nameMapping("string")
.standbyServer("string")
.build())
.renewPeriod(0)
.renewalPeriodUnit("string")
.renewalStatus("string")
.resourceGroupId("string")
.period(0)
.ldapAuthServers(BastionHostInstanceLdapAuthServerArgs.builder()
.account("string")
.baseDn("string")
.password("string")
.port(0)
.server("string")
.emailMapping("string")
.filter("string")
.isSsl(false)
.loginNameMapping("string")
.mobileMapping("string")
.nameMapping("string")
.standbyServer("string")
.build())
.tags(Map.of("string", "string"))
.enablePublicAccess(false)
.build());
bastion_host_instance_resource = alicloud.yundun.BastionHostInstance("bastionHostInstanceResource",
plan_code="string",
bandwidth="string",
description="string",
vswitch_id="string",
storage="string",
license_code="string",
security_group_ids=["string"],
public_white_lists=["string"],
ad_auth_servers=[{
"account": "string",
"base_dn": "string",
"domain": "string",
"is_ssl": False,
"password": "string",
"port": 0,
"server": "string",
"email_mapping": "string",
"filter": "string",
"mobile_mapping": "string",
"name_mapping": "string",
"standby_server": "string",
}],
renew_period=0,
renewal_period_unit="string",
renewal_status="string",
resource_group_id="string",
period=0,
ldap_auth_servers=[{
"account": "string",
"base_dn": "string",
"password": "string",
"port": 0,
"server": "string",
"email_mapping": "string",
"filter": "string",
"is_ssl": False,
"login_name_mapping": "string",
"mobile_mapping": "string",
"name_mapping": "string",
"standby_server": "string",
}],
tags={
"string": "string",
},
enable_public_access=False)
const bastionHostInstanceResource = new alicloud.yundun.BastionHostInstance("bastionHostInstanceResource", {
planCode: "string",
bandwidth: "string",
description: "string",
vswitchId: "string",
storage: "string",
licenseCode: "string",
securityGroupIds: ["string"],
publicWhiteLists: ["string"],
adAuthServers: [{
account: "string",
baseDn: "string",
domain: "string",
isSsl: false,
password: "string",
port: 0,
server: "string",
emailMapping: "string",
filter: "string",
mobileMapping: "string",
nameMapping: "string",
standbyServer: "string",
}],
renewPeriod: 0,
renewalPeriodUnit: "string",
renewalStatus: "string",
resourceGroupId: "string",
period: 0,
ldapAuthServers: [{
account: "string",
baseDn: "string",
password: "string",
port: 0,
server: "string",
emailMapping: "string",
filter: "string",
isSsl: false,
loginNameMapping: "string",
mobileMapping: "string",
nameMapping: "string",
standbyServer: "string",
}],
tags: {
string: "string",
},
enablePublicAccess: false,
});
type: alicloud:yundun:BastionHostInstance
properties:
adAuthServers:
- account: string
baseDn: string
domain: string
emailMapping: string
filter: string
isSsl: false
mobileMapping: string
nameMapping: string
password: string
port: 0
server: string
standbyServer: string
bandwidth: string
description: string
enablePublicAccess: false
ldapAuthServers:
- account: string
baseDn: string
emailMapping: string
filter: string
isSsl: false
loginNameMapping: string
mobileMapping: string
nameMapping: string
password: string
port: 0
server: string
standbyServer: string
licenseCode: string
period: 0
planCode: string
publicWhiteLists:
- string
renewPeriod: 0
renewalPeriodUnit: string
renewalStatus: string
resourceGroupId: string
securityGroupIds:
- string
storage: string
tags:
string: string
vswitchId: string
BastionHostInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BastionHostInstance resource accepts the following input properties:
- Bandwidth string
- Description string
- License
Code string - Plan
Code string - Security
Group List<string>Ids - Storage string
- Vswitch
Id string - Ad
Auth List<Pulumi.Servers Ali Cloud. Yundun. Inputs. Bastion Host Instance Ad Auth Server> - Enable
Public boolAccess - Ldap
Auth List<Pulumi.Servers Ali Cloud. Yundun. Inputs. Bastion Host Instance Ldap Auth Server> - Period int
- Public
White List<string>Lists - Renew
Period int - Renewal
Period stringUnit - Renewal
Status string - Resource
Group stringId - Dictionary<string, string>
- Bandwidth string
- Description string
- License
Code string - Plan
Code string - Security
Group []stringIds - Storage string
- Vswitch
Id string - Ad
Auth []BastionServers Host Instance Ad Auth Server Args - Enable
Public boolAccess - Ldap
Auth []BastionServers Host Instance Ldap Auth Server Args - Period int
- Public
White []stringLists - Renew
Period int - Renewal
Period stringUnit - Renewal
Status string - Resource
Group stringId - map[string]string
- bandwidth String
- description String
- license
Code String - plan
Code String - security
Group List<String>Ids - storage String
- vswitch
Id String - ad
Auth List<BastionServers Host Instance Ad Auth Server> - enable
Public BooleanAccess - ldap
Auth List<BastionServers Host Instance Ldap Auth Server> - period Integer
- public
White List<String>Lists - renew
Period Integer - renewal
Period StringUnit - renewal
Status String - resource
Group StringId - Map<String,String>
- bandwidth string
- description string
- license
Code string - plan
Code string - security
Group string[]Ids - storage string
- vswitch
Id string - ad
Auth BastionServers Host Instance Ad Auth Server[] - enable
Public booleanAccess - ldap
Auth BastionServers Host Instance Ldap Auth Server[] - period number
- public
White string[]Lists - renew
Period number - renewal
Period stringUnit - renewal
Status string - resource
Group stringId - {[key: string]: string}
- bandwidth str
- description str
- license_
code str - plan_
code str - security_
group_ Sequence[str]ids - storage str
- vswitch_
id str - ad_
auth_ Sequence[Bastionservers Host Instance Ad Auth Server Args] - enable_
public_ boolaccess - ldap_
auth_ Sequence[Bastionservers Host Instance Ldap Auth Server Args] - period int
- public_
white_ Sequence[str]lists - renew_
period int - renewal_
period_ strunit - renewal_
status str - resource_
group_ strid - Mapping[str, str]
- bandwidth String
- description String
- license
Code String - plan
Code String - security
Group List<String>Ids - storage String
- vswitch
Id String - ad
Auth List<Property Map>Servers - enable
Public BooleanAccess - ldap
Auth List<Property Map>Servers - period Number
- public
White List<String>Lists - renew
Period Number - renewal
Period StringUnit - renewal
Status String - resource
Group StringId - Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the BastionHostInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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): BastionHostInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ad_auth_servers: Optional[Sequence[BastionHostInstanceAdAuthServerArgs]] = None,
bandwidth: Optional[str] = None,
description: Optional[str] = None,
enable_public_access: Optional[bool] = None,
ldap_auth_servers: Optional[Sequence[BastionHostInstanceLdapAuthServerArgs]] = None,
license_code: Optional[str] = None,
period: Optional[int] = None,
plan_code: Optional[str] = None,
public_white_lists: Optional[Sequence[str]] = None,
renew_period: Optional[int] = None,
renewal_period_unit: Optional[str] = None,
renewal_status: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
storage: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vswitch_id: Optional[str] = None) -> BastionHostInstance
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)
public static BastionHostInstance get(String name, Output<String> id, BastionHostInstanceState 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.
- Ad
Auth List<Pulumi.Servers Ali Cloud. Yundun. Inputs. Bastion Host Instance Ad Auth Server> - Bandwidth string
- Description string
- Enable
Public boolAccess - Ldap
Auth List<Pulumi.Servers Ali Cloud. Yundun. Inputs. Bastion Host Instance Ldap Auth Server> - License
Code string - Period int
- Plan
Code string - Public
White List<string>Lists - Renew
Period int - Renewal
Period stringUnit - Renewal
Status string - Resource
Group stringId - Security
Group List<string>Ids - Storage string
- Dictionary<string, string>
- Vswitch
Id string
- Ad
Auth []BastionServers Host Instance Ad Auth Server Args - Bandwidth string
- Description string
- Enable
Public boolAccess - Ldap
Auth []BastionServers Host Instance Ldap Auth Server Args - License
Code string - Period int
- Plan
Code string - Public
White []stringLists - Renew
Period int - Renewal
Period stringUnit - Renewal
Status string - Resource
Group stringId - Security
Group []stringIds - Storage string
- map[string]string
- Vswitch
Id string
- ad
Auth List<BastionServers Host Instance Ad Auth Server> - bandwidth String
- description String
- enable
Public BooleanAccess - ldap
Auth List<BastionServers Host Instance Ldap Auth Server> - license
Code String - period Integer
- plan
Code String - public
White List<String>Lists - renew
Period Integer - renewal
Period StringUnit - renewal
Status String - resource
Group StringId - security
Group List<String>Ids - storage String
- Map<String,String>
- vswitch
Id String
- ad
Auth BastionServers Host Instance Ad Auth Server[] - bandwidth string
- description string
- enable
Public booleanAccess - ldap
Auth BastionServers Host Instance Ldap Auth Server[] - license
Code string - period number
- plan
Code string - public
White string[]Lists - renew
Period number - renewal
Period stringUnit - renewal
Status string - resource
Group stringId - security
Group string[]Ids - storage string
- {[key: string]: string}
- vswitch
Id string
- ad_
auth_ Sequence[Bastionservers Host Instance Ad Auth Server Args] - bandwidth str
- description str
- enable_
public_ boolaccess - ldap_
auth_ Sequence[Bastionservers Host Instance Ldap Auth Server Args] - license_
code str - period int
- plan_
code str - public_
white_ Sequence[str]lists - renew_
period int - renewal_
period_ strunit - renewal_
status str - resource_
group_ strid - security_
group_ Sequence[str]ids - storage str
- Mapping[str, str]
- vswitch_
id str
- ad
Auth List<Property Map>Servers - bandwidth String
- description String
- enable
Public BooleanAccess - ldap
Auth List<Property Map>Servers - license
Code String - period Number
- plan
Code String - public
White List<String>Lists - renew
Period Number - renewal
Period StringUnit - renewal
Status String - resource
Group StringId - security
Group List<String>Ids - storage String
- Map<String>
- vswitch
Id String
Supporting Types
BastionHostInstanceAdAuthServer, BastionHostInstanceAdAuthServerArgs
- Account string
- Base
Dn string - Domain string
- Is
Ssl bool - Password string
- Port int
- Server string
- Email
Mapping string - Filter string
- Mobile
Mapping string - Name
Mapping string - Standby
Server string
- Account string
- Base
Dn string - Domain string
- Is
Ssl bool - Password string
- Port int
- Server string
- Email
Mapping string - Filter string
- Mobile
Mapping string - Name
Mapping string - Standby
Server string
- account String
- base
Dn String - domain String
- is
Ssl Boolean - password String
- port Integer
- server String
- email
Mapping String - filter String
- mobile
Mapping String - name
Mapping String - standby
Server String
- account string
- base
Dn string - domain string
- is
Ssl boolean - password string
- port number
- server string
- email
Mapping string - filter string
- mobile
Mapping string - name
Mapping string - standby
Server string
- account str
- base_
dn str - domain str
- is_
ssl bool - password str
- port int
- server str
- email_
mapping str - filter str
- mobile_
mapping str - name_
mapping str - standby_
server str
- account String
- base
Dn String - domain String
- is
Ssl Boolean - password String
- port Number
- server String
- email
Mapping String - filter String
- mobile
Mapping String - name
Mapping String - standby
Server String
BastionHostInstanceLdapAuthServer, BastionHostInstanceLdapAuthServerArgs
- Account string
- Base
Dn string - Password string
- Port int
- Server string
- Email
Mapping string - Filter string
- Is
Ssl bool - Login
Name stringMapping - Mobile
Mapping string - Name
Mapping string - Standby
Server string
- Account string
- Base
Dn string - Password string
- Port int
- Server string
- Email
Mapping string - Filter string
- Is
Ssl bool - Login
Name stringMapping - Mobile
Mapping string - Name
Mapping string - Standby
Server string
- account String
- base
Dn String - password String
- port Integer
- server String
- email
Mapping String - filter String
- is
Ssl Boolean - login
Name StringMapping - mobile
Mapping String - name
Mapping String - standby
Server String
- account string
- base
Dn string - password string
- port number
- server string
- email
Mapping string - filter string
- is
Ssl boolean - login
Name stringMapping - mobile
Mapping string - name
Mapping string - standby
Server string
- account str
- base_
dn str - password str
- port int
- server str
- email_
mapping str - filter str
- is_
ssl bool - login_
name_ strmapping - mobile_
mapping str - name_
mapping str - standby_
server str
- account String
- base
Dn String - password String
- port Number
- server String
- email
Mapping String - filter String
- is
Ssl Boolean - login
Name StringMapping - mobile
Mapping String - name
Mapping String - standby
Server String
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.