Try AWS Native preview for resources not in the classic version.
aws.gamelift.MatchmakingRuleSet
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a GameLift Matchmaking Rule Set resources.
Create MatchmakingRuleSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MatchmakingRuleSet(name: string, args: MatchmakingRuleSetArgs, opts?: CustomResourceOptions);
@overload
def MatchmakingRuleSet(resource_name: str,
args: MatchmakingRuleSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MatchmakingRuleSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
rule_set_body: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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:gamelift:MatchmakingRuleSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var matchmakingRuleSetResource = new Aws.GameLift.MatchmakingRuleSet("matchmakingRuleSetResource", new()
{
RuleSetBody = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := gamelift.NewMatchmakingRuleSet(ctx, "matchmakingRuleSetResource", &gamelift.MatchmakingRuleSetArgs{
RuleSetBody: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var matchmakingRuleSetResource = new MatchmakingRuleSet("matchmakingRuleSetResource", MatchmakingRuleSetArgs.builder()
.ruleSetBody("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
matchmaking_rule_set_resource = aws.gamelift.MatchmakingRuleSet("matchmakingRuleSetResource",
rule_set_body="string",
name="string",
tags={
"string": "string",
})
const matchmakingRuleSetResource = new aws.gamelift.MatchmakingRuleSet("matchmakingRuleSetResource", {
ruleSetBody: "string",
name: "string",
tags: {
string: "string",
},
});
type: aws:gamelift:MatchmakingRuleSet
properties:
name: string
ruleSetBody: string
tags:
string: string
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:
- Rule
Set stringBody - JSON encoded string containing rule set data.
- Name string
- Name of the matchmaking rule set.
- Dictionary<string, string>
- Rule
Set stringBody - JSON encoded string containing rule set data.
- Name string
- Name of the matchmaking rule set.
- map[string]string
- rule
Set StringBody - JSON encoded string containing rule set data.
- name String
- Name of the matchmaking rule set.
- Map<String,String>
- rule
Set stringBody - JSON encoded string containing rule set data.
- name string
- Name of the matchmaking rule set.
- {[key: string]: string}
- rule_
set_ strbody - JSON encoded string containing rule set data.
- name str
- Name of the matchmaking rule set.
- Mapping[str, str]
- rule
Set StringBody - JSON encoded string containing rule set data.
- name String
- Name of the matchmaking rule set.
- Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the MatchmakingRuleSet resource produces the following output properties:
Look up Existing MatchmakingRuleSet Resource
Get an existing MatchmakingRuleSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MatchmakingRuleSetState, opts?: CustomResourceOptions): MatchmakingRuleSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
name: Optional[str] = None,
rule_set_body: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> MatchmakingRuleSet
func GetMatchmakingRuleSet(ctx *Context, name string, id IDInput, state *MatchmakingRuleSetState, opts ...ResourceOption) (*MatchmakingRuleSet, error)
public static MatchmakingRuleSet Get(string name, Input<string> id, MatchmakingRuleSetState? state, CustomResourceOptions? opts = null)
public static MatchmakingRuleSet get(String name, Output<String> id, MatchmakingRuleSetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- Rule Set ARN.
- Name string
- Name of the matchmaking rule set.
- Rule
Set stringBody - JSON encoded string containing rule set data.
- Dictionary<string, string>
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Rule Set ARN.
- Name string
- Name of the matchmaking rule set.
- Rule
Set stringBody - JSON encoded string containing rule set data.
- map[string]string
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Rule Set ARN.
- name String
- Name of the matchmaking rule set.
- rule
Set StringBody - JSON encoded string containing rule set data.
- Map<String,String>
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Rule Set ARN.
- name string
- Name of the matchmaking rule set.
- rule
Set stringBody - JSON encoded string containing rule set data.
- {[key: string]: string}
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Rule Set ARN.
- name str
- Name of the matchmaking rule set.
- rule_
set_ strbody - JSON encoded string containing rule set data.
- Mapping[str, str]
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Rule Set ARN.
- name String
- Name of the matchmaking rule set.
- rule
Set StringBody - JSON encoded string containing rule set data.
- Map<String>
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
GameLift Matchmaking Rule Sets can be imported using the ID, e.g.,
$ pulumi import aws:gamelift/matchmakingRuleSet:MatchmakingRuleSet example <ruleset-id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.