/AWS1/IF_IN2=>CREATECONNECTOR()¶
About CreateConnector¶
Creates a connector that links an external cloud provider to Amazon Inspector for vulnerability scanning.
Method Signature¶
METHODS /AWS1/IF_IN2~CREATECONNECTOR
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/IN2STRING OPTIONAL
!IV_NAME TYPE /AWS1/IN2CONNECTORNAME OPTIONAL
!IV_PROVIDER TYPE /AWS1/IN2CNCTRCLOUDPROVIDER OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/IN2CONNECTORDESCRIPTION OPTIONAL
!IO_PROVIDERDETAIL TYPE REF TO /AWS1/CL_IN2PVDRDETAILCREATE OPTIONAL
!IT_TAGS TYPE /AWS1/CL_IN2CONNECTORTAGMAP_W=>TT_CONNECTORTAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_in2createcnctrrsp
RAISING
/AWS1/CX_IN2ACCESSDENIEDEX
/AWS1/CX_IN2CONFLICTEXCEPTION
/AWS1/CX_IN2INTERNALSERVEREX
/AWS1/CX_IN2SERVICEQUOTAEXCDEX
/AWS1/CX_IN2THROTTLINGEX
/AWS1/CX_IN2VALIDATIONEX
/AWS1/CX_IN2CLIENTEXC
/AWS1/CX_IN2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/IN2CONNECTORNAME /AWS1/IN2CONNECTORNAME¶
The name of the connector.
iv_provider TYPE /AWS1/IN2CNCTRCLOUDPROVIDER /AWS1/IN2CNCTRCLOUDPROVIDER¶
The cloud provider for the connector.
io_providerdetail TYPE REF TO /AWS1/CL_IN2PVDRDETAILCREATE /AWS1/CL_IN2PVDRDETAILCREATE¶
The provider-specific configuration details for the connector.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/IN2STRING /AWS1/IN2STRING¶
A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
iv_description TYPE /AWS1/IN2CONNECTORDESCRIPTION /AWS1/IN2CONNECTORDESCRIPTION¶
A description of the connector.
it_tags TYPE /AWS1/CL_IN2CONNECTORTAGMAP_W=>TT_CONNECTORTAGMAP TT_CONNECTORTAGMAP¶
The tags to apply to the connector.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_in2createcnctrrsp /AWS1/CL_IN2CREATECNCTRRSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->createconnector(
io_providerdetail = new /aws1/cl_in2pvdrdetailcreate(
io_azure = new /aws1/cl_in2azurepvdrdetcreate(
io_scopeconfiguration = new /aws1/cl_in2azurescopeconfinp(
io_containerimagescanning = new /aws1/cl_in2scopeconfinput(
it_scopevalues = VALUE /aws1/cl_in2scopevaluelist_w=>tt_scopevaluelist(
( new /aws1/cl_in2scopevaluelist_w( |string| ) )
)
iv_scopetype = |string|
)
io_serverlessscanning = new /aws1/cl_in2scopeconfinput(
it_scopevalues = VALUE /aws1/cl_in2scopevaluelist_w=>tt_scopevaluelist(
( new /aws1/cl_in2scopevaluelist_w( |string| ) )
)
iv_scopetype = |string|
)
io_vmscanning = new /aws1/cl_in2scopeconfinput(
it_scopevalues = VALUE /aws1/cl_in2scopevaluelist_w=>tt_scopevaluelist(
( new /aws1/cl_in2scopevaluelist_w( |string| ) )
)
iv_scopetype = |string|
)
)
it_azureregions = VALUE /aws1/cl_in2azureregionlist_w=>tt_azureregionlist(
( new /aws1/cl_in2azureregionlist_w( |string| ) )
)
iv_autoinstallvmscanner = ABAP_TRUE
iv_awsconfigconnectorarn = |string|
)
)
it_tags = VALUE /aws1/cl_in2connectortagmap_w=>tt_connectortagmap(
(
VALUE /aws1/cl_in2connectortagmap_w=>ts_connectortagmap_maprow(
key = |string|
value = new /aws1/cl_in2connectortagmap_w( |string| )
)
)
)
iv_clienttoken = |string|
iv_description = |string|
iv_name = |string|
iv_provider = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_connectorarn = lo_result->get_connectorarn( ).
ENDIF.
Create an Azure customer-managed connector for VM scanning at SUBSCRIPTION scope¶
Create an Azure customer-managed connector for VM scanning at SUBSCRIPTION scope
DATA(lo_result) = lo_client->createconnector(
io_providerdetail = new /aws1/cl_in2pvdrdetailcreate(
io_azure = new /aws1/cl_in2azurepvdrdetcreate(
io_scopeconfiguration = new /aws1/cl_in2azurescopeconfinp(
io_vmscanning = new /aws1/cl_in2scopeconfinput(
it_scopevalues = VALUE /aws1/cl_in2scopevaluelist_w=>tt_scopevaluelist(
( new /aws1/cl_in2scopevaluelist_w( |552802f5-1492-4184-bbae-7291c9939b16| ) )
)
iv_scopetype = |SUBSCRIPTION|
)
)
it_azureregions = VALUE /aws1/cl_in2azureregionlist_w=>tt_azureregionlist(
( new /aws1/cl_in2azureregionlist_w( |eastus| ) )
)
iv_autoinstallvmscanner = ABAP_TRUE
iv_awsconfigconnectorarn = |arn:aws:config:us-east-1:123456789012:connector/azure/a7bc5463-04ce-4b52-901e-f26f7292a4a7/2fbed4bd-5b95-4947-a751-8defc76ecdae|
)
)
it_tags = VALUE /aws1/cl_in2connectortagmap_w=>tt_connectortagmap(
(
VALUE /aws1/cl_in2connectortagmap_w=>ts_connectortagmap_maprow(
key = |env|
value = new /aws1/cl_in2connectortagmap_w( |prod| )
)
)
(
VALUE /aws1/cl_in2connectortagmap_w=>ts_connectortagmap_maprow(
key = |owner|
value = new /aws1/cl_in2connectortagmap_w( |security-team| )
)
)
)
iv_description = |Azure subscription scanner|
iv_name = |my-azure-connector|
iv_provider = |AZURE|
).