PutResourcePolicy - Amazon Redshift

PutResourcePolicy

Updates the resource policy for a specified resource.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

Policy

The content of the resource policy being updated.

Type: String

Length Constraints: Maximum length of 2147483647.

Required: Yes

ResourceArn

The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.

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 updated resource policy.

Type: ResourcePolicy object

Errors

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

ConflictPolicyUpdateFault

There is a conflict while updating the resource policy.

HTTP Status Code: 409

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: