add_policy_statement
¶
add_policy_statement(
arn: VeniceGlobalArn,
statement_id: StatementId,
effect: StatementEffect,
action: StatementActionList,
principal: StatementPrincipalList,
*,
config_overrides: Optional[EntityResolutionClientConfig] = None,
condition: Optional[StatementCondition] = None,
) -> AddPolicyStatementOutput
Adds a policy statement object. To retrieve a list of existing policy statements, use the GetPolicy API.
Parameters:
-
arn(VeniceGlobalArn) –The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
-
statement_id(StatementId) –A statement identifier that differentiates the statement from others in the same policy.
-
effect(StatementEffect) –Determines whether the permissions specified in the policy are to be allowed (
Allow) or denied (Deny).If you set the value of the
effectparameter toDenyfor theAddPolicyStatementoperation, you must also set the value of theeffectparameter in thepolicytoDenyfor thePutPolicyoperation. -
action(StatementActionList) –The action that the principal can use on the resource.
For example,
entityresolution:GetIdMappingJob,entityresolution:GetMatchingJob. -
principal(StatementPrincipalList) –The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
-
condition(Optional[StatementCondition], default:None) –A set of condition keys that you can use in key policies.
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.