Class: AWSCDK::Sagemaker::CfnWorkteam::CognitoMemberDefinitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_workteam.rb

Overview

Identifies a Amazon Cognito user group.

A user group can be used in on or more work teams.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cognito_client_id:, cognito_user_group:, cognito_user_pool:) ⇒ CognitoMemberDefinitionProperty

Returns a new instance of CognitoMemberDefinitionProperty.

Parameters:

  • cognito_client_id (String)

    An identifier for an application client.

  • cognito_user_group (String)

    An identifier for a user group.

  • cognito_user_pool (String)

    An identifier for a user pool.



597
598
599
600
601
602
603
604
# File 'sagemaker/cfn_workteam.rb', line 597

def initialize(cognito_client_id:, cognito_user_group:, cognito_user_pool:)
  @cognito_client_id = cognito_client_id
  Jsii::Type.check_type(@cognito_client_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cognitoClientId")
  @cognito_user_group = cognito_user_group
  Jsii::Type.check_type(@cognito_user_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cognitoUserGroup")
  @cognito_user_pool = cognito_user_pool
  Jsii::Type.check_type(@cognito_user_pool, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cognitoUserPool")
end

Instance Attribute Details

#cognito_client_idString (readonly)

An identifier for an application client.

You must create the app client ID using Amazon Cognito .



612
613
614
# File 'sagemaker/cfn_workteam.rb', line 612

def cognito_client_id
  @cognito_client_id
end

#cognito_user_groupString (readonly)

An identifier for a user group.



617
618
619
# File 'sagemaker/cfn_workteam.rb', line 617

def cognito_user_group
  @cognito_user_group
end

#cognito_user_poolString (readonly)

An identifier for a user pool.

The user pool must be in the same region as the service that you are calling.



624
625
626
# File 'sagemaker/cfn_workteam.rb', line 624

def cognito_user_pool
  @cognito_user_pool
end

Class Method Details

.jsii_propertiesObject



626
627
628
629
630
631
632
# File 'sagemaker/cfn_workteam.rb', line 626

def self.jsii_properties
  {
    :cognito_client_id => "cognitoClientId",
    :cognito_user_group => "cognitoUserGroup",
    :cognito_user_pool => "cognitoUserPool",
  }
end

Instance Method Details

#to_jsiiObject



634
635
636
637
638
639
640
641
642
# File 'sagemaker/cfn_workteam.rb', line 634

def to_jsii
  result = {}
  result.merge!({
    "cognitoClientId" => @cognito_client_id,
    "cognitoUserGroup" => @cognito_user_group,
    "cognitoUserPool" => @cognito_user_pool,
  })
  result.compact
end