1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dns
  5. AddressPool
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.dns.AddressPool

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a Alidns Address Pool resource.

    For information about Alidns Address Pool and how to use it, see What is Address Pool.

    NOTE: Available since v1.152.0.

    Create AddressPool Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AddressPool(name: string, args: AddressPoolArgs, opts?: CustomResourceOptions);
    @overload
    def AddressPool(resource_name: str,
                    args: AddressPoolArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def AddressPool(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    address_pool_name: Optional[str] = None,
                    addresses: Optional[Sequence[AddressPoolAddressArgs]] = None,
                    instance_id: Optional[str] = None,
                    lba_strategy: Optional[str] = None,
                    type: Optional[str] = None)
    func NewAddressPool(ctx *Context, name string, args AddressPoolArgs, opts ...ResourceOption) (*AddressPool, error)
    public AddressPool(string name, AddressPoolArgs args, CustomResourceOptions? opts = null)
    public AddressPool(String name, AddressPoolArgs args)
    public AddressPool(String name, AddressPoolArgs args, CustomResourceOptions options)
    
    type: alicloud:dns:AddressPool
    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 AddressPoolArgs
    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 AddressPoolArgs
    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 AddressPoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AddressPoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AddressPoolArgs
    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 addressPoolResource = new AliCloud.Dns.AddressPool("addressPoolResource", new()
    {
        AddressPoolName = "string",
        Addresses = new[]
        {
            new AliCloud.Dns.Inputs.AddressPoolAddressArgs
            {
                Address = "string",
                AttributeInfo = "string",
                Mode = "string",
                LbaWeight = 0,
                Remark = "string",
            },
        },
        InstanceId = "string",
        LbaStrategy = "string",
        Type = "string",
    });
    
    example, err := dns.NewAddressPool(ctx, "addressPoolResource", &dns.AddressPoolArgs{
    	AddressPoolName: pulumi.String("string"),
    	Addresses: dns.AddressPoolAddressArray{
    		&dns.AddressPoolAddressArgs{
    			Address:       pulumi.String("string"),
    			AttributeInfo: pulumi.String("string"),
    			Mode:          pulumi.String("string"),
    			LbaWeight:     pulumi.Int(0),
    			Remark:        pulumi.String("string"),
    		},
    	},
    	InstanceId:  pulumi.String("string"),
    	LbaStrategy: pulumi.String("string"),
    	Type:        pulumi.String("string"),
    })
    
    var addressPoolResource = new AddressPool("addressPoolResource", AddressPoolArgs.builder()        
        .addressPoolName("string")
        .addresses(AddressPoolAddressArgs.builder()
            .address("string")
            .attributeInfo("string")
            .mode("string")
            .lbaWeight(0)
            .remark("string")
            .build())
        .instanceId("string")
        .lbaStrategy("string")
        .type("string")
        .build());
    
    address_pool_resource = alicloud.dns.AddressPool("addressPoolResource",
        address_pool_name="string",
        addresses=[alicloud.dns.AddressPoolAddressArgs(
            address="string",
            attribute_info="string",
            mode="string",
            lba_weight=0,
            remark="string",
        )],
        instance_id="string",
        lba_strategy="string",
        type="string")
    
    const addressPoolResource = new alicloud.dns.AddressPool("addressPoolResource", {
        addressPoolName: "string",
        addresses: [{
            address: "string",
            attributeInfo: "string",
            mode: "string",
            lbaWeight: 0,
            remark: "string",
        }],
        instanceId: "string",
        lbaStrategy: "string",
        type: "string",
    });
    
    type: alicloud:dns:AddressPool
    properties:
        addressPoolName: string
        addresses:
            - address: string
              attributeInfo: string
              lbaWeight: 0
              mode: string
              remark: string
        instanceId: string
        lbaStrategy: string
        type: string
    

    AddressPool 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 AddressPool resource accepts the following input properties:

    AddressPoolName string
    The name of the address pool.
    Addresses List<Pulumi.AliCloud.Dns.Inputs.AddressPoolAddress>
    The address lists of the Address Pool. See address below for details.
    InstanceId string
    The ID of the instance.
    LbaStrategy string
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    Type string
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    AddressPoolName string
    The name of the address pool.
    Addresses []AddressPoolAddressArgs
    The address lists of the Address Pool. See address below for details.
    InstanceId string
    The ID of the instance.
    LbaStrategy string
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    Type string
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    addressPoolName String
    The name of the address pool.
    addresses List<AddressPoolAddress>
    The address lists of the Address Pool. See address below for details.
    instanceId String
    The ID of the instance.
    lbaStrategy String
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    type String
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    addressPoolName string
    The name of the address pool.
    addresses AddressPoolAddress[]
    The address lists of the Address Pool. See address below for details.
    instanceId string
    The ID of the instance.
    lbaStrategy string
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    type string
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    address_pool_name str
    The name of the address pool.
    addresses Sequence[AddressPoolAddressArgs]
    The address lists of the Address Pool. See address below for details.
    instance_id str
    The ID of the instance.
    lba_strategy str
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    type str
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    addressPoolName String
    The name of the address pool.
    addresses List<Property Map>
    The address lists of the Address Pool. See address below for details.
    instanceId String
    The ID of the instance.
    lbaStrategy String
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    type String
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AddressPool 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 AddressPool Resource

    Get an existing AddressPool 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?: AddressPoolState, opts?: CustomResourceOptions): AddressPool
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address_pool_name: Optional[str] = None,
            addresses: Optional[Sequence[AddressPoolAddressArgs]] = None,
            instance_id: Optional[str] = None,
            lba_strategy: Optional[str] = None,
            type: Optional[str] = None) -> AddressPool
    func GetAddressPool(ctx *Context, name string, id IDInput, state *AddressPoolState, opts ...ResourceOption) (*AddressPool, error)
    public static AddressPool Get(string name, Input<string> id, AddressPoolState? state, CustomResourceOptions? opts = null)
    public static AddressPool get(String name, Output<String> id, AddressPoolState 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:
    AddressPoolName string
    The name of the address pool.
    Addresses List<Pulumi.AliCloud.Dns.Inputs.AddressPoolAddress>
    The address lists of the Address Pool. See address below for details.
    InstanceId string
    The ID of the instance.
    LbaStrategy string
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    Type string
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    AddressPoolName string
    The name of the address pool.
    Addresses []AddressPoolAddressArgs
    The address lists of the Address Pool. See address below for details.
    InstanceId string
    The ID of the instance.
    LbaStrategy string
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    Type string
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    addressPoolName String
    The name of the address pool.
    addresses List<AddressPoolAddress>
    The address lists of the Address Pool. See address below for details.
    instanceId String
    The ID of the instance.
    lbaStrategy String
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    type String
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    addressPoolName string
    The name of the address pool.
    addresses AddressPoolAddress[]
    The address lists of the Address Pool. See address below for details.
    instanceId string
    The ID of the instance.
    lbaStrategy string
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    type string
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    address_pool_name str
    The name of the address pool.
    addresses Sequence[AddressPoolAddressArgs]
    The address lists of the Address Pool. See address below for details.
    instance_id str
    The ID of the instance.
    lba_strategy str
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    type str
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.
    addressPoolName String
    The name of the address pool.
    addresses List<Property Map>
    The address lists of the Address Pool. See address below for details.
    instanceId String
    The ID of the instance.
    lbaStrategy String
    The load balancing policy of the address pool. Valid values:ALL_RR or RATIO. ALL_RR: returns all addresses. RATIO: returns addresses by weight.
    type String
    The type of the address pool. Valid values: IPV4, IPV6, DOMAIN.

    Supporting Types

    AddressPoolAddress, AddressPoolAddressArgs

    Address string
    The address that you want to add to the address pool.
    AttributeInfo string
    The source region of the address. expressed as a JSON string. The structure is as follows:
    Mode string
    The type of the address. Valid values:SMART, ONLINE and OFFLINE.
    LbaWeight int
    The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.
    Remark string
    The description of the address.
    Address string
    The address that you want to add to the address pool.
    AttributeInfo string
    The source region of the address. expressed as a JSON string. The structure is as follows:
    Mode string
    The type of the address. Valid values:SMART, ONLINE and OFFLINE.
    LbaWeight int
    The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.
    Remark string
    The description of the address.
    address String
    The address that you want to add to the address pool.
    attributeInfo String
    The source region of the address. expressed as a JSON string. The structure is as follows:
    mode String
    The type of the address. Valid values:SMART, ONLINE and OFFLINE.
    lbaWeight Integer
    The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.
    remark String
    The description of the address.
    address string
    The address that you want to add to the address pool.
    attributeInfo string
    The source region of the address. expressed as a JSON string. The structure is as follows:
    mode string
    The type of the address. Valid values:SMART, ONLINE and OFFLINE.
    lbaWeight number
    The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.
    remark string
    The description of the address.
    address str
    The address that you want to add to the address pool.
    attribute_info str
    The source region of the address. expressed as a JSON string. The structure is as follows:
    mode str
    The type of the address. Valid values:SMART, ONLINE and OFFLINE.
    lba_weight int
    The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.
    remark str
    The description of the address.
    address String
    The address that you want to add to the address pool.
    attributeInfo String
    The source region of the address. expressed as a JSON string. The structure is as follows:
    mode String
    The type of the address. Valid values:SMART, ONLINE and OFFLINE.
    lbaWeight Number
    The weight of the address. NOTE: The attribute is valid when the attribute lba_strategy is RATIO.
    remark String
    The description of the address.

    Import

    Alidns Address Pool can be imported using the id, e.g.

    $ pulumi import alicloud:dns/addressPool:AddressPool 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.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi