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
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 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 | |