Skip to content

/AWS1/CL_IOT=>CREATEPOLICY()

About CreatePolicy

Creates an IoT policy.

The created policy is the default version for the policy. This operation creates a policy version with a version identifier of 1 and sets 1 as the policy's default version.

Requires permission to access the CreatePolicy action.

Method Signature

IMPORTING

Required arguments:

IV_POLICYNAME TYPE /AWS1/IOTPOLICYNAME /AWS1/IOTPOLICYNAME

The policy name.

IV_POLICYDOCUMENT TYPE /AWS1/IOTPOLICYDOCUMENT /AWS1/IOTPOLICYDOCUMENT

The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.

Optional arguments:

IT_TAGS TYPE /AWS1/CL_IOTTAG=>TT_TAGLIST TT_TAGLIST

Metadata which can be used to manage the policy.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_IOTCREATEPOLICYRSP /AWS1/CL_IOTCREATEPOLICYRSP