Class: AWSCDK::SSMIncidents::CfnResponsePlan::PagerDutyConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ssm_incidents/cfn_response_plan.rb

Overview

Details about the PagerDuty configuration for a response plan.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, pager_duty_incident_configuration:, secret_id:) ⇒ PagerDutyConfigurationProperty

Returns a new instance of PagerDutyConfigurationProperty.

Parameters:



932
933
934
935
936
937
938
939
# File 'ssm_incidents/cfn_response_plan.rb', line 932

def initialize(name:, pager_duty_incident_configuration:, secret_id:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @pager_duty_incident_configuration = pager_duty_incident_configuration.is_a?(Hash) ? ::AWSCDK::SSMIncidents::CfnResponsePlan::PagerDutyIncidentConfigurationProperty.new(**pager_duty_incident_configuration.transform_keys(&:to_sym)) : pager_duty_incident_configuration
  Jsii::Type.check_type(@pager_duty_incident_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zc21pbmNpZGVudHMuQ2ZuUmVzcG9uc2VQbGFuLlBhZ2VyRHV0eUluY2lkZW50Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "pagerDutyIncidentConfiguration")
  @secret_id = secret_id
  Jsii::Type.check_type(@secret_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretId")
end

Instance Attribute Details

#nameString (readonly)

The name of the PagerDuty configuration.



945
946
947
# File 'ssm_incidents/cfn_response_plan.rb', line 945

def name
  @name
end

#pager_duty_incident_configurationAWSCDK::IResolvable, AWSCDK::SSMIncidents::CfnResponsePlan::PagerDutyIncidentConfigurationProperty (readonly)

Details about the PagerDuty service associated with the configuration.



950
951
952
# File 'ssm_incidents/cfn_response_plan.rb', line 950

def pager_duty_incident_configuration
  @pager_duty_incident_configuration
end

#secret_idString (readonly)

The ID of the AWS Secrets Manager secret that stores your PagerDuty key, either a General Access REST API Key or User Token REST API Key, and other user credentials.



955
956
957
# File 'ssm_incidents/cfn_response_plan.rb', line 955

def secret_id
  @secret_id
end

Class Method Details

.jsii_propertiesObject



957
958
959
960
961
962
963
# File 'ssm_incidents/cfn_response_plan.rb', line 957

def self.jsii_properties
  {
    :name => "name",
    :pager_duty_incident_configuration => "pagerDutyIncidentConfiguration",
    :secret_id => "secretId",
  }
end

Instance Method Details

#to_jsiiObject



965
966
967
968
969
970
971
972
973
# File 'ssm_incidents/cfn_response_plan.rb', line 965

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "pagerDutyIncidentConfiguration" => @pager_duty_incident_configuration,
    "secretId" => @secret_id,
  })
  result.compact
end