/AWS1/IF_SSM=>DELETEASSOCIATION()¶
About DeleteAssociation¶
Disassociates the specified Amazon Web Services Systems Manager document (SSM document) from the specified managed
node. If you created the association by using the Targets parameter, then you must
delete the association by using the association ID.
When you disassociate a document from a managed node, it doesn't change the configuration of the node. To change the configuration state of a managed node after you disassociate a document, you must create a new document with the desired configuration and associate it with the node.
Method Signature¶
METHODS /AWS1/IF_SSM~DELETEASSOCIATION
IMPORTING
!IV_NAME TYPE /AWS1/SSMDOCUMENTARN OPTIONAL
!IV_INSTANCEID TYPE /AWS1/SSMINSTANCEID OPTIONAL
!IV_ASSOCIATIONID TYPE /AWS1/SSMASSOCIATIONID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ssmdelassociationrslt
RAISING
/AWS1/CX_SSMASSOCIATIONDOESN00
/AWS1/CX_SSMINTERNALSERVERERR
/AWS1/CX_SSMINVALIDDOCUMENT
/AWS1/CX_SSMINVALIDINSTANCEID
/AWS1/CX_SSMTOOMANYUPDATES
/AWS1/CX_SSMCLIENTEXC
/AWS1/CX_SSMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_name TYPE /AWS1/SSMDOCUMENTARN /AWS1/SSMDOCUMENTARN¶
The name of the SSM document.
iv_instanceid TYPE /AWS1/SSMINSTANCEID /AWS1/SSMINSTANCEID¶
The managed node ID.
InstanceIdhas been deprecated. To specify a managed node ID for an association, use theTargetsparameter. Requests that include the parameterInstanceIDwith Systems Manager documents (SSM documents) that use schema version 2.0 or later will fail. In addition, if you use the parameterInstanceId, you can't use the parametersAssociationName,DocumentVersion,MaxErrors,MaxConcurrency,OutputLocation, orScheduleExpression. To use these parameters, you must use theTargetsparameter.
iv_associationid TYPE /AWS1/SSMASSOCIATIONID /AWS1/SSMASSOCIATIONID¶
The association ID that you want to delete.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ssmdelassociationrslt /AWS1/CL_SSMDELASSOCIATIONRSLT¶
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->deleteassociation(
iv_associationid = |string|
iv_instanceid = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.