aws_sdk_gamelift/client/create_matchmaking_rule_set.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateMatchmakingRuleSet`](crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder::set_name):<br>required: **true**<br><p>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 <code>name</code> field in the rule set body.</p><br>
7 /// - [`rule_set_body(impl Into<String>)`](crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder::rule_set_body) / [`set_rule_set_body(Option<String>)`](crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder::set_rule_set_body):<br>required: **true**<br><p>A collection of matchmaking rules, formatted as a JSON string. Comments are not allowed in JSON, but most elements support a description field.</p><br>
8 /// - [`tags(Tag)`](crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder::set_tags):<br>required: **false**<br><p>A list of labels to assign to the new matchmaking rule set resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html"> Tagging Amazon Web Services Resources</a> in the <i>Amazon Web Services General Reference</i>.</p><br>
9 /// - On success, responds with [`CreateMatchmakingRuleSetOutput`](crate::operation::create_matchmaking_rule_set::CreateMatchmakingRuleSetOutput) with field(s):
10 /// - [`rule_set(Option<MatchmakingRuleSet>)`](crate::operation::create_matchmaking_rule_set::CreateMatchmakingRuleSetOutput::rule_set): <p>The newly created matchmaking rule set.</p>
11 /// - On failure, responds with [`SdkError<CreateMatchmakingRuleSetError>`](crate::operation::create_matchmaking_rule_set::CreateMatchmakingRuleSetError)
12 pub fn create_matchmaking_rule_set(&self) -> crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder {
13 crate::operation::create_matchmaking_rule_set::builders::CreateMatchmakingRuleSetFluentBuilder::new(self.handle.clone())
14 }
15}