Class: AWSCDK::IoT::CfnAccountAuditConfiguration::CertAgeCheckCustomConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_account_audit_configuration.rb

Overview

Configuration structure containing settings for the device certificate age check.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cert_age_threshold_in_days: nil) ⇒ CertAgeCheckCustomConfigurationProperty

Returns a new instance of CertAgeCheckCustomConfigurationProperty.

Parameters:

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

    The number of days that defines when a device certificate is considered to have aged.



859
860
861
862
# File 'io_t/cfn_account_audit_configuration.rb', line 859

def initialize(cert_age_threshold_in_days: nil)
  @cert_age_threshold_in_days = cert_age_threshold_in_days
  Jsii::Type.check_type(@cert_age_threshold_in_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certAgeThresholdInDays") unless @cert_age_threshold_in_days.nil?
end

Instance Attribute Details

#cert_age_threshold_in_daysString? (readonly)

The number of days that defines when a device certificate is considered to have aged.

The check will report a finding if a certificate has been active for a number of days greater than or equal to this threshold value.



870
871
872
# File 'io_t/cfn_account_audit_configuration.rb', line 870

def cert_age_threshold_in_days
  @cert_age_threshold_in_days
end

Class Method Details

.jsii_propertiesObject



872
873
874
875
876
# File 'io_t/cfn_account_audit_configuration.rb', line 872

def self.jsii_properties
  {
    :cert_age_threshold_in_days => "certAgeThresholdInDays",
  }
end

Instance Method Details

#to_jsiiObject



878
879
880
881
882
883
884
# File 'io_t/cfn_account_audit_configuration.rb', line 878

def to_jsii
  result = {}
  result.merge!({
    "certAgeThresholdInDays" => @cert_age_threshold_in_days,
  })
  result.compact
end