Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Disassociates the specified Amazon Web Services Systems Manager document
(SSM document) from the specified instance. 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 an instance, it doesn't change the configuration of the instance. To change the configuration state of an instance after you disassociate a document, you must create a new document with the desired configuration and associate it with the instance.
Synopsis
- data DeleteAssociation = DeleteAssociation' {
- associationId :: Maybe Text
- instanceId :: Maybe Text
- name :: Maybe Text
- newDeleteAssociation :: DeleteAssociation
- deleteAssociation_associationId :: Lens' DeleteAssociation (Maybe Text)
- deleteAssociation_instanceId :: Lens' DeleteAssociation (Maybe Text)
- deleteAssociation_name :: Lens' DeleteAssociation (Maybe Text)
- data DeleteAssociationResponse = DeleteAssociationResponse' {
- httpStatus :: Int
- newDeleteAssociationResponse :: Int -> DeleteAssociationResponse
- deleteAssociationResponse_httpStatus :: Lens' DeleteAssociationResponse Int
Creating a Request
data DeleteAssociation Source #
See: newDeleteAssociation
smart constructor.
DeleteAssociation' | |
|
Instances
newDeleteAssociation :: DeleteAssociation Source #
Create a value of DeleteAssociation
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:associationId:DeleteAssociation'
, deleteAssociation_associationId
- The association ID that you want to delete.
$sel:instanceId:DeleteAssociation'
, deleteAssociation_instanceId
- The instance ID.
InstanceId
has been deprecated. To specify an instance ID for an
association, use the Targets
parameter. Requests that include the
parameter InstanceID
with Systems Manager documents (SSM documents)
that use schema version 2.0 or later will fail. In addition, if you use
the parameter InstanceId
, you can't use the parameters
AssociationName
, DocumentVersion
, MaxErrors
, MaxConcurrency
,
OutputLocation
, or ScheduleExpression
. To use these parameters, you
must use the Targets
parameter.
$sel:name:DeleteAssociation'
, deleteAssociation_name
- The name of the SSM document.
Request Lenses
deleteAssociation_associationId :: Lens' DeleteAssociation (Maybe Text) Source #
The association ID that you want to delete.
deleteAssociation_instanceId :: Lens' DeleteAssociation (Maybe Text) Source #
The instance ID.
InstanceId
has been deprecated. To specify an instance ID for an
association, use the Targets
parameter. Requests that include the
parameter InstanceID
with Systems Manager documents (SSM documents)
that use schema version 2.0 or later will fail. In addition, if you use
the parameter InstanceId
, you can't use the parameters
AssociationName
, DocumentVersion
, MaxErrors
, MaxConcurrency
,
OutputLocation
, or ScheduleExpression
. To use these parameters, you
must use the Targets
parameter.
deleteAssociation_name :: Lens' DeleteAssociation (Maybe Text) Source #
The name of the SSM document.
Destructuring the Response
data DeleteAssociationResponse Source #
See: newDeleteAssociationResponse
smart constructor.
DeleteAssociationResponse' | |
|
Instances
newDeleteAssociationResponse Source #
Create a value of DeleteAssociationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteAssociationResponse'
, deleteAssociationResponse_httpStatus
- The response's http status code.
Response Lenses
deleteAssociationResponse_httpStatus :: Lens' DeleteAssociationResponse Int Source #
The response's http status code.