AWS::IoT::PolicyUse the `AWS::IoT::Policy` resource to declare an AWS IoT policy. For more information about working with AWS IoT policies, see [Authorization](https://docs.aws.amazon.com/iot/latest/developerguide/authorization.html) in the *AWS IoT Developer Guide* .
import { CfnPolicy } from 'aws-cdk-lib/aws-iot';Or use the module namespace:
import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnPolicyConfiguration passed to the constructor as CfnPolicyProps.
policyDocumentRequiredanyThe JSON document that describes the policy.
policyNameOptionalstringThe policy name.
tagsOptionalCfnTag[]This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotAWS::IoT::Policy