Class: AWSCDK::Cloud9::CfnEnvironmentEC2::RepositoryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cloud9::CfnEnvironmentEC2::RepositoryProperty
- Defined in:
- cloud9/cfn_environment_ec2.rb
Overview
The Repository property type specifies an AWS CodeCommit source code repository to be cloned into an AWS Cloud9 development environment.
Instance Attribute Summary collapse
-
#path_component ⇒ String
readonly
The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
-
#repository_url ⇒ String
readonly
The clone URL of the AWS CodeCommit repository to be cloned.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path_component:, repository_url:) ⇒ RepositoryProperty
constructor
A new instance of RepositoryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(path_component:, repository_url:) ⇒ RepositoryProperty
Returns a new instance of RepositoryProperty.
651 652 653 654 655 656 |
# File 'cloud9/cfn_environment_ec2.rb', line 651 def initialize(path_component:, repository_url:) @path_component = path_component Jsii::Type.check_type(@path_component, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pathComponent") @repository_url = repository_url Jsii::Type.check_type(@repository_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryUrl") end |
Instance Attribute Details
#path_component ⇒ String (readonly)
The path within the development environment's default file system location to clone the AWS CodeCommit repository into.
For example, /REPOSITORY_NAME would clone the repository into the /home/USER_NAME/environment/REPOSITORY_NAME directory in the environment.
664 665 666 |
# File 'cloud9/cfn_environment_ec2.rb', line 664 def path_component @path_component end |
#repository_url ⇒ String (readonly)
The clone URL of the AWS CodeCommit repository to be cloned.
For example, for an AWS CodeCommit repository this might be https://git-codecommit.us-east-2.amazonaws.com/v1/repos/REPOSITORY_NAME .
671 672 673 |
# File 'cloud9/cfn_environment_ec2.rb', line 671 def repository_url @repository_url end |
Class Method Details
.jsii_properties ⇒ Object
673 674 675 676 677 678 |
# File 'cloud9/cfn_environment_ec2.rb', line 673 def self.jsii_properties { :path_component => "pathComponent", :repository_url => "repositoryUrl", } end |
Instance Method Details
#to_jsii ⇒ Object
680 681 682 683 684 685 686 687 |
# File 'cloud9/cfn_environment_ec2.rb', line 680 def to_jsii result = {} result.merge!({ "pathComponent" => @path_component, "repositoryUrl" => @repository_url, }) result.compact end |