1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dns
  5. AccessStrategy
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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 This property is required. string
The unique name of the resource.
args This property is required. AccessStrategyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. AccessStrategyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccessStrategyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
access_strategy_resource = alicloud.dns.AccessStrategy("accessStrategyResource",
    default_min_available_addr_num=0,
    default_addr_pool_type="string",
    default_addr_pools=[{
        "addr_pool_id": "string",
        "lba_weight": 0,
    }],
    strategy_name="string",
    strategy_mode="string",
    instance_id="string",
    failover_addr_pools=[{
        "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=[{
        "line_code": "string",
    }],
    default_lba_strategy="string",
    default_latency_optimization="string")
Copy
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",
});
Copy
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
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AccessStrategy resource accepts the following input properties:

DefaultAddrPoolType This property is required. string
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
DefaultAddrPools This property is required. List<Pulumi.AliCloud.Dns.Inputs.AccessStrategyDefaultAddrPool>
List of primary address pool collections. See default_addr_pools below for details.
DefaultMinAvailableAddrNum This property is required. int
The minimum number of available addresses for the primary address pool set.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The Id of the associated instance.
StrategyMode This property is required. string
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
StrategyName This property is required. string
The name of the access policy.
AccessMode string
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
DefaultLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
DefaultLbaStrategy string
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
DefaultMaxReturnAddrNum int
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
FailoverAddrPoolType string
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
FailoverAddrPools List<Pulumi.AliCloud.Dns.Inputs.AccessStrategyFailoverAddrPool>
List of backup address pool sets. See failover_addr_pools below for details.
FailoverLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
FailoverLbaStrategy string
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
FailoverMaxReturnAddrNum int
The maximum number of returned addresses in the standby address pool.
FailoverMinAvailableAddrNum int
The minimum number of available addresses in the standby address pool.
Lang string
The lang.
Lines List<Pulumi.AliCloud.Dns.Inputs.AccessStrategyLine>
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
DefaultAddrPoolType This property is required. string
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
DefaultAddrPools This property is required. []AccessStrategyDefaultAddrPoolArgs
List of primary address pool collections. See default_addr_pools below for details.
DefaultMinAvailableAddrNum This property is required. int
The minimum number of available addresses for the primary address pool set.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The Id of the associated instance.
StrategyMode This property is required. string
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
StrategyName This property is required. string
The name of the access policy.
AccessMode string
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
DefaultLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
DefaultLbaStrategy string
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
DefaultMaxReturnAddrNum int
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
FailoverAddrPoolType string
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
FailoverAddrPools []AccessStrategyFailoverAddrPoolArgs
List of backup address pool sets. See failover_addr_pools below for details.
FailoverLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
FailoverLbaStrategy string
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
FailoverMaxReturnAddrNum int
The maximum number of returned addresses in the standby address pool.
FailoverMinAvailableAddrNum int
The minimum number of available addresses in the standby address pool.
Lang string
The lang.
Lines []AccessStrategyLineArgs
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
defaultAddrPoolType This property is required. String
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
defaultAddrPools This property is required. List<AccessStrategyDefaultAddrPool>
List of primary address pool collections. See default_addr_pools below for details.
defaultMinAvailableAddrNum This property is required. Integer
The minimum number of available addresses for the primary address pool set.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The Id of the associated instance.
strategyMode This property is required. String
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
strategyName This property is required. String
The name of the access policy.
accessMode String
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
defaultLatencyOptimization String
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
defaultLbaStrategy String
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
defaultMaxReturnAddrNum Integer
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
failoverAddrPoolType String
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
failoverAddrPools List<AccessStrategyFailoverAddrPool>
List of backup address pool sets. See failover_addr_pools below for details.
failoverLatencyOptimization String
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
failoverLbaStrategy String
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
failoverMaxReturnAddrNum Integer
The maximum number of returned addresses in the standby address pool.
failoverMinAvailableAddrNum Integer
The minimum number of available addresses in the standby address pool.
lang String
The lang.
lines List<AccessStrategyLine>
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
defaultAddrPoolType This property is required. string
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
defaultAddrPools This property is required. AccessStrategyDefaultAddrPool[]
List of primary address pool collections. See default_addr_pools below for details.
defaultMinAvailableAddrNum This property is required. number
The minimum number of available addresses for the primary address pool set.
instanceId
This property is required.
Changes to this property will trigger replacement.
string
The Id of the associated instance.
strategyMode This property is required. string
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
strategyName This property is required. string
The name of the access policy.
accessMode string
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
defaultLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
defaultLbaStrategy string
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
defaultMaxReturnAddrNum number
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
failoverAddrPoolType string
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
failoverAddrPools AccessStrategyFailoverAddrPool[]
List of backup address pool sets. See failover_addr_pools below for details.
failoverLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
failoverLbaStrategy string
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
failoverMaxReturnAddrNum number
The maximum number of returned addresses in the standby address pool.
failoverMinAvailableAddrNum number
The minimum number of available addresses in the standby address pool.
lang string
The lang.
lines AccessStrategyLine[]
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
default_addr_pool_type This property is required. str
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
default_addr_pools This property is required. Sequence[AccessStrategyDefaultAddrPoolArgs]
List of primary address pool collections. See default_addr_pools below for details.
default_min_available_addr_num This property is required. int
The minimum number of available addresses for the primary address pool set.
instance_id
This property is required.
Changes to this property will trigger replacement.
str
The Id of the associated instance.
strategy_mode This property is required. str
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
strategy_name This property is required. 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_optimization str
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
default_lba_strategy str
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
default_max_return_addr_num int
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
failover_addr_pool_type str
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
failover_addr_pools Sequence[AccessStrategyFailoverAddrPoolArgs]
List of backup address pool sets. See failover_addr_pools below for details.
failover_latency_optimization str
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
failover_lba_strategy str
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
failover_max_return_addr_num int
The maximum number of returned addresses in the standby address pool.
failover_min_available_addr_num int
The minimum number of available addresses in the standby address pool.
lang str
The lang.
lines Sequence[AccessStrategyLineArgs]
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
defaultAddrPoolType This property is required. String
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
defaultAddrPools This property is required. List<Property Map>
List of primary address pool collections. See default_addr_pools below for details.
defaultMinAvailableAddrNum This property is required. Number
The minimum number of available addresses for the primary address pool set.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The Id of the associated instance.
strategyMode This property is required. String
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
strategyName This property is required. String
The name of the access policy.
accessMode String
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
defaultLatencyOptimization String
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
defaultLbaStrategy String
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
defaultMaxReturnAddrNum Number
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
failoverAddrPoolType String
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
failoverAddrPools List<Property Map>
List of backup address pool sets. See failover_addr_pools below for details.
failoverLatencyOptimization String
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
failoverLbaStrategy String
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
failoverMaxReturnAddrNum Number
The maximum number of returned addresses in the standby address pool.
failoverMinAvailableAddrNum 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: The lines is required under the condition that strategy_mode is GEO.

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)
resources:  _:    type: alicloud:dns:AccessStrategy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AccessMode string
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
DefaultAddrPoolType string
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
DefaultAddrPools List<Pulumi.AliCloud.Dns.Inputs.AccessStrategyDefaultAddrPool>
List of primary address pool collections. See default_addr_pools below for details.
DefaultLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
DefaultLbaStrategy string
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
DefaultMaxReturnAddrNum int
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
DefaultMinAvailableAddrNum int
The minimum number of available addresses for the primary address pool set.
FailoverAddrPoolType string
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
FailoverAddrPools List<Pulumi.AliCloud.Dns.Inputs.AccessStrategyFailoverAddrPool>
List of backup address pool sets. See failover_addr_pools below for details.
FailoverLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
FailoverLbaStrategy string
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
FailoverMaxReturnAddrNum int
The maximum number of returned addresses in the standby address pool.
FailoverMinAvailableAddrNum int
The minimum number of available addresses in the standby address pool.
InstanceId Changes to this property will trigger replacement. string
The Id of the associated instance.
Lang string
The lang.
Lines List<Pulumi.AliCloud.Dns.Inputs.AccessStrategyLine>
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
StrategyMode string
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
StrategyName string
The name of the access policy.
AccessMode string
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
DefaultAddrPoolType string
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
DefaultAddrPools []AccessStrategyDefaultAddrPoolArgs
List of primary address pool collections. See default_addr_pools below for details.
DefaultLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
DefaultLbaStrategy string
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
DefaultMaxReturnAddrNum int
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
DefaultMinAvailableAddrNum int
The minimum number of available addresses for the primary address pool set.
FailoverAddrPoolType string
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
FailoverAddrPools []AccessStrategyFailoverAddrPoolArgs
List of backup address pool sets. See failover_addr_pools below for details.
FailoverLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
FailoverLbaStrategy string
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
FailoverMaxReturnAddrNum int
The maximum number of returned addresses in the standby address pool.
FailoverMinAvailableAddrNum int
The minimum number of available addresses in the standby address pool.
InstanceId Changes to this property will trigger replacement. string
The Id of the associated instance.
Lang string
The lang.
Lines []AccessStrategyLineArgs
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
StrategyMode string
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
StrategyName string
The name of the access policy.
accessMode String
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
defaultAddrPoolType String
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
defaultAddrPools List<AccessStrategyDefaultAddrPool>
List of primary address pool collections. See default_addr_pools below for details.
defaultLatencyOptimization String
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
defaultLbaStrategy String
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
defaultMaxReturnAddrNum Integer
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
defaultMinAvailableAddrNum Integer
The minimum number of available addresses for the primary address pool set.
failoverAddrPoolType String
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
failoverAddrPools List<AccessStrategyFailoverAddrPool>
List of backup address pool sets. See failover_addr_pools below for details.
failoverLatencyOptimization String
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
failoverLbaStrategy String
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
failoverMaxReturnAddrNum Integer
The maximum number of returned addresses in the standby address pool.
failoverMinAvailableAddrNum Integer
The minimum number of available addresses in the standby address pool.
instanceId Changes to this property will trigger replacement. String
The Id of the associated instance.
lang String
The lang.
lines List<AccessStrategyLine>
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
strategyMode String
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
strategyName String
The name of the access policy.
accessMode string
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
defaultAddrPoolType string
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
defaultAddrPools AccessStrategyDefaultAddrPool[]
List of primary address pool collections. See default_addr_pools below for details.
defaultLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
defaultLbaStrategy string
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
defaultMaxReturnAddrNum number
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
defaultMinAvailableAddrNum number
The minimum number of available addresses for the primary address pool set.
failoverAddrPoolType string
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
failoverAddrPools AccessStrategyFailoverAddrPool[]
List of backup address pool sets. See failover_addr_pools below for details.
failoverLatencyOptimization string
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
failoverLbaStrategy string
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
failoverMaxReturnAddrNum number
The maximum number of returned addresses in the standby address pool.
failoverMinAvailableAddrNum number
The minimum number of available addresses in the standby address pool.
instanceId Changes to this property will trigger replacement. string
The Id of the associated instance.
lang string
The lang.
lines AccessStrategyLine[]
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
strategyMode string
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
strategyName 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_pool_type str
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
default_addr_pools Sequence[AccessStrategyDefaultAddrPoolArgs]
List of primary address pool collections. See default_addr_pools below for details.
default_latency_optimization str
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
default_lba_strategy str
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
default_max_return_addr_num int
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
default_min_available_addr_num int
The minimum number of available addresses for the primary address pool set.
failover_addr_pool_type str
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
failover_addr_pools Sequence[AccessStrategyFailoverAddrPoolArgs]
List of backup address pool sets. See failover_addr_pools below for details.
failover_latency_optimization str
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
failover_lba_strategy str
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
failover_max_return_addr_num int
The maximum number of returned addresses in the standby address pool.
failover_min_available_addr_num int
The minimum number of available addresses in the standby address pool.
instance_id Changes to this property will trigger replacement. str
The Id of the associated instance.
lang str
The lang.
lines Sequence[AccessStrategyLineArgs]
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
strategy_mode str
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
strategy_name str
The name of the access policy.
accessMode String
The primary/secondary switchover policy for address pool groups. Valid values: AUTO, DEFAULT, FAILOVER.
defaultAddrPoolType String
The type of the primary address pool. Valid values: IPV4, IPV6, DOMAIN.
defaultAddrPools List<Property Map>
List of primary address pool collections. See default_addr_pools below for details.
defaultLatencyOptimization String
Specifies whether to enable scheduling optimization for latency resolution for the primary address pool group. Valid values: OPEN, CLOSE.
defaultLbaStrategy String
The load balancing policy of the primary address pool group. Valid values: ALL_RR, RATIO. NOTE: The default_lba_strategy is required under the condition that strategy_mode is GEO.
defaultMaxReturnAddrNum Number
The maximum number of addresses returned by the primary address pool set. NOTE: The default_max_return_addr_num is required under the condition that strategy_mode is LATENCY.
defaultMinAvailableAddrNum Number
The minimum number of available addresses for the primary address pool set.
failoverAddrPoolType String
The type of the secondary address pool. Valid values: IPV4, IPV6, DOMAIN.
failoverAddrPools List<Property Map>
List of backup address pool sets. See failover_addr_pools below for details.
failoverLatencyOptimization String
Specifies whether to enable scheduling optimization for latency resolution for the secondary address pool group. Valid values: OPEN, CLOSE.
failoverLbaStrategy String
The load balancing policy of the secondary address pool group. Valid values: ALL_RR, RATIO.
failoverMaxReturnAddrNum Number
The maximum number of returned addresses in the standby address pool.
failoverMinAvailableAddrNum Number
The minimum number of available addresses in the standby address pool.
instanceId Changes to this property will trigger replacement. String
The Id of the associated instance.
lang String
The lang.
lines List<Property Map>
The source regions. See lines below for details. NOTE: The lines is required under the condition that strategy_mode is GEO.
strategyMode String
The type of the access policy. Valid values: GEO or LATENCY. GEO: based on geographic location. LATENCY: Based on delay.
strategyName String
The name of the access policy.

