Class: AWSCDK::AppStream::CfnStack::StorageConnectorProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_stream/cfn_stack.rb

Overview

A connector that enables persistent storage for users.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connector_type:, domains: nil, resource_identifier: nil) ⇒ StorageConnectorProperty

Returns a new instance of StorageConnectorProperty.

Parameters:

  • connector_type (String)

    The type of storage connector.

  • domains (Array<String>, nil) (defaults to: nil)

    The names of the domains for the account.

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

    The ARN of the storage connector.



832
833
834
835
836
837
838
839
# File 'app_stream/cfn_stack.rb', line 832

def initialize(connector_type:, domains: nil, resource_identifier: nil)
  @connector_type = connector_type
  Jsii::Type.check_type(@connector_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectorType")
  @domains = domains
  Jsii::Type.check_type(@domains, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "domains") unless @domains.nil?
  @resource_identifier = resource_identifier
  Jsii::Type.check_type(@resource_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceIdentifier") unless @resource_identifier.nil?
end

Instance Attribute Details

#connector_typeString (readonly)

The type of storage connector.



845
846
847
# File 'app_stream/cfn_stack.rb', line 845

def connector_type
  @connector_type
end

#domainsArray<String>? (readonly)

The names of the domains for the account.



850
851
852
# File 'app_stream/cfn_stack.rb', line 850

def domains
  @domains
end

#resource_identifierString? (readonly)

The ARN of the storage connector.



855
856
857
# File 'app_stream/cfn_stack.rb', line 855

def resource_identifier
  @resource_identifier
end

Class Method Details

.jsii_propertiesObject



857
858
859
860
861
862
863
# File 'app_stream/cfn_stack.rb', line 857

def self.jsii_properties
  {
    :connector_type => "connectorType",
    :domains => "domains",
    :resource_identifier => "resourceIdentifier",
  }
end

Instance Method Details

#to_jsiiObject



865
866
867
868
869
870
871
872
873
# File 'app_stream/cfn_stack.rb', line 865

def to_jsii
  result = {}
  result.merge!({
    "connectorType" => @connector_type,
    "domains" => @domains,
    "resourceIdentifier" => @resource_identifier,
  })
  result.compact
end