Class: AWSCDK::Pipelines::PermissionsBroadeningCheckProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipelines/permissions_broadening_check_props.rb

Overview

Properties for a PermissionsBroadeningCheck.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stage:, notification_topic: nil) ⇒ PermissionsBroadeningCheckProps

Returns a new instance of PermissionsBroadeningCheckProps.

Parameters:

  • stage (AWSCDK::Stage)

    The CDK Stage object to check the stacks of.

  • notification_topic (AWSCDK::SNS::ITopic, nil) (defaults to: nil)

    Topic to send notifications when a human needs to give manual confirmation.



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_topicAWSCDK::SNS::ITopic? (readonly)

Note:

Default: - no notification

Topic to send notifications when a human needs to give manual confirmation.

Returns:



26
27
28
# File 'pipelines/permissions_broadening_check_props.rb', line 26

def notification_topic
  @notification_topic
end

#stageAWSCDK::Stage (readonly)

The CDK Stage object to check the stacks of.

This should be the same Stage object you are passing to add_stage().

Returns:



21
22
23
# File 'pipelines/permissions_broadening_check_props.rb', line 21

def stage
  @stage
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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