DisassociateUser
Disassociates the user from an EC2 instance providing user-based subscriptions.
Request Syntax
POST /user/DisassociateUser HTTP/1.1
Content-type: application/json
{
   "Domain": "string",
   "IdentityProvider": { ... },
   "InstanceId": "string",
   "InstanceUserArn": "string",
   "Username": "string"
}URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- Domain
- 
               The domain name of the Active Directory that contains information for the user to disassociate. Type: String Required: No 
- IdentityProvider
- 
               An object that specifies details for the Active Directory identity provider. Type: IdentityProvider object Note: This object is a Union. Only one member of this object can be specified or returned. Required: No 
- InstanceId
- 
               The ID of the EC2 instance which provides user-based subscriptions. Type: String Required: No 
- InstanceUserArn
- 
               The Amazon Resource Name (ARN) of the user to disassociate from the EC2 instance. Type: String Pattern: arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{1,63}:[a-zA-Z0-9-\.]{1,510}/[a-zA-Z0-9-\.]{1,510}Required: No 
- Username
- 
               The user name from the Active Directory identity provider for the user. Type: String Required: No 
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
   "InstanceUserSummary": { 
      "AssociationDate": "string",
      "DisassociationDate": "string",
      "Domain": "string",
      "IdentityProvider": { ... },
      "InstanceId": "string",
      "InstanceUserArn": "string",
      "Status": "string",
      "StatusMessage": "string",
      "Username": "string"
   }
}Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- InstanceUserSummary
- 
               Metadata that describes the associate user operation. Type: InstanceUserSummary object 
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
- 
               You don't have sufficient access to perform this action. HTTP Status Code: 400 
- ConflictException
- 
               The request couldn't be completed because it conflicted with the current state of the resource. HTTP Status Code: 500 
- InternalServerException
- 
               An exception occurred with the service. HTTP Status Code: 500 
- ResourceNotFoundException
- 
               The resource couldn't be found. HTTP Status Code: 404 
- ServiceQuotaExceededException
- 
               The request failed because a service quota is exceeded. HTTP Status Code: 400 
- ThrottlingException
- 
               The request was denied because of request throttling. Retry the request. HTTP Status Code: 400 
- ValidationException
- 
               A parameter is not valid. HTTP Status Code: 400 
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: