| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GameLift.ValidateMatchmakingRuleSet
Description
Validates the syntax of a matchmaking rule or rule set. This operation checks that the rule set is using syntactically correct JSON and that it conforms to allowed property expressions. To validate syntax, provide a rule set JSON string.
Learn more
Synopsis
- data ValidateMatchmakingRuleSet = ValidateMatchmakingRuleSet' {
- ruleSetBody :: Text
- newValidateMatchmakingRuleSet :: Text -> ValidateMatchmakingRuleSet
- validateMatchmakingRuleSet_ruleSetBody :: Lens' ValidateMatchmakingRuleSet Text
- data ValidateMatchmakingRuleSetResponse = ValidateMatchmakingRuleSetResponse' {
- valid :: Maybe Bool
- httpStatus :: Int
- newValidateMatchmakingRuleSetResponse :: Int -> ValidateMatchmakingRuleSetResponse
- validateMatchmakingRuleSetResponse_valid :: Lens' ValidateMatchmakingRuleSetResponse (Maybe Bool)
- validateMatchmakingRuleSetResponse_httpStatus :: Lens' ValidateMatchmakingRuleSetResponse Int
Creating a Request
data ValidateMatchmakingRuleSet Source #
See: newValidateMatchmakingRuleSet smart constructor.
Constructors
| ValidateMatchmakingRuleSet' | |
Fields
| |
Instances
newValidateMatchmakingRuleSet Source #
Arguments
| :: Text | |
| -> ValidateMatchmakingRuleSet |
Create a value of ValidateMatchmakingRuleSet with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ValidateMatchmakingRuleSet, validateMatchmakingRuleSet_ruleSetBody - A collection of matchmaking rules to validate, formatted as a JSON
string.
Request Lenses
validateMatchmakingRuleSet_ruleSetBody :: Lens' ValidateMatchmakingRuleSet Text Source #
A collection of matchmaking rules to validate, formatted as a JSON string.
Destructuring the Response
data ValidateMatchmakingRuleSetResponse Source #
See: newValidateMatchmakingRuleSetResponse smart constructor.
Constructors
| ValidateMatchmakingRuleSetResponse' | |
Fields
| |
Instances
newValidateMatchmakingRuleSetResponse Source #
Arguments
| :: Int | |
| -> ValidateMatchmakingRuleSetResponse |
Create a value of ValidateMatchmakingRuleSetResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:valid:ValidateMatchmakingRuleSetResponse', validateMatchmakingRuleSetResponse_valid - A response indicating whether the rule set is valid.
$sel:httpStatus:ValidateMatchmakingRuleSetResponse', validateMatchmakingRuleSetResponse_httpStatus - The response's http status code.
Response Lenses
validateMatchmakingRuleSetResponse_valid :: Lens' ValidateMatchmakingRuleSetResponse (Maybe Bool) Source #
A response indicating whether the rule set is valid.
validateMatchmakingRuleSetResponse_httpStatus :: Lens' ValidateMatchmakingRuleSetResponse Int Source #
The response's http status code.