Class: AWSCDK::GuardDuty::CfnPublishingDestination::CFNDestinationPropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GuardDuty::CfnPublishingDestination::CFNDestinationPropertiesProperty
- Defined in:
- guard_duty/cfn_publishing_destination.rb
Overview
Contains the Amazon Resource Name (ARN) of the resource that receives the published findings, such as an S3 bucket, and the ARN of the KMS key that is used to encrypt these published findings.
Instance Attribute Summary collapse
-
#destination_arn ⇒ String?
readonly
The ARN of the resource where the findings are published.
-
#kms_key_arn ⇒ String?
readonly
The ARN of the KMS key to use for encryption.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_arn: nil, kms_key_arn: nil) ⇒ CFNDestinationPropertiesProperty
constructor
A new instance of CFNDestinationPropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_arn: nil, kms_key_arn: nil) ⇒ CFNDestinationPropertiesProperty
Returns a new instance of CFNDestinationPropertiesProperty.
571 572 573 574 575 576 |
# File 'guard_duty/cfn_publishing_destination.rb', line 571 def initialize(destination_arn: nil, kms_key_arn: nil) @destination_arn = destination_arn Jsii::Type.check_type(@destination_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationArn") unless @destination_arn.nil? @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil? end |
Instance Attribute Details
#destination_arn ⇒ String? (readonly)
The ARN of the resource where the findings are published.
582 583 584 |
# File 'guard_duty/cfn_publishing_destination.rb', line 582 def destination_arn @destination_arn end |
#kms_key_arn ⇒ String? (readonly)
The ARN of the KMS key to use for encryption.
587 588 589 |
# File 'guard_duty/cfn_publishing_destination.rb', line 587 def kms_key_arn @kms_key_arn end |
Class Method Details
.jsii_properties ⇒ Object
589 590 591 592 593 594 |
# File 'guard_duty/cfn_publishing_destination.rb', line 589 def self.jsii_properties { :destination_arn => "destinationArn", :kms_key_arn => "kmsKeyArn", } end |
Instance Method Details
#to_jsii ⇒ Object
596 597 598 599 600 601 602 603 |
# File 'guard_duty/cfn_publishing_destination.rb', line 596 def to_jsii result = {} result.merge!({ "destinationArn" => @destination_arn, "kmsKeyArn" => @kms_key_arn, }) result.compact end |