SecurityHub / Client / register_connector_v2
register_connector_v2¶
- SecurityHub.Client.register_connector_v2(**kwargs)¶
Grants permission to complete the authorization based on input parameters.
See also: AWS API Documentation
Request Syntax
response = client.register_connector_v2( AuthCode='string', AuthState='string' )
- Parameters:
AuthCode (string) –
[REQUIRED]
The authCode retrieved from authUrl to complete the OAuth 2.0 authorization code flow.
AuthState (string) –
[REQUIRED]
The authState retrieved from authUrl to complete the OAuth 2.0 authorization code flow.
- Return type:
dict
- Returns:
Response Syntax
{ 'ConnectorArn': 'string', 'ConnectorId': 'string' }
Response Structure
(dict) –
ConnectorArn (string) –
The Amazon Resource Name (ARN) of the connectorV2.
ConnectorId (string) –
The UUID of the connectorV2 to identify connectorV2 resource.
Exceptions
SecurityHub.Client.exceptions.AccessDeniedExceptionSecurityHub.Client.exceptions.InternalServerExceptionSecurityHub.Client.exceptions.ValidationExceptionSecurityHub.Client.exceptions.ThrottlingExceptionSecurityHub.Client.exceptions.ConflictExceptionSecurityHub.Client.exceptions.ResourceNotFoundException