Class: AWSCDK::Pipelines::PermissionsBroadeningCheckProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipelines::PermissionsBroadeningCheckProps
- Defined in:
- pipelines/permissions_broadening_check_props.rb
Overview
Properties for a PermissionsBroadeningCheck.
Instance Attribute Summary collapse
-
#notification_topic ⇒ AWSCDK::SNS::ITopic?
readonly
Topic to send notifications when a human needs to give manual confirmation.
-
#stage ⇒ AWSCDK::Stage
readonly
The CDK Stage object to check the stacks of.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(stage:, notification_topic: nil) ⇒ PermissionsBroadeningCheckProps
constructor
A new instance of PermissionsBroadeningCheckProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(stage:, notification_topic: nil) ⇒ PermissionsBroadeningCheckProps
Returns a new instance of PermissionsBroadeningCheckProps.
9 10 11 12 13 14 |
# File 'pipelines/permissions_broadening_check_props.rb', line 9 def initialize(stage:, notification_topic: nil) @stage = stage Jsii::Type.check_type(@stage, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TdGFnZSJ9")), "stage") @notification_topic = notification_topic Jsii::Type.check_type(@notification_topic, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc25zLklUb3BpYyJ9")), "notificationTopic") unless @notification_topic.nil? end |
Instance Attribute Details
#notification_topic ⇒ AWSCDK::SNS::ITopic? (readonly)
Note:
Default: - no notification
Topic to send notifications when a human needs to give manual confirmation.
26 27 28 |
# File 'pipelines/permissions_broadening_check_props.rb', line 26 def notification_topic @notification_topic end |
#stage ⇒ AWSCDK::Stage (readonly)
The CDK Stage object to check the stacks of.
This should be the same Stage object you are passing to add_stage().
21 22 23 |
# File 'pipelines/permissions_broadening_check_props.rb', line 21 def stage @stage end |
Class Method Details
.jsii_properties ⇒ Object
28 29 30 31 32 33 |
# File 'pipelines/permissions_broadening_check_props.rb', line 28 def self.jsii_properties { :stage => "stage", :notification_topic => "notificationTopic", } end |
Instance Method Details
#to_jsii ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'pipelines/permissions_broadening_check_props.rb', line 35 def to_jsii result = {} result.merge!({ "stage" => @stage, "notificationTopic" => @notification_topic, }) result.compact end |