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
10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 | |