amazonka-servicecatalog-1.6.0: Amazon Service Catalog 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.ServiceCatalog.CreateConstraint

Contents

Description

Creates a 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. * en - English (default) * jp - Japanese * zh - Chinese
  • ccDescription - The description of the constraint.
  • ccPortfolioId - The portfolio identifier.
  • ccProductId - The product identifier.
  • ccParameters - The constraint parameters, in JSON format. The syntax depends on the constraint type as follows: * LAUNCH * Specify the RoleArn property as follows: "RoleArn" : "arn:aws:iam::123456789012:roleLaunchRole" * NOTIFICATION * Specify the NotificationArns property as follows: "NotificationArns" : ["arn:aws:sns:us-east-1:123456789012:Topic"] * TEMPLATE * Specify the Rules property. For more information, see <http:docs.aws.amazon.comservicecataloglatestadminguide/reference-template_constraint_rules.html Template Constraint Rules> .
  • ccType - The type of constraint. * LAUNCH * NOTIFICATION * TEMPLATE
  • ccIdempotencyToken - A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated 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 # 
ToHeaders CreateConstraint Source # 
ToPath CreateConstraint Source # 
ToQuery CreateConstraint Source # 
type Rep CreateConstraint Source # 
type Rep CreateConstraint = D1 * (MetaData "CreateConstraint" "Network.AWS.ServiceCatalog.CreateConstraint" "amazonka-servicecatalog-1.6.0-8wUR8FvPwUW25Vnsy8k8jt" 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. * en - English (default) * jp - Japanese * zh - Chinese

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

The 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, in JSON format. The syntax depends on the constraint type as follows: * LAUNCH * Specify the RoleArn property as follows: "RoleArn" : "arn:aws:iam::123456789012:roleLaunchRole" * NOTIFICATION * Specify the NotificationArns property as follows: "NotificationArns" : ["arn:aws:sns:us-east-1:123456789012:Topic"] * TEMPLATE * Specify the Rules property. For more information, see <http:docs.aws.amazon.comservicecataloglatestadminguide/reference-template_constraint_rules.html Template Constraint Rules> .

ccType :: Lens' CreateConstraint Text Source #

The type of constraint. * LAUNCH * NOTIFICATION * TEMPLATE

ccIdempotencyToken :: Lens' CreateConstraint Text Source #

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated 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.6.0-8wUR8FvPwUW25Vnsy8k8jt" 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 DecidedStrict) (Rec0 * Int)))))

Response Lenses

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

The status of the current request.