Skip to content

Record

This class encapsulates and extends the ROS resource type ALIYUN::ESA::Record.

Initializers

import ros_cdk_esa
ros_cdk_esa.Record(
  scope: Construct,
  id: str,
  data: typing.Union[IResolvable, DataProperty],
  record_name: typing.Union[str, IResolvable],
  record_type: typing.Union[str, IResolvable],
  site_id: typing.Union[typing.Union[int, float], IResolvable],
  auth_conf: typing.Union[IResolvable, AuthConfProperty] = None,
  biz_name: typing.Union[str, IResolvable] = None,
  comment: typing.Union[str, IResolvable] = None,
  host_policy: typing.Union[str, IResolvable] = None,
  proxied: typing.Union[bool, IResolvable] = None,
  source_type: typing.Union[str, IResolvable] = None,
  ttl: typing.Union[typing.Union[int, float], IResolvable] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
data typing.Union[ros_cdk_core.IResolvable, DataProperty] Property data: The DNS record information.
record_name typing.Union[str, ros_cdk_core.IResolvable] Property recordName: The record name.
record_type typing.Union[str, ros_cdk_core.IResolvable] Property recordType: The type of the DNS record, such as A\/AAAA, CNAME, and TXT.
site_id typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property siteId: The website ID.
auth_conf typing.Union[ros_cdk_core.IResolvable, AuthConfProperty] Property authConf: The origin authentication information of the CNAME record.
biz_name typing.Union[str, ros_cdk_core.IResolvable] Property bizName: The business scenario of the record for acceleration.
comment typing.Union[str, ros_cdk_core.IResolvable] Property comment: The comment of the record.
host_policy typing.Union[str, ros_cdk_core.IResolvable] Property hostPolicy: The origin host policy.
proxied typing.Union[bool, ros_cdk_core.IResolvable] Property proxied: Specifies whether to proxy the record.
source_type typing.Union[str, ros_cdk_core.IResolvable] Property sourceType: The origin type for the CNAME record.
ttl typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property ttl: The TTL of the record.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

dataRequired

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

Property data: The DNS record information.

The format of this field varies based on the record type. For more information, see [References] https://www.alibabacloud.com/help/doc-detail/2708761.html?spm=openapi-amp.newDocPublishment.0.0.6a0f281feoeVWr.


record_nameRequired

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

Property recordName: The record name.

This parameter specifies a filter condition for the query.


record_typeRequired

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

Property recordType: The type of the DNS record, such as A\/AAAA, CNAME, and TXT.


site_idRequired

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

Property siteId: The website ID.


auth_confOptional

Property authConf: The origin authentication information of the CNAME record.


biz_nameOptional

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

Property bizName: The business scenario of the record for acceleration.

Leave the parameter empty if your record is not proxied. Valid values: image_video: video and image. api: API. web: web page.


commentOptional

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

Property comment: The comment of the record.

The maximum length is 100 characters.


host_policyOptional

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

Property hostPolicy: The origin host policy.

This policy takes effect when the record type is CNAME. You can set the policy in two modes: follow_hostname: Follow the host record. follow_origin_domain: match the origin's domain name.


proxiedOptional

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

Property proxied: Specifies whether to proxy the record.

Only CNAME and A/AAAA records can be proxied. Valid values: true false.


source_typeOptional

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

Property sourceType: The origin type for the CNAME record.

This parameter is required when you add a CNAME record. Valid values: OSS: OSS bucket. S3: S3 bucket. LB: load balancer. OP: origin pool. Domain: domain name. If you do not pass this parameter or if you leave its value empty, Domain is used by default.


ttlOptional

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

Property ttl: The TTL of the record.

Unit: seconds. If the value is 1, the TTL of the record is determined by the system.


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_esa
ros_cdk_esa.Record.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_auth_conf typing.Union[str, ros_cdk_core.IResolvable] Attribute AuthConf: The origin authentication information of the CNAME record.
attr_biz_name typing.Union[str, ros_cdk_core.IResolvable] Attribute BizName: The business scenario of the record for acceleration.
attr_comment typing.Union[str, ros_cdk_core.IResolvable] Attribute Comment: The comment of the record.
attr_create_time typing.Union[str, ros_cdk_core.IResolvable] Attribute CreateTime: The time when the record was created.
attr_data typing.Union[str, ros_cdk_core.IResolvable] Attribute Data: The DNS record information.
attr_host_policy typing.Union[str, ros_cdk_core.IResolvable] Attribute HostPolicy: The origin host policy.
attr_modify_time typing.Union[str, ros_cdk_core.IResolvable] Attribute ModifyTime: The time when the record was updated.
attr_proxied typing.Union[str, ros_cdk_core.IResolvable] Attribute Proxied: Specifies whether to proxy the record.
attr_record_cname typing.Union[str, ros_cdk_core.IResolvable] Attribute RecordCname: The CNAME.
attr_record_id typing.Union[str, ros_cdk_core.IResolvable] Attribute RecordId: Record Id.
attr_record_name typing.Union[str, ros_cdk_core.IResolvable] Attribute RecordName: The record name.
attr_record_type typing.Union[str, ros_cdk_core.IResolvable] Attribute RecordType: The type of the DNS record, such as A/AAAA, CNAME, and TXT.
attr_site_id typing.Union[str, ros_cdk_core.IResolvable] Attribute SiteId: The website ID.
attr_site_name typing.Union[str, ros_cdk_core.IResolvable] Attribute SiteName: The website name.
attr_source_type typing.Union[str, ros_cdk_core.IResolvable] Attribute SourceType: The origin type for the CNAME record.
attr_ttl typing.Union[str, ros_cdk_core.IResolvable] Attribute Ttl: The TTL of the record.
props RecordProps 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_auth_confRequired

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

Attribute AuthConf: The origin authentication information of the CNAME record.


attr_biz_nameRequired

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

Attribute BizName: The business scenario of the record for acceleration.

Leave the parameter empty if your record is not proxied.


attr_commentRequired

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

Attribute Comment: The comment of the record.

The maximum length is 100 characters.


attr_create_timeRequired

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

Attribute CreateTime: The time when the record was created.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.


attr_dataRequired

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

Attribute Data: The DNS record information.

The format of this field varies based on the record type. For more information, see [References]https://www.alibabacloud.com/help/doc-detail/2708761.html?spm=openapi-amp.newDocPublishment.0.0.6a0f281feoeVWr.


attr_host_policyRequired

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

Attribute HostPolicy: The origin host policy.

This policy takes effect when the record type is CNAME.


attr_modify_timeRequired

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

Attribute ModifyTime: The time when the record was updated.

The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.


attr_proxiedRequired

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

Attribute Proxied: Specifies whether to proxy the record.

Only CNAME and A/AAAA records can be proxied.


attr_record_cnameRequired

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

Attribute RecordCname: The CNAME.

If you use CNAME setup when you add your website to ESA, the value is the CNAME that you configured then.


attr_record_idRequired

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

Attribute RecordId: Record Id.


attr_record_nameRequired

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

Attribute RecordName: The record name.

This parameter specifies a filter condition for the query.


attr_record_typeRequired

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

Attribute RecordType: The type of the DNS record, such as A/AAAA, CNAME, and TXT.


attr_site_idRequired

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

Attribute SiteId: The website ID.


attr_site_nameRequired

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

Attribute SiteName: The website name.


attr_source_typeRequired

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

Attribute SourceType: The origin type for the CNAME record.

This parameter is required when you add a CNAME record.


attr_ttlRequired

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

Attribute Ttl: The TTL of the record.

Unit: seconds. If the value is 1, the TTL of the record is determined by the system.


propsRequired

props: RecordProps