def create_fleet()

in production-deployment-sample-script/utils/game_lift_client.py [0:0]


    def create_fleet(self, parsed_fleet: ParsedFleet):
        callargs = dict(Name=parsed_fleet.name,
                        BuildId=parsed_fleet.build_id,
                        EC2InstanceType=parsed_fleet.ec2_instance_type,
                        RuntimeConfiguration=parsed_fleet.runtime_configuration,
                        Description=parsed_fleet.description,
                        EC2InboundPermissions=parsed_fleet.ec2_inbound_permissions,
                        NewGameSessionProtectionPolicy=parsed_fleet.new_game_session_protection_policy,
                        ResourceCreationLimitPolicy=parsed_fleet.resource_creation_limit_policy,
                        MetricGroups=parsed_fleet.metric_groups,
                        PeerVpcAwsAccountId=parsed_fleet.peer_vpc_aws_account_id,
                        PeerVpcId=parsed_fleet.peer_vpc_id,
                        FleetType=parsed_fleet.fleet_type,
                        InstanceRoleArn=parsed_fleet.instance_role_arn,
                        CertificateConfiguration=parsed_fleet.certificate_configuration,
                        Locations=parsed_fleet.locations,
                        Tags=parsed_fleet.tags,
                        ComputeType=parsed_fleet.compute_type,
                        AnywhereConfiguration=parsed_fleet.anywhere_configuration)
        return self.client.create_fleet(**{k: v for k, v in callargs.items() if v is not None})