AppGroup
- Implements: IAppGroup
This class encapsulates and extends the ROS resource type ALIYUN::SchedulerX::AppGroup.
Initializers
import com.aliyun.ros.cdk.schedulerx.AppGroup;
AppGroup.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.appName(java.lang.String)
.appName(IResolvable)
.groupId(java.lang.String)
.groupId(IResolvable)
.namespace(java.lang.String)
.namespace(IResolvable)
// .appKey(java.lang.String)
// .appKey(IResolvable)
// .appType(java.lang.Number)
// .appType(IResolvable)
// .appVersion(java.lang.Number)
// .appVersion(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .enableLog(java.lang.Boolean)
// .enableLog(IResolvable)
// .maxJobs(java.lang.Number)
// .maxJobs(IResolvable)
// .monitorConfig(IResolvable)
// .monitorConfig(java.util.Map<java.lang.String, java.lang.Object>)
// .monitorContacts(java.util.List<java.lang.Object>)
// .monitorContacts(IResolvable)
// .namespaceName(java.lang.String)
// .namespaceName(IResolvable)
// .namespaceSource(java.lang.String)
// .namespaceSource(IResolvable)
// .notificationPolicyName(java.lang.String)
// .notificationPolicyName(IResolvable)
// .scheduleBusyWorkers(java.lang.Boolean)
// .scheduleBusyWorkers(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. |
appName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property appName: The application name. |
groupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property groupId: The group ID of the application group. |
namespace | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property namespace: The namespace of the application group. |
appKey | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property appKey: The application key. |
appType | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property appType: The type of the application. |
appVersion | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property appVersion: The version of the application. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of the application group. |
enableLog | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property enableLog: Whether to enable log. |
maxJobs | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property maxJobs: The maximum number of jobs. |
monitorConfig | com.aliyun.ros.cdk.core.IResolvable OR java.util.Map | Property monitorConfig: The monitor configuration in JSON format. |
monitorContacts | java.util.List | Property monitorContacts: The monitor contacts in JSON format. |
namespaceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property namespaceName: The name of the namespace. |
namespaceSource | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property namespaceSource: The namespace source of the job. |
notificationPolicyName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property notificationPolicyName: The notification policy name. |
scheduleBusyWorkers | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property scheduleBusyWorkers: Whether to schedule busy workers. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
appNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property appName: The application name.
groupIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property groupId: The group ID of the application group.
namespaceRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property namespace: The namespace of the application group.
appKeyOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property appKey: The application key.
appTypeOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property appType: The type of the application.
appVersionOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property appVersion: The version of the application.
descriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the application group.
enableLogOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property enableLog: Whether to enable log.
maxJobsOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property maxJobs: The maximum number of jobs.
monitorConfigOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property monitorConfig: The monitor configuration in JSON format.
monitorContactsOptional
- Type: java.util.List
OR com.aliyun.ros.cdk.core.IResolvable
Property monitorContacts: The monitor contacts in JSON format.
namespaceNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property namespaceName: The name of the namespace.
namespaceSourceOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property namespaceSource: The namespace source of the job.
notificationPolicyNameOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property notificationPolicyName: The notification policy name.
scheduleBusyWorkersOptional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property scheduleBusyWorkers: Whether to schedule busy workers.
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.schedulerx.AppGroup;
AppGroup.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. |
attrAppGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute AppGroupId: The group ID of the application group. |
props | AppGroupProps | 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
attrAppGroupIdRequired
public java.lang.Object getAttrAppGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute AppGroupId: The group ID of the application group.
propsRequired
public AppGroupProps getProps();
- Type: AppGroupProps