SiteDeliveryTask
- Implements: ISiteDeliveryTask
This class encapsulates and extends the ROS resource type ALIYUN::ESA::SiteDeliveryTask.
Initializers
import com.aliyun.ros.cdk.esa.SiteDeliveryTask;
SiteDeliveryTask.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.businessType(java.lang.String)
.businessType(IResolvable)
.dataCenter(java.lang.String)
.dataCenter(IResolvable)
.deliveryType(java.lang.String)
.deliveryType(IResolvable)
.fieldName(java.lang.String)
.fieldName(IResolvable)
.siteId(java.lang.Number)
.siteId(IResolvable)
.taskName(java.lang.String)
.taskName(IResolvable)
// .discardRate(java.lang.Number)
// .discardRate(IResolvable)
// .httpDelivery(IResolvable)
// .httpDelivery(HttpDeliveryProperty)
// .kafkaDelivery(IResolvable)
// .kafkaDelivery(KafkaDeliveryProperty)
// .ossDelivery(IResolvable)
// .ossDelivery(OssDeliveryProperty)
// .s3Delivery(IResolvable)
// .s3Delivery(S3DeliveryProperty)
// .slsDelivery(IResolvable)
// .slsDelivery(SlsDeliveryProperty)
.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. |
businessType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property businessType: Real-time log type. |
dataCenter | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dataCenter: Data Center. |
deliveryType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property deliveryType: Delivery Type: - sls: Alibaba Cloud Simple Log Service (SLS). |
fieldName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property fieldName: The list of delivery fields to be modified, separated by commas. |
siteId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteId: The site ID. |
taskName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property taskName: The name of the delivery task. |
discardRate | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property discardRate: If the discard rate is not filled, the default value is 0. |
httpDelivery | com.aliyun.ros.cdk.core.IResolvable OR HttpDeliveryProperty | Property httpDelivery: HTTP delivery configuration parameters. |
kafkaDelivery | com.aliyun.ros.cdk.core.IResolvable OR KafkaDeliveryProperty | Property kafkaDelivery: Kafka delivery configuration parameters. |
ossDelivery | com.aliyun.ros.cdk.core.IResolvable OR OssDeliveryProperty | Property ossDelivery: OSS delivery configuration. |
s3Delivery | com.aliyun.ros.cdk.core.IResolvable OR S3DeliveryProperty | Property s3Delivery: S3\/S3 compatible delivery configuration parameters. |
slsDelivery | com.aliyun.ros.cdk.core.IResolvable OR SlsDeliveryProperty | Property slsDelivery: SLS delivery configuration. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
businessTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property businessType: Real-time log type.
Valid values:
dcdn_log_access_l1 (default): access log.dcdn_log_er: Edge Routine logs.dcdn_log_waf: firewall logs.dcdn_log_ipa: TCP/UDP proxy logs.
dataCenterRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dataCenter: Data Center.
Values:
cn: Mainland China.sg: Global (excluding Mainland China).
deliveryTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property deliveryType: Delivery Type: - sls: Alibaba Cloud Simple Log Service (SLS).
http: Http service.aws3: Amazon s3 service.oss: Alibaba Cloud Object Storage Service.kafka: Kafka service.aws3cmpt: Amazon s3 Compatible Service.
fieldNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property fieldName: The list of delivery fields to be modified, separated by commas.
siteIdRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteId: The site ID.
taskNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property taskName: The name of the delivery task.
discardRateOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property discardRate: If the discard rate is not filled, the default value is 0.
httpDeliveryOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR HttpDeliveryProperty
Property httpDelivery: HTTP delivery configuration parameters.
kafkaDeliveryOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR KafkaDeliveryProperty
Property kafkaDelivery: Kafka delivery configuration parameters.
ossDeliveryOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR OssDeliveryProperty
Property ossDelivery: OSS delivery configuration.
s3DeliveryOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR S3DeliveryProperty
Property s3Delivery: S3\/S3 compatible delivery configuration parameters.
slsDeliveryOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR SlsDeliveryProperty
Property slsDelivery: SLS delivery configuration.
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.SiteDeliveryTask;
SiteDeliveryTask.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. |
attrBusinessType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute BusinessType: Real-time log type. |
attrDataCenter | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DataCenter: Data Center. |
attrDeliveryType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DeliveryType: Delivery Type:. |
attrDiscardRate | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DiscardRate: If the discard rate is not filled, the default value is 0. |
attrFieldName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute FieldName: The list of delivery fields to be modified, separated by commas. |
attrFilterRules | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute FilterRules: The filtering rules. |
attrSinkConfig | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SinkConfig: The delivery configuration. |
attrSiteId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SiteId: The site ID. |
attrSiteName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SiteName: The website name. |
attrTaskName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute TaskName: The task name. |
props | SiteDeliveryTaskProps | 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
attrBusinessTypeRequired
public java.lang.Object getAttrBusinessType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute BusinessType: Real-time log type.
attrDataCenterRequired
public java.lang.Object getAttrDataCenter();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DataCenter: Data Center.
attrDeliveryTypeRequired
public java.lang.Object getAttrDeliveryType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DeliveryType: Delivery Type:.
attrDiscardRateRequired
public java.lang.Object getAttrDiscardRate();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DiscardRate: If the discard rate is not filled, the default value is 0.
attrFieldNameRequired
public java.lang.Object getAttrFieldName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute FieldName: The list of delivery fields to be modified, separated by commas.
attrFilterRulesRequired
public java.lang.Object getAttrFilterRules();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute FilterRules: The filtering rules.
attrSinkConfigRequired
public java.lang.Object getAttrSinkConfig();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SinkConfig: The delivery configuration.
attrSiteIdRequired
public java.lang.Object getAttrSiteId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SiteId: The site ID.
attrSiteNameRequired
public java.lang.Object getAttrSiteName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SiteName: The website name.
attrTaskNameRequired
public java.lang.Object getAttrTaskName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute TaskName: The task name.
propsRequired
public SiteDeliveryTaskProps getProps();
- Type: SiteDeliveryTaskProps