Skip to content

AccessStrategy

This class encapsulates and extends the ROS resource type ALIYUN::DNS::AccessStrategy.

Initializers

import ros_cdk_dns
ros_cdk_dns.AccessStrategy(
  scope: Construct,
  id: str,
  default_addr_pool: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, DefaultAddrPoolProperty]]],
  default_addr_pool_type: typing.Union[str, IResolvable],
  default_min_available_addr_num: typing.Union[typing.Union[int, float], IResolvable],
  instance_id: typing.Union[str, IResolvable],
  strategy_mode: typing.Union[str, IResolvable],
  strategy_name: typing.Union[str, IResolvable],
  access_mode: typing.Union[str, IResolvable] = None,
  default_latency_optimization: typing.Union[str, IResolvable] = None,
  default_lba_strategy: typing.Union[str, IResolvable] = None,
  default_max_return_addr_num: typing.Union[typing.Union[int, float], IResolvable] = None,
  failover_addr_pool: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, FailoverAddrPoolProperty]]] = None,
  failover_addr_pool_type: typing.Union[str, IResolvable] = None,
  failover_latency_optimization: typing.Union[str, IResolvable] = None,
  failover_lba_strategy: typing.Union[str, IResolvable] = None,
  failover_max_return_addr_num: typing.Union[typing.Union[int, float], IResolvable] = None,
  failover_min_available_addr_num: typing.Union[typing.Union[int, float], IResolvable] = None,
  lines: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
default_addr_pool typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, DefaultAddrPoolProperty]]] Property defaultAddrPool: The default address pool of the access strategy.
default_addr_pool_type typing.Union[str, ros_cdk_core.IResolvable] Property defaultAddrPoolType: The type of the default address pool.
default_min_available_addr_num typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property defaultMinAvailableAddrNum: The minimum available address number of the default address pool.
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: The ID of the Dns instance.
strategy_mode typing.Union[str, ros_cdk_core.IResolvable] Property strategyMode: The mode of the access strategy.
strategy_name typing.Union[str, ros_cdk_core.IResolvable] Property strategyName: The name of the access strategy.
access_mode typing.Union[str, ros_cdk_core.IResolvable] Property accessMode: The access mode of the access strategy.
default_latency_optimization typing.Union[str, ros_cdk_core.IResolvable] Property defaultLatencyOptimization: Whether to enable latency optimization for the default address pool.
default_lba_strategy typing.Union[str, ros_cdk_core.IResolvable] Property defaultLbaStrategy: The load balancing strategy of the default address pool.
default_max_return_addr_num typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property defaultMaxReturnAddrNum: The maximum return address number of the default address pool.
failover_addr_pool typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, FailoverAddrPoolProperty]]] Property failoverAddrPool: The failover address pool of the access strategy.
failover_addr_pool_type typing.Union[str, ros_cdk_core.IResolvable] Property failoverAddrPoolType: The type of the failover address pool.
failover_latency_optimization typing.Union[str, ros_cdk_core.IResolvable] Property failoverLatencyOptimization: Whether to enable latency optimization for the failover address pool.
failover_lba_strategy typing.Union[str, ros_cdk_core.IResolvable] Property failoverLbaStrategy: The load balancing strategy of the failover address pool.
failover_max_return_addr_num typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property failoverMaxReturnAddrNum: The maximum return address number of the failover address pool.
failover_min_available_addr_num typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property failoverMinAvailableAddrNum: The minimum available address number of the failover address pool.
lines typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property lines: The lines of the access strategy.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

default_addr_poolRequired

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, DefaultAddrPoolProperty]]]

Property defaultAddrPool: The default address pool of the access strategy.


default_addr_pool_typeRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property defaultAddrPoolType: The type of the default address pool.


default_min_available_addr_numRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property defaultMinAvailableAddrNum: The minimum available address number of the default address pool.


instance_idRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceId: The ID of the Dns instance.


strategy_modeRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property strategyMode: The mode of the access strategy.


strategy_nameRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property strategyName: The name of the access strategy.


access_modeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property accessMode: The access mode of the access strategy.


default_latency_optimizationOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property defaultLatencyOptimization: Whether to enable latency optimization for the default address pool.


default_lba_strategyOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property defaultLbaStrategy: The load balancing strategy of the default address pool.


default_max_return_addr_numOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property defaultMaxReturnAddrNum: The maximum return address number of the default address pool.


failover_addr_poolOptional

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, FailoverAddrPoolProperty]]]

Property failoverAddrPool: The failover address pool of the access strategy.


failover_addr_pool_typeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property failoverAddrPoolType: The type of the failover address pool.


failover_latency_optimizationOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property failoverLatencyOptimization: Whether to enable latency optimization for the failover address pool.


failover_lba_strategyOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property failoverLbaStrategy: The load balancing strategy of the failover address pool.


failover_max_return_addr_numOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property failoverMaxReturnAddrNum: The maximum return address number of the failover address pool.


failover_min_available_addr_numOptional

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property failoverMinAvailableAddrNum: The minimum available address number of the failover address pool.


linesOptional

  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property lines: The lines of the access strategy.


enable_resource_property_constraintOptional

  • Type: bool

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
add_condition No description.
add_count No description.
add_dependency No description.
add_resource_desc No description.
apply_removal_policy No description.
fetch_condition No description.
fetch_dependency No description.
fetch_resource_desc No description.
get_att No description.
set_metadata No description.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

fetch_condition

def fetch_condition() -> RosCondition

fetch_dependency

def fetch_dependency() -> typing.List[str]

fetch_resource_desc

def fetch_resource_desc() -> str

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

Name Description
is_construct Return whether the given object is a Construct.

is_construct

import ros_cdk_dns
ros_cdk_dns.AccessStrategy.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
env ros_cdk_core.IResourceEnvironment The environment this resource belongs to.
ref str No description.
stack ros_cdk_core.Stack The stack in which this resource is defined.
resource ros_cdk_core.RosResource No description.
attr_strategy_id typing.Union[str, ros_cdk_core.IResolvable] Attribute StrategyId: The ID of the access strategy.
props AccessStrategyProps No description.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


envRequired

env: IResourceEnvironment
  • Type: ros_cdk_core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


refRequired

ref: str
  • Type: str

stackRequired

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


resourceOptional

resource: RosResource
  • Type: ros_cdk_core.RosResource

attr_strategy_idRequired

attr_strategy_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Attribute StrategyId: The ID of the access strategy.


propsRequired

props: AccessStrategyProps