Class: AWSCDK::Transfer::CfnServer::WorkflowDetailProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
transfer/cfn_server.rb

Overview

Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.

In addition to a workflow to execute when a file is uploaded completely, WorkflowDetails can also contain a workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when a file is open when the session disconnects.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution_role:, workflow_id:) ⇒ WorkflowDetailProperty

Returns a new instance of WorkflowDetailProperty.

Parameters:

  • execution_role (String)

    Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources.

  • workflow_id (String)

    A unique identifier for the workflow.



1090
1091
1092
1093
1094
1095
# File 'transfer/cfn_server.rb', line 1090

def initialize(execution_role:, workflow_id:)
  @execution_role = execution_role
  Jsii::Type.check_type(@execution_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionRole")
  @workflow_id = workflow_id
  Jsii::Type.check_type(@workflow_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workflowId")
end

Instance Attribute Details

#execution_roleString (readonly)

Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources.



1101
1102
1103
# File 'transfer/cfn_server.rb', line 1101

def execution_role
  @execution_role
end

#workflow_idString (readonly)

A unique identifier for the workflow.



1106
1107
1108
# File 'transfer/cfn_server.rb', line 1106

def workflow_id
  @workflow_id
end

Class Method Details

.jsii_propertiesObject



1108
1109
1110
1111
1112
1113
# File 'transfer/cfn_server.rb', line 1108

def self.jsii_properties
  {
    :execution_role => "executionRole",
    :workflow_id => "workflowId",
  }
end

Instance Method Details

#to_jsiiObject



1115
1116
1117
1118
1119
1120
1121
1122
# File 'transfer/cfn_server.rb', line 1115

def to_jsii
  result = {}
  result.merge!({
    "executionRole" => @execution_role,
    "workflowId" => @workflow_id,
  })
  result.compact
end