1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dns
  5. AccessStrategy
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.dns.AccessStrategy

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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=[{
            "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")
    
    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

    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 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.
    DefaultMinAvailableAddrNum int
    The minimum number of available addresses for the primary address pool set.
    InstanceId string
    The Id of the associated instance.
    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.
    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 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.
    DefaultMinAvailableAddrNum int
    The minimum number of available addresses for the primary address pool set.
    InstanceId string
    The Id of the associated instance.
    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.
    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 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.
    defaultMinAvailableAddrNum Integer
    The minimum number of available addresses for the primary address pool set.
    instanceId String
    The Id of the associated instance.
    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.
    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 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.
    defaultMinAvailableAddrNum number
    The minimum number of available addresses for the primary address pool set.
    instanceId string
    The Id of the associated instance.
    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.
    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 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_min_available_addr_num int
    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 or LATENCY. 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_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 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.
    defaultMinAvailableAddrNum Number
    The minimum number of available addresses for the primary address pool set.
    instanceId String
    The Id of the associated instance.
    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.
    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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    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 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 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 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 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 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 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 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 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 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 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 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 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>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi