Editor/Resources/CloudFormation/scenario4_containers_flexmatch/Deployer.cs (30 lines of code) (raw):

// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 using System.Threading.Tasks; using AmazonGameLift.Editor; using AmazonGameLiftPlugin.Core.DeploymentManagement.Models; using AmazonGameLiftPlugin.Core.Shared; using JetBrains.Annotations; namespace AmazonGameLift.ContainersFlexMatch { [UsedImplicitly] public sealed class Deployer : ContainersDeployerBase { public override string DisplayName => "Containers FlexMatch"; public override string Description => "This CloudFormation template sets up a scenario to use FlexMatch -- a managed matchmaking service provided by GameLift. " + "The template demonstrates best practices in acquiring the matchmaking ticket status, " + "by listening to FlexMatch events in conjunction with a low frequency poller to ensure incomplete tickets are periodically pinged and therefore are not discarded by GameLift."; public override string HelpUrl => "https://docs.aws.amazon.com/gamelift/latest/developerguide/unity-plug-in-scenario.html"; public override string ScenarioFolder => "scenario4_containers_flexmatch"; public override int PreferredUiOrder => 11; protected override Task<DeploymentResponse> Deploy(DeploymentRequest request) { ExecuteChangeSetResponse executeResponse = GameLiftCoreApi.ExecuteChangeSet( request.Profile, request.Region, request.StackName, request.ChangeSetName); if (!executeResponse.Success) { return Task.FromResult(Response.Fail(new DeploymentResponse(executeResponse))); } return Task.FromResult(Response.Ok(new DeploymentResponse())); } } }