Class: AWSCDK::WorkspacesWeb::CfnUserSettings::CookieSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_web/cfn_user_settings.rb

Overview

Specifies a single cookie or set of cookies in an end user's browser.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain:, name: nil, path: nil) ⇒ CookieSpecificationProperty

Returns a new instance of CookieSpecificationProperty.

Parameters:

  • domain (String)

    The domain of the cookie.

  • name (String, nil) (defaults to: nil)

    The name of the cookie.

  • path (String, nil) (defaults to: nil)

    The path of the cookie.



875
876
877
878
879
880
881
882
# File 'workspaces_web/cfn_user_settings.rb', line 875

def initialize(domain:, name: nil, path: nil)
  @domain = domain
  Jsii::Type.check_type(@domain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domain")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") unless @path.nil?
end

Instance Attribute Details

#domainString (readonly)

The domain of the cookie.



888
889
890
# File 'workspaces_web/cfn_user_settings.rb', line 888

def domain
  @domain
end

#nameString? (readonly)

The name of the cookie.



893
894
895
# File 'workspaces_web/cfn_user_settings.rb', line 893

def name
  @name
end

#pathString? (readonly)

The path of the cookie.



898
899
900
# File 'workspaces_web/cfn_user_settings.rb', line 898

def path
  @path
end

Class Method Details

.jsii_propertiesObject



900
901
902
903
904
905
906
# File 'workspaces_web/cfn_user_settings.rb', line 900

def self.jsii_properties
  {
    :domain => "domain",
    :name => "name",
    :path => "path",
  }
end

Instance Method Details

#to_jsiiObject



908
909
910
911
912
913
914
915
916
# File 'workspaces_web/cfn_user_settings.rb', line 908

def to_jsii
  result = {}
  result.merge!({
    "domain" => @domain,
    "name" => @name,
    "path" => @path,
  })
  result.compact
end