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 #

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 #

See: createConstraint smart constructor.

Instances

Eq CreateConstraint # 
Data CreateConstraint # 

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 # 
Show CreateConstraint # 
Generic CreateConstraint # 
Hashable CreateConstraint # 
ToJSON CreateConstraint # 
NFData CreateConstraint # 

Methods

rnf :: CreateConstraint -> () #

AWSRequest CreateConstraint # 
ToQuery CreateConstraint # 
ToPath CreateConstraint # 
ToHeaders CreateConstraint # 
type Rep CreateConstraint # 
type Rep CreateConstraint = D1 (MetaData "CreateConstraint" "Network.AWS.ServiceCatalog.CreateConstraint" "amazonka-servicecatalog-1.4.5-E18s202pm17KzFGbCQM02M" 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 # 

Request Lenses

ccAcceptLanguage :: Lens' CreateConstraint (Maybe Text) #

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) #

The text description of the constraint.

ccPortfolioId :: Lens' CreateConstraint Text #

The portfolio identifier.

ccProductId :: Lens' CreateConstraint Text #

The product identifier.

ccParameters :: Lens' CreateConstraint Text #

The constraint parameters.

ccType :: Lens' CreateConstraint Text #

The type of the constraint.

ccIdempotencyToken :: Lens' CreateConstraint Text #

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 #

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 #

See: createConstraintResponse smart constructor.

Instances

Eq CreateConstraintResponse # 
Data CreateConstraintResponse # 

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 # 
Show CreateConstraintResponse # 
Generic CreateConstraintResponse # 
NFData CreateConstraintResponse # 
type Rep CreateConstraintResponse # 
type Rep CreateConstraintResponse = D1 (MetaData "CreateConstraintResponse" "Network.AWS.ServiceCatalog.CreateConstraint" "amazonka-servicecatalog-1.4.5-E18s202pm17KzFGbCQM02M" 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) #

The status of the current request.

ccrsConstraintDetail :: Lens' CreateConstraintResponse (Maybe ConstraintDetail) #

The resulting detailed constraint information.

ccrsConstraintParameters :: Lens' CreateConstraintResponse (Maybe Text) #

The resulting constraint parameters.

ccrsResponseStatus :: Lens' CreateConstraintResponse Int #

  • - | The response status code.