Class: AWSCDK::CodeStar::CfnGitHubRepository::CodeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeStar::CfnGitHubRepository::CodeProperty
- Defined in:
- code_star/cfn_git_hub_repository.rb
Overview
The Code property type specifies information about code to be committed.
Code is a property of the AWS::CodeStar::GitHubRepository resource.
Instance Attribute Summary collapse
-
#s3 ⇒ AWSCDK::IResolvable, AWSCDK::CodeStar::CfnGitHubRepository::S3Property
readonly
Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3:) ⇒ CodeProperty
constructor
A new instance of CodeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3:) ⇒ CodeProperty
Returns a new instance of CodeProperty.
594 595 596 597 |
# File 'code_star/cfn_git_hub_repository.rb', line 594 def initialize(s3:) @s3 = s3.is_a?(Hash) ? ::AWSCDK::CodeStar::CfnGitHubRepository::S3Property.new(**s3.transform_keys(&:to_sym)) : s3 Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2Rlc3Rhci5DZm5HaXRIdWJSZXBvc2l0b3J5LlMzUHJvcGVydHkifV19fQ==")), "s3") end |
Instance Attribute Details
#s3 ⇒ AWSCDK::IResolvable, AWSCDK::CodeStar::CfnGitHubRepository::S3Property (readonly)
Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository.
603 604 605 |
# File 'code_star/cfn_git_hub_repository.rb', line 603 def s3 @s3 end |
Class Method Details
.jsii_properties ⇒ Object
605 606 607 608 609 |
# File 'code_star/cfn_git_hub_repository.rb', line 605 def self.jsii_properties { :s3 => "s3", } end |
Instance Method Details
#to_jsii ⇒ Object
611 612 613 614 615 616 617 |
# File 'code_star/cfn_git_hub_repository.rb', line 611 def to_jsii result = {} result.merge!({ "s3" => @s3, }) result.compact end |