Class: AWSCDK::CodeStar::CfnGitHubRepository::CodeProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3:) ⇒ CodeProperty

Returns a new instance of CodeProperty.

Parameters:



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

#s3AWSCDK::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_propertiesObject



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_jsiiObject



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