get_exclusions_preview
¶
get_exclusions_preview(
assessment_template_arn: Arn,
preview_token: UUID,
*,
config_overrides: Optional[InspectorClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[ListMaxResults] = None,
locale: Optional[Locale] = None,
) -> GetExclusionsPreviewResponse
Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.
Parameters:
-
assessment_template_arn(Arn) –The ARN that specifies the assessment template for which the exclusions preview was requested.
-
preview_token(UUID) –The unique identifier associated of the exclusions preview.
-
next_token(Optional[PaginationToken], default:None) –You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the GetExclusionsPreviewRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.
-
max_results(Optional[ListMaxResults], default:None) –You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.
-
locale(Optional[Locale], default:None) –The locale into which you want to translate the exclusion's title, description, and recommendation.
Raises:
-
AccessDeniedException–You do not have required permissions to access the requested resource.
-
InternalException–Internal server error.
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
NoSuchEntityException–The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_inspector/_services/inspector.py
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 1183 1184 1185 1186 1187 1188 1189 1190 | |