Class: AWSCDK::SSMIncidents::CfnResponsePlan::PagerDutyConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSMIncidents::CfnResponsePlan::PagerDutyConfigurationProperty
- Defined in:
- ssm_incidents/cfn_response_plan.rb
Overview
Details about the PagerDuty configuration for a response plan.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the PagerDuty configuration.
-
#pager_duty_incident_configuration ⇒ AWSCDK::IResolvable, AWSCDK::SSMIncidents::CfnResponsePlan::PagerDutyIncidentConfigurationProperty
readonly
Details about the PagerDuty service associated with the configuration.
-
#secret_id ⇒ String
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, pager_duty_incident_configuration:, secret_id:) ⇒ PagerDutyConfigurationProperty
constructor
A new instance of PagerDutyConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, pager_duty_incident_configuration:, secret_id:) ⇒ PagerDutyConfigurationProperty
Returns a new instance of PagerDutyConfigurationProperty.
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
#name ⇒ String (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_configuration ⇒ AWSCDK::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_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |