libZSservicesZSamazonka-gameliftZSamazonka-gamelift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.GameLift.CreateMatchmakingRuleSet

Description

Creates a new rule set for FlexMatch matchmaking. A rule set describes the type of match to create, such as the number and size of teams. It also sets the parameters for acceptable player matches, such as minimum skill level or character type. A rule set is used by a MatchmakingConfiguration.

To create a matchmaking rule set, provide unique rule set name and the rule set body in JSON format. Rule sets must be defined in the same Region as the matchmaking configuration they are used with.

Since matchmaking rule sets cannot be edited, it is a good idea to check the rule set syntax using ValidateMatchmakingRuleSet before creating a new rule set.

Learn more

Related actions

CreateMatchmakingConfiguration | DescribeMatchmakingConfigurations | UpdateMatchmakingConfiguration | DeleteMatchmakingConfiguration | CreateMatchmakingRuleSet | DescribeMatchmakingRuleSets | ValidateMatchmakingRuleSet | DeleteMatchmakingRuleSet | All APIs by task

Synopsis

Creating a Request

data CreateMatchmakingRuleSet Source #

Represents the input for a request operation.

See: newCreateMatchmakingRuleSet smart constructor.

Constructors

CreateMatchmakingRuleSet' 

Fields

  • tags :: Maybe [Tag]

    A list of labels to assign to the new matchmaking rule set resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference. Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.

  • name :: Text

    A unique identifier for the matchmaking rule set. A matchmaking configuration identifies the rule set it uses by this name value. Note that the rule set name is different from the optional name field in the rule set body.

  • ruleSetBody :: Text

    A collection of matchmaking rules, formatted as a JSON string. Comments are not allowed in JSON, but most elements support a description field.

Instances

Instances details
Eq CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Read CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Show CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Generic CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Associated Types

type Rep CreateMatchmakingRuleSet :: Type -> Type #

NFData CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Hashable CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

ToJSON CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

AWSRequest CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

ToHeaders CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

ToPath CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

ToQuery CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

type Rep CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

type Rep CreateMatchmakingRuleSet = D1 ('MetaData "CreateMatchmakingRuleSet" "Amazonka.GameLift.CreateMatchmakingRuleSet" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "CreateMatchmakingRuleSet'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ruleSetBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateMatchmakingRuleSet Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

newCreateMatchmakingRuleSet Source #

Create a value of CreateMatchmakingRuleSet 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:tags:CreateMatchmakingRuleSet', createMatchmakingRuleSet_tags - A list of labels to assign to the new matchmaking rule set resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference. Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.

$sel:name:CreateMatchmakingRuleSet', createMatchmakingRuleSet_name - A unique identifier for the matchmaking rule set. A matchmaking configuration identifies the rule set it uses by this name value. Note that the rule set name is different from the optional name field in the rule set body.

$sel:ruleSetBody:CreateMatchmakingRuleSet', createMatchmakingRuleSet_ruleSetBody - A collection of matchmaking rules, formatted as a JSON string. Comments are not allowed in JSON, but most elements support a description field.

Request Lenses

createMatchmakingRuleSet_tags :: Lens' CreateMatchmakingRuleSet (Maybe [Tag]) Source #

A list of labels to assign to the new matchmaking rule set resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference. Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.

createMatchmakingRuleSet_name :: Lens' CreateMatchmakingRuleSet Text Source #

A unique identifier for the matchmaking rule set. A matchmaking configuration identifies the rule set it uses by this name value. Note that the rule set name is different from the optional name field in the rule set body.

createMatchmakingRuleSet_ruleSetBody :: Lens' CreateMatchmakingRuleSet Text Source #

A collection of matchmaking rules, formatted as a JSON string. Comments are not allowed in JSON, but most elements support a description field.

Destructuring the Response

data CreateMatchmakingRuleSetResponse Source #

Represents the returned data in response to a request operation.

See: newCreateMatchmakingRuleSetResponse smart constructor.

Constructors

CreateMatchmakingRuleSetResponse' 

Fields

Instances

Instances details
Eq CreateMatchmakingRuleSetResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Read CreateMatchmakingRuleSetResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Show CreateMatchmakingRuleSetResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Generic CreateMatchmakingRuleSetResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

Associated Types

type Rep CreateMatchmakingRuleSetResponse :: Type -> Type #

NFData CreateMatchmakingRuleSetResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

type Rep CreateMatchmakingRuleSetResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateMatchmakingRuleSet

type Rep CreateMatchmakingRuleSetResponse = D1 ('MetaData "CreateMatchmakingRuleSetResponse" "Amazonka.GameLift.CreateMatchmakingRuleSet" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "CreateMatchmakingRuleSetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "ruleSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MatchmakingRuleSet)))

newCreateMatchmakingRuleSetResponse Source #

Create a value of CreateMatchmakingRuleSetResponse 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:httpStatus:CreateMatchmakingRuleSetResponse', createMatchmakingRuleSetResponse_httpStatus - The response's http status code.

$sel:ruleSet:CreateMatchmakingRuleSetResponse', createMatchmakingRuleSetResponse_ruleSet - The newly created matchmaking rule set.

Response Lenses