Class: AWSCDK::GuardDuty::CfnPublishingDestination::CFNDestinationPropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_arn: nil, kms_key_arn: nil) ⇒ CFNDestinationPropertiesProperty

Returns a new instance of CFNDestinationPropertiesProperty.

Parameters:

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

    The ARN of the resource where the findings are published.

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

    The ARN of the KMS key to use for encryption.



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_arnString? (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_arnString? (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_propertiesObject



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_jsiiObject



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