Class: AWSCDK::RolesAnywhere::CfnTrustAnchorProps

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

Overview

Properties for defining a CfnTrustAnchor.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, source:, enabled: nil, notification_settings: nil, tags: nil) ⇒ CfnTrustAnchorProps

Returns a new instance of CfnTrustAnchorProps.

Parameters:



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 = 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?
end

Instance Attribute Details

#enabledBoolean, ... (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

#nameString (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_settingsAWSCDK::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

#sourceAWSCDK::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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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