1. Packages
  2. Alicloud Provider
  3. API Docs
  4. yundun
  5. BastionHostInstance
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.yundun.BastionHostInstance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    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=[alicloud.yundun.BastionHostInstanceAdAuthServerArgs(
            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=[alicloud.yundun.BastionHostInstanceLdapAuthServerArgs(
            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

    The BastionHostInstance resource accepts the following input properties:

    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.
    The following state arguments are supported:

    Supporting Types

    BastionHostInstanceAdAuthServer, BastionHostInstanceAdAuthServerArgs

    Account string
    BaseDn string
    Domain string
    IsSsl bool
    Password string
    Port int
    Server string
    EmailMapping string
    Filter string
    MobileMapping string
    NameMapping string
    StandbyServer string
    Account string
    BaseDn string
    Domain string
    IsSsl bool
    Password string
    Port int
    Server string
    EmailMapping string
    Filter string
    MobileMapping string
    NameMapping string
    StandbyServer string
    account String
    baseDn String
    domain String
    isSsl Boolean
    password String
    port Integer
    server String
    emailMapping String
    filter String
    mobileMapping String
    nameMapping String
    standbyServer String
    account string
    baseDn string
    domain string
    isSsl boolean
    password string
    port number
    server string
    emailMapping string
    filter string
    mobileMapping string
    nameMapping string
    standbyServer string
    account String
    baseDn String
    domain String
    isSsl Boolean
    password String
    port Number
    server String
    emailMapping String
    filter String
    mobileMapping String
    nameMapping String
    standbyServer String

    BastionHostInstanceLdapAuthServer, BastionHostInstanceLdapAuthServerArgs

    Account string
    BaseDn string
    Password string
    Port int
    Server string
    EmailMapping string
    Filter string
    IsSsl bool
    LoginNameMapping string
    MobileMapping string
    NameMapping string
    StandbyServer string
    Account string
    BaseDn string
    Password string
    Port int
    Server string
    EmailMapping string
    Filter string
    IsSsl bool
    LoginNameMapping string
    MobileMapping string
    NameMapping string
    StandbyServer string
    account String
    baseDn String
    password String
    port Integer
    server String
    emailMapping String
    filter String
    isSsl Boolean
    loginNameMapping String
    mobileMapping String
    nameMapping String
    standbyServer String
    account string
    baseDn string
    password string
    port number
    server string
    emailMapping string
    filter string
    isSsl boolean
    loginNameMapping string
    mobileMapping string
    nameMapping string
    standbyServer string
    account String
    baseDn String
    password String
    port Number
    server String
    emailMapping String
    filter String
    isSsl Boolean
    loginNameMapping String
    mobileMapping String
    nameMapping String
    standbyServer String

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi