1. Packages
  2. AWS Native
  3. API Docs
  4. gamelift
  5. MatchmakingRuleSet

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.97.0 published on Wednesday, Feb 21, 2024 by Pulumi

aws-native.gamelift.MatchmakingRuleSet

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.97.0 published on Wednesday, Feb 21, 2024 by Pulumi

    The AWS::GameLift::MatchmakingRuleSet resource creates an Amazon GameLift (GameLift) matchmaking rule set.

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var matchmakingRuleSetResource = new AwsNative.GameLift.MatchmakingRuleSet("matchmakingRuleSetResource", new()
        {
            Name = "MyRuleSet",
            RuleSetBody = "{\"name\": \"MyMatchmakingRuleSet\",\"ruleLanguageVersion\": \"1.0\", \"teams\": [{\"name\": \"MyTeam\",\"minPlayers\": 1,\"maxPlayers\": 20}]}",
        });
    
        var matchmakingConfigurationResource = new AwsNative.GameLift.MatchmakingConfiguration("matchmakingConfigurationResource", new()
        {
            Name = "MyMatchmakingConfiguration",
            AcceptanceRequired = true,
            AcceptanceTimeoutSeconds = 60,
            BackfillMode = AwsNative.GameLift.MatchmakingConfigurationBackfillMode.Manual,
            CustomEventData = "MyCustomEventData",
            Description = "A basic standalone matchmaking configuration",
            FlexMatchMode = AwsNative.GameLift.MatchmakingConfigurationFlexMatchMode.Standalone,
            RequestTimeoutSeconds = 100,
            RuleSetName = matchmakingRuleSetResource.Id,
        }, new CustomResourceOptions
        {
            DependsOn = new[]
            {
                matchmakingRuleSetResource,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/gamelift"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		matchmakingRuleSetResource, err := gamelift.NewMatchmakingRuleSet(ctx, "matchmakingRuleSetResource", &gamelift.MatchmakingRuleSetArgs{
    			Name:        pulumi.String("MyRuleSet"),
    			RuleSetBody: pulumi.String("{\"name\": \"MyMatchmakingRuleSet\",\"ruleLanguageVersion\": \"1.0\", \"teams\": [{\"name\": \"MyTeam\",\"minPlayers\": 1,\"maxPlayers\": 20}]}"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gamelift.NewMatchmakingConfiguration(ctx, "matchmakingConfigurationResource", &gamelift.MatchmakingConfigurationArgs{
    			Name:                     pulumi.String("MyMatchmakingConfiguration"),
    			AcceptanceRequired:       pulumi.Bool(true),
    			AcceptanceTimeoutSeconds: pulumi.Int(60),
    			BackfillMode:             gamelift.MatchmakingConfigurationBackfillModeManual,
    			CustomEventData:          pulumi.String("MyCustomEventData"),
    			Description:              pulumi.String("A basic standalone matchmaking configuration"),
    			FlexMatchMode:            gamelift.MatchmakingConfigurationFlexMatchModeStandalone,
    			RequestTimeoutSeconds:    pulumi.Int(100),
    			RuleSetName:              matchmakingRuleSetResource.ID(),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			matchmakingRuleSetResource,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    matchmaking_rule_set_resource = aws_native.gamelift.MatchmakingRuleSet("matchmakingRuleSetResource",
        name="MyRuleSet",
        rule_set_body="{\"name\": \"MyMatchmakingRuleSet\",\"ruleLanguageVersion\": \"1.0\", \"teams\": [{\"name\": \"MyTeam\",\"minPlayers\": 1,\"maxPlayers\": 20}]}")
    matchmaking_configuration_resource = aws_native.gamelift.MatchmakingConfiguration("matchmakingConfigurationResource",
        name="MyMatchmakingConfiguration",
        acceptance_required=True,
        acceptance_timeout_seconds=60,
        backfill_mode=aws_native.gamelift.MatchmakingConfigurationBackfillMode.MANUAL,
        custom_event_data="MyCustomEventData",
        description="A basic standalone matchmaking configuration",
        flex_match_mode=aws_native.gamelift.MatchmakingConfigurationFlexMatchMode.STANDALONE,
        request_timeout_seconds=100,
        rule_set_name=matchmaking_rule_set_resource.id,
        opts=pulumi.ResourceOptions(depends_on=[matchmaking_rule_set_resource]))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const matchmakingRuleSetResource = new aws_native.gamelift.MatchmakingRuleSet("matchmakingRuleSetResource", {
        name: "MyRuleSet",
        ruleSetBody: "{\"name\": \"MyMatchmakingRuleSet\",\"ruleLanguageVersion\": \"1.0\", \"teams\": [{\"name\": \"MyTeam\",\"minPlayers\": 1,\"maxPlayers\": 20}]}",
    });
    const matchmakingConfigurationResource = new aws_native.gamelift.MatchmakingConfiguration("matchmakingConfigurationResource", {
        name: "MyMatchmakingConfiguration",
        acceptanceRequired: true,
        acceptanceTimeoutSeconds: 60,
        backfillMode: aws_native.gamelift.MatchmakingConfigurationBackfillMode.Manual,
        customEventData: "MyCustomEventData",
        description: "A basic standalone matchmaking configuration",
        flexMatchMode: aws_native.gamelift.MatchmakingConfigurationFlexMatchMode.Standalone,
        requestTimeoutSeconds: 100,
        ruleSetName: matchmakingRuleSetResource.id,
    }, {
        dependsOn: [matchmakingRuleSetResource],
    });
    

    Coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var matchmakingRuleSet = new AwsNative.GameLift.MatchmakingRuleSet("matchmakingRuleSet", new()
        {
            Name = "MyRuleSet",
            RuleSetBody = "{\"name\": \"MyMatchmakingRuleSet\",\"ruleLanguageVersion\": \"1.0\", \"teams\": [{\"name\": \"MyTeam\",\"minPlayers\": 1,\"maxPlayers\": 20}]}",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/gamelift"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gamelift.NewMatchmakingRuleSet(ctx, "matchmakingRuleSet", &gamelift.MatchmakingRuleSetArgs{
    			Name:        pulumi.String("MyRuleSet"),
    			RuleSetBody: pulumi.String("{\"name\": \"MyMatchmakingRuleSet\",\"ruleLanguageVersion\": \"1.0\", \"teams\": [{\"name\": \"MyTeam\",\"minPlayers\": 1,\"maxPlayers\": 20}]}"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_aws_native as aws_native
    
    matchmaking_rule_set = aws_native.gamelift.MatchmakingRuleSet("matchmakingRuleSet",
        name="MyRuleSet",
        rule_set_body="{\"name\": \"MyMatchmakingRuleSet\",\"ruleLanguageVersion\": \"1.0\", \"teams\": [{\"name\": \"MyTeam\",\"minPlayers\": 1,\"maxPlayers\": 20}]}")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const matchmakingRuleSet = new aws_native.gamelift.MatchmakingRuleSet("matchmakingRuleSet", {
        name: "MyRuleSet",
        ruleSetBody: "{\"name\": \"MyMatchmakingRuleSet\",\"ruleLanguageVersion\": \"1.0\", \"teams\": [{\"name\": \"MyTeam\",\"minPlayers\": 1,\"maxPlayers\": 20}]}",
    });
    

    Coming soon!

    Create MatchmakingRuleSet Resource

    new MatchmakingRuleSet(name: string, args: MatchmakingRuleSetArgs, opts?: CustomResourceOptions);
    @overload
    def MatchmakingRuleSet(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           name: Optional[str] = None,
                           rule_set_body: Optional[str] = None,
                           tags: Optional[Sequence[MatchmakingRuleSetTagArgs]] = None)
    @overload
    def MatchmakingRuleSet(resource_name: str,
                           args: MatchmakingRuleSetArgs,
                           opts: Optional[ResourceOptions] = None)
    func NewMatchmakingRuleSet(ctx *Context, name string, args MatchmakingRuleSetArgs, opts ...ResourceOption) (*MatchmakingRuleSet, error)
    public MatchmakingRuleSet(string name, MatchmakingRuleSetArgs args, CustomResourceOptions? opts = null)
    public MatchmakingRuleSet(String name, MatchmakingRuleSetArgs args)
    public MatchmakingRuleSet(String name, MatchmakingRuleSetArgs args, CustomResourceOptions options)
    
    type: aws-native:gamelift:MatchmakingRuleSet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args MatchmakingRuleSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MatchmakingRuleSetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MatchmakingRuleSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MatchmakingRuleSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MatchmakingRuleSetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MatchmakingRuleSet Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The MatchmakingRuleSet resource accepts the following input properties:

    RuleSetBody string
    A collection of matchmaking rules, formatted as a JSON string.
    Name string
    A unique identifier for the matchmaking rule set.
    Tags List<Pulumi.AwsNative.GameLift.Inputs.MatchmakingRuleSetTag>
    An array of key-value pairs to apply to this resource.
    RuleSetBody string
    A collection of matchmaking rules, formatted as a JSON string.
    Name string
    A unique identifier for the matchmaking rule set.
    Tags []MatchmakingRuleSetTagArgs
    An array of key-value pairs to apply to this resource.
    ruleSetBody String
    A collection of matchmaking rules, formatted as a JSON string.
    name String
    A unique identifier for the matchmaking rule set.
    tags List<MatchmakingRuleSetTag>
    An array of key-value pairs to apply to this resource.
    ruleSetBody string
    A collection of matchmaking rules, formatted as a JSON string.
    name string
    A unique identifier for the matchmaking rule set.
    tags MatchmakingRuleSetTag[]
    An array of key-value pairs to apply to this resource.
    rule_set_body str
    A collection of matchmaking rules, formatted as a JSON string.
    name str
    A unique identifier for the matchmaking rule set.
    tags Sequence[MatchmakingRuleSetTagArgs]
    An array of key-value pairs to apply to this resource.
    ruleSetBody String
    A collection of matchmaking rules, formatted as a JSON string.
    name String
    A unique identifier for the matchmaking rule set.
    tags List<Property Map>
    An array of key-value pairs to apply to this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MatchmakingRuleSet resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking rule set resource and uniquely identifies it.
    CreationTime string
    A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking rule set resource and uniquely identifies it.
    CreationTime string
    A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking rule set resource and uniquely identifies it.
    creationTime String
    A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking rule set resource and uniquely identifies it.
    creationTime string
    A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking rule set resource and uniquely identifies it.
    creation_time str
    A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking rule set resource and uniquely identifies it.
    creationTime String
    A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    MatchmakingRuleSetTag, MatchmakingRuleSetTagArgs

    Key string
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.
    Value string
    The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length.
    Key string
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.
    Value string
    The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length.
    key String
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.
    value String
    The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length.
    key string
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.
    value string
    The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length.
    key str
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.
    value str
    The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length.
    key String
    The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length.
    value String
    The value for the tag. You can specify a value that is 1 to 256 Unicode characters in length.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.97.0 published on Wednesday, Feb 21, 2024 by Pulumi