Skip to content

Execution

This class encapsulates and extends the ROS resource type ALIYUN::OOS::Execution.

Initializers

import com.aliyun.ros.cdk.oos.Execution;
Execution.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .loopMode(java.lang.String)
//  .loopMode(IResolvable)
//  .mode(java.lang.String)
//  .mode(IResolvable)
//  .parameters(IResolvable)
//  .parameters(java.util.Map<java.lang.String, java.lang.Object>)
//  .parentExecutionId(java.lang.String)
//  .parentExecutionId(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .resourceOptions(IResolvable)
//  .resourceOptions(ResourceOptionsProperty)
//  .safetyCheck(java.lang.String)
//  .safetyCheck(IResolvable)
//  .tags(java.util.Map<java.lang.String, java.lang.Object>)
//  .templateContent(java.lang.String)
//  .templateContent(IResolvable)
//  .templateName(java.lang.String)
//  .templateName(IResolvable)
//  .templateUrl(java.lang.String)
//  .templateUrl(IResolvable)
//  .templateVersion(java.lang.String)
//  .templateVersion(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.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: The description of OOS Execution.
loopMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property loopMode: The loop mode of OOS Execution.
mode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mode: The execution mode.
parameters com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property parameters: The JSON string that consists of a collection of parameters.
parentExecutionId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property parentExecutionId: The ID of the parent execution.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id.
resourceOptions com.aliyun.ros.cdk.core.IResolvable OR ResourceOptionsProperty Property resourceOptions: Resource options user by ROS.
safetyCheck java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property safetyCheck: Security check mode.
tags java.util.Map Property tags: Tag value and the key mapping, the label of the key number can be up to 20.
templateContent java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property templateContent: The content of the template in the JSON or YAML format.
templateName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property templateName: The name of the template.
templateUrl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property templateUrl: The Object Storage Service (OSS) URL of the object that stores the content of the Operation Orchestration Service (OOS) template.
templateVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property templateVersion: Version number of template.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

descriptionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property description: The description of OOS Execution.


loopModeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property loopMode: The loop mode of OOS Execution.

Valid values:

  • Automatic(Default): does not pause.
  • FirstBatchPause: The first batch of pauses.
  • EveryBatchPause: pause each batch.

modeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property mode: The execution mode.

Valid values:

  • Automatic (default): The execution is automatically run.
  • FailurePause: The execution is paused if a task fails.
  • Debug: The execution is run in single-step mode.

parametersOptional

  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property parameters: The JSON string that consists of a collection of parameters.

The default value is {}.


parentExecutionIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property parentExecutionId: The ID of the parent execution.


resourceGroupIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: Resource group id.


resourceOptionsOptional

Property resourceOptions: Resource options user by ROS.


safetyCheckOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property safetyCheck: Security check mode.

Allowed values:

  • Skip (default): This option means that customers understand the risks, you can do anything without confirmation Action, no matter what the level of risk. It takes effect only if Mode is Automatic.
  • ConfirmEveryHighRiskAction: This option would require customers to confirm each Action a high risk. NotifyExecution by calling customer interface to confirm or cancel.

tagsOptional

  • Type: java.util.Map

Property tags: Tag value and the key mapping, the label of the key number can be up to 20.


templateContentOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property templateContent: The content of the template in the JSON or YAML format.

This parameter is the same as the Content parameter that you can specify when you call the CreateTemplate operation. You can use this parameter to specify the tasks that you want to run. This way, you do not need to create a template before you start an execution. If you select an existing template, you do not need to specify this parameter.


templateNameOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property templateName: The name of the template.

The name can contain letters, digits, hyphens (-), and underscores (_). The name can be up to 200 characters in length.


templateUrlOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property templateUrl: The Object Storage Service (OSS) URL of the object that stores the content of the Operation Orchestration Service (OOS) template.

The access control list (ACL) of the object must be public-read. You can use this parameter to specify the tasks that you want to run. This way, you do not need to create a template before you start an execution. If you select an existing template, you do not need to specify this parameter.


templateVersionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property templateVersion: Version number of template.

Default to the latest version.


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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • 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)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

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

isConstruct

import com.aliyun.ros.cdk.oos.Execution;
Execution.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • 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.
attrCounters java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Counters: Task statistics: FailedTasks, SuccessTasks, TotalTasks.
attrCurlCli java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CurlCli: Convenience attribute, provides curl CLI command prefix, which can be used to notify oos execution instead of OOS API NotifyExecution.
attrExecutionId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ExecutionId: Execution ID.
attrOutputs java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Outputs: Execution output.
attrPowerShellCurlCli java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PowerShellCurlCli: Convenience attribute, provides curl CLI command prefix for PowerShell, which can be used to notify oos execution instead of OOS API NotifyExecution.
attrStatus java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Status: Execution status.
attrStatusMessage java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute StatusMessage: Execution status information.
attrWindowsCurlCli java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute WindowsCurlCli: Convenience attribute, provides curl CLI command prefix for Windows, which can be used to notify oos execution instead of OOS API NotifyExecution.
props ExecutionProps 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

attrCountersRequired

public java.lang.Object getAttrCounters();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute Counters: Task statistics: FailedTasks, SuccessTasks, TotalTasks.


attrCurlCliRequired

public java.lang.Object getAttrCurlCli();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute CurlCli: Convenience attribute, provides curl CLI command prefix, which can be used to notify oos execution instead of OOS API NotifyExecution.

You can notify approve to oos execution by adding --data-binary '{"data": {"NotifyType": "Approve"}}' For more parameters in data, refer to https://help.aliyun.com/document_detail/120777.html. You can also notify execution via ROS API SignalResource. API parameters Status and UniqueId are ignored. Use API parameter Data to pass data.


attrExecutionIdRequired

public java.lang.Object getAttrExecutionId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute ExecutionId: Execution ID.


attrOutputsRequired

public java.lang.Object getAttrOutputs();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute Outputs: Execution output.


attrPowerShellCurlCliRequired

public java.lang.Object getAttrPowerShellCurlCli();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute PowerShellCurlCli: Convenience attribute, provides curl CLI command prefix for PowerShell, which can be used to notify oos execution instead of OOS API NotifyExecution.

You can notify approve to oos execution by adding -Body '{"data": {"NotifyType": "Approve"}}' For more parameters in data, refer to https://help.aliyun.com/document_detail/120777.html.You can also notify execution via ROS API SignalResource. API parameters Status and UniqueId are ignored. Use API parameter Data to pass data.


attrStatusRequired

public java.lang.Object getAttrStatus();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute Status: Execution status.


attrStatusMessageRequired

public java.lang.Object getAttrStatusMessage();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute StatusMessage: Execution status information.


attrWindowsCurlCliRequired

public java.lang.Object getAttrWindowsCurlCli();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute WindowsCurlCli: Convenience attribute, provides curl CLI command prefix for Windows, which can be used to notify oos execution instead of OOS API NotifyExecution.

You can notify approve to oos execution by adding --data-binary "{"data": {"NotifyType": "Approve"}}" For more parameters in data, refer to https://help.aliyun.com/document_detail/120777.html.You can also notify execution via ROS API SignalResource. API parameters Status and UniqueId are ignored. Use API parameter Data to pass data.


propsRequired

public ExecutionProps getProps();