Class: AWSCDK::RolesAnywhere::CfnCRLProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
roles_anywhere/cfn_crl_props.rb

Overview

Properties for defining a CfnCRL.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(crl_data:, name:, enabled: nil, tags: nil, trust_anchor_arn: nil) ⇒ CfnCRLProps

Returns a new instance of CfnCRLProps.

Parameters:

  • crl_data (String)

    The x509 v3 specified certificate revocation list (CRL).

  • name (String)

    The name of the certificate revocation list (CRL).

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

    Specifies whether the certificate revocation list (CRL) is enabled.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    A list of tags to attach to the certificate revocation list (CRL).

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

    The ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'roles_anywhere/cfn_crl_props.rb', line 14

def initialize(crl_data:, name:, enabled: nil, tags: nil, trust_anchor_arn: nil)
  @crl_data = crl_data
  Jsii::Type.check_type(@crl_data, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "crlData")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
  @trust_anchor_arn = trust_anchor_arn
  Jsii::Type.check_type(@trust_anchor_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "trustAnchorArn") unless @trust_anchor_arn.nil?
end

Instance Attribute Details

#crl_dataString (readonly)

The x509 v3 specified certificate revocation list (CRL).



31
32
33
# File 'roles_anywhere/cfn_crl_props.rb', line 31

def crl_data
  @crl_data
end

#enabledBoolean, ... (readonly)

Specifies whether the certificate revocation list (CRL) is enabled.



41
42
43
# File 'roles_anywhere/cfn_crl_props.rb', line 41

def enabled
  @enabled
end

#nameString (readonly)

The name of the certificate revocation list (CRL).



36
37
38
# File 'roles_anywhere/cfn_crl_props.rb', line 36

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A list of tags to attach to the certificate revocation list (CRL).



46
47
48
# File 'roles_anywhere/cfn_crl_props.rb', line 46

def tags
  @tags
end

#trust_anchor_arnString? (readonly)

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.



51
52
53
# File 'roles_anywhere/cfn_crl_props.rb', line 51

def trust_anchor_arn
  @trust_anchor_arn
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'roles_anywhere/cfn_crl_props.rb', line 53

def self.jsii_properties
  {
    :crl_data => "crlData",
    :name => "name",
    :enabled => "enabled",
    :tags => "tags",
    :trust_anchor_arn => "trustAnchorArn",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'roles_anywhere/cfn_crl_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "crlData" => @crl_data,
    "name" => @name,
    "enabled" => @enabled,
    "tags" => @tags,
    "trustAnchorArn" => @trust_anchor_arn,
  })
  result.compact
end