CmdID

CmdID / aws / aws iot

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

2 in the AWS CLI reference
--policy-nameThe policy name.
--policy-version-idThe policy version ID.