Modifies an inline policy that is created for an access configuration.

Usage notes

This topic provides an example on how to modify an inline policy that is created for the access configuration ac-00jhtfl8thteu6uj****.


You can call this operation up to 100 times per second per account. This operation is globally limited to 100 times per second across all accounts. If the number of the calls per second exceeds a limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limits when you call this operation.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateInlinePolicyForAccessConfiguration

The operation that you want to perform. Set the value to UpdateInlinePolicyForAccessConfiguration.

DirectoryId String Yes d-00fc2p61****

The ID of the directory.

AccessConfigurationId String Yes ac-00jhtfl8thteu6uj****

The ID of the access configuration.

InlinePolicyName String Yes InlinePolicy

The name of the inline policy.

NewInlinePolicyDocument String No {"Statement": [{"Action": "*","Effect": "Allow","Resource": "*"}],"Version": "1"}

The new configurations of the inline policy.

The value can be up to 4,096 characters in length.

For more information about the syntax and structure of RAM policies, see Policy syntax and structure.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String 9B13E4EE-3853-5852-9165-597C32AD8FB7

The ID of the request.


Sample requests

&NewInlinePolicyDocument={"Statement": [{"Action": "*","Effect": "Allow","Resource": "*"}],"Version": "1"}
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "9B13E4EE-3853-5852-9165-597C32AD8FB7"

Error codes

For a list of error codes, visit the API Error Center.