comprehend:CreateFlywheel

Write

comprehend:CreateFlywheel is a Write access-level action in the comprehend service. Grants permission to create a new flywheel that you can use to train model versions

Resource types

ARNs that comprehend:CreateFlywheel can be scoped to in an IAM policy.

arn:${Partition}:comprehend:${Region}:${Account}:document-classifier/${DocumentClassifierName}
document-classifier
arn:${Partition}:comprehend:${Region}:${Account}:entity-recognizer/${EntityRecognizerName}
entity-recognizer
arn:${Partition}:comprehend:${Region}:${Account}:flywheel/${FlywheelName} required
flywheel

Condition keys

Keys you can use in the Condition block of a policy that grants comprehend:CreateFlywheel.

aws:ResourceTag/${TagKey} String

Filters access by requiring tag value associated with the resource

aws:RequestTag/${TagKey} String

Filters access by requiring tag values present in a resource creation request

aws:TagKeys ArrayOfString

Filters access by requiring the presence of mandatory tags in the request

comprehend:DataLakeKmsKey ARN

Filters access by the DataLake Kms Key associated with the flywheel resource in the request

comprehend:ModelKmsKey ARN

Filters access by the model KMS key associated with the resource in the request

comprehend:VolumeKmsKey ARN

Filters access by the volume KMS key associated with the resource in the request

comprehend:VpcSecurityGroupIds ArrayOfString

Filters access by the list of all VPC security group ids associated with the resource in the request

comprehend:VpcSubnets ArrayOfString

Filters access by the list of all VPC subnets associated with the resource in the request

Example IAM policy

A minimal policy that allows comprehend:CreateFlywheel. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowComprehendCreateFlywheel",
      "Effect": "Allow",
      "Action": "comprehend:CreateFlywheel",
      "Resource": "*"
    }
  ]
}

Related actions in comprehend

View all comprehend actions →