GetResourcePolicy
Get the resource policy for a specified resource.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- ResourceArn
-
The Amazon Resource Name (ARN) of the resource of which its resource policy is fetched.
Type: String
Length Constraints: Maximum length of 2147483647.
Required: Yes
Response Elements
The following element is returned by the service.
- ResourcePolicy
-
The content of the resource policy.
Type: ResourcePolicy object
Errors
For information about the errors that are common to all actions, see Common Errors.
- InvalidPolicyFault
-
The resource policy isn't valid.
HTTP Status Code: 400
- ResourceNotFoundFault
-
The resource could not be found.
HTTP Status Code: 404
- UnsupportedOperation
-
The requested operation isn't supported.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: