Class: AWSCDK::Sagemaker::CfnWorkteam::CognitoMemberDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnWorkteam::CognitoMemberDefinitionProperty
- 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
-
#cognito_client_id ⇒ String
readonly
An identifier for an application client.
-
#cognito_user_group ⇒ String
readonly
An identifier for a user group.
-
#cognito_user_pool ⇒ String
readonly
An identifier for a user pool.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cognito_client_id:, cognito_user_group:, cognito_user_pool:) ⇒ CognitoMemberDefinitionProperty
constructor
A new instance of CognitoMemberDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cognito_client_id:, cognito_user_group:, cognito_user_pool:) ⇒ CognitoMemberDefinitionProperty
Returns a new instance of CognitoMemberDefinitionProperty.
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_id ⇒ String (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_group ⇒ String (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_pool ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |