Class: AWSCDK::DevOpsAgent::CfnAssociation::GitHubConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociation::GitHubConfigurationProperty
- Defined in:
- dev_ops_agent/cfn_association.rb
Overview
Configuration for GitHub repository integration.
Defines the repository name, numeric repository ID, owner name, and owner type (user or organization) required for the Agent Space to access and interact with the GitHub repository.
Instance Attribute Summary collapse
-
#owner ⇒ String
readonly
Repository owner.
-
#owner_type ⇒ String
readonly
Type of repository owner.
-
#repo_id ⇒ String
readonly
Associated Github repo ID.
-
#repo_name ⇒ String
readonly
Associated Github repo name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(owner:, owner_type:, repo_id:, repo_name:) ⇒ GitHubConfigurationProperty
constructor
A new instance of GitHubConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(owner:, owner_type:, repo_id:, repo_name:) ⇒ GitHubConfigurationProperty
Returns a new instance of GitHubConfigurationProperty.
814 815 816 817 818 819 820 821 822 823 |
# File 'dev_ops_agent/cfn_association.rb', line 814 def initialize(owner:, owner_type:, repo_id:, repo_name:) @owner = owner Jsii::Type.check_type(@owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "owner") @owner_type = owner_type Jsii::Type.check_type(@owner_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ownerType") @repo_id = repo_id Jsii::Type.check_type(@repo_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repoId") @repo_name = repo_name Jsii::Type.check_type(@repo_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repoName") end |
Instance Attribute Details
#owner ⇒ String (readonly)
Repository owner.
829 830 831 |
# File 'dev_ops_agent/cfn_association.rb', line 829 def owner @owner end |
#owner_type ⇒ String (readonly)
Type of repository owner.
834 835 836 |
# File 'dev_ops_agent/cfn_association.rb', line 834 def owner_type @owner_type end |
#repo_id ⇒ String (readonly)
Associated Github repo ID.
839 840 841 |
# File 'dev_ops_agent/cfn_association.rb', line 839 def repo_id @repo_id end |
#repo_name ⇒ String (readonly)
Associated Github repo name.
844 845 846 |
# File 'dev_ops_agent/cfn_association.rb', line 844 def repo_name @repo_name end |
Class Method Details
.jsii_properties ⇒ Object
846 847 848 849 850 851 852 853 |
# File 'dev_ops_agent/cfn_association.rb', line 846 def self.jsii_properties { :owner => "owner", :owner_type => "ownerType", :repo_id => "repoId", :repo_name => "repoName", } end |
Instance Method Details
#to_jsii ⇒ Object
855 856 857 858 859 860 861 862 863 864 |
# File 'dev_ops_agent/cfn_association.rb', line 855 def to_jsii result = {} result.merge!({ "owner" => @owner, "ownerType" => @owner_type, "repoId" => @repo_id, "repoName" => @repo_name, }) result.compact end |