describe_flywheel
(**kwargs)¶Provides configuration information about the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_flywheel(
FlywheelArn='string'
)
[REQUIRED]
The Amazon Resource Number (ARN) of the flywheel.
{
'FlywheelProperties': {
'FlywheelArn': 'string',
'ActiveModelArn': 'string',
'DataAccessRoleArn': 'string',
'TaskConfig': {
'LanguageCode': 'en'|'es'|'fr'|'de'|'it'|'pt'|'ar'|'hi'|'ja'|'ko'|'zh'|'zh-TW',
'DocumentClassificationConfig': {
'Mode': 'MULTI_CLASS'|'MULTI_LABEL',
'Labels': [
'string',
]
},
'EntityRecognitionConfig': {
'EntityTypes': [
{
'Type': 'string'
},
]
}
},
'DataLakeS3Uri': 'string',
'DataSecurityConfig': {
'ModelKmsKeyId': 'string',
'VolumeKmsKeyId': 'string',
'DataLakeKmsKeyId': 'string',
'VpcConfig': {
'SecurityGroupIds': [
'string',
],
'Subnets': [
'string',
]
}
},
'Status': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'FAILED',
'ModelType': 'DOCUMENT_CLASSIFIER'|'ENTITY_RECOGNIZER',
'Message': 'string',
'CreationTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1),
'LatestFlywheelIteration': 'string'
}
}
Response Structure
The flywheel properties.
The Amazon Resource Number (ARN) of the flywheel.
The Amazon Resource Number (ARN) of the active model version.
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend permission to access the flywheel data.
Configuration about the custom classifier associated with the flywheel.
Language code for the language that the model supports.
Configuration required for a classification model.
Classification mode indicates whether the documents are MULTI_CLASS
or MULTI_LABEL
.
One or more labels to associate with the custom classifier.
Configuration required for an entity recognition model.
Up to 25 entity types that the model is trained to recognize.
An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.
An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.
Entity types must not contain the following invalid characters: n (line break), \n (escaped line break, r (carriage return), \r (escaped carriage return), t (tab), \t (escaped tab), space, and , (comma).
Amazon S3 URI of the data lake location.
Data security configuration.
ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
"1234abcd-12ab-34cd-56ef-1234567890ab"
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
ID for the KMS key that Amazon Comprehend uses to encrypt the volume.
ID for the KMS key that Amazon Comprehend uses to encrypt the data in the data lake.
Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. For more information, see Amazon VPC.
The ID number for a security group on an instance of your private VPC. Security groups on your VPC function serve as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll be accessing on the VPC. This ID number is preceded by "sg-", for instance: "sg-03b388029b0a285ea". For more information, see Security Groups for your VPC.
The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 addresses used by the VPC and is specific to a given availability zone in the VPC’s region. This ID number is preceded by "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets.
The status of the flywheel.
Model type of the flywheel's model.
A description of the status of the flywheel.
Creation time of the flywheel.
Last modified time for the flywheel.
The most recent flywheel iteration.
Exceptions
Comprehend.Client.exceptions.InvalidRequestException
Comprehend.Client.exceptions.TooManyRequestsException
Comprehend.Client.exceptions.ResourceNotFoundException
Comprehend.Client.exceptions.InternalServerException