Class: AWSCDK::ServiceCatalog::CfnCloudFormationProduct::CodeStarParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog/cfn_cloud_formation_product.rb

Overview

The subtype containing details about the Codestar connection Type .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(artifact_path:, branch:, connection_arn:, repository:) ⇒ CodeStarParametersProperty

Returns a new instance of CodeStarParametersProperty.

Parameters:

  • artifact_path (String)

    The absolute path wehre the artifact resides within the repo and branch, formatted as "folder/file.json.".

  • branch (String)

    The specific branch where the artifact resides.

  • connection_arn (String)

    The CodeStar ARN, which is the connection between AWS Service Catalog and the external repository.

  • repository (String)

    The specific repository where the product’s artifact-to-be-synced resides, formatted as "Account/Repo.".



692
693
694
695
696
697
698
699
700
701
# File 'service_catalog/cfn_cloud_formation_product.rb', line 692

def initialize(artifact_path:, branch:, connection_arn:, repository:)
  @artifact_path = artifact_path
  Jsii::Type.check_type(@artifact_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "artifactPath")
  @branch = branch
  Jsii::Type.check_type(@branch, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "branch")
  @connection_arn = connection_arn
  Jsii::Type.check_type(@connection_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionArn")
  @repository = repository
  Jsii::Type.check_type(@repository, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repository")
end

Instance Attribute Details

#artifact_pathString (readonly)

The absolute path wehre the artifact resides within the repo and branch, formatted as "folder/file.json.".



707
708
709
# File 'service_catalog/cfn_cloud_formation_product.rb', line 707

def artifact_path
  @artifact_path
end

#branchString (readonly)

The specific branch where the artifact resides.



712
713
714
# File 'service_catalog/cfn_cloud_formation_product.rb', line 712

def branch
  @branch
end

#connection_arnString (readonly)

The CodeStar ARN, which is the connection between AWS Service Catalog and the external repository.



717
718
719
# File 'service_catalog/cfn_cloud_formation_product.rb', line 717

def connection_arn
  @connection_arn
end

#repositoryString (readonly)

The specific repository where the product’s artifact-to-be-synced resides, formatted as "Account/Repo.".



722
723
724
# File 'service_catalog/cfn_cloud_formation_product.rb', line 722

def repository
  @repository
end

Class Method Details

.jsii_propertiesObject



724
725
726
727
728
729
730
731
# File 'service_catalog/cfn_cloud_formation_product.rb', line 724

def self.jsii_properties
  {
    :artifact_path => "artifactPath",
    :branch => "branch",
    :connection_arn => "connectionArn",
    :repository => "repository",
  }
end

Instance Method Details

#to_jsiiObject



733
734
735
736
737
738
739
740
741
742
# File 'service_catalog/cfn_cloud_formation_product.rb', line 733

def to_jsii
  result = {}
  result.merge!({
    "artifactPath" => @artifact_path,
    "branch" => @branch,
    "connectionArn" => @connection_arn,
    "repository" => @repository,
  })
  result.compact
end