Class: AWSCDK::MWAAServerless::CfnWorkflowProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
mwaa_serverless/cfn_workflow_props.rb

Overview

Properties for defining a CfnWorkflow.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition_s3_location:, role_arn:, description: nil, encryption_configuration: nil, logging_configuration: nil, name: nil, network_configuration: nil, tags: nil, trigger_mode: nil) ⇒ CfnWorkflowProps

Returns a new instance of CfnWorkflowProps.

Parameters:



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'mwaa_serverless/cfn_workflow_props.rb', line 18

def initialize(definition_s3_location:, role_arn:, description: nil, encryption_configuration: nil, logging_configuration: nil, name: nil, network_configuration: nil, tags: nil, trigger_mode: nil)
  @definition_s3_location = definition_s3_location.is_a?(Hash) ? ::AWSCDK::MWAAServerless::CfnWorkflow::S3LocationProperty.new(**definition_s3_location.transform_keys(&:to_sym)) : definition_s3_location
  Jsii::Type.check_type(@definition_s3_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19td2Fhc2VydmVybGVzcy5DZm5Xb3JrZmxvdy5TM0xvY2F0aW9uUHJvcGVydHkifV19fQ==")), "definitionS3Location")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @encryption_configuration = encryption_configuration.is_a?(Hash) ? ::AWSCDK::MWAAServerless::CfnWorkflow::EncryptionConfigurationProperty.new(**encryption_configuration.transform_keys(&:to_sym)) : encryption_configuration
  Jsii::Type.check_type(@encryption_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19td2Fhc2VydmVybGVzcy5DZm5Xb3JrZmxvdy5FbmNyeXB0aW9uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "encryptionConfiguration") unless @encryption_configuration.nil?
  @logging_configuration = logging_configuration.is_a?(Hash) ? ::AWSCDK::MWAAServerless::CfnWorkflow::LoggingConfigurationProperty.new(**logging_configuration.transform_keys(&:to_sym)) : logging_configuration
  Jsii::Type.check_type(@logging_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19td2Fhc2VydmVybGVzcy5DZm5Xb3JrZmxvdy5Mb2dnaW5nQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "loggingConfiguration") unless @logging_configuration.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @network_configuration = network_configuration.is_a?(Hash) ? ::AWSCDK::MWAAServerless::CfnWorkflow::NetworkConfigurationProperty.new(**network_configuration.transform_keys(&:to_sym)) : network_configuration
  Jsii::Type.check_type(@network_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19td2Fhc2VydmVybGVzcy5DZm5Xb3JrZmxvdy5OZXR3b3JrQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "networkConfiguration") unless @network_configuration.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
  @trigger_mode = trigger_mode
  Jsii::Type.check_type(@trigger_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "triggerMode") unless @trigger_mode.nil?
end

Instance Attribute Details

#descriptionString? (readonly)



47
48
49
# File 'mwaa_serverless/cfn_workflow_props.rb', line 47

def description
  @description
end

#encryption_configurationAWSCDK::IResolvable, ... (readonly)



50
51
52
# File 'mwaa_serverless/cfn_workflow_props.rb', line 50

def encryption_configuration
  @encryption_configuration
end

#logging_configurationAWSCDK::IResolvable, ... (readonly)



53
54
55
# File 'mwaa_serverless/cfn_workflow_props.rb', line 53

def logging_configuration
  @logging_configuration
end

#nameString? (readonly)



56
57
58
# File 'mwaa_serverless/cfn_workflow_props.rb', line 56

def name
  @name
end

#network_configurationAWSCDK::IResolvable, ... (readonly)



59
60
61
# File 'mwaa_serverless/cfn_workflow_props.rb', line 59

def network_configuration
  @network_configuration
end

#role_arnString (readonly)



44
45
46
# File 'mwaa_serverless/cfn_workflow_props.rb', line 44

def role_arn
  @role_arn
end

#tagsHash{String => String}? (readonly)

A map of key-value pairs to be applied as tags.



64
65
66
# File 'mwaa_serverless/cfn_workflow_props.rb', line 64

def tags
  @tags
end

#trigger_modeString? (readonly)



67
68
69
# File 'mwaa_serverless/cfn_workflow_props.rb', line 67

def trigger_mode
  @trigger_mode
end

Class Method Details

.jsii_propertiesObject



69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'mwaa_serverless/cfn_workflow_props.rb', line 69

def self.jsii_properties
  {
    :definition_s3_location => "definitionS3Location",
    :role_arn => "roleArn",
    :description => "description",
    :encryption_configuration => "encryptionConfiguration",
    :logging_configuration => "loggingConfiguration",
    :name => "name",
    :network_configuration => "networkConfiguration",
    :tags => "tags",
    :trigger_mode => "triggerMode",
  }
end

Instance Method Details

#to_jsiiObject



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'mwaa_serverless/cfn_workflow_props.rb', line 83

def to_jsii
  result = {}
  result.merge!({
    "definitionS3Location" => @definition_s3_location,
    "roleArn" => @role_arn,
    "description" => @description,
    "encryptionConfiguration" => @encryption_configuration,
    "loggingConfiguration" => @logging_configuration,
    "name" => @name,
    "networkConfiguration" => @network_configuration,
    "tags" => @tags,
    "triggerMode" => @trigger_mode,
  })
  result.compact
end