Class: AWSCDK::DevOpsAgent::CfnAssociation::PagerDutyConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociation::PagerDutyConfigurationProperty
- Defined in:
- dev_ops_agent/cfn_association.rb
Overview
PagerDuty integration configuration.
Instance Attribute Summary collapse
-
#customer_email ⇒ String
readonly
Email to be used in PagerDuty API header.
-
#enable_webhook_updates ⇒ Boolean, ...
readonly
When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.
-
#services ⇒ Array<String>
readonly
List of PagerDuty service IDs available for the association.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(customer_email:, services:, enable_webhook_updates: nil) ⇒ PagerDutyConfigurationProperty
constructor
A new instance of PagerDutyConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(customer_email:, services:, enable_webhook_updates: nil) ⇒ PagerDutyConfigurationProperty
Returns a new instance of PagerDutyConfigurationProperty.
1320 1321 1322 1323 1324 1325 1326 1327 |
# File 'dev_ops_agent/cfn_association.rb', line 1320 def initialize(customer_email:, services:, enable_webhook_updates: nil) @customer_email = customer_email Jsii::Type.check_type(@customer_email, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customerEmail") @services = services Jsii::Type.check_type(@services, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "services") @enable_webhook_updates = enable_webhook_updates Jsii::Type.check_type(@enable_webhook_updates, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableWebhookUpdates") unless @enable_webhook_updates.nil? end |
Instance Attribute Details
#customer_email ⇒ String (readonly)
Email to be used in PagerDuty API header.
1333 1334 1335 |
# File 'dev_ops_agent/cfn_association.rb', line 1333 def customer_email @customer_email end |
#enable_webhook_updates ⇒ Boolean, ... (readonly)
When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.
1343 1344 1345 |
# File 'dev_ops_agent/cfn_association.rb', line 1343 def enable_webhook_updates @enable_webhook_updates end |
#services ⇒ Array<String> (readonly)
List of PagerDuty service IDs available for the association.
1338 1339 1340 |
# File 'dev_ops_agent/cfn_association.rb', line 1338 def services @services end |
Class Method Details
.jsii_properties ⇒ Object
1345 1346 1347 1348 1349 1350 1351 |
# File 'dev_ops_agent/cfn_association.rb', line 1345 def self.jsii_properties { :customer_email => "customerEmail", :services => "services", :enable_webhook_updates => "enableWebhookUpdates", } end |
Instance Method Details
#to_jsii ⇒ Object
1353 1354 1355 1356 1357 1358 1359 1360 1361 |
# File 'dev_ops_agent/cfn_association.rb', line 1353 def to_jsii result = {} result.merge!({ "customerEmail" => @customer_email, "services" => @services, "enableWebhookUpdates" => @enable_webhook_updates, }) result.compact end |