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 |
Deletes a project, including project resources. Does not delete users associated with the project, but does delete the IAM roles that allowed access to the project.
Synopsis
- data DeleteProject = DeleteProject' {
- deleteStack :: Maybe Bool
- clientRequestToken :: Maybe Text
- id :: Text
- newDeleteProject :: Text -> DeleteProject
- deleteProject_deleteStack :: Lens' DeleteProject (Maybe Bool)
- deleteProject_clientRequestToken :: Lens' DeleteProject (Maybe Text)
- deleteProject_id :: Lens' DeleteProject Text
- data DeleteProjectResponse = DeleteProjectResponse' {
- projectArn :: Maybe Text
- stackId :: Maybe Text
- httpStatus :: Int
- newDeleteProjectResponse :: Int -> DeleteProjectResponse
- deleteProjectResponse_projectArn :: Lens' DeleteProjectResponse (Maybe Text)
- deleteProjectResponse_stackId :: Lens' DeleteProjectResponse (Maybe Text)
- deleteProjectResponse_httpStatus :: Lens' DeleteProjectResponse Int
Creating a Request
data DeleteProject Source #
See: newDeleteProject
smart constructor.
DeleteProject' | |
|
Instances
Create a value of DeleteProject
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:deleteStack:DeleteProject'
, deleteProject_deleteStack
- Whether to send a delete request for the primary stack in AWS
CloudFormation originally used to generate the project and its
resources. This option will delete all AWS resources for the project
(except for any buckets in Amazon S3) as well as deleting the project
itself. Recommended for most use cases.
$sel:clientRequestToken:DeleteProject'
, deleteProject_clientRequestToken
- A user- or system-generated token that identifies the entity that
requested project deletion. This token can be used to repeat the
request.
$sel:id:DeleteProject'
, deleteProject_id
- The ID of the project to be deleted in AWS CodeStar.
Request Lenses
deleteProject_deleteStack :: Lens' DeleteProject (Maybe Bool) Source #
Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.
deleteProject_clientRequestToken :: Lens' DeleteProject (Maybe Text) Source #
A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.
deleteProject_id :: Lens' DeleteProject Text Source #
The ID of the project to be deleted in AWS CodeStar.
Destructuring the Response
data DeleteProjectResponse Source #
See: newDeleteProjectResponse
smart constructor.
DeleteProjectResponse' | |
|
Instances
newDeleteProjectResponse Source #
Create a value of DeleteProjectResponse
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:projectArn:DeleteProjectResponse'
, deleteProjectResponse_projectArn
- The Amazon Resource Name (ARN) of the deleted project.
$sel:stackId:DeleteProjectResponse'
, deleteProjectResponse_stackId
- The ID of the primary stack in AWS CloudFormation that will be deleted
as part of deleting the project and its resources.
$sel:httpStatus:DeleteProjectResponse'
, deleteProjectResponse_httpStatus
- The response's http status code.
Response Lenses
deleteProjectResponse_projectArn :: Lens' DeleteProjectResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the deleted project.
deleteProjectResponse_stackId :: Lens' DeleteProjectResponse (Maybe Text) Source #
The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.
deleteProjectResponse_httpStatus :: Lens' DeleteProjectResponse Int Source #
The response's http status code.