Class: AWSCDK::WorkspacesWeb::CfnBrowserSettings::WebContentFilteringPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WorkspacesWeb::CfnBrowserSettings::WebContentFilteringPolicyProperty
- Defined in:
- workspaces_web/cfn_browser_settings.rb
Overview
The policy that specifies which URLs end users are allowed to access or which URLs or domain categories they are restricted from accessing for enhanced security.
Instance Attribute Summary collapse
-
#allowed_urls ⇒ Array<String>?
readonly
URLs and domains that are always accessible to end users.
-
#blocked_categories ⇒ Array<String>?
readonly
Categories of websites that are blocked on the end user's browsers.
-
#blocked_urls ⇒ Array<String>?
readonly
URLs and domains that end users cannot access.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_urls: nil, blocked_categories: nil, blocked_urls: nil) ⇒ WebContentFilteringPolicyProperty
constructor
A new instance of WebContentFilteringPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_urls: nil, blocked_categories: nil, blocked_urls: nil) ⇒ WebContentFilteringPolicyProperty
Returns a new instance of WebContentFilteringPolicyProperty.
582 583 584 585 586 587 588 589 |
# File 'workspaces_web/cfn_browser_settings.rb', line 582 def initialize(allowed_urls: nil, blocked_categories: nil, blocked_urls: nil) @allowed_urls = allowed_urls Jsii::Type.check_type(@allowed_urls, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedUrls") unless @allowed_urls.nil? @blocked_categories = blocked_categories Jsii::Type.check_type(@blocked_categories, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "blockedCategories") unless @blocked_categories.nil? @blocked_urls = blocked_urls Jsii::Type.check_type(@blocked_urls, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "blockedUrls") unless @blocked_urls.nil? end |
Instance Attribute Details
#allowed_urls ⇒ Array<String>? (readonly)
URLs and domains that are always accessible to end users.
595 596 597 |
# File 'workspaces_web/cfn_browser_settings.rb', line 595 def allowed_urls @allowed_urls end |
#blocked_categories ⇒ Array<String>? (readonly)
Categories of websites that are blocked on the end user's browsers.
600 601 602 |
# File 'workspaces_web/cfn_browser_settings.rb', line 600 def blocked_categories @blocked_categories end |
#blocked_urls ⇒ Array<String>? (readonly)
URLs and domains that end users cannot access.
605 606 607 |
# File 'workspaces_web/cfn_browser_settings.rb', line 605 def blocked_urls @blocked_urls end |
Class Method Details
.jsii_properties ⇒ Object
607 608 609 610 611 612 613 |
# File 'workspaces_web/cfn_browser_settings.rb', line 607 def self.jsii_properties { :allowed_urls => "allowedUrls", :blocked_categories => "blockedCategories", :blocked_urls => "blockedUrls", } end |
Instance Method Details
#to_jsii ⇒ Object
615 616 617 618 619 620 621 622 623 |
# File 'workspaces_web/cfn_browser_settings.rb', line 615 def to_jsii result = {} result.merge!({ "allowedUrls" => @allowed_urls, "blockedCategories" => @blocked_categories, "blockedUrls" => @blocked_urls, }) result.compact end |