Skip to content

Record

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

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
alicloudroscdkesa.NewRecord(scope Construct, id *string, props RecordProps, enableResourcePropertyConstraint *bool) Record
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props RecordProps No description.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct

idRequired

  • Type: *string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: *bool

Methods

Name Description
ToString Returns a string representation of this construct.
Synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
AddCondition No description.
AddCount No description.
AddDependency No description.
AddResourceDesc No description.
ApplyRemovalPolicy No description.
FetchCondition No description.
FetchDependency No description.
FetchResourceDesc No description.
GetAtt No description.
SetMetadata No description.

ToString

func ToString() *string

Returns a string representation of this construct.

Synthesize

func Synthesize(session ISynthesisSession)

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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

FetchCondition

func FetchCondition() RosCondition

FetchDependency

func FetchDependency() *[]*string

FetchResourceDesc

func FetchResourceDesc() *string

GetAtt

func GetAtt(name *string) IResolvable

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

Static Functions

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

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
alicloudroscdkesa.Record_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

Properties

Name Type Description
Node github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode The construct tree node associated with this construct.
Env github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment The environment this resource belongs to.
Ref *string No description.
Stack github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack The stack in which this resource is defined.
Resource github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource No description.
AttrAuthConf interface{} Attribute AuthConf: The origin authentication information of the CNAME record.
AttrBizName interface{} Attribute BizName: The business scenario of the record for acceleration.
AttrComment interface{} Attribute Comment: The comment of the record.
AttrCreateTime interface{} Attribute CreateTime: The time when the record was created.
AttrData interface{} Attribute Data: The DNS record information.
AttrHostPolicy interface{} Attribute HostPolicy: The origin host policy.
AttrModifyTime interface{} Attribute ModifyTime: The time when the record was updated.
AttrProxied interface{} Attribute Proxied: Specifies whether to proxy the record.
AttrRecordCname interface{} Attribute RecordCname: The CNAME.
AttrRecordId interface{} Attribute RecordId: Record Id.
AttrRecordName interface{} Attribute RecordName: The record name.
AttrRecordType interface{} Attribute RecordType: The type of the DNS record, such as A/AAAA, CNAME, and TXT.
AttrSiteId interface{} Attribute SiteId: The website ID.
AttrSiteName interface{} Attribute SiteName: The website name.
AttrSourceType interface{} Attribute SourceType: The origin type for the CNAME record.
AttrTtl interface{} Attribute Ttl: The TTL of the record.
Props RecordProps No description.

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


EnvRequired

func Env() IResourceEnvironment
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func Ref() *string
  • Type: *string

StackRequired

func Stack() Stack
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack

The stack in which this resource is defined.


ResourceOptional

func Resource() RosResource
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AttrAuthConfRequired

func AttrAuthConf() interface{}
  • Type: interface{}

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


AttrBizNameRequired

func AttrBizName() interface{}
  • Type: interface{}

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

Leave the parameter empty if your record is not proxied.


AttrCommentRequired

func AttrComment() interface{}
  • Type: interface{}

Attribute Comment: The comment of the record.

The maximum length is 100 characters.


AttrCreateTimeRequired

func AttrCreateTime() interface{}
  • Type: interface{}

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.


AttrDataRequired

func AttrData() interface{}
  • Type: interface{}

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.


AttrHostPolicyRequired

func AttrHostPolicy() interface{}
  • Type: interface{}

Attribute HostPolicy: The origin host policy.

This policy takes effect when the record type is CNAME.


AttrModifyTimeRequired

func AttrModifyTime() interface{}
  • Type: interface{}

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.


AttrProxiedRequired

func AttrProxied() interface{}
  • Type: interface{}

Attribute Proxied: Specifies whether to proxy the record.

Only CNAME and A/AAAA records can be proxied.


AttrRecordCnameRequired

func AttrRecordCname() interface{}
  • Type: interface{}

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.


AttrRecordIdRequired

func AttrRecordId() interface{}
  • Type: interface{}

Attribute RecordId: Record Id.


AttrRecordNameRequired

func AttrRecordName() interface{}
  • Type: interface{}

Attribute RecordName: The record name.

This parameter specifies a filter condition for the query.


AttrRecordTypeRequired

func AttrRecordType() interface{}
  • Type: interface{}

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


AttrSiteIdRequired

func AttrSiteId() interface{}
  • Type: interface{}

Attribute SiteId: The website ID.


AttrSiteNameRequired

func AttrSiteName() interface{}
  • Type: interface{}

Attribute SiteName: The website name.


AttrSourceTypeRequired

func AttrSourceType() interface{}
  • Type: interface{}

Attribute SourceType: The origin type for the CNAME record.

This parameter is required when you add a CNAME record.


AttrTtlRequired

func AttrTtl() interface{}
  • Type: interface{}

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

func Props() RecordProps