Class: AWSCDK::DevOpsAgent::CfnAssociation::ServiceNowConfigurationProperty

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

Overview

Configuration for ServiceNow integration.

Defines the ServiceNow instance URL, instance ID, and webhook update settings required for the Agent Space to create, update, and manage incidents and change requests.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable_webhook_updates: nil, instance_id: nil) ⇒ ServiceNowConfigurationProperty

Returns a new instance of ServiceNowConfigurationProperty.

Parameters:

  • 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.

  • instance_id (String, nil) (defaults to: nil)

    ServiceNow instance ID.



1583
1584
1585
1586
1587
1588
# File 'dev_ops_agent/cfn_association.rb', line 1583

def initialize(enable_webhook_updates: nil, instance_id: nil)
  @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?
  @instance_id = instance_id
  Jsii::Type.check_type(@instance_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceId") unless @instance_id.nil?
end

Instance Attribute Details

#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.



1594
1595
1596
# File 'dev_ops_agent/cfn_association.rb', line 1594

def enable_webhook_updates
  @enable_webhook_updates
end

#instance_idString? (readonly)

ServiceNow instance ID.



1599
1600
1601
# File 'dev_ops_agent/cfn_association.rb', line 1599

def instance_id
  @instance_id
end

Class Method Details

.jsii_propertiesObject



1601
1602
1603
1604
1605
1606
# File 'dev_ops_agent/cfn_association.rb', line 1601

def self.jsii_properties
  {
    :enable_webhook_updates => "enableWebhookUpdates",
    :instance_id => "instanceId",
  }
end

Instance Method Details

#to_jsiiObject



1608
1609
1610
1611
1612
1613
1614
1615
# File 'dev_ops_agent/cfn_association.rb', line 1608

def to_jsii
  result = {}
  result.merge!({
    "enableWebhookUpdates" => @enable_webhook_updates,
    "instanceId" => @instance_id,
  })
  result.compact
end