# CfnMatchmakingRuleSetProps

Properties for defining a `CfnMatchmakingRuleSet`.

Used as props by: [CfnMatchmakingRuleSet](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_gamelift.CfnMatchmakingRuleSet.html)

- Source: Generated at build time
- Type last changed: v2.9.0 · 26 Jan 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from 'aws-cdk-lib';
const cfnMatchmakingRuleSetProps: gamelift.CfnMatchmakingRuleSetProps = {
  name: 'name',
  ruleSetBody: 'ruleSetBody',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_gamelift as gamelift

cfn_matchmaking_rule_set_props = gamelift.CfnMatchmakingRuleSetProps(
    name="name",
    rule_set_body="ruleSetBody",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;

CfnMatchmakingRuleSetProps cfnMatchmakingRuleSetProps = CfnMatchmakingRuleSetProps.builder()
        .name("name")
        .ruleSetBody("ruleSetBody")

        // the properties below are optional
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift;

var cfnMatchmakingRuleSetProps = new CfnMatchmakingRuleSetProps {
    Name = "name",
    RuleSetBody = "ruleSetBody",

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnMatchmakingRuleSetProps := &CfnMatchmakingRuleSetProps{
	Name: jsii.String("name"),
	RuleSetBody: jsii.String("ruleSetBody"),

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `name`: string (required) — 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`: string (required) — A collection of matchmaking rules, formatted as a JSON string.

  Comments are not allowed in JSON, but most elements support a description field.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — 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](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) 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.
