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 |
Use this operation to delete a workforce.
If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use this operation to delete the existing workforce and then use to create a new workforce.
If a private workforce contains one or more work teams, you must use the
operation to delete all work teams before you delete the workforce. If
you try to delete a workforce that contains one or more work teams, you
will recieve a ResourceInUse
error.
Synopsis
- data DeleteWorkforce = DeleteWorkforce' {}
- newDeleteWorkforce :: Text -> DeleteWorkforce
- deleteWorkforce_workforceName :: Lens' DeleteWorkforce Text
- data DeleteWorkforceResponse = DeleteWorkforceResponse' {
- httpStatus :: Int
- newDeleteWorkforceResponse :: Int -> DeleteWorkforceResponse
- deleteWorkforceResponse_httpStatus :: Lens' DeleteWorkforceResponse Int
Creating a Request
data DeleteWorkforce Source #
See: newDeleteWorkforce
smart constructor.
DeleteWorkforce' | |
|
Instances
Create a value of DeleteWorkforce
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:workforceName:DeleteWorkforce'
, deleteWorkforce_workforceName
- The name of the workforce.
Request Lenses
deleteWorkforce_workforceName :: Lens' DeleteWorkforce Text Source #
The name of the workforce.
Destructuring the Response
data DeleteWorkforceResponse Source #
See: newDeleteWorkforceResponse
smart constructor.
DeleteWorkforceResponse' | |
|
Instances
newDeleteWorkforceResponse Source #
Create a value of DeleteWorkforceResponse
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:DeleteWorkforceResponse'
, deleteWorkforceResponse_httpStatus
- The response's http status code.
Response Lenses
deleteWorkforceResponse_httpStatus :: Lens' DeleteWorkforceResponse Int Source #
The response's http status code.