Interface ICfnWorkforceProps
Properties for defining a CfnWorkforce.
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnWorkforceProps
Syntax (vb)
Public Interface ICfnWorkforceProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-workforce.html
ExampleMetadata: fixture=_generated
Examples
// 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 cfnWorkforceProps = new CfnWorkforceProps {
WorkforceName = "workforceName",
// the properties below are optional
CognitoConfig = new CognitoConfigProperty {
ClientId = "clientId",
UserPool = "userPool"
},
IpAddressType = "ipAddressType",
OidcConfig = new OidcConfigProperty {
AuthorizationEndpoint = "authorizationEndpoint",
ClientId = "clientId",
Issuer = "issuer",
JwksUri = "jwksUri",
LogoutEndpoint = "logoutEndpoint",
TokenEndpoint = "tokenEndpoint",
UserInfoEndpoint = "userInfoEndpoint",
// the properties below are optional
AuthenticationRequestExtraParams = new Dictionary<string, string> {
{ "authenticationRequestExtraParamsKey", "authenticationRequestExtraParams" }
},
ClientSecret = "clientSecret",
Scope = "scope"
},
SourceIpConfig = new SourceIpConfigProperty {
Cidrs = new [] { "cidrs" }
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
WorkforceVpcConfig = new WorkforceVpcConfigRequestProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
Subnets = new [] { "subnets" },
VpcId = "vpcId"
}
};
Synopsis
Properties
| CognitoConfig | The configuration of an Amazon Cognito workforce. |
| IpAddressType | The IP address type for the workforce. |
| OidcConfig | The configuration of an OIDC Identity Provider (IdP) private workforce. |
| SourceIpConfig | A list of IP address ranges used to access your training data. |
| Tags | An array of key-value pairs. |
| WorkforceName | The name of the private workforce. |
| WorkforceVpcConfig | The VPC configuration for the workforce. |
Properties
CognitoConfig
The configuration of an Amazon Cognito workforce.
object? CognitoConfig { get; }
Property Value
Remarks
A single Cognito workforce is created using and corresponds to a single Amazon Cognito user pool.
Type union: either IResolvable or CfnWorkforce.ICognitoConfigProperty
IpAddressType
The IP address type for the workforce.
string? IpAddressType { get; }
Property Value
Remarks
IPv4 only or dualstack (IPv4 and IPv6).
OidcConfig
The configuration of an OIDC Identity Provider (IdP) private workforce.
object? OidcConfig { get; }
Property Value
Remarks
SourceIpConfig
A list of IP address ranges used to access your training data.
object? SourceIpConfig { get; }
Property Value
Remarks
Tags
WorkforceName
The name of the private workforce.
string WorkforceName { get; }
Property Value
Remarks
WorkforceVpcConfig
The VPC configuration for the workforce.
object? WorkforceVpcConfig { get; }