Class: AWSCDK::EMRServerless::CfnApplication::ManagedPersistenceMonitoringConfigurationProperty

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

Overview

The managed log persistence configuration for a job run.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil, encryption_key_arn: nil) ⇒ ManagedPersistenceMonitoringConfigurationProperty

Returns a new instance of ManagedPersistenceMonitoringConfigurationProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Enables managed logging and defaults to true.

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

    The KMS key ARN to encrypt the logs stored in managed log persistence.



1231
1232
1233
1234
1235
1236
# File 'emr_serverless/cfn_application.rb', line 1231

def initialize(enabled: nil, encryption_key_arn: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.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?
end

Instance Attribute Details

#enabledBoolean, ... (readonly)

Note:

Default: - true

Enables managed logging and defaults to true.

If set to false, managed logging will be turned off.



1245
1246
1247
# File 'emr_serverless/cfn_application.rb', line 1245

def enabled
  @enabled
end

#encryption_key_arnString? (readonly)

The KMS key ARN to encrypt the logs stored in managed log persistence.



1250
1251
1252
# File 'emr_serverless/cfn_application.rb', line 1250

def encryption_key_arn
  @encryption_key_arn
end

Class Method Details

.jsii_propertiesObject



1252
1253
1254
1255
1256
1257
# File 'emr_serverless/cfn_application.rb', line 1252

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

Instance Method Details

#to_jsiiObject



1259
1260
1261
1262
1263
1264
1265
1266
# File 'emr_serverless/cfn_application.rb', line 1259

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