amazonka-codestar-1.6.0: Amazon CodeStar SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeStar.DeleteProject

Contents

Description

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

Creating a Request

deleteProject Source #

Arguments

:: Text

dpId

-> DeleteProject 

Creates a value of DeleteProject with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dpDeleteStack - 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.
  • dpClientRequestToken - A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.
  • dpId - The ID of the project to be deleted in AWS CodeStar.

data DeleteProject Source #

See: deleteProject smart constructor.

Instances

Eq DeleteProject Source # 
Data DeleteProject Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteProject -> c DeleteProject #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteProject #

toConstr :: DeleteProject -> Constr #

dataTypeOf :: DeleteProject -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteProject) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteProject) #

gmapT :: (forall b. Data b => b -> b) -> DeleteProject -> DeleteProject #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteProject -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteProject -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteProject -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteProject -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteProject -> m DeleteProject #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteProject -> m DeleteProject #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteProject -> m DeleteProject #

Read DeleteProject Source # 
Show DeleteProject Source # 
Generic DeleteProject Source # 

Associated Types

type Rep DeleteProject :: * -> * #

Hashable DeleteProject Source # 
ToJSON DeleteProject Source # 
NFData DeleteProject Source # 

Methods

rnf :: DeleteProject -> () #

AWSRequest DeleteProject Source # 
ToHeaders DeleteProject Source # 
ToPath DeleteProject Source # 
ToQuery DeleteProject Source # 
type Rep DeleteProject Source # 
type Rep DeleteProject = D1 * (MetaData "DeleteProject" "Network.AWS.CodeStar.DeleteProject" "amazonka-codestar-1.6.0-5SZ4tYCpUgiG3GgoUtUaxn" False) (C1 * (MetaCons "DeleteProject'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dpDeleteStack") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dpClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dpId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs DeleteProject Source # 

Request Lenses

dpDeleteStack :: 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.

dpClientRequestToken :: 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.

dpId :: Lens' DeleteProject Text Source #

The ID of the project to be deleted in AWS CodeStar.

Destructuring the Response

deleteProjectResponse Source #

Creates a value of DeleteProjectResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dprsProjectARN - The Amazon Resource Name (ARN) of the deleted project.
  • dprsStackId - The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.
  • dprsResponseStatus - -- | The response status code.

data DeleteProjectResponse Source #

See: deleteProjectResponse smart constructor.

Instances

Eq DeleteProjectResponse Source # 
Data DeleteProjectResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteProjectResponse -> c DeleteProjectResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteProjectResponse #

toConstr :: DeleteProjectResponse -> Constr #

dataTypeOf :: DeleteProjectResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteProjectResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteProjectResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteProjectResponse -> DeleteProjectResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteProjectResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteProjectResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteProjectResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteProjectResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteProjectResponse -> m DeleteProjectResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteProjectResponse -> m DeleteProjectResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteProjectResponse -> m DeleteProjectResponse #

Read DeleteProjectResponse Source # 
Show DeleteProjectResponse Source # 
Generic DeleteProjectResponse Source # 
NFData DeleteProjectResponse Source # 

Methods

rnf :: DeleteProjectResponse -> () #

type Rep DeleteProjectResponse Source # 
type Rep DeleteProjectResponse = D1 * (MetaData "DeleteProjectResponse" "Network.AWS.CodeStar.DeleteProject" "amazonka-codestar-1.6.0-5SZ4tYCpUgiG3GgoUtUaxn" False) (C1 * (MetaCons "DeleteProjectResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dprsProjectARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dprsStackId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

dprsProjectARN :: Lens' DeleteProjectResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the deleted project.

dprsStackId :: 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.

dprsResponseStatus :: Lens' DeleteProjectResponse Int Source #

  • - | The response status code.