Inspector2 / Client / update_connector
update_connector¶
- Inspector2.Client.update_connector(**kwargs)¶
Updates the description or provider-specific configuration details of an existing connector.
See also: AWS API Documentation
Request Syntax
response = client.update_connector( connectorArn='string', description='string', providerDetail={ 'azure': { 'azureRegions': [ 'string', ], 'scopeConfiguration': { 'vmScanning': { 'scopeType': 'TENANT'|'SUBSCRIPTION', 'scopeValues': [ 'string', ] }, 'containerImageScanning': { 'scopeType': 'TENANT'|'SUBSCRIPTION', 'scopeValues': [ 'string', ] }, 'serverlessScanning': { 'scopeType': 'TENANT'|'SUBSCRIPTION', 'scopeValues': [ 'string', ] } }, 'autoInstallVMScanner': True|False } } )
- Parameters:
connectorArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the connector to update.
description (string) – The updated description of the connector.
providerDetail (dict) –
The updated provider-specific configuration details for the connector.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
azure.azure (dict) –
The Azure-specific details for updating a connector.
azureRegions (list) –
The updated Azure regions to scan.
(string) –
scopeConfiguration (dict) –
The updated scope configuration that defines which Azure resources to scan.
vmScanning (dict) –
The scope configuration input for VM scanning.
scopeType (string) – [REQUIRED]
The type of scope. Valid values are
TENANT, which scans all resources in the Azure tenant, andSUBSCRIPTION, which scans only the resources in the specified Azure subscriptions.scopeValues (list) –
The list of scope values. For subscription-level scope, these are Azure subscription IDs.
(string) –
containerImageScanning (dict) –
The scope configuration input for container image scanning.
scopeType (string) – [REQUIRED]
The type of scope. Valid values are
TENANT, which scans all resources in the Azure tenant, andSUBSCRIPTION, which scans only the resources in the specified Azure subscriptions.scopeValues (list) –
The list of scope values. For subscription-level scope, these are Azure subscription IDs.
(string) –
serverlessScanning (dict) –
The scope configuration input for serverless scanning.
scopeType (string) – [REQUIRED]
The type of scope. Valid values are
TENANT, which scans all resources in the Azure tenant, andSUBSCRIPTION, which scans only the resources in the specified Azure subscriptions.scopeValues (list) –
The list of scope values. For subscription-level scope, these are Azure subscription IDs.
(string) –
autoInstallVMScanner (boolean) –
Specifies whether to automatically install the VM scanner on connected Azure resources.
- Return type:
dict
- Returns:
Response Syntax
{ 'connectorArn': 'string' }
Response Structure
(dict) –
connectorArn (string) –
The Amazon Resource Name (ARN) of the updated connector.
Exceptions