alicloud.dns.AddressPool
Provides a Alidns Address Pool resource.
For information about Alidns Address Pool and how to use it, see What is Address Pool.
NOTE: Available in v1.152.0+.
Create AddressPool Resource
new AddressPool(name: string, args: AddressPoolArgs, opts?: CustomResourceOptions);
@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)
@overload
def AddressPool(resource_name: str,
args: AddressPoolArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- Address
Pool stringName The name of the address pool.
- Addresses
List<Pulumi.
Ali Cloud. Dns. Inputs. Address Pool Address Args> The address lists of the Address Pool. See the following
Block address
.- Instance
Id string The ID of the instance.
- Lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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 stringName The name of the address pool.
- Addresses
[]Address
Pool Address Args The address lists of the Address Pool. See the following
Block address
.- Instance
Id string The ID of the instance.
- Lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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 StringName The name of the address pool.
- addresses
List<Address
Pool Address Args> The address lists of the Address Pool. See the following
Block address
.- instance
Id String The ID of the instance.
- lba
Strategy String The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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 stringName The name of the address pool.
- addresses
Address
Pool Address Args[] The address lists of the Address Pool. See the following
Block address
.- instance
Id string The ID of the instance.
- lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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_ strname The name of the address pool.
- addresses
Sequence[Address
Pool Address Args] The address lists of the Address Pool. See the following
Block address
.- instance_
id str The ID of the instance.
- lba_
strategy str The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type str
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address
Pool StringName The name of the address pool.
- addresses List<Property Map>
The address lists of the Address Pool. See the following
Block address
.- instance
Id String The ID of the instance.
- lba
Strategy String The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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.
- Address
Pool stringName The name of the address pool.
- Addresses
List<Pulumi.
Ali Cloud. Dns. Inputs. Address Pool Address Args> The address lists of the Address Pool. See the following
Block address
.- Instance
Id string The ID of the instance.
- Lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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 stringName The name of the address pool.
- Addresses
[]Address
Pool Address Args The address lists of the Address Pool. See the following
Block address
.- Instance
Id string The ID of the instance.
- Lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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 StringName The name of the address pool.
- addresses
List<Address
Pool Address Args> The address lists of the Address Pool. See the following
Block address
.- instance
Id String The ID of the instance.
- lba
Strategy String The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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 stringName The name of the address pool.
- addresses
Address
Pool Address Args[] The address lists of the Address Pool. See the following
Block address
.- instance
Id string The ID of the instance.
- lba
Strategy string The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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_ strname The name of the address pool.
- addresses
Sequence[Address
Pool Address Args] The address lists of the Address Pool. See the following
Block address
.- instance_
id str The ID of the instance.
- lba_
strategy str The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.ALL_RR
: returns all addresses.RATIO
: returns addresses by weight.- type str
The type of the address pool. Valid values:
IPV4
,IPV6
,DOMAIN
.
- address
Pool StringName The name of the address pool.
- addresses List<Property Map>
The address lists of the Address Pool. See the following
Block address
.- instance
Id String The ID of the instance.
- lba
Strategy String The load balancing policy of the address pool. Valid values:
ALL_RR
orRATIO
.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
- Address string
The address lists of the Address Pool. See the following
Block address
.- Attribute
Info 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
andOFFLINE
.- Lba
Weight int The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- Remark string
The description of the address.
- Address string
The address lists of the Address Pool. See the following
Block address
.- Attribute
Info 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
andOFFLINE
.- Lba
Weight int The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- Remark string
The description of the address.
- address String
The address lists of the Address Pool. See the following
Block address
.- attribute
Info 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
andOFFLINE
.- lba
Weight Integer The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- remark String
The description of the address.
- address string
The address lists of the Address Pool. See the following
Block address
.- attribute
Info 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
andOFFLINE
.- lba
Weight number The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- remark string
The description of the address.
- address str
The address lists of the Address Pool. See the following
Block address
.- 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
andOFFLINE
.- lba_
weight int The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- remark str
The description of the address.
- address String
The address lists of the Address Pool. See the following
Block address
.- attribute
Info 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
andOFFLINE
.- lba
Weight Number The weight of the address. NOTE: The attribute is valid when the attribute
lba_strategy
isRATIO
.- 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>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.