Class: AWSCDK::Bedrock::CfnFlow::S3LocationProperty

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

Overview

The S3 location of the flow definition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key:, version: nil) ⇒ S3LocationProperty

Returns a new instance of S3LocationProperty.

Parameters:

  • bucket (String)

    The S3 bucket containing the flow definition.

  • key (String)

    The object key for the S3 location containing the definition.

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

    The Amazon S3 location from which to retrieve data for an S3 retrieve node or to which to store data for an S3 storage node.



2580
2581
2582
2583
2584
2585
2586
2587
# File 'bedrock/cfn_flow.rb', line 2580

def initialize(bucket:, key:, version: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket")
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#bucketString (readonly)

The S3 bucket containing the flow definition.



2593
2594
2595
# File 'bedrock/cfn_flow.rb', line 2593

def bucket
  @bucket
end

#keyString (readonly)

The object key for the S3 location containing the definition.



2598
2599
2600
# File 'bedrock/cfn_flow.rb', line 2598

def key
  @key
end

#versionString? (readonly)

The Amazon S3 location from which to retrieve data for an S3 retrieve node or to which to store data for an S3 storage node.



2603
2604
2605
# File 'bedrock/cfn_flow.rb', line 2603

def version
  @version
end

Class Method Details

.jsii_propertiesObject



2605
2606
2607
2608
2609
2610
2611
# File 'bedrock/cfn_flow.rb', line 2605

def self.jsii_properties
  {
    :bucket => "bucket",
    :key => "key",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



2613
2614
2615
2616
2617
2618
2619
2620
2621
# File 'bedrock/cfn_flow.rb', line 2613

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "key" => @key,
    "version" => @version,
  })
  result.compact
end