amazonka-servicecatalog-1.4.5: Amazon Service Catalog SDK.

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

Network.AWS.ServiceCatalog.CreateConstraint

Contents

Description

Creates a new constraint.

Synopsis

Creating a Request

createConstraint Source #

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

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

  • ccAcceptLanguage - The language code to use for this operation. Supported language codes are as follows: "en" (English) "jp" (Japanese) "zh" (Chinese) If no code is specified, "en" is used as the default.
  • ccDescription - The text description of the constraint.
  • ccPortfolioId - The portfolio identifier.
  • ccProductId - The product identifier.
  • ccParameters - The constraint parameters.
  • ccType - The type of the constraint.
  • ccIdempotencyToken - A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.

data CreateConstraint Source #

See: createConstraint smart constructor.

Instances

Eq CreateConstraint Source # 
Data CreateConstraint Source # 

Methods

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

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

toConstr :: CreateConstraint -> Constr #

dataTypeOf :: CreateConstraint -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateConstraint Source # 
Show CreateConstraint Source # 
Generic CreateConstraint Source # 
Hashable CreateConstraint Source # 
ToJSON CreateConstraint Source # 
NFData CreateConstraint Source # 

Methods

rnf :: CreateConstraint -> () #

AWSRequest CreateConstraint Source # 
ToPath CreateConstraint Source # 
ToHeaders CreateConstraint Source # 
ToQuery CreateConstraint Source # 
type Rep CreateConstraint Source # 
type Rep CreateConstraint = D1 (MetaData "CreateConstraint" "Network.AWS.ServiceCatalog.CreateConstraint" "amazonka-servicecatalog-1.4.5-8bdJVEiVZ77jaeUaDycc5" False) (C1 (MetaCons "CreateConstraint'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccAcceptLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ccDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccPortfolioId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccProductId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ccType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccIdempotencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateConstraint Source # 

Request Lenses

ccAcceptLanguage :: Lens' CreateConstraint (Maybe Text) Source #

The language code to use for this operation. Supported language codes are as follows: "en" (English) "jp" (Japanese) "zh" (Chinese) If no code is specified, "en" is used as the default.

ccDescription :: Lens' CreateConstraint (Maybe Text) Source #

The text description of the constraint.

ccPortfolioId :: Lens' CreateConstraint Text Source #

The portfolio identifier.

ccProductId :: Lens' CreateConstraint Text Source #

The product identifier.

ccParameters :: Lens' CreateConstraint Text Source #

The constraint parameters.

ccType :: Lens' CreateConstraint Text Source #

The type of the constraint.

ccIdempotencyToken :: Lens' CreateConstraint Text Source #

A token to disambiguate duplicate requests. You can create multiple resources using the same input in multiple requests, provided that you also specify a different idempotency token for each request.

Destructuring the Response

createConstraintResponse Source #

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

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

data CreateConstraintResponse Source #

See: createConstraintResponse smart constructor.

Instances

Eq CreateConstraintResponse Source # 
Data CreateConstraintResponse Source # 

Methods

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

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

toConstr :: CreateConstraintResponse -> Constr #

dataTypeOf :: CreateConstraintResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateConstraintResponse Source # 
Show CreateConstraintResponse Source # 
Generic CreateConstraintResponse Source # 
NFData CreateConstraintResponse Source # 
type Rep CreateConstraintResponse Source # 
type Rep CreateConstraintResponse = D1 (MetaData "CreateConstraintResponse" "Network.AWS.ServiceCatalog.CreateConstraint" "amazonka-servicecatalog-1.4.5-8bdJVEiVZ77jaeUaDycc5" False) (C1 (MetaCons "CreateConstraintResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ccrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RequestStatus))) (S1 (MetaSel (Just Symbol "_ccrsConstraintDetail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ConstraintDetail)))) ((:*:) (S1 (MetaSel (Just Symbol "_ccrsConstraintParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ccrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

ccrsStatus :: Lens' CreateConstraintResponse (Maybe RequestStatus) Source #

The status of the current request.

ccrsConstraintDetail :: Lens' CreateConstraintResponse (Maybe ConstraintDetail) Source #

The resulting detailed constraint information.

ccrsConstraintParameters :: Lens' CreateConstraintResponse (Maybe Text) Source #

The resulting constraint parameters.