aws iot set-default-policy-version
Sets the specified version of the specified policy as the policy's default (operative) version. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To set the default version for a policy
The following set-default-policy-version example sets the default version to 2 for the policy named UpdateDeviceCertPolicy.
aws iot set-default-policy-version --policy-name UpdateDeviceCertPolicy --policy-version-id 2Identify--policy-nameThe policy name.--policy-version-idThe policy version ID.This command produces no output.
For more information, see AWS IoT Core policies in the AWS IoT Core Developer Guide.
Options
--policy-nameThe policy name.--policy-version-idThe policy version ID.