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 |
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.
ValidateMatchmakingRuleSet' | |
|
Instances
newValidateMatchmakingRuleSet Source #
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.
ValidateMatchmakingRuleSetResponse' | |
|
Instances
Generic ValidateMatchmakingRuleSetResponse Source # | |
Read ValidateMatchmakingRuleSetResponse Source # | |
Show ValidateMatchmakingRuleSetResponse Source # | |
NFData ValidateMatchmakingRuleSetResponse Source # | |
Defined in Amazonka.GameLift.ValidateMatchmakingRuleSet rnf :: ValidateMatchmakingRuleSetResponse -> () # | |
Eq ValidateMatchmakingRuleSetResponse Source # | |
type Rep ValidateMatchmakingRuleSetResponse Source # | |
Defined in Amazonka.GameLift.ValidateMatchmakingRuleSet type Rep ValidateMatchmakingRuleSetResponse = D1 ('MetaData "ValidateMatchmakingRuleSetResponse" "Amazonka.GameLift.ValidateMatchmakingRuleSet" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "ValidateMatchmakingRuleSetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "valid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newValidateMatchmakingRuleSetResponse Source #
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.