Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a constraint.
Synopsis
- createConstraint :: Text -> Text -> Text -> Text -> Text -> CreateConstraint
- data CreateConstraint
- ccAcceptLanguage :: Lens' CreateConstraint (Maybe Text)
- ccDescription :: Lens' CreateConstraint (Maybe Text)
- ccPortfolioId :: Lens' CreateConstraint Text
- ccProductId :: Lens' CreateConstraint Text
- ccParameters :: Lens' CreateConstraint Text
- ccType :: Lens' CreateConstraint Text
- ccIdempotencyToken :: Lens' CreateConstraint Text
- createConstraintResponse :: Int -> CreateConstraintResponse
- data CreateConstraintResponse
- ccrsStatus :: Lens' CreateConstraintResponse (Maybe RequestStatus)
- ccrsConstraintDetail :: Lens' CreateConstraintResponse (Maybe ConstraintDetail)
- ccrsConstraintParameters :: Lens' CreateConstraintResponse (Maybe Text)
- ccrsResponseStatus :: Lens' CreateConstraintResponse Int
Creating a Request
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
- ChineseccDescription
- 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 theRoleArn
property as follows: "RoleArn" : "arn:aws:iam::123456789012:roleLaunchRole" * NOTIFICATION * Specify theNotificationArns
property as follows: "NotificationArns" : ["arn:aws:sns:us-east-1:123456789012:Topic"] * TEMPLATE * Specify theRules
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
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:
ccrsStatus
- The status of the current request.ccrsConstraintDetail
- Information about the constraint.ccrsConstraintParameters
- The constraint parameters.ccrsResponseStatus
- -- | The response status code.
data CreateConstraintResponse Source #
See: createConstraintResponse
smart constructor.
Instances
Response Lenses
ccrsStatus :: Lens' CreateConstraintResponse (Maybe RequestStatus) Source #
The status of the current request.
ccrsConstraintDetail :: Lens' CreateConstraintResponse (Maybe ConstraintDetail) Source #
Information about the constraint.
ccrsConstraintParameters :: Lens' CreateConstraintResponse (Maybe Text) Source #
The constraint parameters.
ccrsResponseStatus :: Lens' CreateConstraintResponse Int Source #
- - | The response status code.