Class: AWSCDK::Bedrock::CfnDataSource::DeletionProtectionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_data_source.rb

Overview

Configuration for deletion protection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deletion_protection_status:, deletion_protection_threshold: nil) ⇒ DeletionProtectionConfigurationProperty

Returns a new instance of DeletionProtectionConfigurationProperty.

Parameters:

  • deletion_protection_status (String)

    Indicates whether a feature is enabled or disabled.

  • deletion_protection_threshold (Numeric, nil) (defaults to: nil)

    Threshold for deletion protection.



1269
1270
1271
1272
1273
1274
# File 'bedrock/cfn_data_source.rb', line 1269

def initialize(deletion_protection_status:, deletion_protection_threshold: nil)
  @deletion_protection_status = deletion_protection_status
  Jsii::Type.check_type(@deletion_protection_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deletionProtectionStatus")
  @deletion_protection_threshold = deletion_protection_threshold
  Jsii::Type.check_type(@deletion_protection_threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "deletionProtectionThreshold") unless @deletion_protection_threshold.nil?
end

Instance Attribute Details

#deletion_protection_statusString (readonly)

Indicates whether a feature is enabled or disabled.



1280
1281
1282
# File 'bedrock/cfn_data_source.rb', line 1280

def deletion_protection_status
  @deletion_protection_status
end

#deletion_protection_thresholdNumeric? (readonly)

Note:

Default: - 15

Threshold for deletion protection.



1286
1287
1288
# File 'bedrock/cfn_data_source.rb', line 1286

def deletion_protection_threshold
  @deletion_protection_threshold
end

Class Method Details

.jsii_propertiesObject



1288
1289
1290
1291
1292
1293
# File 'bedrock/cfn_data_source.rb', line 1288

def self.jsii_properties
  {
    :deletion_protection_status => "deletionProtectionStatus",
    :deletion_protection_threshold => "deletionProtectionThreshold",
  }
end

Instance Method Details

#to_jsiiObject



1295
1296
1297
1298
1299
1300
1301
1302
# File 'bedrock/cfn_data_source.rb', line 1295

def to_jsii
  result = {}
  result.merge!({
    "deletionProtectionStatus" => @deletion_protection_status,
    "deletionProtectionThreshold" => @deletion_protection_threshold,
  })
  result.compact
end