Record
- Implements: IRecord
This class encapsulates and extends the ROS resource type ALIYUN::ESA::Record.
Initializers
import com.aliyun.ros.cdk.esa.Record;
Record.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.data(IResolvable)
.data(DataProperty)
.recordName(java.lang.String)
.recordName(IResolvable)
.recordType(java.lang.String)
.recordType(IResolvable)
.siteId(java.lang.Number)
.siteId(IResolvable)
// .authConf(IResolvable)
// .authConf(AuthConfProperty)
// .bizName(java.lang.String)
// .bizName(IResolvable)
// .comment(java.lang.String)
// .comment(IResolvable)
// .hostPolicy(java.lang.String)
// .hostPolicy(IResolvable)
// .proxied(java.lang.Boolean)
// .proxied(IResolvable)
// .sourceType(java.lang.String)
// .sourceType(IResolvable)
// .ttl(java.lang.Number)
// .ttl(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
data | com.aliyun.ros.cdk.core.IResolvable OR DataProperty | Property data: The DNS record information. |
recordName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property recordName: The record name. |
recordType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property recordType: The type of the DNS record, such as A\/AAAA, CNAME, and TXT. |
siteId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteId: The website ID. |
authConf | com.aliyun.ros.cdk.core.IResolvable OR AuthConfProperty | Property authConf: The origin authentication information of the CNAME record. |
bizName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bizName: The business scenario of the record for acceleration. |
comment | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property comment: The comment of the record. |
hostPolicy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property hostPolicy: The origin host policy. |
proxied | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property proxied: Specifies whether to proxy the record. |
sourceType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property sourceType: The origin type for the CNAME record. |
ttl | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property ttl: The TTL of the record. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
dataRequired
- Type: com.aliyun.ros.cdk.core.IResolvable OR 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.
recordNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property recordName: The record name.
This parameter specifies a filter condition for the query.
recordTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property recordType: The type of the DNS record, such as A\/AAAA, CNAME, and TXT.
siteIdRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteId: The website ID.
authConfOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR AuthConfProperty
Property authConf: The origin authentication information of the CNAME record.
bizNameOptional
- Type: java.lang.String OR com.aliyun.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: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property comment: The comment of the record.
The maximum length is 100 characters.
hostPolicyOptional
- Type: java.lang.String OR com.aliyun.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: java.lang.Boolean OR com.aliyun.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.
sourceTypeOptional
- Type: java.lang.String OR com.aliyun.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: java.lang.Number OR com.aliyun.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.
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
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
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.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.esa.Record;
Record.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrAuthConf | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute AuthConf: The origin authentication information of the CNAME record. |
attrBizName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute BizName: The business scenario of the record for acceleration. |
attrComment | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Comment: The comment of the record. |
attrCreateTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CreateTime: The time when the record was created. |
attrData | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Data: The DNS record information. |
attrHostPolicy | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute HostPolicy: The origin host policy. |
attrModifyTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ModifyTime: The time when the record was updated. |
attrProxied | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Proxied: Specifies whether to proxy the record. |
attrRecordCname | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute RecordCname: The CNAME. |
attrRecordId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute RecordId: Record Id. |
attrRecordName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute RecordName: The record name. |
attrRecordType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute RecordType: The type of the DNS record, such as A/AAAA, CNAME, and TXT. |
attrSiteId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SiteId: The website ID. |
attrSiteName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SiteName: The website name. |
attrSourceType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SourceType: The origin type for the CNAME record. |
attrTtl | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Ttl: The TTL of the record. |
props | RecordProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.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
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrAuthConfRequired
public java.lang.Object getAttrAuthConf();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute AuthConf: The origin authentication information of the CNAME record.
attrBizNameRequired
public java.lang.Object getAttrBizName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute BizName: The business scenario of the record for acceleration.
Leave the parameter empty if your record is not proxied.
attrCommentRequired
public java.lang.Object getAttrComment();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Comment: The comment of the record.
The maximum length is 100 characters.
attrCreateTimeRequired
public java.lang.Object getAttrCreateTime();
- Type: java.lang.String OR com.aliyun.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.
attrDataRequired
public java.lang.Object getAttrData();
- Type: java.lang.String OR com.aliyun.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.
attrHostPolicyRequired
public java.lang.Object getAttrHostPolicy();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute HostPolicy: The origin host policy.
This policy takes effect when the record type is CNAME.
attrModifyTimeRequired
public java.lang.Object getAttrModifyTime();
- Type: java.lang.String OR com.aliyun.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.
attrProxiedRequired
public java.lang.Object getAttrProxied();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Proxied: Specifies whether to proxy the record.
Only CNAME and A/AAAA records can be proxied.
attrRecordCnameRequired
public java.lang.Object getAttrRecordCname();
- Type: java.lang.String OR com.aliyun.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.
attrRecordIdRequired
public java.lang.Object getAttrRecordId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute RecordId: Record Id.
attrRecordNameRequired
public java.lang.Object getAttrRecordName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute RecordName: The record name.
This parameter specifies a filter condition for the query.
attrRecordTypeRequired
public java.lang.Object getAttrRecordType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute RecordType: The type of the DNS record, such as A/AAAA, CNAME, and TXT.
attrSiteIdRequired
public java.lang.Object getAttrSiteId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SiteId: The website ID.
attrSiteNameRequired
public java.lang.Object getAttrSiteName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SiteName: The website name.
attrSourceTypeRequired
public java.lang.Object getAttrSourceType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SourceType: The origin type for the CNAME record.
This parameter is required when you add a CNAME record.
attrTtlRequired
public java.lang.Object getAttrTtl();
- Type: java.lang.String OR com.aliyun.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
public RecordProps getProps();
- Type: RecordProps