Class: AWSCDK::Cloud9::CfnEnvironmentEC2::RepositoryProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path_component:, repository_url:) ⇒ RepositoryProperty

Returns a new instance of RepositoryProperty.

Parameters:

  • path_component (String)

    The path within the development environment's default file system location to clone the AWS CodeCommit repository into.

  • repository_url (String)

    The clone URL of the AWS CodeCommit repository to be cloned.



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_componentString (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_urlString (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_propertiesObject



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_jsiiObject



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