put_resource_policy
¶
put_resource_policy(
*,
config_overrides: Optional[RedshiftClientConfig] = None,
resource_arn: Optional[String] = None,
policy: Optional[String] = None,
) -> PutResourcePolicyResult
Updates the resource policy for a specified resource.
Parameters:
-
resource_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.
-
policy(Optional[String], default:None) –The content of the resource policy being updated.
Raises:
-
ConflictPolicyUpdateFault–There is a conflict while updating the resource policy.
-
InvalidPolicyFault–The resource policy isn't valid.
-
ResourceNotFoundFault–The resource could not be found.
-
UnsupportedOperationFault–The requested operation isn't supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/redshift.py
10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 | |