create_template_group_access_control_entry
async
¶
create_template_group_access_control_entry(
template_arn: TemplateArn,
group_security_identifier: GroupSecurityIdentifier,
group_display_name: DisplayName,
access_rights: AccessRights,
*,
config_overrides: Optional[AsyncPcaConnectorAdClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> None
Create a group access control entry. Allow or deny Active Directory groups from enrolling and/or autoenrolling with the template based on the group security identifiers (SIDs).
Parameters:
-
template_arn(TemplateArn) –The Amazon Resource Name (ARN) that was returned when you called CreateTemplate.
-
group_security_identifier(GroupSecurityIdentifier) –Security identifier (SID) of the group object from Active Directory. The SID starts with "S-".
-
group_display_name(DisplayName) –Name of the Active Directory group. This name does not need to match the group name in Active Directory.
-
access_rights(AccessRights) –Allow or deny permissions for an Active Directory group to enroll or autoenroll certificates for a template.
-
client_token(Optional[ClientToken], default:None) –Idempotency token.
Raises:
-
AccessDeniedException–You can receive this error if you attempt to create a resource share when you don't have the required permissions. This can be caused by insufficient permissions in policies attached to your Amazon Web Services Identity and Access Management (IAM) principal. It can also happen because of restrictions in place from an Amazon Web Services Organizations service control policy (SCP) that affects your Amazon Web Services account.
-
ConflictException–This request cannot be completed for one of the following reasons because the requested resource was being concurrently modified by another request.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure with an internal server.
-
ResourceNotFoundException–The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–An input validation error occurred. For example, invalid characters in a template name, or if a pagination token is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pca_connector_ad/_services/async_pca_connector_ad.py
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 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 | |