Class: AWSCDK::CodeBuild::FileSystemConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::FileSystemConfig
- Defined in:
- code_build/file_system_config.rb
Overview
The type returned from IFileSystemLocation#bind.
Instance Attribute Summary collapse
-
#location ⇒ AWSCDK::CodeBuild::CfnProject::ProjectFileSystemLocationProperty
readonly
File system location wrapper property.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location:) ⇒ FileSystemConfig
constructor
A new instance of FileSystemConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(location:) ⇒ FileSystemConfig
Returns a new instance of FileSystemConfig.
8 9 10 11 |
# File 'code_build/file_system_config.rb', line 8 def initialize(location:) @location = location.is_a?(Hash) ? ::AWSCDK::CodeBuild::CfnProject::ProjectFileSystemLocationProperty.new(**location.transform_keys(&:to_sym)) : location Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLkNmblByb2plY3QuUHJvamVjdEZpbGVTeXN0ZW1Mb2NhdGlvblByb3BlcnR5In0=")), "location") end |
Instance Attribute Details
#location ⇒ AWSCDK::CodeBuild::CfnProject::ProjectFileSystemLocationProperty (readonly)
File system location wrapper property.
17 18 19 |
# File 'code_build/file_system_config.rb', line 17 def location @location end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'code_build/file_system_config.rb', line 19 def self.jsii_properties { :location => "location", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'code_build/file_system_config.rb', line 25 def to_jsii result = {} result.merge!({ "location" => @location, }) result.compact end |