put_resource_policy
async
¶
put_resource_policy(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = 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/async_redshift.py
10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 | |