Class: AWSCDK::DevOpsAgent::CfnAssociation::PagerDutyConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_association.rb

Overview

PagerDuty integration configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(customer_email:, services:, enable_webhook_updates: nil) ⇒ PagerDutyConfigurationProperty

Returns a new instance of PagerDutyConfigurationProperty.

Parameters:

  • customer_email (String)

    Email to be used in PagerDuty API header.

  • services (Array<String>)

    List of PagerDuty service IDs available for the association.

  • enable_webhook_updates (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.



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_emailString (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_updatesBoolean, ... (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

#servicesArray<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_propertiesObject



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_jsiiObject



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