Class: AWSCDK::DevOpsAgent::CfnAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociationProps
- Defined in:
- dev_ops_agent/cfn_association_props.rb
Overview
Properties for defining a CfnAssociation.
Instance Attribute Summary collapse
-
#agent_space_id ⇒ String
readonly
The unique identifier of the Agent Space.
-
#configuration ⇒ AWSCDK::IResolvable, AWSCDK::DevOpsAgent::CfnAssociation::ServiceConfigurationProperty
readonly
The configuration that directs how the Agent Space interacts with the given service.
-
#linked_association_ids ⇒ Array<String>?
readonly
Set of linked association IDs for parent-child relationships.
-
#service_id ⇒ String
readonly
The identifier for the associated service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_space_id:, configuration:, service_id:, linked_association_ids: nil) ⇒ CfnAssociationProps
constructor
A new instance of CfnAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(agent_space_id:, configuration:, service_id:, linked_association_ids: nil) ⇒ CfnAssociationProps
Returns a new instance of CfnAssociationProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'dev_ops_agent/cfn_association_props.rb', line 13 def initialize(agent_space_id:, configuration:, service_id:, linked_association_ids: nil) @agent_space_id = agent_space_id Jsii::Type.check_type(@agent_space_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentSpaceId") @configuration = configuration.is_a?(Hash) ? ::AWSCDK::DevOpsAgent::CfnAssociation::ServiceConfigurationProperty.new(**configuration.transform_keys(&:to_sym)) : configuration Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNhZ2VudC5DZm5Bc3NvY2lhdGlvbi5TZXJ2aWNlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "configuration") @service_id = service_id Jsii::Type.check_type(@service_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceId") @linked_association_ids = linked_association_ids Jsii::Type.check_type(@linked_association_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "linkedAssociationIds") unless @linked_association_ids.nil? end |
Instance Attribute Details
#agent_space_id ⇒ String (readonly)
The unique identifier of the Agent Space.
28 29 30 |
# File 'dev_ops_agent/cfn_association_props.rb', line 28 def agent_space_id @agent_space_id end |
#configuration ⇒ AWSCDK::IResolvable, AWSCDK::DevOpsAgent::CfnAssociation::ServiceConfigurationProperty (readonly)
The configuration that directs how the Agent Space interacts with the given service.
You can specify only one configuration type per association.
Allowed Values : SourceAws | Aws | GitHub | GitLab | Slack | Dynatrace | ServiceNow | MCPServer | MCPServerNewRelic | MCPServerDatadog | MCPServerSplunk | EventChannel
37 38 39 |
# File 'dev_ops_agent/cfn_association_props.rb', line 37 def configuration @configuration end |
#linked_association_ids ⇒ Array<String>? (readonly)
Set of linked association IDs for parent-child relationships.
49 50 51 |
# File 'dev_ops_agent/cfn_association_props.rb', line 49 def linked_association_ids @linked_association_ids end |
#service_id ⇒ String (readonly)
The identifier for the associated service.
For SourceAws and Aws configurations, this must be aws . For all other service types, this is a UUID generated from the RegisterService command.
44 45 46 |
# File 'dev_ops_agent/cfn_association_props.rb', line 44 def service_id @service_id end |
Class Method Details
.jsii_properties ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'dev_ops_agent/cfn_association_props.rb', line 51 def self.jsii_properties { :agent_space_id => "agentSpaceId", :configuration => "configuration", :service_id => "serviceId", :linked_association_ids => "linkedAssociationIds", } end |
Instance Method Details
#to_jsii ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'dev_ops_agent/cfn_association_props.rb', line 60 def to_jsii result = {} result.merge!({ "agentSpaceId" => @agent_space_id, "configuration" => @configuration, "serviceId" => @service_id, "linkedAssociationIds" => @linked_association_ids, }) result.compact end |