Class: AWSCDK::Bedrock::CfnFlowVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow_version_props.rb

Overview

Properties for defining a CfnFlowVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flow_arn:, description: nil) ⇒ CfnFlowVersionProps

Returns a new instance of CfnFlowVersionProps.

Parameters:

  • flow_arn (String)

    The Amazon Resource Name (ARN) of the flow that the version belongs to.

  • description (String, nil) (defaults to: nil)

    The description of the flow version.



11
12
13
14
15
16
# File 'bedrock/cfn_flow_version_props.rb', line 11

def initialize(flow_arn:, description: nil)
  @flow_arn = flow_arn
  Jsii::Type.check_type(@flow_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "flowArn")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the flow version.



27
28
29
# File 'bedrock/cfn_flow_version_props.rb', line 27

def description
  @description
end

#flow_arnString (readonly)

The Amazon Resource Name (ARN) of the flow that the version belongs to.



22
23
24
# File 'bedrock/cfn_flow_version_props.rb', line 22

def flow_arn
  @flow_arn
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'bedrock/cfn_flow_version_props.rb', line 29

def self.jsii_properties
  {
    :flow_arn => "flowArn",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'bedrock/cfn_flow_version_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "flowArn" => @flow_arn,
    "description" => @description,
  })
  result.compact
end