put_policy
async
¶
put_policy(
arn: VeniceGlobalArn,
policy: PolicyDocument,
*,
config_overrides: Optional[AsyncEntityResolutionClientConfig] = None,
token: Optional[PolicyToken] = None,
) -> PutPolicyOutput
Updates the resource-based policy.
Parameters:
-
arn(VeniceGlobalArn) –The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
-
token(Optional[PolicyToken], default:None) –A unique identifier for the current revision of the policy.
-
policy(PolicyDocument) –The resource-based policy.
If you set the value of the
effectparameter in thepolicytoDenyfor thePutPolicyoperation, you must also set the value of theeffectparameter toDenyfor theAddPolicyStatementoperation.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request couldn't be processed because of conflict in the current state of the resource. Example: Workflow already exists, Schema already exists, Workflow is currently running, etc.
-
InternalServerException–This exception occurs when there is an internal failure in the Entity Resolution service.
-
ResourceNotFoundException–The resource couldn't be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by Entity Resolution.
-
UnknownServiceError–The service returned an error code this client does not model.