put_resource_policy
async
¶
put_resource_policy(
arn: ResourcePolicyTargetArn,
*,
config_overrides: Optional[AsyncContinuumClientConfig] = None,
policy: Optional[ResourcePolicyInputDocument] = None,
expected_revision_id: Optional[ResourcePolicyRevisionId] = None,
) -> PutResourcePolicyOutput
Creates or replaces the resource policy attached to a Continuum resource.
Parameters:
-
arn(ResourcePolicyTargetArn) –The ARN of a resource in the caller's account.
-
policy(Optional[ResourcePolicyInputDocument], default:None) –Omit or supply an empty Statement array to clear resource-policy grants and store the canonical empty-statement policy. Cross-account access is denied; same-account access remains subject to identity policies. Use an explicit Deny statement to deny same-account principals too.
-
expected_revision_id(Optional[ResourcePolicyRevisionId], default:None) –Optional optimistic-concurrency token for the currently observed policy.
Raises:
-
AccessDeniedException–The request is not authorized. Verify that your credentials and request signature are valid and that you have permission to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–The request couldn't be processed because of an internal server issue. Try again later. If the problem persists, contact AWS Support.
-
ResourceNotFoundException–The specified resource was not found. Verify that the resource identifier is correct and that the resource exists.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_continuum/_services/async_continuum.py
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 | |