Class: AWSCDK::RolesAnywhere::CfnTrustAnchorProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RolesAnywhere::CfnTrustAnchorProps
- Defined in:
- roles_anywhere/cfn_trust_anchor_props.rb
Overview
Properties for defining a CfnTrustAnchor.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, ...
readonly
Indicates whether the trust anchor is enabled.
-
#name ⇒ String
readonly
The name of the trust anchor.
-
#notification_settings ⇒ AWSCDK::IResolvable, ...
readonly
A list of notification settings to be associated to the trust anchor.
-
#source ⇒ AWSCDK::IResolvable, AWSCDK::RolesAnywhere::CfnTrustAnchor::SourceProperty
readonly
The trust anchor type and its related certificate data.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags to attach to the trust anchor.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, source:, enabled: nil, notification_settings: nil, tags: nil) ⇒ CfnTrustAnchorProps
constructor
A new instance of CfnTrustAnchorProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, source:, enabled: nil, notification_settings: nil, tags: nil) ⇒ CfnTrustAnchorProps
Returns a new instance of CfnTrustAnchorProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'roles_anywhere/cfn_trust_anchor_props.rb', line 14 def initialize(name:, source:, enabled: nil, notification_settings: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @source = source.is_a?(Hash) ? ::AWSCDK::RolesAnywhere::CfnTrustAnchor::SourceProperty.new(**source.transform_keys(&:to_sym)) : source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb2xlc2FueXdoZXJlLkNmblRydXN0QW5jaG9yLlNvdXJjZVByb3BlcnR5In1dfX0=")), "source") @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? @notification_settings = notification_settings Jsii::Type.check_type(@notification_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm9sZXNhbnl3aGVyZS5DZm5UcnVzdEFuY2hvci5Ob3RpZmljYXRpb25TZXR0aW5nUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "notificationSettings") unless @notification_settings.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean, ... (readonly)
Indicates whether the trust anchor is enabled.
41 42 43 |
# File 'roles_anywhere/cfn_trust_anchor_props.rb', line 41 def enabled @enabled end |
#name ⇒ String (readonly)
The name of the trust anchor.
31 32 33 |
# File 'roles_anywhere/cfn_trust_anchor_props.rb', line 31 def name @name end |
#notification_settings ⇒ AWSCDK::IResolvable, ... (readonly)
A list of notification settings to be associated to the trust anchor.
46 47 48 |
# File 'roles_anywhere/cfn_trust_anchor_props.rb', line 46 def notification_settings @notification_settings end |
#source ⇒ AWSCDK::IResolvable, AWSCDK::RolesAnywhere::CfnTrustAnchor::SourceProperty (readonly)
The trust anchor type and its related certificate data.
36 37 38 |
# File 'roles_anywhere/cfn_trust_anchor_props.rb', line 36 def source @source end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags to attach to the trust anchor.
51 52 53 |
# File 'roles_anywhere/cfn_trust_anchor_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'roles_anywhere/cfn_trust_anchor_props.rb', line 53 def self.jsii_properties { :name => "name", :source => "source", :enabled => "enabled", :notification_settings => "notificationSettings", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'roles_anywhere/cfn_trust_anchor_props.rb', line 63 def to_jsii result = {} result.merge!({ "name" => @name, "source" => @source, "enabled" => @enabled, "notificationSettings" => @notification_settings, "tags" => @tags, }) result.compact end |