Class: AWSCDK::SecurityLake::CfnSubscriberNotification::HttpsNotificationConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_lake/cfn_subscriber_notification.rb

Overview

Specify the configurations you want to use for HTTPS subscriber notification.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint:, target_role_arn:, authorization_api_key_name: nil, authorization_api_key_value: nil, http_method: nil) ⇒ HttpsNotificationConfigurationProperty

Returns a new instance of HttpsNotificationConfigurationProperty.

Parameters:

  • endpoint (String)

    The subscription endpoint in Security Lake .

  • target_role_arn (String)

    The Amazon Resource Name (ARN) of the EventBridge API destinations IAM role that you created.

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

    The key name for the notification subscription.

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

    The key value for the notification subscription.

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

    The HTTPS method used for the notification subscription.



520
521
522
523
524
525
526
527
528
529
530
531
# File 'security_lake/cfn_subscriber_notification.rb', line 520

def initialize(endpoint:, target_role_arn:, authorization_api_key_name: nil, authorization_api_key_value: nil, http_method: nil)
  @endpoint = endpoint
  Jsii::Type.check_type(@endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpoint")
  @target_role_arn = target_role_arn
  Jsii::Type.check_type(@target_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetRoleArn")
  @authorization_api_key_name = authorization_api_key_name
  Jsii::Type.check_type(@authorization_api_key_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationApiKeyName") unless @authorization_api_key_name.nil?
  @authorization_api_key_value = authorization_api_key_value
  Jsii::Type.check_type(@authorization_api_key_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationApiKeyValue") unless @authorization_api_key_value.nil?
  @http_method = http_method
  Jsii::Type.check_type(@http_method, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "httpMethod") unless @http_method.nil?
end

Instance Attribute Details

#authorization_api_key_nameString? (readonly)

The key name for the notification subscription.



551
552
553
# File 'security_lake/cfn_subscriber_notification.rb', line 551

def authorization_api_key_name
  @authorization_api_key_name
end

#authorization_api_key_valueString? (readonly)

The key value for the notification subscription.



556
557
558
# File 'security_lake/cfn_subscriber_notification.rb', line 556

def authorization_api_key_value
  @authorization_api_key_value
end

#endpointString (readonly)

The subscription endpoint in Security Lake .

If you prefer notification with an HTTPS endpoint, populate this field.



539
540
541
# File 'security_lake/cfn_subscriber_notification.rb', line 539

def endpoint
  @endpoint
end

#http_methodString? (readonly)

The HTTPS method used for the notification subscription.



561
562
563
# File 'security_lake/cfn_subscriber_notification.rb', line 561

def http_method
  @http_method
end

#target_role_arnString (readonly)

The Amazon Resource Name (ARN) of the EventBridge API destinations IAM role that you created.

For more information about ARNs and how to use them in policies, see Managing data access and AWS Managed Policies in the Amazon Security Lake User Guide .



546
547
548
# File 'security_lake/cfn_subscriber_notification.rb', line 546

def target_role_arn
  @target_role_arn
end

Class Method Details

.jsii_propertiesObject



563
564
565
566
567
568
569
570
571
# File 'security_lake/cfn_subscriber_notification.rb', line 563

def self.jsii_properties
  {
    :endpoint => "endpoint",
    :target_role_arn => "targetRoleArn",
    :authorization_api_key_name => "authorizationApiKeyName",
    :authorization_api_key_value => "authorizationApiKeyValue",
    :http_method => "httpMethod",
  }
end

Instance Method Details

#to_jsiiObject



573
574
575
576
577
578
579
580
581
582
583
# File 'security_lake/cfn_subscriber_notification.rb', line 573

def to_jsii
  result = {}
  result.merge!({
    "endpoint" => @endpoint,
    "targetRoleArn" => @target_role_arn,
    "authorizationApiKeyName" => @authorization_api_key_name,
    "authorizationApiKeyValue" => @authorization_api_key_value,
    "httpMethod" => @http_method,
  })
  result.compact
end