View a markdown version of this page

GetResourcePolicy - AWS Sign-In

GetResourcePolicy

Retrieves the account's consolidated AWS Sign-In resource-based policy. Returns the complete policy document that aggregates all permission statements into a single policy.

Response Syntax

{ "signinResourceBasedPolicy": { "statement": [ { "action": [ "string" ], "condition": { "string" : { "string" : [ "string" ] } }, "effect": "string", "principal": { "string" : "string" }, "resource": "string" } ], "version": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

signinResourceBasedPolicy

The consolidated AWS Sign-In resource-based policy for the account.

Type: SigninResourceBasedPolicy object

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 400

InternalServerException

The request processing has failed because of an unknown error, exception or failure with an internal server.

HTTP Status Code: 500

ResourceNotFoundException

The request was denied because the specified resource was not found.

HTTP Status Code: 400

TooManyRequestsError

The request was denied due to rate limiting.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: