create_ticket_v2
async
¶
create_ticket_v2(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
connector_id: Optional[NonEmptyString] = None,
finding_metadata_uid: Optional[NonEmptyString] = None,
client_token: Optional[ClientToken] = None,
mode: Optional[TicketCreationMode] = None,
) -> CreateTicketV2Response
Grants permission to create a ticket in the chosen ITSM based on finding information for the provided finding metadata UID.
Parameters:
-
connector_id(Optional[NonEmptyString], default:None) –The UUID of the connectorV2 to identify connectorV2 resource.
-
finding_metadata_uid(Optional[NonEmptyString], default:None) –The the unique ID for the finding.
-
client_token(Optional[ClientToken], default:None) –The client idempotency token.
-
mode(Optional[TicketCreationMode], default:None) –The mode for ticket creation. When set to DRYRUN, the ticket is created using a Security Hub owned template test finding to verify the integration is working correctly.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
ConflictException–The request causes conflict with the current state of the service resource.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 | |