Class: AWSCDK::WorkspacesWeb::CfnIPAccessSettingsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WorkspacesWeb::CfnIPAccessSettingsProps
- Defined in:
- workspaces_web/cfn_ip_access_settings_props.rb
Overview
Properties for defining a CfnIpAccessSettings.
Instance Attribute Summary collapse
-
#additional_encryption_context ⇒ AWSCDK::IResolvable, ...
readonly
Additional encryption context of the IP access settings.
-
#customer_managed_key ⇒ String?
readonly
The custom managed key of the IP access settings.
-
#description ⇒ String?
readonly
The description of the IP access settings.
-
#display_name ⇒ String?
readonly
The display name of the IP access settings.
-
#ip_rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WorkspacesWeb::CfnIPAccessSettings::IPRuleProperty>
readonly
The IP rules of the IP access settings.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags to add to the IP access settings resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ip_rules:, additional_encryption_context: nil, customer_managed_key: nil, description: nil, display_name: nil, tags: nil) ⇒ CfnIPAccessSettingsProps
constructor
A new instance of CfnIPAccessSettingsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ip_rules:, additional_encryption_context: nil, customer_managed_key: nil, description: nil, display_name: nil, tags: nil) ⇒ CfnIPAccessSettingsProps
Returns a new instance of CfnIPAccessSettingsProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 15 def initialize(ip_rules:, additional_encryption_context: nil, customer_managed_key: nil, description: nil, display_name: nil, tags: nil) @ip_rules = ip_rules Jsii::Type.check_type(@ip_rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd29ya3NwYWNlc3dlYi5DZm5JcEFjY2Vzc1NldHRpbmdzLklwUnVsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "ipRules") @additional_encryption_context = additional_encryption_context Jsii::Type.check_type(@additional_encryption_context, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "additionalEncryptionContext") unless @additional_encryption_context.nil? @customer_managed_key = customer_managed_key Jsii::Type.check_type(@customer_managed_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customerManagedKey") unless @customer_managed_key.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @display_name = display_name Jsii::Type.check_type(@display_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "displayName") unless @display_name.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
#additional_encryption_context ⇒ AWSCDK::IResolvable, ... (readonly)
Additional encryption context of the IP access settings.
39 40 41 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 39 def additional_encryption_context @additional_encryption_context end |
#customer_managed_key ⇒ String? (readonly)
The custom managed key of the IP access settings.
Pattern : ^arn:[\w+=\/,.@-]+:kms:[a-zA-Z0-9\-]*:[a-zA-Z0-9]{1,12}:key\/[a-zA-Z0-9-]+$
46 47 48 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 46 def customer_managed_key @customer_managed_key end |
#description ⇒ String? (readonly)
The description of the IP access settings.
51 52 53 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 51 def description @description end |
#display_name ⇒ String? (readonly)
The display name of the IP access settings.
56 57 58 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 56 def display_name @display_name end |
#ip_rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WorkspacesWeb::CfnIPAccessSettings::IPRuleProperty> (readonly)
The IP rules of the IP access settings.
34 35 36 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 34 def ip_rules @ip_rules end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags to add to the IP access settings resource.
A tag is a key-value pair.
63 64 65 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 63 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 65 def self.jsii_properties { :ip_rules => "ipRules", :additional_encryption_context => "additionalEncryptionContext", :customer_managed_key => "customerManagedKey", :description => "description", :display_name => "displayName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'workspaces_web/cfn_ip_access_settings_props.rb', line 76 def to_jsii result = {} result.merge!({ "ipRules" => @ip_rules, "additionalEncryptionContext" => @additional_encryption_context, "customerManagedKey" => @customer_managed_key, "description" => @description, "displayName" => @display_name, "tags" => @tags, }) result.compact end |