Class: AWSCDK::CertificateManager::CfnAccount::ExpiryEventsConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
certificate_manager/cfn_account.rb

Overview

Object containing expiration events options associated with an AWS account .

For more information, see ExpiryEventsConfiguration in the API reference.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(days_before_expiry: nil) ⇒ ExpiryEventsConfigurationProperty

Returns a new instance of ExpiryEventsConfigurationProperty.

Parameters:

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

    This option specifies the number of days prior to certificate expiration when ACM starts generating EventBridge events.



503
504
505
506
# File 'certificate_manager/cfn_account.rb', line 503

def initialize(days_before_expiry: nil)
  @days_before_expiry = days_before_expiry
  Jsii::Type.check_type(@days_before_expiry, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "daysBeforeExpiry") unless @days_before_expiry.nil?
end

Instance Attribute Details

#days_before_expiryNumeric? (readonly)

This option specifies the number of days prior to certificate expiration when ACM starts generating EventBridge events.

ACM sends one event per day per certificate until the certificate expires. By default, accounts receive events starting 45 days before certificate expiration.



514
515
516
# File 'certificate_manager/cfn_account.rb', line 514

def days_before_expiry
  @days_before_expiry
end

Class Method Details

.jsii_propertiesObject



516
517
518
519
520
# File 'certificate_manager/cfn_account.rb', line 516

def self.jsii_properties
  {
    :days_before_expiry => "daysBeforeExpiry",
  }
end

Instance Method Details

#to_jsiiObject



522
523
524
525
526
527
528
# File 'certificate_manager/cfn_account.rb', line 522

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