Class: AWSCDK::EMRServerless::CfnApplication::S3MonitoringConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr_serverless/cfn_application.rb

Overview

The Amazon S3 configuration for monitoring log publishing.

You can configure your jobs to send log information to Amazon S3.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encryption_key_arn: nil, log_uri: nil) ⇒ S3MonitoringConfigurationProperty

Returns a new instance of S3MonitoringConfigurationProperty.

Parameters:

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

    The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.

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

    The Amazon S3 destination URI for log publishing.



1475
1476
1477
1478
1479
1480
# File 'emr_serverless/cfn_application.rb', line 1475

def initialize(encryption_key_arn: nil, log_uri: nil)
  @encryption_key_arn = encryption_key_arn
  Jsii::Type.check_type(@encryption_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionKeyArn") unless @encryption_key_arn.nil?
  @log_uri = log_uri
  Jsii::Type.check_type(@log_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logUri") unless @log_uri.nil?
end

Instance Attribute Details

#encryption_key_arnString? (readonly)

The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.



1486
1487
1488
# File 'emr_serverless/cfn_application.rb', line 1486

def encryption_key_arn
  @encryption_key_arn
end

#log_uriString? (readonly)

The Amazon S3 destination URI for log publishing.



1491
1492
1493
# File 'emr_serverless/cfn_application.rb', line 1491

def log_uri
  @log_uri
end

Class Method Details

.jsii_propertiesObject



1493
1494
1495
1496
1497
1498
# File 'emr_serverless/cfn_application.rb', line 1493

def self.jsii_properties
  {
    :encryption_key_arn => "encryptionKeyArn",
    :log_uri => "logUri",
  }
end

Instance Method Details

#to_jsiiObject



1500
1501
1502
1503
1504
1505
1506
1507
# File 'emr_serverless/cfn_application.rb', line 1500

def to_jsii
  result = {}
  result.merge!({
    "encryptionKeyArn" => @encryption_key_arn,
    "logUri" => @log_uri,
  })
  result.compact
end