Supporting Types

AccessStrategyDefaultAddrPool
, AccessStrategyDefaultAddrPoolArgs

AddrPoolId This property is required. string
The ID of the address pool in the primary address pool group.
LbaWeight int
The weight of the address pool in the primary address pool group.
AddrPoolId This property is required. string
The ID of the address pool in the primary address pool group.
LbaWeight int
The weight of the address pool in the primary address pool group.
addrPoolId This property is required. String
The ID of the address pool in the primary address pool group.
lbaWeight Integer
The weight of the address pool in the primary address pool group.
addrPoolId This property is required. string
The ID of the address pool in the primary address pool group.
lbaWeight number
The weight of the address pool in the primary address pool group.
addr_pool_id This property is required. str
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.
addrPoolId This property is required. String
The ID of the address pool in the primary address pool group.
lbaWeight Number
The weight of the address pool in the primary address pool group.

AccessStrategyFailoverAddrPool
, AccessStrategyFailoverAddrPoolArgs

AddrPoolId string
The ID of the address pool in the secondary address pool group.
LbaWeight int
The weight of the address pool in the secondary address pool group.
AddrPoolId string
The ID of the address pool in the secondary address pool group.
LbaWeight int
The weight of the address pool in the secondary address pool group.
addrPoolId String
The ID of the address pool in the secondary address pool group.
lbaWeight Integer
The weight of the address pool in the secondary address pool group.
addrPoolId string
The ID of the address pool in the secondary address pool group.
lbaWeight number
The weight of the address pool in the secondary address pool group.
addr_pool_id str
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.
addrPoolId String
The ID of the address pool in the secondary address pool group.
lbaWeight Number
The weight of the address pool in the secondary address pool group.

AccessStrategyLine
, AccessStrategyLineArgs

LineCode string
The line code of the source region.
LineCode string
The line code of the source region.
lineCode String
The line code of the source region.
lineCode string
The line code of the source region.
line_code str
The line code of the source region.
lineCode 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>
Copy

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.