add_policy_grant
¶
add_policy_grant(
domain_identifier: DomainId,
entity_type: TargetEntityType,
entity_identifier: str,
policy_type: ManagedPolicyType,
principal: PolicyGrantPrincipal,
detail: PolicyGrantDetail,
*,
config_overrides: Optional[DataZoneClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> AddPolicyGrantOutput
Adds a policy grant (an authorization policy) to a specified entity, including domain units, environment blueprint configurations, or environment profiles.
Parameters:
-
domain_identifier(DomainId) –The ID of the domain where you want to add a policy grant.
-
entity_type(TargetEntityType) –The type of entity (resource) to which the grant is added.
-
entity_identifier(str) –The ID of the entity (resource) to which you want to add a policy grant.
-
policy_type(ManagedPolicyType) –The type of policy that you want to grant.
-
principal(PolicyGrantPrincipal) –The principal to whom the permissions are granted.
-
detail(PolicyGrantDetail) –The details of the policy grant.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
ConflictException–There is a conflict while performing this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ServiceQuotaExceededException–The request has exceeded the specified service quota.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/data_zone.py
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 | |