alicloud.dns.AccessStrategy
Explore with Pulumi AI
Provides a DNS Access Strategy resource.
For information about DNS Access Strategy and how to use it, see What is Access Strategy.
NOTE: Available since v1.152.0.
Create AccessStrategy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessStrategy(name: string, args: AccessStrategyArgs, opts?: CustomResourceOptions);
@overload
def AccessStrategy(resource_name: str,
args: AccessStrategyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessStrategy(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_min_available_addr_num: Optional[int] = None,
default_addr_pool_type: Optional[str] = None,
default_addr_pools: Optional[Sequence[AccessStrategyDefaultAddrPoolArgs]] = None,
strategy_name: Optional[str] = None,
strategy_mode: Optional[str] = None,
instance_id: Optional[str] = None,
failover_addr_pools: Optional[Sequence[AccessStrategyFailoverAddrPoolArgs]] = None,
failover_addr_pool_type: Optional[str] = None,
access_mode: Optional[str] = None,
failover_latency_optimization: Optional[str] = None,
failover_lba_strategy: Optional[str] = None,
failover_max_return_addr_num: Optional[int] = None,
failover_min_available_addr_num: Optional[int] = None,
default_max_return_addr_num: Optional[int] = None,
lang: Optional[str] = None,
lines: Optional[Sequence[AccessStrategyLineArgs]] = None,
default_lba_strategy: Optional[str] = None,
default_latency_optimization: Optional[str] = None)
func NewAccessStrategy(ctx *Context, name string, args AccessStrategyArgs, opts ...ResourceOption) (*AccessStrategy, error)
public AccessStrategy(string name, AccessStrategyArgs args, CustomResourceOptions? opts = null)
public AccessStrategy(String name, AccessStrategyArgs args)
public AccessStrategy(String name, AccessStrategyArgs args, CustomResourceOptions options)
type: alicloud:dns:AccessStrategy
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 AccessStrategyArgs
- 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 AccessStrategyArgs
- 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 AccessStrategyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessStrategyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessStrategyArgs
- 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 accessStrategyResource = new AliCloud.Dns.AccessStrategy("accessStrategyResource", new()
{
DefaultMinAvailableAddrNum = 0,
DefaultAddrPoolType = "string",
DefaultAddrPools = new[]
{
new AliCloud.Dns.Inputs.AccessStrategyDefaultAddrPoolArgs
{
AddrPoolId = "string",
LbaWeight = 0,
},
},
StrategyName = "string",
StrategyMode = "string",
InstanceId = "string",
FailoverAddrPools = new[]
{
new AliCloud.Dns.Inputs.AccessStrategyFailoverAddrPoolArgs
{
AddrPoolId = "string",
LbaWeight = 0,
},
},
FailoverAddrPoolType = "string",
AccessMode = "string",
FailoverLatencyOptimization = "string",
FailoverLbaStrategy = "string",
FailoverMaxReturnAddrNum = 0,
FailoverMinAvailableAddrNum = 0,
DefaultMaxReturnAddrNum = 0,
Lang = "string",
Lines = new[]
{
new AliCloud.Dns.Inputs.AccessStrategyLineArgs
{
LineCode = "string",
},
},
DefaultLbaStrategy = "string",
DefaultLatencyOptimization = "string",
});
example, err := dns.NewAccessStrategy(ctx, "accessStrategyResource", &dns.AccessStrategyArgs{
DefaultMinAvailableAddrNum: pulumi.Int(0),
DefaultAddrPoolType: pulumi.String("string"),
DefaultAddrPools: dns.AccessStrategyDefaultAddrPoolArray{
&dns.AccessStrategyDefaultAddrPoolArgs{
AddrPoolId: pulumi.String("string"),
LbaWeight: pulumi.Int(0),
},
},
StrategyName: pulumi.String("string"),
StrategyMode: pulumi.String("string"),
InstanceId: pulumi.String("string"),
FailoverAddrPools: dns.AccessStrategyFailoverAddrPoolArray{
&dns.AccessStrategyFailoverAddrPoolArgs{
AddrPoolId: pulumi.String("string"),
LbaWeight: pulumi.Int(0),
},
},
FailoverAddrPoolType: pulumi.String("string"),
AccessMode: pulumi.String("string"),
FailoverLatencyOptimization: pulumi.String("string"),
FailoverLbaStrategy: pulumi.String("string"),
FailoverMaxReturnAddrNum: pulumi.Int(0),
FailoverMinAvailableAddrNum: pulumi.Int(0),
DefaultMaxReturnAddrNum: pulumi.Int(0),
Lang: pulumi.String("string"),
Lines: dns.AccessStrategyLineArray{
&dns.AccessStrategyLineArgs{
LineCode: pulumi.String("string"),
},
},
DefaultLbaStrategy: pulumi.String("string"),
DefaultLatencyOptimization: pulumi.String("string"),
})
var accessStrategyResource = new AccessStrategy("accessStrategyResource", AccessStrategyArgs.builder()
.defaultMinAvailableAddrNum(0)
.defaultAddrPoolType("string")
.defaultAddrPools(AccessStrategyDefaultAddrPoolArgs.builder()
.addrPoolId("string")
.lbaWeight(0)
.build())
.strategyName("string")
.strategyMode("string")
.instanceId("string")
.failoverAddrPools(AccessStrategyFailoverAddrPoolArgs.builder()
.addrPoolId("string")
.lbaWeight(0)
.build())
.failoverAddrPoolType("string")
.accessMode("string")
.failoverLatencyOptimization("string")
.failoverLbaStrategy("string")
.failoverMaxReturnAddrNum(0)
.failoverMinAvailableAddrNum(0)
.defaultMaxReturnAddrNum(0)
.lang("string")
.lines(AccessStrategyLineArgs.builder()
.lineCode("string")
.build())
.defaultLbaStrategy("string")
.defaultLatencyOptimization("string")
.build());
access_strategy_resource = alicloud.dns.AccessStrategy("accessStrategyResource",
default_min_available_addr_num=0,
default_addr_pool_type="string",
default_addr_pools=[alicloud.dns.AccessStrategyDefaultAddrPoolArgs(
addr_pool_id="string",
lba_weight=0,
)],
strategy_name="string",
strategy_mode="string",
instance_id="string",
failover_addr_pools=[alicloud.dns.AccessStrategyFailoverAddrPoolArgs(
addr_pool_id="string",
lba_weight=0,
)],
failover_addr_pool_type="string",
access_mode="string",
failover_latency_optimization="string",
failover_lba_strategy="string",
failover_max_return_addr_num=0,
failover_min_available_addr_num=0,
default_max_return_addr_num=0,
lang="string",
lines=[alicloud.dns.AccessStrategyLineArgs(
line_code="string",
)],
default_lba_strategy="string",
default_latency_optimization="string")
const accessStrategyResource = new alicloud.dns.AccessStrategy("accessStrategyResource", {
defaultMinAvailableAddrNum: 0,
defaultAddrPoolType: "string",
defaultAddrPools: [{
addrPoolId: "string",
lbaWeight: 0,
}],
strategyName: "string",
strategyMode: "string",
instanceId: "string",
failoverAddrPools: [{
addrPoolId: "string",
lbaWeight: 0,
}],
failoverAddrPoolType: "string",
accessMode: "string",
failoverLatencyOptimization: "string",
failoverLbaStrategy: "string",
failoverMaxReturnAddrNum: 0,
failoverMinAvailableAddrNum: 0,
defaultMaxReturnAddrNum: 0,
lang: "string",
lines: [{
lineCode: "string",
}],
defaultLbaStrategy: "string",
defaultLatencyOptimization: "string",
});
type: alicloud:dns:AccessStrategy
properties:
accessMode: string
defaultAddrPoolType: string
defaultAddrPools:
- addrPoolId: string
lbaWeight: 0
defaultLatencyOptimization: string
defaultLbaStrategy: string
defaultMaxReturnAddrNum: 0
defaultMinAvailableAddrNum: 0
failoverAddrPoolType: string
failoverAddrPools:
- addrPoolId: string
lbaWeight: 0
failoverLatencyOptimization: string
failoverLbaStrategy: string
failoverMaxReturnAddrNum: 0
failoverMinAvailableAddrNum: 0
instanceId: string
lang: string
lines:
- lineCode: string
strategyMode: string
strategyName: string
AccessStrategy 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 AccessStrategy resource accepts the following input properties:
- Default
Addr stringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - Default
Addr List<Pulumi.Pools Ali Cloud. Dns. Inputs. Access Strategy Default Addr Pool> - List of primary address pool collections. See
default_addr_pools
below for details. - int
- The minimum number of available addresses for the primary address pool set.
- Instance
Id string - The Id of the associated instance.
- Strategy
Mode string - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - Strategy
Name string - The name of the access policy.
- Access
Mode string - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - Default
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - Default
Lba stringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - Default
Max intReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - Failover
Addr stringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - Failover
Addr List<Pulumi.Pools Ali Cloud. Dns. Inputs. Access Strategy Failover Addr Pool> - List of backup address pool sets. See
failover_addr_pools
below for details. - Failover
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - Failover
Lba stringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - Failover
Max intReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- int
- The minimum number of available addresses in the standby address pool.
- Lang string
- The lang.
- Lines
List<Pulumi.
Ali Cloud. Dns. Inputs. Access Strategy Line> - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
.
- Default
Addr stringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - Default
Addr []AccessPools Strategy Default Addr Pool Args - List of primary address pool collections. See
default_addr_pools
below for details. - int
- The minimum number of available addresses for the primary address pool set.
- Instance
Id string - The Id of the associated instance.
- Strategy
Mode string - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - Strategy
Name string - The name of the access policy.
- Access
Mode string - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - Default
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - Default
Lba stringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - Default
Max intReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - Failover
Addr stringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - Failover
Addr []AccessPools Strategy Failover Addr Pool Args - List of backup address pool sets. See
failover_addr_pools
below for details. - Failover
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - Failover
Lba stringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - Failover
Max intReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- int
- The minimum number of available addresses in the standby address pool.
- Lang string
- The lang.
- Lines
[]Access
Strategy Line Args - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
.
- default
Addr StringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - default
Addr List<AccessPools Strategy Default Addr Pool> - List of primary address pool collections. See
default_addr_pools
below for details. - Integer
- The minimum number of available addresses for the primary address pool set.
- instance
Id String - The Id of the associated instance.
- strategy
Mode String - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - strategy
Name String - The name of the access policy.
- access
Mode String - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - default
Latency StringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - default
Lba StringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - default
Max IntegerReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - failover
Addr StringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - failover
Addr List<AccessPools Strategy Failover Addr Pool> - List of backup address pool sets. See
failover_addr_pools
below for details. - failover
Latency StringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - failover
Lba StringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - failover
Max IntegerReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- Integer
- The minimum number of available addresses in the standby address pool.
- lang String
- The lang.
- lines
List<Access
Strategy Line> - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
.
- default
Addr stringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - default
Addr AccessPools Strategy Default Addr Pool[] - List of primary address pool collections. See
default_addr_pools
below for details. - number
- The minimum number of available addresses for the primary address pool set.
- instance
Id string - The Id of the associated instance.
- strategy
Mode string - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - strategy
Name string - The name of the access policy.
- access
Mode string - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - default
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - default
Lba stringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - default
Max numberReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - failover
Addr stringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - failover
Addr AccessPools Strategy Failover Addr Pool[] - List of backup address pool sets. See
failover_addr_pools
below for details. - failover
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - failover
Lba stringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - failover
Max numberReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- number
- The minimum number of available addresses in the standby address pool.
- lang string
- The lang.
- lines
Access
Strategy Line[] - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
.
- default_
addr_ strpool_ type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - default_
addr_ Sequence[Accesspools Strategy Default Addr Pool Args] - List of primary address pool collections. See
default_addr_pools
below for details. - default_
min_ intavailable_ addr_ num - The minimum number of available addresses for the primary address pool set.
- instance_
id str - The Id of the associated instance.
- strategy_
mode str - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - strategy_
name str - The name of the access policy.
- access_
mode str - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - default_
latency_ stroptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - default_
lba_ strstrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - default_
max_ intreturn_ addr_ num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - failover_
addr_ strpool_ type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - failover_
addr_ Sequence[Accesspools Strategy Failover Addr Pool Args] - List of backup address pool sets. See
failover_addr_pools
below for details. - failover_
latency_ stroptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - failover_
lba_ strstrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - failover_
max_ intreturn_ addr_ num - The maximum number of returned addresses in the standby address pool.
- failover_
min_ intavailable_ addr_ num - The minimum number of available addresses in the standby address pool.
- lang str
- The lang.
- lines
Sequence[Access
Strategy Line Args] - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
.
- default
Addr StringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - default
Addr List<Property Map>Pools - List of primary address pool collections. See
default_addr_pools
below for details. - Number
- The minimum number of available addresses for the primary address pool set.
- instance
Id String - The Id of the associated instance.
- strategy
Mode String - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - strategy
Name String - The name of the access policy.
- access
Mode String - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - default
Latency StringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - default
Lba StringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - default
Max NumberReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - failover
Addr StringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - failover
Addr List<Property Map>Pools - List of backup address pool sets. See
failover_addr_pools
below for details. - failover
Latency StringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - failover
Lba StringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - failover
Max NumberReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- Number
- The minimum number of available addresses in the standby address pool.
- lang String
- The lang.
- lines List<Property Map>
- The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessStrategy 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 AccessStrategy Resource
Get an existing AccessStrategy 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?: AccessStrategyState, opts?: CustomResourceOptions): AccessStrategy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
default_addr_pool_type: Optional[str] = None,
default_addr_pools: Optional[Sequence[AccessStrategyDefaultAddrPoolArgs]] = None,
default_latency_optimization: Optional[str] = None,
default_lba_strategy: Optional[str] = None,
default_max_return_addr_num: Optional[int] = None,
default_min_available_addr_num: Optional[int] = None,
failover_addr_pool_type: Optional[str] = None,
failover_addr_pools: Optional[Sequence[AccessStrategyFailoverAddrPoolArgs]] = None,
failover_latency_optimization: Optional[str] = None,
failover_lba_strategy: Optional[str] = None,
failover_max_return_addr_num: Optional[int] = None,
failover_min_available_addr_num: Optional[int] = None,
instance_id: Optional[str] = None,
lang: Optional[str] = None,
lines: Optional[Sequence[AccessStrategyLineArgs]] = None,
strategy_mode: Optional[str] = None,
strategy_name: Optional[str] = None) -> AccessStrategy
func GetAccessStrategy(ctx *Context, name string, id IDInput, state *AccessStrategyState, opts ...ResourceOption) (*AccessStrategy, error)
public static AccessStrategy Get(string name, Input<string> id, AccessStrategyState? state, CustomResourceOptions? opts = null)
public static AccessStrategy get(String name, Output<String> id, AccessStrategyState 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.
- Access
Mode string - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - Default
Addr stringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - Default
Addr List<Pulumi.Pools Ali Cloud. Dns. Inputs. Access Strategy Default Addr Pool> - List of primary address pool collections. See
default_addr_pools
below for details. - Default
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - Default
Lba stringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - Default
Max intReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - int
- The minimum number of available addresses for the primary address pool set.
- Failover
Addr stringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - Failover
Addr List<Pulumi.Pools Ali Cloud. Dns. Inputs. Access Strategy Failover Addr Pool> - List of backup address pool sets. See
failover_addr_pools
below for details. - Failover
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - Failover
Lba stringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - Failover
Max intReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- int
- The minimum number of available addresses in the standby address pool.
- Instance
Id string - The Id of the associated instance.
- Lang string
- The lang.
- Lines
List<Pulumi.
Ali Cloud. Dns. Inputs. Access Strategy Line> - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
. - Strategy
Mode string - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - Strategy
Name string - The name of the access policy.
- Access
Mode string - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - Default
Addr stringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - Default
Addr []AccessPools Strategy Default Addr Pool Args - List of primary address pool collections. See
default_addr_pools
below for details. - Default
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - Default
Lba stringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - Default
Max intReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - int
- The minimum number of available addresses for the primary address pool set.
- Failover
Addr stringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - Failover
Addr []AccessPools Strategy Failover Addr Pool Args - List of backup address pool sets. See
failover_addr_pools
below for details. - Failover
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - Failover
Lba stringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - Failover
Max intReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- int
- The minimum number of available addresses in the standby address pool.
- Instance
Id string - The Id of the associated instance.
- Lang string
- The lang.
- Lines
[]Access
Strategy Line Args - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
. - Strategy
Mode string - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - Strategy
Name string - The name of the access policy.
- access
Mode String - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - default
Addr StringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - default
Addr List<AccessPools Strategy Default Addr Pool> - List of primary address pool collections. See
default_addr_pools
below for details. - default
Latency StringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - default
Lba StringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - default
Max IntegerReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - Integer
- The minimum number of available addresses for the primary address pool set.
- failover
Addr StringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - failover
Addr List<AccessPools Strategy Failover Addr Pool> - List of backup address pool sets. See
failover_addr_pools
below for details. - failover
Latency StringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - failover
Lba StringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - failover
Max IntegerReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- Integer
- The minimum number of available addresses in the standby address pool.
- instance
Id String - The Id of the associated instance.
- lang String
- The lang.
- lines
List<Access
Strategy Line> - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
. - strategy
Mode String - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - strategy
Name String - The name of the access policy.
- access
Mode string - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - default
Addr stringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - default
Addr AccessPools Strategy Default Addr Pool[] - List of primary address pool collections. See
default_addr_pools
below for details. - default
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - default
Lba stringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - default
Max numberReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - number
- The minimum number of available addresses for the primary address pool set.
- failover
Addr stringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - failover
Addr AccessPools Strategy Failover Addr Pool[] - List of backup address pool sets. See
failover_addr_pools
below for details. - failover
Latency stringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - failover
Lba stringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - failover
Max numberReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- number
- The minimum number of available addresses in the standby address pool.
- instance
Id string - The Id of the associated instance.
- lang string
- The lang.
- lines
Access
Strategy Line[] - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
. - strategy
Mode string - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - strategy
Name string - The name of the access policy.
- access_
mode str - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - default_
addr_ strpool_ type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - default_
addr_ Sequence[Accesspools Strategy Default Addr Pool Args] - List of primary address pool collections. See
default_addr_pools
below for details. - default_
latency_ stroptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - default_
lba_ strstrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - default_
max_ intreturn_ addr_ num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - default_
min_ intavailable_ addr_ num - The minimum number of available addresses for the primary address pool set.
- failover_
addr_ strpool_ type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - failover_
addr_ Sequence[Accesspools Strategy Failover Addr Pool Args] - List of backup address pool sets. See
failover_addr_pools
below for details. - failover_
latency_ stroptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - failover_
lba_ strstrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - failover_
max_ intreturn_ addr_ num - The maximum number of returned addresses in the standby address pool.
- failover_
min_ intavailable_ addr_ num - The minimum number of available addresses in the standby address pool.
- instance_
id str - The Id of the associated instance.
- lang str
- The lang.
- lines
Sequence[Access
Strategy Line Args] - The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
. - strategy_
mode str - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - strategy_
name str - The name of the access policy.
- access
Mode String - The primary/secondary switchover policy for address pool groups. Valid values:
AUTO
,DEFAULT
,FAILOVER
. - default
Addr StringPool Type - The type of the primary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - default
Addr List<Property Map>Pools - List of primary address pool collections. See
default_addr_pools
below for details. - default
Latency StringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values:
OPEN
,CLOSE
. - default
Lba StringStrategy - The load balancing policy of the primary address pool group. Valid values:
ALL_RR
,RATIO
. NOTE: Thedefault_lba_strategy
is required under the condition thatstrategy_mode
isGEO
. - default
Max NumberReturn Addr Num - The maximum number of addresses returned by the primary address pool set. NOTE: The
default_max_return_addr_num
is required under the condition thatstrategy_mode
isLATENCY
. - Number
- The minimum number of available addresses for the primary address pool set.
- failover
Addr StringPool Type - The type of the secondary address pool. Valid values:
IPV4
,IPV6
,DOMAIN
. - failover
Addr List<Property Map>Pools - List of backup address pool sets. See
failover_addr_pools
below for details. - failover
Latency StringOptimization - Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values:
OPEN
,CLOSE
. - failover
Lba StringStrategy - The load balancing policy of the secondary address pool group. Valid values:
ALL_RR
,RATIO
. - failover
Max NumberReturn Addr Num - The maximum number of returned addresses in the standby address pool.
- Number
- The minimum number of available addresses in the standby address pool.
- instance
Id String - The Id of the associated instance.
- lang String
- The lang.
- lines List<Property Map>
- The source regions. See
lines
below for details. NOTE: Thelines
is required under the condition thatstrategy_mode
isGEO
. - strategy
Mode String - The type of the access policy. Valid values:
GEO
orLATENCY
.GEO
: based on geographic location.LATENCY
: Based on delay. - strategy
Name String - The name of the access policy.
Supporting Types
AccessStrategyDefaultAddrPool, AccessStrategyDefaultAddrPoolArgs
- Addr
Pool stringId - The ID of the address pool in the primary address pool group.
- Lba
Weight int - The weight of the address pool in the primary address pool group.
- Addr
Pool stringId - The ID of the address pool in the primary address pool group.
- Lba
Weight int - The weight of the address pool in the primary address pool group.
- addr
Pool StringId - The ID of the address pool in the primary address pool group.
- lba
Weight Integer - The weight of the address pool in the primary address pool group.
- addr
Pool stringId - The ID of the address pool in the primary address pool group.
- lba
Weight number - The weight of the address pool in the primary address pool group.
- addr_
pool_ strid - The ID of the address pool in the primary address pool group.
- lba_
weight int - The weight of the address pool in the primary address pool group.
- addr
Pool StringId - The ID of the address pool in the primary address pool group.
- lba
Weight Number - The weight of the address pool in the primary address pool group.
AccessStrategyFailoverAddrPool, AccessStrategyFailoverAddrPoolArgs
- Addr
Pool stringId - The ID of the address pool in the secondary address pool group.
- Lba
Weight int - The weight of the address pool in the secondary address pool group.
- Addr
Pool stringId - The ID of the address pool in the secondary address pool group.
- Lba
Weight int - The weight of the address pool in the secondary address pool group.
- addr
Pool StringId - The ID of the address pool in the secondary address pool group.
- lba
Weight Integer - The weight of the address pool in the secondary address pool group.
- addr
Pool stringId - The ID of the address pool in the secondary address pool group.
- lba
Weight number - The weight of the address pool in the secondary address pool group.
- addr_
pool_ strid - The ID of the address pool in the secondary address pool group.
- lba_
weight int - The weight of the address pool in the secondary address pool group.
- addr
Pool StringId - The ID of the address pool in the secondary address pool group.
- lba
Weight Number - The weight of the address pool in the secondary address pool group.
AccessStrategyLine, AccessStrategyLineArgs
- Line
Code string - The line code of the source region.
- Line
Code string - The line code of the source region.
- line
Code String - The line code of the source region.
- line
Code string - The line code of the source region.
- line_
code str - The line code of the source region.
- line
Code String - The line code of the source region.
Import
DNS Access Strategy can be imported using the id, e.g.
$ pulumi import alicloud:dns/accessStrategy:AccessStrategy 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.