Class: AWSCDK::AppStream::CfnEntitlement::AttributeProperty

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

Overview

An attribute that belongs to an entitlement.

Application entitlements work by matching a supported SAML 2.0 attribute name to a value when a user identity federates to an AppStream 2.0 SAML application.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ AttributeProperty

Returns a new instance of AttributeProperty.

Parameters:

  • name (String)

    A supported AWS IAM SAML PrincipalTag attribute that is matched to a value when a user identity federates to an AppStream 2.0 SAML application.

  • value (String)

    A value that is matched to a supported SAML attribute name when a user identity federates to an AppStream 2.0 SAML application.



565
566
567
568
569
570
# File 'app_stream/cfn_entitlement.rb', line 565

def initialize(name:, value:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#nameString (readonly)

A supported AWS IAM SAML PrincipalTag attribute that is matched to a value when a user identity federates to an AppStream 2.0 SAML application.

The following are supported values:

  • roles
  • department
  • organization
  • groups
  • title
  • costCenter
  • userType


586
587
588
# File 'app_stream/cfn_entitlement.rb', line 586

def name
  @name
end

#valueString (readonly)

A value that is matched to a supported SAML attribute name when a user identity federates to an AppStream 2.0 SAML application.



591
592
593
# File 'app_stream/cfn_entitlement.rb', line 591

def value
  @value
end

Class Method Details

.jsii_propertiesObject



593
594
595
596
597
598
# File 'app_stream/cfn_entitlement.rb', line 593

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

Instance Method Details

#to_jsiiObject



600
601
602
603
604
605
606
607
# File 'app_stream/cfn_entitlement.rb', line 600

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