Class: AWSCDK::AppStream::CfnStack::URLRedirectionConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppStream::CfnStack::URLRedirectionConfigProperty
- Defined in:
- app_stream/cfn_stack.rb
Overview
The configuration for URL redirection.
Instance Attribute Summary collapse
-
#allowed_urls ⇒ Array<String>?
readonly
The URLs that are allowed for redirection.
-
#denied_urls ⇒ Array<String>?
readonly
The URLs that are denied for redirection.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Specifies whether URL redirection is enabled or disabled.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, allowed_urls: nil, denied_urls: nil) ⇒ URLRedirectionConfigProperty
constructor
A new instance of URLRedirectionConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, allowed_urls: nil, denied_urls: nil) ⇒ URLRedirectionConfigProperty
Returns a new instance of URLRedirectionConfigProperty.
920 921 922 923 924 925 926 927 |
# File 'app_stream/cfn_stack.rb', line 920 def initialize(enabled:, allowed_urls: nil, denied_urls: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") @allowed_urls = allowed_urls Jsii::Type.check_type(@allowed_urls, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedUrls") unless @allowed_urls.nil? @denied_urls = denied_urls Jsii::Type.check_type(@denied_urls, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "deniedUrls") unless @denied_urls.nil? end |
Instance Attribute Details
#allowed_urls ⇒ Array<String>? (readonly)
The URLs that are allowed for redirection.
938 939 940 |
# File 'app_stream/cfn_stack.rb', line 938 def allowed_urls @allowed_urls end |
#denied_urls ⇒ Array<String>? (readonly)
The URLs that are denied for redirection.
943 944 945 |
# File 'app_stream/cfn_stack.rb', line 943 def denied_urls @denied_urls end |
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
Specifies whether URL redirection is enabled or disabled.
933 934 935 |
# File 'app_stream/cfn_stack.rb', line 933 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
945 946 947 948 949 950 951 |
# File 'app_stream/cfn_stack.rb', line 945 def self.jsii_properties { :enabled => "enabled", :allowed_urls => "allowedUrls", :denied_urls => "deniedUrls", } end |
Instance Method Details
#to_jsii ⇒ Object
953 954 955 956 957 958 959 960 961 |
# File 'app_stream/cfn_stack.rb', line 953 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "allowedUrls" => @allowed_urls, "deniedUrls" => @denied_urls, }) result.compact end |