Copyright | (c) 2013-2021 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 |
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
Related actions
CreateMatchmakingConfiguration | DescribeMatchmakingConfigurations | UpdateMatchmakingConfiguration | DeleteMatchmakingConfiguration | CreateMatchmakingRuleSet | DescribeMatchmakingRuleSets | ValidateMatchmakingRuleSet | DeleteMatchmakingRuleSet | All APIs by task
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 #
Represents the input for a request operation.
See: newValidateMatchmakingRuleSet
smart constructor.
Constructors
ValidateMatchmakingRuleSet' | |
Fields
|
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:
$sel:ruleSetBody: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 #
Represents the returned data in response to a request operation.
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.