CfnMatchmakingConfigurationProps Struct
Properties for defining a CfnMatchmakingConfiguration.
| Source | |
|---|---|
| Type last changed |
Example
// 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 cfnMatchmakingConfigurationProps: gamelift.CfnMatchmakingConfigurationProps = {
acceptanceRequired: false,
name: 'name',
requestTimeoutSeconds: 123,
ruleSetName: 'ruleSetName',
// the properties below are optional
acceptanceTimeoutSeconds: 123,
additionalPlayerCount: 123,
backfillMode: 'backfillMode',
creationTime: 'creationTime',
customEventData: 'customEventData',
description: 'description',
flexMatchMode: 'flexMatchMode',
gameProperties: [{
key: 'key',
value: 'value',
}],
gameSessionData: 'gameSessionData',
gameSessionQueueArns: ['gameSessionQueueArns'],
notificationTarget: 'notificationTarget',
ruleSetArn: 'ruleSetArn',
tags: [{
key: 'key',
value: 'value',
}],
};
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_configuration_props = gamelift.CfnMatchmakingConfigurationProps(
acceptance_required=False,
name="name",
request_timeout_seconds=123,
rule_set_name="ruleSetName",
# the properties below are optional
acceptance_timeout_seconds=123,
additional_player_count=123,
backfill_mode="backfillMode",
creation_time="creationTime",
custom_event_data="customEventData",
description="description",
flex_match_mode="flexMatchMode",
game_properties=[gamelift.CfnMatchmakingConfiguration.GamePropertyProperty(
key="key",
value="value"
)],
game_session_data="gameSessionData",
game_session_queue_arns=["gameSessionQueueArns"],
notification_target="notificationTarget",
rule_set_arn="ruleSetArn",
tags=[CfnTag(
key="key",
value="value"
)]
)
// 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.*;
CfnMatchmakingConfigurationProps cfnMatchmakingConfigurationProps = CfnMatchmakingConfigurationProps.builder()
.acceptanceRequired(false)
.name("name")
.requestTimeoutSeconds(123)
.ruleSetName("ruleSetName")
// the properties below are optional
.acceptanceTimeoutSeconds(123)
.additionalPlayerCount(123)
.backfillMode("backfillMode")
.creationTime("creationTime")
.customEventData("customEventData")
.description("description")
.flexMatchMode("flexMatchMode")
.gameProperties(List.of(GamePropertyProperty.builder()
.key("key")
.value("value")
.build()))
.gameSessionData("gameSessionData")
.gameSessionQueueArns(List.of("gameSessionQueueArns"))
.notificationTarget("notificationTarget")
.ruleSetArn("ruleSetArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// 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 cfnMatchmakingConfigurationProps = new CfnMatchmakingConfigurationProps {
AcceptanceRequired = false,
Name = "name",
RequestTimeoutSeconds = 123,
RuleSetName = "ruleSetName",
// the properties below are optional
AcceptanceTimeoutSeconds = 123,
AdditionalPlayerCount = 123,
BackfillMode = "backfillMode",
CreationTime = "creationTime",
CustomEventData = "customEventData",
Description = "description",
FlexMatchMode = "flexMatchMode",
GameProperties = new [] { new GamePropertyProperty {
Key = "key",
Value = "value"
} },
GameSessionData = "gameSessionData",
GameSessionQueueArns = new [] { "gameSessionQueueArns" },
NotificationTarget = "notificationTarget",
RuleSetArn = "ruleSetArn",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
// 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"
cfnMatchmakingConfigurationProps := &CfnMatchmakingConfigurationProps{
AcceptanceRequired: jsii.Boolean(false),
Name: jsii.String("name"),
RequestTimeoutSeconds: jsii.Number(123),
RuleSetName: jsii.String("ruleSetName"),
// the properties below are optional
AcceptanceTimeoutSeconds: jsii.Number(123),
AdditionalPlayerCount: jsii.Number(123),
BackfillMode: jsii.String("backfillMode"),
CreationTime: jsii.String("creationTime"),
CustomEventData: jsii.String("customEventData"),
Description: jsii.String("description"),
FlexMatchMode: jsii.String("flexMatchMode"),
GameProperties: []interface{}{
&GamePropertyProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
GameSessionData: jsii.String("gameSessionData"),
GameSessionQueueArns: []*string{
jsii.String("gameSessionQueueArns"),
},
NotificationTarget: jsii.String("notificationTarget"),
RuleSetArn: jsii.String("ruleSetArn"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
acceptanceRequiredboolean | IResolvableacceptance_requiredtyping.Union[bool, IResolvable]acceptanceRequiredBooleanAcceptanceRequiredboolAcceptanceRequiredinterface{} required #To require acceptance, set to TRUE . With this option enabled, matchmaking tickets use the status REQUIRES_ACCEPTANCE to indicate when a completed potential match is waiting for player acceptance.
acceptanceTimeoutSecondsoptionalnumberacceptance_timeout_secondsoptionalint | floatacceptanceTimeoutSecondsoptionalNumberAcceptanceTimeoutSecondsoptionaldoubleAcceptanceTimeoutSecondsoptional*float64 #additionalPlayerCountoptionalnumberadditional_player_countoptionalint | floatadditionalPlayerCountoptionalNumberAdditionalPlayerCountoptionaldoubleAdditionalPlayerCountoptional*float64 #notes
For example, if the configuration's rule set specifies a match for a single 12-person team, and the additional player count is set to 2, only 10 players are selected for the match. This parameter is not used if FlexMatchMode is set to STANDALONE .
backfillModeoptionalstringbackfill_modeoptionalstrbackfillModeoptionalStringBackfillModeoptionalstringBackfillModeoptional*string #notes
Specify MANUAL when your game manages backfill requests manually or does not use the match backfill feature. Specify AUTOMATIC to have GameLift create a StartMatchBackfill request whenever a game session has one or more open slots. Learn more about manual and automatic backfill in Backfill Existing Games with FlexMatch . Automatic backfill is not available when FlexMatchMode is set to STANDALONE .
creationTimeoptionalstringcreation_timeoptionalstrcreationTimeoptionalStringCreationTimeoptionalstringCreationTimeoptional*string #Format is a number expressed in Unix time as milliseconds (for example "1469498468.057" ).
customEventDataoptionalstringcustom_event_dataoptionalstrcustomEventDataoptionalStringCustomEventDataoptionalstringCustomEventDataoptional*string #descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #flexMatchModeoptionalstringflex_match_modeoptionalstrflexMatchModeoptionalStringFlexMatchModeoptionalstringFlexMatchModeoptional*string #notes
- STANDALONE - FlexMatch forms matches and returns match information, including players and team assignments, in a MatchmakingSucceeded event.
- WITH_QUEUE - FlexMatch forms matches and uses the specified Amazon GameLift Servers queue to start a game session for the match.
gamePropertiesoptionalIResolvable | IResolvable | CfnMatchmakingConfiguration.game_propertiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, GamePropertyProperty]]]gamePropertiesoptionalIResolvableGamePropertiesoptionalIResolvableGamePropertiesoptionalinterface{} #notes
These properties are passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used if FlexMatchMode is set to STANDALONE .
gameSessionDataoptionalstringgame_session_dataoptionalstrgameSessionDataoptionalStringGameSessionDataoptionalstringGameSessionDataoptional*string #notes
This data is passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used if FlexMatchMode is set to STANDALONE .
gameSessionQueueArnsoptionalstring[]game_session_queue_arnsoptionaltyping.List[str]gameSessionQueueArnsoptionalList<String>GameSessionQueueArnsoptionalstring[]GameSessionQueueArnsoptional*[]*string #This name is used to identify the configuration associated with a matchmaking request or ticket.
notificationTargetoptionalstringnotification_targetoptionalstrnotificationTargetoptionalStringNotificationTargetoptionalstringNotificationTargetoptional*string #See Setting up notifications for matchmaking for more information.
requestTimeoutSecondsnumberrequest_timeout_secondsint | floatrequestTimeoutSecondsNumberRequestTimeoutSecondsdoubleRequestTimeoutSeconds*float64 required #Requests that fail due to timing out can be resubmitted as needed.
ruleSetArnoptionalstringrule_set_arnoptionalstrruleSetArnoptionalStringRuleSetArnoptionalstringRuleSetArnoptional*string #You can use either the rule set name or ARN value. A matchmaking configuration can only use rule sets that are defined in the same Region.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #notes
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.