CognitoConfigProperty Struct
The configuration of an Amazon Cognito workforce.
A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cognitoConfigProperty: sagemaker.CfnWorkforce.CognitoConfigProperty = {
clientId: 'clientId',
userPool: 'userPool',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
cognito_config_property = sagemaker.CfnWorkforce.CognitoConfigProperty(
client_id="clientId",
user_pool="userPool"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CognitoConfigProperty cognitoConfigProperty = CognitoConfigProperty.builder()
.clientId("clientId")
.userPool("userPool")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var cognitoConfigProperty = new CognitoConfigProperty {
ClientId = "clientId",
UserPool = "userPool"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cognitoConfigProperty := &CognitoConfigProperty{
ClientId: jsii.String("clientId"),
UserPool: jsii.String("userPool"),
}